/* NFHS Project Staff - page specific styles */
.nfhs-staff-page {
    padding-bottom: 40px
}

.nfhs-staff-page-heading {
    margin-bottom: 30px
}

.nfhs-staff-page-heading h4 {
    margin-bottom: 8px;
    color: #10233f;
    font-size: 30px;
    font-weight: 700
}

.nfhs-staff-page-heading p {
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.6
}

.nfhs-team-section {
    --team-accent: #1769d2;
    --team-accent-soft: #eaf3ff;
    margin-bottom: 42px
}

.nfhs-team-cab {
    --team-accent: #16845b;
    --team-accent-soft: #e8f7f0
}

.nfhs-team-it {
    --team-accent: #7651c8;
    --team-accent-soft: #f1ecfb
}

.nfhs-team-admin {
    --team-accent: #b87510;
    --team-accent-soft: #fff4df
}

.nfhs-team-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dfe5ec
}

.nfhs-team-heading h5 {
    position: relative;
    margin: 0 0 6px;
    padding-bottom: 10px;
    color: #10233f;
    font-size: 23px;
    font-weight: 700
}

.nfhs-team-heading h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    background: var(--team-accent);
    border-radius: 99px
}

.nfhs-team-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px
}

.nfhs-staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px
}

.nfhs-staff-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(16, 35, 63, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.nfhs-staff-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--team-accent)
}

.nfhs-staff-card:hover {
    transform: translateY(-5px);
    border-color: var(--team-accent);
    box-shadow: 0 12px 28px rgba(16, 35, 63, .13)
}

.nfhs-staff-photo {
    width: calc(100% - 28px);
    height: 230px;
    margin: 14px auto 0;
    overflow: hidden;
    background: #f5f7fa;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
}

.nfhs-staff-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(16, 35, 63, .06);
    border-radius: inherit
}

.nfhs-staff-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.nfhs-staff-card-body {
    min-height: 110px;
    padding: 16px 14px 18px;
    text-align: center;
}

.nfhs-staff-card-body h6 {
    margin: 0 0 13px;
    color: #10233f;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700
}

.nfhs-staff-role {
    display: inline-block;
    max-width: 100%;
    padding: 7px 13px;
    background: var(--team-accent-soft);
    color: var(--team-accent);
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    overflow-wrap: anywhere
}

@media(max-width:1100px) {
    .nfhs-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .nfhs-staff-photo {
        height: 280px
    }
}

@media(max-width:600px) {
    .nfhs-staff-page-heading h4 {
        font-size: 25px
    }

    .nfhs-team-heading h5 {
        font-size: 20px
    }

    .nfhs-staff-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .nfhs-staff-photo {
        width: calc(100% - 28px);
        height: 300px;
        margin-top: 14px
    }

    .nfhs-staff-card-body {
        min-height: auto
    }
}

@media(prefers-reduced-motion:reduce) {
    .nfhs-staff-card {
        transition: none
    }

    .nfhs-staff-card:hover {
        transform: none
    }
}