
/* =========================================================
   SHAKUNTLAM PG COLLEGE - STAFF PAGE
   Separate page-specific stylesheet
   ========================================================= */

.staff-page {
    background: #f7f8fb;
    color: #171717;
}

.staff-page .breadcrumb {
    margin-bottom: 0;
}

.staff-main {
    padding: 56px 0 80px;
}

.staff-page-title {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: #101010;
    text-align: center;
}

.staff-page-subtitle {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
    color: #626975;
    font-size: 16px;
}

.staff-section {
    margin-top: 52px;
}

.staff-section:first-of-type {
    margin-top: 0;
}

.staff-section-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 28px;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
}

.staff-section-heading::before,
.staff-section-heading::after {
    content: "";
    width: 52px;
    height: 3px;
    border-radius: 99px;
    background: #1d4ed8;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.management-grid {
    /* Keep Principal + Vice Principal cards the same width as normal staff cards */
    max-width: 760px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.staff-card {
    background: #ffffff;
    border: 1px solid #e7e9ee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(16, 24, 40, 0.15);
}

.staff-card--leader {
    border-color: #d8deea;
}

.staff-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 4.5;
    padding: 10px 10px 0;
    background: #f2f4f7;
}

.staff-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px 12px 0 0;
	cursor: default;
    
}

.staff-card-body {
    padding: 20px 16px 22px;
    text-align: center;
}

.staff-name {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    color: #111111;
}

.staff-card--leader .staff-name {
    font-size: 24px;
}

.staff-designation {
    margin: 0 0 13px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: #4b5563;
}

.staff-info {
    margin: 0;
    display: grid;
    gap: 6px;
    font-size: 14px;
    line-height: 1.45;
    color: #4b5563;
}

.staff-info strong {
    color: #111827;
    font-weight: 800;
}

.staff-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2px;
}

.staff-empty {
    color: #8a919c;
}

.staff-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .78);
}

.staff-modal.is-open {
    display: flex;
}

.staff-modal img {
    max-width: min(92vw, 700px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.staff-modal-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 44px;
    cursor: pointer;
}
/* Principal + Vice Principal use the EXACT same photo sizing as all staff */
.management-card .staff-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 4.5;
    padding: 10px 10px 0;
    background: #f2f4f7;
}

.management-card .staff-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px 12px 0 0;
    cursor: default;
}
@media (max-width: 1199.98px) {
    .staff-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile: exactly 2 staff photos/cards per row */
@media (max-width: 767.98px) {
    .staff-main {
        padding: 36px 10px 58px;
    }

    .staff-page-title {
        font-size: 31px;
    }

    .staff-page-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .staff-section {
        margin-top: 40px;
    }

    .staff-section-heading {
        font-size: 24px;
        margin-bottom: 20px;
        gap: 9px;
    }

    .staff-section-heading::before,
    .staff-section-heading::after {
        width: 28px;
        height: 2px;
    }

    .staff-grid,
    .management-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .staff-card {
        border-radius: 12px;
        box-shadow: 0 5px 16px rgba(16, 24, 40, .10);
		width: 100%;
    }

    .staff-card:hover {
        transform: none;
    }

     .staff-photo-wrap,
    .management-card .staff-photo-wrap {
        width: 100%;
        aspect-ratio: 4 / 4.5;
        padding: 6px 6px 0;
    }padding: 6px 6px 0;
    }

    .staff-photo,
    .management-card .staff-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .staff-card-body {
        padding: 12px 7px 14px;
    }

    .staff-name,
    .staff-card--leader .staff-name {
        font-size: 15px;
        line-height: 1.22;
    }

    .staff-designation {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .staff-info {
        gap: 4px;
        font-size: 11px;
        line-height: 1.35;
    }

    .staff-badge {
        margin-bottom: 8px;
        padding: 4px 8px;
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .staff-main {
        padding-left: 7px;
        padding-right: 7px;
    }

    .staff-grid,
    .management-grid {
        gap: 9px;
    }

    .staff-name,
    .staff-card--leader .staff-name {
        font-size: 14px;
    }
}


