
.departments-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dept-card {
    background-color: white;
    background-image: url('../images/pattern-bgwhite.png');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.dept-card:hover {
    background-color: #479442;
    background-image: url('../images/pattern-bg.png'); /* Use dark pattern for contrast */
    transform: translateY(-5px);
}

.dept-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-icon img {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
}

.dept-card:hover .dept-icon img {
    filter: brightness(0) invert(1); /* Turn icon white on hover */
}

.dept-title {
    font-size: 20px;
    font-weight: 700;
    color: #130803;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.dept-card:hover .dept-title {
    color: #ffffff;
}

.dept-link {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dept-card:hover .dept-link {
    color: #ffffff;
}

.dept-link .arrow-circle {
    width: 30px;
    height: 30px;
    background-color: #ed1c23;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.dept-card:hover .dept-link .arrow-circle {
    background-color: #ffffff;
}

.dept-link .arrow-circle svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
    transition: all 0.3s ease;
}

.dept-card:hover .dept-link .arrow-circle svg {
    stroke: #E94830;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #130803;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #4c4440;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}
