* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Bai Jamjuree", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ============================================================
   HERO / PARALLAX
   ============================================================ */
.parallax-section {
    position: relative;
    display: flex;
    justify-content: center;
}
.container-center-parallax{
    position: relative;
    margin-top: var(--header-height);
    width: 1280px;
    max-width: 100%;
    height: 35vh;
    min-height: 225px;
    background-image: url('../img/Arena_Stafft.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.parallax-content {
    position: relative;
    z-index: 2;
    padding: 28px 45px;
    width: auto;
    max-width: 900px;
    background: rgba(10, 10, 10, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
    animation: heroFadeIn 0.8s ease-out;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    transform: translateY(0) scale(1);
    opacity: 1;
}
.parallax-content h1 {
    margin: 0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.07em;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.parallax-content p {
    margin: 12px 0 0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    color: #ffffff;
}
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.learn-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 95px;
    margin-bottom: 12px;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1.4;
}
.learn-breadcrumb .breadcrumb-parent {
    color: #005da4;
}
.learn-breadcrumb .breadcrumb-separator {
    color: #005da4;
    opacity: 0.6;
    font-weight: 400;
}
.learn-breadcrumb .breadcrumb-current {
    color: #005da4;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.learn-breadcrumb .breadcrumb-current:hover {
    color: #183254;
    border-bottom-color: #183254;
}

/* ============================================ */
/*                  STAFF                       */
/* ============================================ */
.youth-programs-four {
    position: relative;
    padding: 0 1.5rem 0 1.5rem;
}
.container-three {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 0;
    background-color: #ffffff;
}
.section-title {
    position: relative;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background-clip: text;
    -webkit-background-clip: text;
    color: #173060;
    text-transform: uppercase;
    font-family: "Bai Jamjuree", sans-serif;
    font-style: italic;
    font-weight: 600;
    display: inline-block;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.coaching-description {
    text-align: center;
    max-width: 900px;
    margin: -20px auto 40px auto;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
    padding: 0 20px;
}
.leadership-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================ */
/* LEADERSHIP GRID - CENTRADO HORIZONTAL */
/* ============================================ */
.leadership {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 0;
    justify-content: center;
}

.consultants-wrapper {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.consultants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 500px !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 auto !important;
}

.member {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.member:hover img {
    transform: scale(1.08);
}

.member .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 15px 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.arrow-icon {
    position: absolute;
    right: 15px;
    bottom: 25px;
    color: #ffffff;
    font-size: 1.2rem;
    z-index: 5;
    opacity: 1;
    transition: transform 0.3s ease;
}

.member:hover .arrow-icon {
    transform: translateX(5px);
}

.member .overlay::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #2766b2 0%, #15498b 25%, #041b3f 65%, #000814 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 1;
}

.member .overlay h3 {
    font-family: 'Bai Jamjuree', sans-serif;
    color: #ffffff;
    font-size: 0.98rem;
}

.member .overlay h3,
.member .overlay span {
    position: relative;
    color: #ffffff;
    z-index: 2;
}

.member:hover .overlay::before,
.member.active .overlay::before {
    transform: translateY(0);
}

.member .overlay span {
    font-size: 0.70rem;
    font-family: "Barlow", sans-serif;
    text-transform: uppercase;
    opacity: 0.9;
}

.arrow {
    margin-top: 20px;
    padding: 20px 0;
    width: 100vw;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 10px;
}

.arrow i {
    font-size: 2rem;
    color: #ffffff;
    animation: bounce 2s infinite;
    display: inline-block;
    text-align: center;
}

/* ============================================ */
/* PANEL DE DETALLES                            */
/* ============================================ */
.member-details {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: none;
    gap: 30px;
    align-items: flex-start;
    margin-top: 0;
    background: #295196;
    padding: 20px;
    color: #fff;
}

.details-image {
    width: 250px;
    flex-shrink: 0;
}

.details-image img {
    width: 100%;
    display: block;
}

.details-content {
    flex: 1;
    text-align: left;
    padding-left: 0;
}

.details-content h2 {
    margin: 0 0 5px 0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 2rem;
}

.details-content h4 {
    margin: 0 0 5px 0;
    color: #ffffff;
    text-transform: uppercase;
    font-family: "Barlow", sans-serif;
}

#details-name {
    text-align: left;
    margin: 0 0 5px 0;
}

#details-position {
    text-align: left;
    margin: 0 0 5px 0;
}

#details-bio {
    text-align: left;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

#details-bio p {
    position: relative;
    margin: 0 0 12px 0;
    line-height: 1.6;
    padding-left: 20px;
    font-family: "Barlow", sans-serif;
}

#details-bio .bullet {
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    font-weight: bold;
}

.close-details {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

.close-details span {
    position: relative;
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    transform-origin: center center;
    transition: color 0.3s ease, transform 0.5s ease;
}

.close-details:hover span {
    color: #17305a;
    transform: rotate(-180deg);
}

.close-consultant-details {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.close-consultant-details span {
    position: relative;
    top: -1px;
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    transform-origin: center center;
    transition: color 0.3s ease, transform 0.5s ease;
}

.close-consultant-details:hover span {
    color: #17305a;
    transform: rotate(-180deg);
}

#consultant-details {
    display: none;
    max-width: 660px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

#consultant-bio p {
    margin-bottom: 12px;
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================ */
/* BIO-AUTO (•) — texto normal con bullet      */
/* ============================================ */
#details-bio p.bio-auto,
#consultant-bio p.bio-auto {
    display: block !important;
    position: relative !important;
    padding-left: 22px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.6 !important;
    font-family: "Barlow", sans-serif;
}

#details-bio p.bio-auto::before,
#consultant-bio p.bio-auto::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
}

/* ============================================ */
/* BIO-BULLET (•) — viñeta indentada más       */
/* ============================================ */
#details-bio p.bio-bullet,
#consultant-bio p.bio-bullet {
    display: block !important;
    position: relative !important;
    padding-left: 45px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.6 !important;
    font-family: "Barlow", sans-serif;
}

#details-bio p.bio-bullet::before,
#consultant-bio p.bio-bullet::before {
    content: "•" !important;
    position: absolute !important;
    left: 25px !important;
    top: 0 !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

#details-bio p.bio-bullet span.bullet-text,
#consultant-bio p.bio-bullet span.bullet-text {
    display: inline !important;
}

/* ============================================================
   RESPONSIVE: 992px (TABLET)
   ============================================================ */
@media (max-width: 992px) {
    .parallax-section {
        width: 100%;
    }

    .container-center-parallax {
        width: 100%;
        height: 35vh;
        min-height: 225px;
        background-position: center 60%;
    }

    .parallax-content {
        padding: 24px 30px;
        max-width: calc(100% - 40px);
    }

    .parallax-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .learn-breadcrumb {
        padding: 0 24px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .youth-programs-four {
        padding: 0 1rem;
    }

    .container-three {
        padding: 30px 0;
    }

    /* ✅ Grid 2x2 en tablet */
    .leadership {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 8px;
        padding: 0 8px;
    }

    .member .overlay {
        padding: 12px 16px;
    }

    .member .overlay h3 {
        font-size: 0.92rem;
    }

    .member .overlay span {
        font-size: 0.65rem;
    }

    .arrow-icon {
        right: 12px;
        bottom: 20px;
        font-size: 1rem;
    }

    /* ✅ Panel de detalles: imagen más pequeña */
    .member-details {
        padding: 20px;
        gap: 20px;
    }

    .details-image {
        width: 180px;
    }

    .details-content h2 {
        font-size: 1.5rem;
    }

    .details-content h4 {
        font-size: 0.85rem;
    }

    #details-bio p {
        font-size: 0.92rem;
    }

    .coaching-description {
        padding: 0 24px;
    }
}

/* ============================================================
   RESPONSIVE: 768px (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
    .container-center-parallax {
        width: 100%;
        height: 35vh;
        min-height: 225px;
        margin-top: var(--header-height);
        background-position: center 70%;
        background-size: cover;
        background-attachment: scroll; /* ✅ desactivar fixed en mobile (mejor rendimiento) */
    }

    .parallax-content {
        width: auto;
        max-width: calc(100% - 30px);
        padding: 24px 20px;
    }

    .parallax-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        letter-spacing: 0.07em;
    }

    .learn-breadcrumb {
        padding: 0;
        font-size: 0.7rem;
        gap: 5px;
        margin-bottom: 14px;
    }

    .youth-programs-four {
        padding: 0 12px;
    }

    .container-three {
        padding: 25px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .coaching-description {
        font-size: 0.92rem;
        margin: -10px auto 30px auto;
        padding: 0 8px;
    }

    /* ✅ Grid 2 columnas en mobile (más compacto que 1 col) */
    .leadership {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 6px;
        padding: 0;
    }

    .member {
        aspect-ratio: 1/1;
    }

    .member .overlay {
        padding: 10px 12px;
    }

    .member .overlay h3 {
        font-size: 0.78rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .member .overlay span {
        font-size: 0.58rem;
        line-height: 1.2;
        margin-top: 2px;
    }

    .member .overlay::before {
        height: 70px;
    }

    .arrow-icon {
        right: 8px;
        bottom: 14px;
        font-size: 0.85rem;
    }

    /* ============================================ */
    /* PANEL DE DETALLES EN MOBILE                  */
    /* ✅ Apilado vertical (imagen arriba, texto abajo) */
    /* ============================================ */
    .member-details {
        flex-direction: column;
        padding: 18px 16px 22px;
        gap: 16px;
        align-items: center;
    }

    .details-image {
        width: 100%;
        max-width: 220px;
        flex-shrink: 0;
    }

    .details-image img {
        border-radius: 8px;
    }

    .details-content {
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .details-content h2 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 4px;
    }

    .details-content h4 {
        font-size: 0.78rem;
        text-align: center;
        margin-bottom: 14px;
        letter-spacing: 0.04em;
    }

    #details-name,
    #details-position {
        text-align: center;
    }

    #details-bio p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    #details-bio p.bio-auto,
    #consultant-bio p.bio-auto {
        padding-left: 18px !important;
    }

    #details-bio p.bio-bullet,
    #consultant-bio p.bio-bullet {
        padding-left: 32px !important;
    }

    #details-bio p.bio-bullet::before,
    #consultant-bio p.bio-bullet::before {
        left: 14px !important;
    }

    /* ✅ Botón cerrar más visible y sin solaparse */
    .close-details {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .close-details span {
        font-size: 13px;
    }
}

/* ============================================================
   RESPONSIVE: 480px (MOBILE PEQUEÑO)
   ============================================================ */
@media (max-width: 480px) {
    .parallax-content {
        padding: 20px 16px;
    }

    .parallax-content h1 {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .learn-breadcrumb {
        font-size: 0.65rem;
    }

    .youth-programs-four {
        padding: 0 10px;
    }

    .container-three {
        padding: 20px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .coaching-description {
        font-size: 0.85rem;
    }

    /* ✅ Mobile pequeño: 1 columna para tarjetas más grandes */
    .leadership {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 10px;
        margin: 0 auto;
    }

    .member .overlay {
        padding: 14px 16px;
    }

    .member .overlay h3 {
        font-size: 0.95rem;
    }

    .member .overlay span {
        font-size: 0.68rem;
    }

    .arrow-icon {
        right: 14px;
        bottom: 20px;
        font-size: 1rem;
    }

    .member-details {
        padding: 16px 14px 20px;
        gap: 14px;
    }

    .details-image {
        max-width: 180px;
    }

    .details-content h2 {
        font-size: 1.2rem;
    }

    .details-content h4 {
        font-size: 0.72rem;
    }

    #details-bio p {
        font-size: 0.84rem;
    }

    .close-details {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }

    .close-details span {
        font-size: 12px;
    }
}