/* Our Team — scoped to this page */

.page-team {
    --tm-ink: #101828;
    --tm-muted: #5c6778;
    --tm-paper: #f4f0e8;
    --tm-white: #ffffff;
    --tm-line: rgba(16, 24, 40, 0.1);
    --tm-green: #0f9f6e;
    --tm-green-deep: #0b7d56;
    --tm-blue: #1d4ed8;
    background: var(--tm-paper);
    color: var(--tm-ink);
}

.page-team .navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
    box-shadow: none;
}

.page-team .navbar.scrolled {
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.page-team h1,
.page-team h2,
.page-team h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 560;
    letter-spacing: -0.03em;
    color: var(--tm-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* ---------- Hero ---------- */

.page-team .team-hero {
    margin-top: 74px;
    padding: 5.75rem 0 5rem;
    text-align: left;
    color: #f7f4ee;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(12, 18, 32, 0.9) 8%, rgba(12, 18, 32, 0.62) 48%, rgba(12, 18, 32, 0.38) 100%),
        url("../images/DSC_5824.jpg") center 28% / cover no-repeat;
}

.page-team .team-hero::before,
.page-team .team-hero::after {
    content: none;
}

.page-team .team-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-team .team-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    color: rgba(247, 244, 238, 0.72);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-team .team-hero-label::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: #34d399;
}

.page-team .team-hero-title {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 560;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #f7f4ee;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
}

.page-team .team-hero-subtitle {
    max-width: 34rem;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(247, 244, 238, 0.78);
    text-shadow: none;
    opacity: 1;
}

/* ---------- Leadership ---------- */

.page-team .leadership-section {
    padding: 5rem 0;
    background: var(--tm-paper);
}

.page-team .leadership-section.vp-section {
    background: var(--tm-white);
}

.page-team .leadership-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.page-team .leadership-section.vp-section .leadership-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
}

.page-team .leadership-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 22px;
    border: 1px solid var(--tm-line);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
    background: #e7e2d8;
}

.page-team .leadership-card:hover .leadership-image img {
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.page-team .leadership-role {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--tm-green-deep);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-team .leadership-role::before {
    content: "";
    width: 1.4rem;
    height: 1px;
    background: var(--tm-green);
}

.page-team .leadership-section.vp-section .leadership-role {
    background: none;
    color: var(--tm-blue);
}

.page-team .leadership-section.vp-section .leadership-role::before {
    background: var(--tm-blue);
}

.page-team .leadership-name {
    margin: 0 0 0.35rem;
    font-size: clamp(2.1rem, 3.2vw, 3rem);
    line-height: 1.05;
    color: var(--tm-ink);
}

.page-team .leadership-title {
    margin: 0 0 1.35rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tm-muted);
}

.page-team .leadership-message {
    max-width: 40rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--tm-muted);
    text-align: left;
}

.page-team .leadership-message p {
    margin: 0 0 0.95rem;
    color: var(--tm-muted);
}

.page-team .leadership-message p:last-child {
    margin-bottom: 0;
}

.page-team .leadership-message .drop-cap {
    float: none;
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

/* ---------- Council ---------- */

.page-team .council-section {
    padding: 5.25rem 0 6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
        var(--tm-paper);
}

.page-team .council-section::before,
.page-team .council-header::before,
.page-team .council-card::before {
    content: none;
}

.page-team .council-header {
    max-width: 1120px;
    margin: 0 auto 2.25rem;
    padding: 0 1.5rem;
    text-align: left;
}

.page-team .council-title {
    margin: 0 0 0.6rem;
    font-size: clamp(2.1rem, 4vw, 3.15rem);
    line-height: 1.05;
    color: var(--tm-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.page-team .council-subtitle {
    max-width: 36rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--tm-muted);
}

.page-team .council-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.page-team .council-card {
    display: flex;
    flex-direction: column;
    background: var(--tm-white);
    border: 1px solid var(--tm-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.page-team .council-card--lead {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    border-color: rgba(15, 159, 110, 0.28);
}

.page-team .council-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 24, 40, 0.16);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.07);
}

.page-team .council-card-image {
    height: 280px;
    background: #e7e2d8;
    overflow: hidden;
}

.page-team .council-card--lead .council-card-image {
    height: 100%;
    min-height: 340px;
}

.page-team .council-card-image::after {
    content: none;
}

.page-team .council-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: none;
}

.page-team .council-card:hover .council-card-image img {
    transform: none;
}

.page-team .council-card-content {
    padding: 1.35rem 1.35rem 1.5rem;
}

.page-team .council-card--lead .council-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem 2.5rem;
}

.page-team .council-card-role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 0.7rem;
    padding: 0.32rem 0.7rem;
    border: 0;
    border-radius: 999px;
    line-height: 1.35;
    white-space: normal;
    background: #eef2f6;
    color: #3d4a5c;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-team .council-card--lead .council-card-role {
    background: #10261c;
    color: #d8f8ea;
}

.page-team .council-card-name {
    margin: 0 0 0.65rem;
    font-size: 1.28rem;
    line-height: 1.2;
    color: var(--tm-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.page-team .council-card--lead .council-card-name {
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.page-team .council-card-bio,
.page-team .council-card-bio p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--tm-muted);
}

.page-team .council-card--lead .council-card-bio {
    max-width: 42rem;
}

@media (max-width: 980px) {
    .page-team .leadership-card,
    .page-team .leadership-section.vp-section .leadership-card,
    .page-team .council-card--lead {
        grid-template-columns: 1fr;
    }

    .page-team .leadership-section.vp-section .leadership-image,
    .page-team .leadership-section.vp-section .leadership-content {
        order: unset;
    }

    .page-team .leadership-image {
        max-width: 420px;
    }

    .page-team .council-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-team .council-card--lead .council-card-image {
        height: 360px;
        min-height: 0;
    }
}

@media (max-width: 680px) {
    .page-team .team-hero {
        padding: 4.25rem 0 3.5rem;
    }

    .page-team .team-hero-title {
        max-width: none;
        font-size: 2.7rem;
    }

    .page-team .leadership-section,
    .page-team .council-section {
        padding: 3.25rem 0;
    }

    .page-team .council-grid {
        grid-template-columns: 1fr;
    }

    .page-team .council-card-image,
    .page-team .council-card--lead .council-card-image {
        height: 320px;
    }

    .page-team .council-card--lead .council-card-content {
        padding: 1.35rem 1.35rem 1.5rem;
    }
}
