:root {
    --page-bg: #f4f1ec;
    --card-bg: #ffffff;
    --text-main: #14213d;
    --text-soft: #556070;
    --accent-muted: #c89b4f;
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.08);
    --radius-lg: 26px;
    --radius-md: 22px;
    --profile-shell-bg: rgba(255, 255, 255, 0.5);
}

/* HERO */
.team-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.team-hero--inner {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 0 72px;
}

.team-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.35)
    );
}

.team-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.team-hero h1 {
    margin: 0 0 12px;
    font-family: "Cambria", "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.team-hero p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.92;
}

/* TEAM PAGE */
.team-page {
    padding: 84px 0 96px;
    background: var(--page-bg);
}

.team-page .row {
    row-gap: 2rem;
}

.team-card {
    height: 100%;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.team-card-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e9e4da;
}

.team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 22px 26px;
}

.team-role {
    display: block;
    margin-bottom: 10px;
    font-size: 0.76rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-muted);
}

.team-card h3 {
    margin: 0 0 18px;
    font-family: "Cambria", "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.1vw, 1.9rem);
    line-height: 1.22;
    color: var(--text-main);
}

.team-btn {
    margin-top: 0;
    min-width: 168px;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(200, 155, 75, 0.16);
}

.team-btn-static {
    pointer-events: none;
    cursor: default;
}

/* TEAM PROFILE HERO CONTENT */
.team-hero-content--profile {
    max-width: 760px;
}

.team-profile-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin: 0 0 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.team-profile-breadcrumb a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.team-profile-breadcrumb a:hover,
.team-profile-breadcrumb a:focus {
    color: #fff;
}

.team-hero-content--profile h1 {
    margin-bottom: 0.7rem;
}

.team-hero-content--profile p {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* PROFILE PAGE */
.profile-page {
    padding: 48px 0 56px;
    background: var(--page-bg);
}

.profile-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 760px);
    gap: 3rem;
    align-items: start;
    justify-content: center;
}

.profile-sidebar {
    display: block;
}

.profile-card {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.profile-card-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e9e4da;
}

.profile-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-info {
    padding: 1.2rem 1.2rem 1.3rem;
    text-align: center;
}

.profile-card-info h3 {
    margin: 0 0 0.35rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
}

.profile-card-info p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.profile-content {
    min-width: 0;
}

.profile-content-shell {
    padding: 2rem 2.1rem 2.15rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--profile-shell-bg);
    backdrop-filter: blur(6px);
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-back-link:hover,
.profile-back-link:focus {
    color: var(--accent-muted);
}

.profile-back-link i {
    font-size: 0.95rem;
}

.profile-section + .profile-section {
    margin-top: 1.75rem;
}

.profile-section-eyebrow {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    color: #7d8491;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.profile-section-eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #c7a15a;
}

.profile-section p {
    max-width: 68ch;
    margin: 0 0 1rem;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.9;
}

.profile-checklist {
    margin: 0 0 1.35rem;
    padding-left: 1.2rem;
    color: var(--text-soft);
}

.profile-checklist li {
    margin-bottom: 0.65rem;
    font-size: 0.98rem;
    line-height: 1.75;
}

.profile-checklist li:last-child,
.profile-list-card li:last-child {
    margin-bottom: 0;
}

.profile-checklist li::marker,
.profile-list-card li::marker {
    color: #c7a15a;
}

.profile-checklist--compact {
    margin-bottom: 0;
}

.profile-list-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-list-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-soft);
}

.profile-list-card li {
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
    line-height: 1.8;
}

/* LARGE SCREENS */
@media (min-width: 1200px) {
    .team-card-body {
        padding: 24px 24px 28px;
    }

    .profile-grid {
        gap: 3.25rem;
    }
}

/* TABLET */
@media (max-width: 991.98px) {
    .team-hero--inner {
        min-height: 290px;
        padding: 88px 0 64px;
    }

    .team-page {
        padding: 72px 0 84px;
    }

    .team-card {
        border-radius: 24px;
    }

    .team-role {
        min-height: auto;
    }

    .team-card h3 {
        min-height: auto;
    }

    .profile-page {
        padding: 44px 0 52px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        justify-content: stretch;
    }

    .profile-sidebar {
        max-width: 420px;
    }

    .profile-content-shell {
        padding: 1.7rem 1.6rem 1.8rem;
    }
}

/* MOBILE */
@media (max-width: 575.98px) {
    .team-hero--inner {
        min-height: 250px;
        padding: 76px 0 56px;
    }

    .team-hero h1 {
        font-size: 2rem;
    }

    .team-hero p {
        font-size: 0.84rem;
        letter-spacing: 0.08em;
        line-height: 1.7;
    }

    .team-page {
        padding: 56px 0 70px;
    }

    .team-card,
    .profile-card,
    .profile-content-shell {
        border-radius: var(--radius-md);
    }

    .team-card-body {
        padding: 20px 18px 22px;
    }

    .team-role {
        margin-bottom: 10px;
        font-size: 0.74rem;
    }

    .team-card h3 {
        margin-bottom: 16px;
        font-size: 1.45rem;
    }

    .team-btn {
        width: 100%;
        max-width: 220px;
    }

    .team-profile-breadcrumb {
        margin-bottom: 0.8rem;
        font-size: 0.78rem;
    }

    .team-hero-content--profile p {
        max-width: 32ch;
    }

    .profile-page {
        padding: 38px 0 46px;
    }

    .profile-content-shell {
        padding: 1.3rem 1.1rem 1.4rem;
    }

    .profile-section + .profile-section {
        margin-top: 1.7rem;
    }

    .profile-section p,
    .profile-list-card li,
    .profile-checklist li {
        font-size: 0.96rem;
        line-height: 1.78;
    }
}