/* ══════════════════════════════════════════
           PAGE HERO
        ══════════════════════════════════════════ */
.tab-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}
.page-hero {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3.5rem;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.055) 1px,
        transparent 1px
    );
    background-size: 40px 40px;
}

.hero-slash {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(140deg, var(--navy-mid), var(--navy-dark));
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-slash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 70% 40%,
        rgba(243, 117, 42, 0.15) 0%,
        transparent 65%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.4rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb .sep {
    opacity: 0.4;
}

.breadcrumb .cur {
    color: var(--orange);
}

.hero-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.hero-label::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: var(--orange);
}

.hero-h1 {
    font-family: var(--font-d);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-h1 em {
    font-style: italic;
    color: var(--orange-lt);
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.78;
    max-width: 580px;
    font-weight: 300;
}

/* ══════════════════════════════════════════
           DEPARTMENT TABS
        ══════════════════════════════════════════ */
.dept-tabs-bar {
    background: #fff;
    border-bottom: 2px solid var(--gray-200);
    position: sticky;
    top: 83px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(26, 23, 78, 0.06);
}

.dept-tabs-inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    padding: 0 45px;
}

.dept-tabs-inner::-webkit-scrollbar {
    display: none;
}

.tab-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-scroll-btn.left {
    left: 2%;
}

.tab-scroll-btn.right {
    right: 2%;
}

.tab-scroll-btn:hover {
    background: var(--orange);
    color: #fff;
}

@media (max-width: 768px) {
    .tab-scroll-btn {
        display: none !important;
    }

    .dept-tabs-inner {
        padding: 0;
    }
}

.dept-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gray-600);
    white-space: nowrap;
    padding: 0.95rem 1.4rem;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    cursor: pointer;
    transition:
        color 0.2s,
        border-color 0.2s;
}

.dept-select {
    display: block;
    width: 200px;
    height: 46px;
    margin-right: 20px;
    padding: 0 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--gray-600) 50%),
        linear-gradient(135deg, var(--gray-600) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.dept-tab:hover {
    color: var(--navy);
}

.dept-tab.active {
    color: var(--orange);
    border-bottom: 3px solid var(--orange);
}

.dept-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    transition:
        background 0.2s,
        color 0.2s;
}

.dept-tab.active .tab-count {
    background: var(--orange);
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .dept-tabs-inner {
        display: block;
        padding: 0.75rem 0;
    }

    .dept-select {
        display: block;
        width: 100%;
        height: 46px;
        padding: 0 0.9rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--navy);
        background: #fff;
        border: 1px solid var(--gray-200);
        border-radius: 8px;
        outline: none;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;

        background-image:
            linear-gradient(45deg, transparent 50%, var(--gray-600) 50%),
            linear-gradient(135deg, var(--gray-600) 50%, transparent 50%);
        background-position:
            calc(100% - 18px) calc(50% - 3px),
            calc(100% - 12px) calc(50% - 3px);
        background-size: 6px 6px;
        background-repeat: no-repeat;
    }

    .dept-tab {
        display: none;
    }
}

/* ══════════════════════════════════════════
           MAIN CONTENT AREA
        ══════════════════════════════════════════ */
.team-main {
    padding: 0.5rem 0 6rem;
}

/* Department panel */
.dept-panel {
    display: none;
}

.dept-panel.active {
    display: block;
}

/* Designation group */
.desig-group {
    margin-bottom: 4rem;
}

.desig-group:last-child {
    margin-bottom: 0;
}

.desig-heading {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.9rem;
    border-bottom: 2px solid var(--gray-200);
}

.desig-heading-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.desig-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-400);
    white-space: nowrap;
}

.desig-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.desig-title-wrap .desig-icon {
    width: 36px;
    height: 36px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    flex-shrink: 0;
}

.desig-title-wrap .desig-icon svg {
    width: 17px;
    height: 17px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.5;
}

.desig-name {
    font-family: var(--font-d);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.desig-name em {
    font-style: italic;
    color: var(--orange);
}

.desig-count {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-left: 0.3rem;
}

/* ══════════════════════════════════════════
           MEMBER CARD GRID
        ══════════════════════════════════════════ */

.member-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.member-card {
    width: calc(25% - 10px);
    /* Desktop: 4 */
}

@media (max-width: 992px) {
    .member-card {
        width: calc(33.33% - 10px);
        /* Tablet: 3 */
    }
}

@media (max-width: 768px) {
    .member-card {
        width: calc(50% - 10px);
    }

    .member-photo {
        aspect-ratio: 3 / 4;
        /* portrait photo on mobile */
    }

    .member-photo .photo-overlay {
        padding: 0.75rem;
    }

    .member-photo .overlay-dept {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .member-card {
        width: 100%;
        /* Small mobile: 1 */
    }

    .member-photo {
        aspect-ratio: 4 / 5;
    }
}

.member-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-top: 3px solid transparent;
    overflow: hidden;
    transition:
        border-color 0.25s,
        box-shadow 0.25s,
        transform 0.2s;
    cursor: default;
}

.member-card:hover {
    border-top-color: var(--orange);
    box-shadow: 0 8px 28px rgba(26, 23, 78, 0.12);
    transform: translateY(-3px);
}

/* Photo area */
.member-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}

.member-photo .avatar-img,
.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.member-card:hover .member-photo img {
    transform: scale(1.04);
}

/* Placeholder avatar when no image */
.member-photo .avatar-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.member-photo .avatar-initials {
    font-family: var(--font-d);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.member-photo .avatar-placeholder {
    position: relative;
    width: 300px;
    height: 300px;
}

.member-photo .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Photo overlay on hover */
.member-photo .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(26, 23, 78, 0.65) 100%
    );
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.member-card:hover .photo-overlay {
    opacity: 1;
}

.overlay-dept {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* Info area */
.member-info {
    padding: 1.1rem 1.1rem 1.3rem;
    border-top: 1px solid var(--gray-100);
}

.member-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.member-desig {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--orange);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
}

.member-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.member-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--gray-600);
    line-height: 1.45;
}

.member-contact svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    stroke: var(--gray-400);
    fill: none;
    stroke-width: 1.8;
}

/* ══════════════════════════════════════════
           SEARCH + FILTER BAR
        ══════════════════════════════════════════ */
.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-wrap svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    stroke: var(--gray-400);
    fill: none;
    stroke-width: 1.8;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 3px;
    font-family: var(--font-b);
    font-size: 0.82rem;
    color: var(--navy);
    background: var(--gray-50);
    transition:
        border-color 0.2s,
        background 0.2s;
    outline: none;
}

.search-input:focus {
    border-color: var(--orange);
    background: #fff;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-count {
    font-size: 0.75rem;
    color: var(--gray-400);
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.search-count strong {
    color: var(--navy);
    font-weight: 600;
}

/* ══════════════════════════════════════════
           EMPTY STATE
        ══════════════════════════════════════════ */
.empty-state {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-400);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    stroke: var(--gray-200);
    fill: none;
    margin: 0 auto 1rem;
    display: block;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ══════════════════════════════════════════
           FOOTER
        ══════════════════════════════════════════ */
footer {
    background: var(--navy-dark);
    color: #fff;
    border-top: 4px solid var(--orange);
}

.foot-top {
    padding: 3.8rem 0;
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 2fr;
    gap: 3rem;
}

.foot-logo img {
    height: 54px;
    width: auto;
    mix-blend-mode: screen;
    display: block;
    margin-bottom: 0.9rem;
}

.foot-logo p {
    font-size: 0.79rem;
    color: var(--gray-400);
    line-height: 1.75;
}

.fcol h4 {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.2rem;
}

.fcol ul {
    list-style: none;
}

.fcol li {
    margin-bottom: 0.45rem;
}

.fcol a {
    font-size: 0.81rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.fcol a:hover {
    color: var(--orange);
}

.foot-bot {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.foot-bot p {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.foot-legal {
    display: flex;
    gap: 1.4rem;
}

.foot-legal a {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-decoration: none;
}

.foot-legal a:hover {
    color: var(--orange);
}

/* ══════════════════════════════════════════
           ANIMATIONS
        ══════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fu {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.d1 {
    animation-delay: 0.1s;
}

.d2 {
    animation-delay: 0.22s;
}

.d3 {
    animation-delay: 0.36s;
}

.card-appear {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.5s ease forwards;
}

/* ══════════════════════════════════════════
           RESPONSIVE
        ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .foot-top {
        grid-template-columns: 1fr 1fr;
    }

    .member-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    }
}

@media (max-width: 768px) {
    .foot-top {
        grid-template-columns: 1fr;
    }

    .member-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .desig-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .desig-heading-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .member-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .member-info {
        padding: 0.85rem 0.85rem 1rem;
    }

    .member-name {
        font-size: 0.85rem;
    }
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy);
}
