/* Treatments / Departments Page Styles */

.departments-section {
    padding: 80px 0;
    background-color: #fff;
    min-height: 60vh;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 20px 0;
}

.dept-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.dept-img-wrap {
    width: 100%;
    overflow: hidden;
    /* Optional: Add a subtle border or radius if desired, 
       but screenshot shows sharp corners or very slight rounding */
}

.dept-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dept-card:hover .dept-img {
    transform: scale(1.05);
}

.dept-info-box {
    background: var(--color-bg-white);
    width: 85%;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-top: -50px; /* Pulls the box up to overlap the image */
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dept-card:hover .dept-info-box {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.dept-title {
    color: var(--color-dark-blue);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.dept-link {
    color: var(--color-accent-orange);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.dept-link:hover {
    color: var(--color-secondary-hover);
}

/* Responsive Grid */
@media (max-width: 992px) {
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dept-info-box {
        width: 90%;
        padding: 25px 15px;
    }
}
