/* src/css/department.css */

.dept-hero {
    width: 100%;
    height: 40vh;
    background-color: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2px;
}

.dept-hero-content h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
    font-weight: 400;
}

.dept-hero-content p {
    font-family: var(--font-body);
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
}

.dept-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    min-height: 60vh;
}

.section-heading {
    text-align: center;
    font-family: var(--font-head);
    font-size: 24px;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dept-card {
    cursor: pointer;
    text-align: center;
}

.dept-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.dept-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dept-card:hover img {
    transform: scale(1.05);
}

.dept-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dept-card:hover .dept-overlay {
    opacity: 1;
}

.dept-overlay span {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0,0,0,0.3);
}

.dept-card h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dept-hero h1 { font-size: 2rem; }
    .dept-grid { grid-template-columns: 1fr; gap: 40px; }
    .dept-container { padding: 0 20px; }
}