/* ==========================================================================
   Single Staff Bio
   ========================================================================== */

/* ── Back link ── */

.staff-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    text-decoration: none;
    margin-bottom: 2rem;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.staff-back:hover {
    opacity: 1;
}

/* ── Hero section ── */

.staff-hero {
    padding: 3rem 2rem 5rem;
}

.staff-hero__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Card */

.staff-hero__card {
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 768px) {
    .staff-hero__card {
        flex-direction: row;
        align-items: stretch;
        min-height: 520px;
    }
}

/* LinkedIn badge */

.staff-hero__linkedin {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.2s ease;
}

.staff-hero__linkedin:hover {
    opacity: 0.7;
}

.staff-hero__linkedin svg {
    display: block;
}

/* Image */

.staff-hero__image-wrap {
    flex: 0 0 40%;
    overflow: hidden;
    background-color: #f6f6f6;
}

@media (max-width: 767px) {
    .staff-hero__image-wrap {
        max-height: 320px;
    }
}

.staff-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (min-width: 768px) {
    .staff-hero__img {
        mix-blend-mode: multiply;
    }
}

.staff-hero__img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: rgba(115, 140, 189, 0.2);
}

/* Info column */

.staff-hero__info {
    flex: 1;
    background: #ffffff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

@media (min-width: 768px) {
    .staff-hero__info {
        padding: 3rem;
    }
}

.staff-hero__position {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
    background: rgba(115, 140, 189, 0.15);
    text-transform: uppercase;
    text-align: center;
    margin: -2.5rem -2.5rem 0;
    padding: 0.75rem 2.5rem;
}

@media (min-width: 768px) {
    .staff-hero__position {
        margin: -3rem -3rem 0;
        padding: 0.75rem 3rem;
    }
}

.staff-hero__name {
    font-family: 'Domine', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 15px 0 0;
    line-height: 1.2;
}

.staff-hero__designations {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: 0;
}

/* Scrollable biography */

.staff-hero__bio {
    flex: 1;
    max-height: 260px;
    overflow-y: auto;
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-navy);
    padding-right: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(19, 41, 75, 0.2) transparent;
    margin-top: 0.5rem;
}

.staff-hero__bio::-webkit-scrollbar {
    width: 4px;
}

.staff-hero__bio::-webkit-scrollbar-track {
    background: transparent;
}

.staff-hero__bio::-webkit-scrollbar-thumb {
    background: rgba(19, 41, 75, 0.2);
    border-radius: 4px;
}

.staff-hero__bio p { margin: 0 0 0.85em; }
.staff-hero__bio p:last-child { margin-bottom: 0; }

.staff-hero__actions {
    padding-top: 1rem;
    margin-top: auto;
}

.staff-hero__actions .btn {
    font-family: 'Domine', serif;
}

.btn--gold-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--color-gold);
    color: #fff;
    font-family: 'Domine', serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.btn--gold-dark:hover {
    background-color: #8a5503;
    color: #fff;
}

/* ── Content section ── */

.staff-content {
    background-color: var(--color-blue);
    padding: 5rem 2rem;
}

.staff-content__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Two-column grid: left (Education + Community), right (Professional) */

.staff-content__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .staff-content__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.staff-content__col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Staff card ── */

.staff-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.staff-card__header {
    background-color: var(--color-navy);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    align-self: flex-start;
}

.staff-card__heading {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.staff-card__body {
    padding: 0 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-white);
}

.staff-card__body img {
    max-width: 150px;
    height: auto;
}

/* Bio lists (Education / Community / Professional):
   Each entry is a plain <p> line (no bullet, no indent), spaced apart.
   Only the sub-roles beneath an entry are listed, with dash markers, and they
   hug the entry above them. Markup is normalized in includes/bio_list.php. */

/* Entry lines — spaced apart from one another … */
.staff-card__body p { margin: 0 0 0.85em; }
.staff-card__body p:last-child { margin-bottom: 0; }

/* … but an entry that has sub-roles hugs them tightly. */
.staff-card__body p:has(+ ul) { margin-bottom: 0.2em; }

/* Sub-roles — dashed, tight, indented from the entry, with a line space
   before the next entry. */
.staff-card__body ul {
    list-style: none;
    margin: 0 0 0.85em 15px;
    padding-left: 1.25rem;
}

.staff-card__body ul:last-child { margin-bottom: 0; }

/* Nested sub-sub-roles stay tight, indented under their parent sub-role. */
.staff-card__body ul ul {
    margin: 0.15em 0 0 15px;
}

.staff-card__body ul li {
    position: relative;
    margin-bottom: 0.15em;
}

.staff-card__body ul li:last-child { margin-bottom: 0; }

.staff-card__body ul li::before {
    content: "\2013";          /* en dash — first-level sub-roles */
    position: absolute;
    left: -1.25rem;
    color: inherit;
}

/* Second-level (and deeper) sub-roles use an open circle instead. */
.staff-card__body ul ul li::before {
    content: "\25E6";          /* ◦ open circle */
}

/* Ask Me About: spans full width, centered */

.staff-card--full {
    width: 100%;
    align-items: center;
}

.staff-card--full .staff-card__header {
    align-self: center;
}

.staff-card--full .staff-card__body {
    text-align: center;
}

/* ── Recent article ── */

.staff-insight {
    padding: 5rem 2rem;
}

.staff-insight .svc-insight__inner {
    margin: 0 auto;
}

/* Read All Insights: gold outline on hover (instead of the default navy fill,
   which blends into this section's navy panel). */
.staff-insight .btn--gold:hover {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* ── Expertise section ── */

.staff-expertise {
    padding: 5rem 2rem;
}

.staff-expertise__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .staff-expertise__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.staff-expertise__heading {
    font-family: 'Domine', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.staff-expertise__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.staff-expertise__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--color-white);
    border: 2px solid var(--color-gold);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-navy);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.staff-expertise__btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}