/* =========================
   SECTION
========================= */
.gl-sec {
    padding: 96px 0 80px;
    background: #fff;
}

/* Title container */
.gl-wrap {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.gl-title {
    text-align: center;
    font-family: SatoshiBlack;
    font-size: 34px;
    margin-bottom: 32px;
}

/* =========================
   FULL WIDTH SCROLLER
========================= */
.gl-scroller {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.gl-scroller::-webkit-scrollbar {
    display: none;
}

/* THIS controls the alignment */
.gl-inner {
    max-width: 1160px;
    padding: 0 24px;
    /* ✅ YOUR REQUIRED MAX WIDTH */
    margin: 0 auto;
    /* center it */
}

/* Cards row */
.gl-track {
    display: flex;
    gap: 24px;
    padding-bottom: 10px;
}

/* =========================
   CARD
========================= */
.leader-card {
    position: relative;
    flex: 0 0 380px;
    height: 440px;

    border-radius: 30px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
    border: 2px solid #d9d9d9;

    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); */
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   OVERLAY
========================= */
.leader-overlay {
    /* position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;

    padding: 14px 16px;
    border-radius: 18px;

    background: rgba(20, 22, 28, 0.45);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);

    overflow: hidden;
    transition: 0.4s ease; */
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;

    padding: 14px 16px;
    border-radius: 18px;

    background: rgba(20, 22, 28, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    /* ✅ stable border */
    border: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);

    background-clip: padding-box;
    overflow: hidden;
    transition: 0.4s ease;
    will-change: transform;
}

.leader-name {
    font-family: SatoshiBlack;
    font-size: 18px;
    color: #fff;
}

.leader-role {
    font-family: SatoshiRegular;
    font-size: 13px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.leader-desc {
    margin-top: 10px;
    font-family: SatoshiRegular;
    font-size: 17px;
    line-height: 25px;
    color: rgba(255, 255, 255, 0.9);

    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
}

/* =========================
   MOBILE TAP USING FOCUS
========================= */

/* Desktop hover remains same */
.leader-card:hover .leader-overlay {
    /* background: rgba(20, 22, 28, 0.7); */
    background: rgba(20, 22, 28, 0.45);
    transform: translateY(-6px);
}

.leader-card:hover .leader-desc {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 20px;
}

/* ✅ Tap (focus) support */
.leader-card:focus .leader-overlay,
.leader-card:focus-within .leader-overlay {
    background: rgba(20, 22, 28, 0.7);
    transform: translateY(-6px);
}

.leader-card:focus .leader-desc,
.leader-card:focus-within .leader-desc {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

/* Optional: remove blue focus outline */
.leader-card:focus {
    outline: none;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px) {
    .leader-card {
        flex: 0 0 300px;
        height: 390px;
    }
}

@media(max-width:600px) {
    .leader-card {
        flex: 0 0 80vw;
        height: 360px;
    }

    /* .leader-desc {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
    } */
}

@media (min-width: 1000px) {

    .gl-wrap,
    .gl-inner {
        max-width: 1024px;
        padding: unset;
    }
}

@media (min-width:1400px) {

    .gl-wrap,
    .gl-inner {
        max-width: 1260px;
    }
}