/* =========================================================
   SCPM FACULTY — PREMIUM DESIGN
========================================================= */

:root {

    --faculty-orange: #f26522;
    --faculty-orange-dark: #c94d12;
    --faculty-gold: #d7a33d;

    --faculty-brown: #2a1a10;
    --faculty-text: #493c33;
    --faculty-muted: #81756c;

    --faculty-cream: #fbf7f1;
    --faculty-white: #ffffff;

    --faculty-border: #eadfd3;

    --faculty-shadow:
        0 20px 55px rgba(51, 29, 15, .10);

}


/* =========================================================
   HERO
========================================================= */

.faculty-hero {

    position: relative;

    min-height: 455px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #fffaf5 0%,
            #f9eee3 50%,
            #f4e4d5 100%
        );

}


.faculty-hero-bg {

    position: absolute;

    width: 600px;
    height: 600px;

    right: -220px;
    top: -250px;

    border-radius: 50%;

    border:
        1px solid
        rgba(242, 101, 34, .14);

}


.faculty-hero-bg::after {

    content: "";

    position: absolute;

    inset: 70px;

    border-radius: 50%;

    border:
        1px solid
        rgba(215, 163, 61, .18);

}


.faculty-hero-inner {

    position: relative;

    width: min(1200px, calc(100% - 40px));

    margin: auto;

    padding: 80px 0;

}


.faculty-breadcrumb {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 30px;

    font-size: 13px;

    color: var(--faculty-muted);

}


.faculty-breadcrumb a {

    color: var(--faculty-orange);

    text-decoration: none;

    font-weight: 600;

}


.faculty-eyebrow {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

    color: var(--faculty-orange);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;

}


.faculty-eyebrow span {

    width: 34px;

    height: 1px;

    background:
        var(--faculty-orange);

}


.faculty-hero h1 {

    max-width: 760px;

    margin: 0;

    color: var(--faculty-brown);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(55px, 8vw, 95px);

    font-weight: 700;

    line-height: .86;

    letter-spacing: -2px;

}


.faculty-hero h1 em {

    display: block;

    color: var(--faculty-orange);

    font-style: normal;

}


.faculty-hero-inner > p {

    max-width: 690px;

    margin: 28px 0 0;

    color: var(--faculty-muted);

    font-size: 16px;

    line-height: 1.85;

}


/* =========================================================
   STATS
========================================================= */

.faculty-stats-wrap {

    position: relative;

    z-index: 10;

    margin-top: -45px;

}


.faculty-stats {

    width: min(1000px, calc(100% - 40px));

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    overflow: hidden;

    background:
        var(--faculty-white);

    border:
        1px solid
        var(--faculty-border);

    border-radius: 20px;

    box-shadow:
        var(--faculty-shadow);

}


.faculty-stat {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 27px 30px;

    border-right:
        1px solid
        var(--faculty-border);

}


.faculty-stat:last-child {

    border-right: 0;

}


.faculty-stat-icon {

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(242,101,34,.12),
            rgba(215,163,61,.16)
        );

    color: var(--faculty-orange);

    font-size: 20px;

}


.faculty-stat strong {

    display: block;

    color:
        var(--faculty-brown);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 38px;

    line-height: 1;

}


.faculty-stat span {

    display: block;

    margin-top: 4px;

    color:
        var(--faculty-muted);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;

}


/* =========================================================
   MAIN SECTION
========================================================= */

.faculty-section {

    padding:
        90px 0 110px;

    background:
        var(--faculty-cream);

}


.faculty-container {

    width:
        min(1280px, calc(100% - 40px));

    margin: auto;

}


.faculty-section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 38px;

}


.faculty-mini-label {

    margin-bottom: 8px;

    color:
        var(--faculty-orange);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.faculty-section-heading h2 {

    margin: 0;

    color:
        var(--faculty-brown);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(38px, 5vw, 58px);

    line-height: 1;

}


.faculty-section-heading h2 span {

    color:
        var(--faculty-orange);

}


.faculty-section-heading > p {

    max-width: 390px;

    margin: 0;

    color:
        var(--faculty-muted);

    font-size: 14px;

    line-height: 1.75;

}


/* =========================================================
   FILTERS
========================================================= */

.faculty-filters {

    display: grid;

    grid-template-columns:
        minmax(280px, 1.7fr)
        1fr
        1fr;

    gap: 12px;

    margin-bottom: 18px;

}


.faculty-search-box {

    position: relative;

}


.faculty-search-icon {

    position: absolute;

    left: 18px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        var(--faculty-orange);

    font-size: 23px;

    pointer-events: none;

}


.faculty-search-box input,
.faculty-filters select {

    width: 100%;

    height: 55px;

    padding:
        0 18px;

    border:
        1px solid
        var(--faculty-border);

    border-radius: 12px;

    outline: none;

    background:
        var(--faculty-white);

    color:
        var(--faculty-text);

    font-family:
        inherit;

    font-size: 13px;

    transition:
        .25s ease;

}


.faculty-search-box input {

    padding-left: 52px;

}


.faculty-search-box input:focus,
.faculty-filters select:focus {

    border-color:
        var(--faculty-orange);

    box-shadow:
        0 0 0 4px
        rgba(242,101,34,.08);

}


/* =========================================================
   RESULT BAR
========================================================= */

.faculty-result-bar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 22px;

    color:
        var(--faculty-muted);

    font-size: 13px;

}


.faculty-result-bar strong {

    color:
        var(--faculty-orange);

}


.faculty-clear {

    padding:
        7px 12px;

    border: 0;

    background: transparent;

    color:
        var(--faculty-orange);

    font-family:
        inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

}


/* =========================================================
   GRID
========================================================= */

.faculty-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

}


.faculty-card {

    position: relative;

    overflow: hidden;

    background:
        var(--faculty-white);

    border:
        1px solid
        var(--faculty-border);

    border-radius: 18px;

    box-shadow:
        0 8px 28px
        rgba(47, 27, 14, .045);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}


.faculty-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(242,101,34,.35);

    box-shadow:
        0 25px 55px
        rgba(47, 27, 14, .13);

}


/* =========================================================
   PHOTO
========================================================= */

.faculty-photo-wrap {

    position: relative;

    height: 310px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #eee0d2,
            #f8f1e9
        );

}


.faculty-photo {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;

    transition:
        transform .7s cubic-bezier(.2,.7,.2,1);

}


.faculty-card:hover
.faculty-photo {

    transform:
        scale(1.055);

}


.faculty-photo-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(32,19,10,.48),
            transparent 48%
        );

    pointer-events: none;

}


.faculty-photo-fallback {

    display: none;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    color:
        var(--faculty-orange);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 70px;

    font-weight: 700;

}


.faculty-photo-fallback.visible {

    display: flex;

}


/* =========================================================
   HOD BADGE
========================================================= */

.faculty-hod-badge {

    position: absolute;

    left: 16px;
    bottom: 16px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        8px 12px;

    border:
        1px solid
        rgba(255,255,255,.35);

    border-radius: 30px;

    background:
        rgba(38, 23, 13, .78);

    backdrop-filter:
        blur(10px);

    color:
        #fff;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .8px;

    text-transform: uppercase;

}


.faculty-hod-badge span {

    color:
        #f2c66d;

}


/* =========================================================
   CARD BODY
========================================================= */

.faculty-card-body {

    position: relative;

    padding:
        23px 24px 25px;

}


.faculty-card-body::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            to bottom,
            var(--faculty-orange),
            var(--faculty-gold)
        );

    opacity: 0;

    transition:
        .3s ease;

}


.faculty-card:hover
.faculty-card-body::before {

    opacity: 1;

}


.faculty-designation-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}


.faculty-designation {

    color:
        var(--faculty-orange);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;

}


.faculty-code {

    color:
        #a99d93;

    font-family:
        monospace;

    font-size: 9px;

}


.faculty-name {

    margin:
        9px 0 12px;

    color:
        var(--faculty-brown);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 27px;

    font-weight: 700;

    line-height: 1.02;

}


.faculty-department {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        7px 10px;

    border-radius: 8px;

    background:
        #fcf3eb;

    color:
        #995327;

    font-size: 11px;

    font-weight: 700;

}


.faculty-department-icon {

    color:
        var(--faculty-orange);

}


/* =========================================================
   QUALIFICATION
========================================================= */

.faculty-qualification {

    display: flex;

    gap: 12px;

    margin-top: 18px;

    padding-top: 17px;

    border-top:
        1px solid
        #f0e7df;

}


.faculty-info-icon {

    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgba(242,101,34,.09);

    color:
        var(--faculty-orange);

}


.faculty-qualification small {

    display: block;

    margin-bottom: 3px;

    color:
        #a0958c;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.faculty-qualification strong {

    display: block;

    color:
        var(--faculty-text);

    font-size: 12px;

    font-weight: 500;

    line-height: 1.5;

}


/* =========================================================
   PRINCIPAL / MESSAGE
========================================================= */

.faculty-card.is-hod {

    border-color:
        rgba(215,163,61,.32);

}


.faculty-message {

    margin-top: 17px;

    padding:
        13px;

    border-radius: 9px;

    background:
        #fcf8f3;

    color:
        var(--faculty-muted);

    font-size: 11px;

    line-height: 1.65;

    font-style: italic;

}


/* =========================================================
   FILTER STATES
========================================================= */

.faculty-hidden {

    display: none !important;

}


.faculty-no-results {

    display: none;

    grid-column:
        1 / -1;

    padding:
        80px 20px;

    text-align: center;

    background:
        var(--faculty-white);

    border:
        1px solid
        var(--faculty-border);

    border-radius: 18px;

}


.faculty-no-results.show {

    display: block;

}


.faculty-no-results-icon {

    width: 58px;
    height: 58px;

    margin:
        0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        #fcf0e8;

    color:
        var(--faculty-orange);

    font-size: 25px;

}


.faculty-no-results h3 {

    margin: 0 0 5px;

    color:
        var(--faculty-brown);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 30px;

}


.faculty-no-results p {

    margin: 0;

    color:
        var(--faculty-muted);

    font-size: 13px;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .faculty-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .faculty-filters {

        grid-template-columns:
            1fr 1fr;

    }


    .faculty-search-box {

        grid-column:
            1 / -1;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .faculty-hero {

        min-height:
            430px;

    }


    .faculty-hero-inner {

        width:
            calc(100% - 30px);

        padding:
            65px 0 75px;

    }


    .faculty-breadcrumb {

        margin-bottom:
            22px;

    }


    .faculty-eyebrow {

        font-size:
            10px;

        letter-spacing:
            2px;

    }


    .faculty-eyebrow span {

        width:
            22px;

    }


    .faculty-hero h1 {

        font-size:
            57px;

        letter-spacing:
            -1px;

    }


    .faculty-hero-inner > p {

        margin-top:
            22px;

        font-size:
            14px;

        line-height:
            1.7;

    }


    /* STATS */

    .faculty-stats-wrap {

        margin-top:
            -30px;

    }


    .faculty-stats {

        width:
            calc(100% - 28px);

        grid-template-columns:
            1fr;

    }


    .faculty-stat {

        padding:
            20px 22px;

        border-right:
            0;

        border-bottom:
            1px solid
            var(--faculty-border);

    }


    .faculty-stat:last-child {

        border-bottom:
            0;

    }


    /* MAIN */

    .faculty-section {

        padding:
            65px 0 80px;

    }


    .faculty-container {

        width:
            calc(100% - 28px);

    }


    .faculty-section-heading {

        display:
            block;

        margin-bottom:
            27px;

    }


    .faculty-section-heading h2 {

        font-size:
            42px;

    }


    .faculty-section-heading > p {

        margin-top:
            15px;

    }


    /* FILTERS */

    .faculty-filters {

        grid-template-columns:
            1fr;

    }


    .faculty-search-box {

        grid-column:
            auto;

    }


    .faculty-result-bar {

        margin-bottom:
            17px;

    }


    /* CARDS */

    .faculty-grid {

        grid-template-columns:
            1fr;

        gap:
            18px;

    }


    .faculty-photo-wrap {

        height:
            340px;

    }


    .faculty-card-body {

        padding:
            21px;

    }


    .faculty-name {

        font-size:
            25px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .faculty-hero h1 {

        font-size:
            49px;

    }


    .faculty-photo-wrap {

        height:
            300px;

    }


    .faculty-name {

        font-size:
            23px;

    }


    .faculty-stat strong {

        font-size:
            32px;

    }

}
/* =========================================================
   FINAL FACULTY PHOTO FIX
   Paste this at the VERY END of faculty.css
========================================================= */

.faculty-photo-wrap {
    position: relative !important;
    width: 100% !important;
    height: 330px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    background:
        linear-gradient(
            145deg,
            #f5e9dd 0%,
            #fffaf5 50%,
            #eee0d2 100%
        ) !important;
}


/* Actual faculty image */

.faculty-photo-wrap .faculty-photo {
    width: 100% !important;
    height: 100% !important;

    display: block !important;

    object-fit: contain !important;
    object-position: center center !important;

    padding: 8px !important;

    transition:
        transform .5s ease !important;
}


/* Very small zoom — no cropping */

.faculty-card:hover
.faculty-photo-wrap .faculty-photo {
    transform: scale(1.02) !important;
}


/* Overlay should not hide the face */

.faculty-photo-overlay {
    position: absolute !important;
    inset: 0 !important;

    pointer-events: none !important;

    background:
        linear-gradient(
            to top,
            rgba(35, 20, 10, .18),
            transparent 45%
        ) !important;
}


/* HOD badge stays above image */

.faculty-hod-badge {
    z-index: 5 !important;
}


/* Fallback initials */

.faculty-photo-fallback {
    width: 100% !important;
    height: 100% !important;

    align-items: center !important;
    justify-content: center !important;

    background:
        linear-gradient(
            145deg,
            #f5e9dd,
            #fffaf5
        ) !important;

    color: #f26522 !important;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif !important;

    font-size: 70px !important;
    font-weight: 700 !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .faculty-photo-wrap {
        height: 320px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .faculty-photo-wrap {
        height: 350px !important;
    }

    .faculty-photo-wrap .faculty-photo {
        padding: 6px !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .faculty-photo-wrap {
        height: 320px !important;
    }

}


/* =========================================================
   STAFF DIRECTORY LINKS
========================================================= */

.faculty-staff-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.faculty-staff-links > p {
    margin: 0;
    max-width: 430px;
    text-align: right;
}

.staff-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.staff-buttons .btn {
    text-decoration: none;
    white-space: nowrap;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .faculty-staff-links {
        align-items: flex-start;
        width: 100%;
    }

    .faculty-staff-links > p {
        text-align: left;
        max-width: 100%;
    }

    .staff-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .staff-buttons .btn {
        flex: 1 1 auto;
        text-align: center;
    }

}