:root {
    --team-saffron: #ff9933;
    --team-green: #138808;
    --team-navy: #123a70;
    --team-ink: #182435;
    --team-muted: #687386;
}

* {
    box-sizing: border-box;
}

body {
    background: #f5f7fa;
    color: var(--team-ink);
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.navbar-brand {
    color: var(--team-navy);
    font-size: 1rem;
    font-weight: 800;
}

.navbar-brand:hover {
    color: var(--team-navy);
}

.team-brand-logo {
    height: 48px;
    object-fit: contain;
    width: 48px;
}

.nav-link {
    color: #465467;
    font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
    color: #e87722 !important;
}

.team-hero {
    background: linear-gradient(125deg, rgba(143, 61, 8, .91), rgba(20, 68, 118, .91)), url('../img/hero_bg.png') center/cover;
    color: #fff;
    overflow: hidden;
    padding: 5.5rem 0;
    position: relative;
}

.team-hero::after {
    background: linear-gradient(90deg, var(--team-saffron) 0 33.33%, #fff 33.33% 66.66%, var(--team-green) 66.66%);
    bottom: 0;
    content: '';
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
}

.team-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

.team-hero-kicker {
    color: #ffe1bd;
    font-family: 'Poppins', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.team-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.team-main {
    min-height: 55vh;
}

.designation-section {
    padding-bottom: 3rem;
    position: relative;
}

.designation-section:not(:last-child)::after {
    background: #d9dfe8;
    bottom: .9rem;
    content: '';
    height: 1px;
    left: 15%;
    position: absolute;
    right: 15%;
}

.designation-heading {
    margin-bottom: 1.8rem;
}

.designation-heading h2 {
    display: inline-block;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0;
    padding: 0 .6rem;
}

.designation-step {
    background: var(--team-saffron);
    border-radius: 50%;
    color: #4b2a0b;
    display: inline-flex;
    font-family: 'Poppins', sans-serif;
    font-size: .76rem;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 28px;
    margin-right: .4rem;
    width: 28px;
}

.member-card {
    background: #fff;
    border: 1px solid #e2e7ee;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(30, 48, 73, .08);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.member-card:hover {
    box-shadow: 0 16px 32px rgba(30, 48, 73, .16);
    transform: translateY(-6px);
}

.member-card-featured {
    border-color: #e7ad45;
}

.member-photo-wrap {
    background: linear-gradient(135deg, #fff2df, #eaf4ea);
    height: 230px;
    position: relative;
}

.member-photo {
    height: 100%;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.member-photo-placeholder {
    object-fit: contain;
    padding: 2.5rem;
}

.member-badge {
    border-radius: 99px;
    bottom: 14px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    left: 50%;
    padding: .35rem .75rem;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.badge-gold {
    background: #ad7507;
}

.badge-red {
    background: #c53131;
}

.badge-blue {
    background: #1764b1;
}

.member-card-body {
    padding: 1.25rem;
}

.member-card h3 {
    font-size: 1.28rem;
    font-weight: 800;
    margin: 0 0 .35rem;
    text-align: center;
}

.member-designation {
    color: #d66f18;
    font-size: 1.48rem;
    font-weight: 700;
    margin-bottom: 1rem;
      text-align: center;
}

.member-details,
.profile-details {
    margin: 0;
}

.member-details div,
.profile-details div {
    border-top: 1px solid #edf0f4;
    display: flex;
    font-size: .83rem;
    gap: .5rem;
    justify-content: space-between;
    padding: .45rem 0;
}

.member-details dt,
.profile-details dt {
    color: var(--team-muted);
    font-weight: 500;
}

.member-details dd,
.profile-details dd {
    color: #253348;
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.member-actions {
    align-items: center;
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}

.member-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
}

.btn-whatsapp {
    background: #1ca44b;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #137a37;
    color: #fff;
}

.btn-email {
    border: 1px solid #d6dde7;
    color: var(--team-navy);
}

.btn-email:hover {
    background: #edf3f9;
    color: var(--team-navy);
}

.btn-profile {
    background: var(--team-navy);
    color: #fff;
    flex: 1;
    font-size: .82rem;
    font-weight: 700;
}

.btn-profile:hover {
    background: #0b2b54;
    color: #fff;
}

.team-empty-state {
    background: #fff;
    border: 1px dashed #cbd4e0;
    border-radius: 14px;
    color: #637085;
    padding: 1.2rem;
    text-align: center;
}

.team-footer {
    background: var(--team-navy);
    color: #fff;
    font-size: .86rem;
}

.profile-page {
    min-height: 100vh;
}

.profile-back {
    color: var(--team-navy);
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.profile-card {
    align-items: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 36px rgba(30, 48, 73, .12);
    display: flex;
    gap: 2rem;
    max-width: 780px;
    padding: 2rem;
}

.profile-photo {
    background: #eff3f8;
    border-radius: 50%;
    flex: 0 0 180px;
    height: 180px;
    overflow: hidden;
    width: 180px;
}

.profile-photo img {
    height: 100%;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.profile-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.profile-details {
    min-width: 280px;
}

@media (max-width: 575.98px) {
    .team-hero {
        padding: 4rem 0;
    }

    .designation-section {
        padding-bottom: 2.5rem;
    }

    .member-photo-wrap {
        background: #f4f6f8;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .member-photo {
        object-fit: contain;
        object-position: center;
    }

    .member-photo-placeholder {
        padding: 3rem;
    }

    .profile-card {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .profile-details {
        min-width: 100%;
    }

    .profile-photo {
        flex-basis: 145px;
        height: 145px;
        width: 145px;
    }
}
