/* =========================================================
   FACULTY & STAFF PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #172033;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}


/* =========================================================
   HERO
========================================================= */

.faculty-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 20%,
        rgba(99,102,241,.12), transparent 30%),

        radial-gradient(circle at 90% 20%,
        rgba(236,72,153,.12), transparent 30%),

        linear-gradient(135deg,
        #ffffff,
        #f5f3ff,
        #eff6ff);
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 850px;
    padding: 65px 20px;
}

.hero-label {
    display: inline-block;
    padding: 8px 19px;
    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #ede9fe,
        #fce7f3
    );

    color: #6d28d9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-content h1 {
    margin-top: 17px;
    font-size: 55px;
    line-height: 1.1;
    font-weight: 900;
}

.hero-content h1 span {
    background: linear-gradient(
        90deg,
        #6366f1,
        #a855f7,
        #ec4899
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    max-width: 700px;
    margin: 17px auto 28px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}


/* HERO ORBS */

.hero-orb {
    position: absolute;
    border-radius: 50%;
}

.orb-one {
    width: 280px;
    height: 280px;
    left: -120px;
    top: -100px;
    background: rgba(99,102,241,.13);
}

.orb-two {
    width: 210px;
    height: 210px;
    right: 7%;
    top: 20px;
    background: rgba(236,72,153,.12);
}

.orb-three {
    width: 160px;
    height: 160px;
    left: 40%;
    bottom: -100px;
    background: rgba(6,182,212,.10);
}


/* HERO STATS */

.hero-stat-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stat {
    min-width: 115px;
    padding: 13px 18px;
    border-radius: 15px;
    background: rgba(255,255,255,.85);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(15,23,42,.06);
}

.hero-stat strong {
    display: block;
    font-size: 21px;

    background: linear-gradient(
        90deg,
        #4f46e5,
        #db2777
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat small {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   DEPARTMENT
========================================================= */

.department-section {
    padding: 60px 5% 25px;
    background: white;
}

.section-title {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.section-title > span {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-title h2 {
    margin-top: 11px;
    font-size: 34px;
    font-weight: 900;

    background: linear-gradient(
        90deg,
        #312e81,
        #7c3aed,
        #db2777
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}


/* =========================================================
   DEPARTMENT BAR
========================================================= */

.department-bar {
    max-width: 1200px;
    margin: 30px auto 0;

    display: flex;
    gap: 8px;

    padding: 8px;

    overflow-x: auto;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.department-btn {
    flex: 1 0 auto;

    min-width: 115px;

    border: none;

    padding: 12px 14px;

    border-radius: 12px;

    background: transparent;

    color: #475569;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition: .3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.department-btn:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.department-btn.active {
    color: white;

    background: linear-gradient(
        135deg,
        #4f46e5,
        #7c3aed,
        #db2777
    );

    box-shadow:
        0 8px 20px rgba(79,70,229,.22);
}

.department-btn span {
    font-size: 15px;
}


/* =========================================================
   FACULTY SECTION
========================================================= */

.faculty-section {
    padding: 38px 5% 80px;

    background:
        radial-gradient(
            circle at 0% 20%,
            rgba(99,102,241,.06),
            transparent 25%
        ),

        radial-gradient(
            circle at 100% 80%,
            rgba(236,72,153,.06),
            transparent 25%
        ),

        #f8fafc;
}

.faculty-section-header {
    max-width: 1150px;
    margin: 0 auto 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.current-label {
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}

.faculty-section-header h2 {
    margin-top: 4px;
    font-size: 27px;
    font-weight: 900;
}

.faculty-count {
    padding: 8px 14px;
    border-radius: 50px;

    background: white;
    border: 1px solid #e2e8f0;

    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.faculty-count span {
    color: #6d28d9;
    font-size: 16px;
    font-weight: 900;
}


/* =========================================================
   GRID
========================================================= */

.faculty-grid {
    max-width: 1150px;
    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


/* =========================================================
   CARD
========================================================= */

.faculty-card {
    display: none;

    overflow: hidden;

    background: white;

    border-radius: 19px;

    border: 1px solid #e5e7eb;

    box-shadow:
        0 8px 25px rgba(15,23,42,.07);

    transition: .35s ease;
}

.faculty-card.show-card {
    display: block;

    animation:
        cardAppear .4s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faculty-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(79,70,229,.13);
}


/* =========================================================
   CARD TOP
========================================================= */

.card-top {
    position: relative;

    height: 200px;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    overflow: hidden;
}

.bca-color {
    background: linear-gradient(
        135deg,
        #c7d2fe,
        #ddd6fe,
        #fbcfe8
    );
}

.ba-color {
    background: linear-gradient(
        135deg,
        #bae6fd,
        #bfdbfe,
        #ddd6fe
    );
}

.ma-color {
    background: linear-gradient(
        135deg,
        #fbcfe8,
        #f5d0fe,
        #ddd6fe
    );
}

.mca-color {
    background: linear-gradient(
        135deg,
        #a5f3fc,
        #bae6fd,
        #c7d2fe
    );
}

.admin-color {
    background: linear-gradient(
        135deg,
        #bbf7d0,
        #a7f3d0,
        #bae6fd
    );
}

.scholarship-color {
    background: linear-gradient(
        135deg,
        #fde68a,
        #fed7aa,
        #fbcfe8
    );
}

.exam-color {
    background: linear-gradient(
        135deg,
        #fecaca,
        #fed7aa,
        #fef3c7
    );
}


/* PATTERN */

.card-pattern {
    position: absolute;

    width: 200px;
    height: 200px;

    top: -110px;
    right: -70px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(79,70,229,.35),
            rgba(236,72,153,.20)
        );
}


/* BADGE */

.department-badge {
    position: absolute;

    z-index: 5;

    top: 10px;
    left: 10px;

    padding: 6px 9px;

    border-radius: 50px;

    background: rgba(255,255,255,.92);

    color: #4f46e5;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .7px;

    box-shadow:
        0 5px 15px rgba(15,23,42,.10);
}


/* PHOTO */

.faculty-photo {
    position: relative;
    z-index: 4;

    width: 140px;
    height: 180px;

    object-fit: cover;

    border-radius:
        75px
        75px
        14px
        14px;

    border: 5px solid white;

    box-shadow:
        0 12px 25px rgba(49,46,129,.18);

    transition: .4s ease;
}

.faculty-card:hover .faculty-photo {
    transform: scale(1.03);
}


/* =========================================================
   CARD INFO
========================================================= */

.faculty-info {
    padding: 15px 13px 16px;
    text-align: center;
}

.faculty-role {
    margin-bottom: 5px;

    color: #8b5cf6;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.5px;
}

.faculty-info h3 {
    font-size: 15px;
    font-weight: 900;

    color: #172033;

    line-height: 1.3;
}

.designation {
    margin-top: 5px;

    color: #7c3aed;

    font-size: 11px;
    font-weight: 800;
}

.qualification {
    margin-top: 4px;

    color: #64748b;

    font-size: 10px;
}


/* =========================================================
   BUTTONS
========================================================= */

.faculty-actions {
    display: flex;
    justify-content: center;

    gap: 5px;

    margin-top: 12px;
}

.profile-btn,
.resume-btn {
    min-height: 31px;

    padding: 6px 8px;

    border-radius: 8px;

    font-size: 9px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: .25s ease;
}

.profile-btn {
    border: 1px solid #ddd6fe;

    background: #f5f3ff;

    color: #6d28d9;
}

.profile-btn:hover {
    background: #6366f1;
    color: white;
}

.resume-btn {
    border: 1px solid #bfdbfe;

    background: #eff6ff;

    color: #2563eb;
}

.resume-btn:hover {
    background: #2563eb;
    color: white;
}


/* =========================================================
   EMPTY
========================================================= */

.no-members {
    display: none;

    max-width: 450px;

    margin: 40px auto;

    text-align: center;

    padding: 35px 20px;

    background: white;

    border-radius: 20px;

    border: 1px solid #e2e8f0;
}

.no-members.show-empty {
    display: block;
}

.no-members > div {
    font-size: 40px;
}

.no-members h3 {
    margin-top: 8px;
}

.no-members p {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}


/* =========================================================
   MODAL
========================================================= */

.profile-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15,23,42,.70);

    backdrop-filter: blur(8px);
}

.profile-modal.show {
    display: flex;
}

.profile-modal-box {
    position: relative;

    width: 100%;
    max-width: 480px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 25px;

    background: white;

    box-shadow:
        0 30px 80px rgba(0,0,0,.30);

    animation:
        modalUp .3s ease;
}

@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* CLOSE */

.modal-close {
    position: absolute;

    top: 12px;
    right: 13px;

    width: 35px;
    height: 35px;

    border: none;

    border-radius: 50%;

    background: #f1f5f9;

    color: #475569;

    font-size: 22px;

    cursor: pointer;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
}


/* MODAL HEADER */

.modal-header {
    text-align: center;
}

.modal-photo-wrapper {
    width: 95px;
    height: 95px;

    margin: 0 auto 14px;

    padding: 4px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #a855f7,
            #ec4899
        );
}

.modal-photo-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid white;
}

.modal-label {
    color: #7c3aed;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.5px;
}

.profile-modal-box h2 {
    margin-top: 7px;

    font-size: 24px;

    color: #172033;
}

.modal-designation {
    margin-top: 4px;

    color: #7c3aed;

    font-size: 12px;

    font-weight: 800;
}


/* DETAILS */

.profile-details {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 9px;

    margin-top: 22px;
}

.profile-detail-box {
    padding: 12px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #f5f3ff
        );

    border: 1px solid #e2e8f0;
}

.profile-detail-box span {
    display: block;

    margin-bottom: 4px;

    color: #94a3b8;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}

.profile-detail-box strong {
    color: #334155;

    font-size: 11px;

    line-height: 1.4;

    word-break: break-word;
}


/* MODAL RESUME */

.modal-bottom {
    margin-top: 20px;
    text-align: center;
}

.modal-resume-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border-radius: 11px;

    color: white;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #7c3aed,
            #db2777
        );

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .faculty-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

    .faculty-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 13px;
    }

    .faculty-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .faculty-photo {
        width: 125px;
        height: 165px;
    }

    .card-top {
        height: 185px;
    }

    .faculty-info h3 {
        font-size: 14px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .department-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .department-bar {
        justify-content: flex-start;
    }

    .faculty-section-header {
        align-items: flex-start;
        gap: 10px;
    }

    .faculty-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card-top {
        height: 175px;
    }

    .faculty-photo {
        width: 115px;
        height: 155px;
    }

    .faculty-info {
        padding: 12px 8px;
    }

    .faculty-info h3 {
        font-size: 13px;
    }

    .designation {
        font-size: 10px;
    }

    .qualification {
        font-size: 9px;
    }

    .faculty-actions {
        flex-direction: column;
    }

    .profile-btn,
    .resume-btn {
        width: 100%;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 350px) {

    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .card-top {
        height: 205px;
    }

    .faculty-photo {
        width: 140px;
        height: 180px;
    }

}