:root {
    --navy-900: #0f2b59;
    /* deep navy */
    --navy-800: #173964;
    --card-grad-start: rgba(28, 60, 110, 1);
    --card-grad-end: rgba(11, 31, 64, 1);
    --accent: #ff9a2b;
    /* orange */
    --accent-dark: #e07a00;
    --white: #ffffff;
    --muted: #6b7784;
}

body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--white);
    margin: 0;
    color: #0b2236;
}

/* Top white header with title (like screenshot) */
.top-title {
    background: #fff;
    padding: 50px 0 50px;
    text-align: center;
    border-bottom: 0;
}

.top-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #16304c;
    letter-spacing: 0.2px;
}

.top-title .subtitle {
    display: block;
    margin-top: 6px;
    font-size: 55px;
    font-weight: 780;
    line-height: 4rem;
    color: #16304c;
}

/* Navy band containing cards (matching screenshot proportion) */
.band {
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    padding: 120px 0 74px;
}

.speakers-row {
    max-width: 1500px;
    /* control width to match screenshot density */
    margin: 0 auto;
}

/* card wrapper */
.speaker {
    width: 210px;
    /* fixed width to match look */
    margin: 0 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 430px;
}

/* portrait area with gradient background like screenshot */
.portrait-wrap {
    width: 210px;
    height: 300px;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        #0d245000 0%,
        #3761a5 50%,
        #dd9025 100%
    );
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /
    display: block;
}

/* small blue strip / gradient near bottom of portrait (thin) */
.portrait-strip {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg, #e6f0ff 0%, rgba(255, 255, 255, 0.06) 100%);
    border-radius: 6px;
    opacity: 0.9;
}

/* info card overlapping portrait bottom */
.info {
    width: 210px;
    height: 113px;
    background: #fff;
    position: relative;
    border-radius: 6px;
    padding: 10px 10px 12px 10px;
    box-shadow: 0 10px 20px rgba(4, 15, 35, 0.2);
    position: absolute;
    top: 290px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: left;
    font-size: 12px;
}

.info .name {
    font-weight: 700;
    color: #0b2540;
    font-size: 13px;
    line-height: 1.05;
}

.info .meta {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.15;
    min-height: 62px;
}

/* thin top border blue on info like screenshot */
/* .info::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, rgb(167, 137, 83), rgb(133, 110, 67));
    box-shadow: 0 2px 6px rgba(6, 22, 50, 0.25);
    z-index: -1;
} */

/* details button */
.details {
    margin-top: 101px;
    /* push below info overlap */
    width: 210px;
    height: 30px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

/* ensure responsive wrapping and spacing */
.speakers-flex {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* small-screen adjustments */
/* @media (max-width: 900px) {
    .speaker {
        width: 150px;
    }

    .portrait-wrap {
        width: 150px;
        height: 210px;
    }

    .info {
        width: 168px;
        top: 175px;
        font-size: 11px;
    }

    .details {
        margin-top: 96px;
        width: 84px;
        height: 30px;
        font-size: 11px;
    }
}

@media (max-width: 520px) {
    .speakers-row {
        padding: 0 14px;
    }

    .speaker {
        margin: 12px;
    }
} */

@media (max-width: 670px) {
    .speaker {
        width: 280px;
    }

    .portrait-wrap {
        width: 280px;
        height: 350px;
    }

    .info {
        width: 280px;
        height: 87px;
        top: 340px;
        font-size: 11px;
    }

    .details {
        margin-top: 76px;
        margin-bottom: 20px;
        width: 280px;
        height: 30px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .speaker {
        width: 350px;
    }

    .portrait-wrap {
        width: 350px;
        height: 390px;
    }

    .info {
        width: 350px;
        height: 80px;
        top: 380px;
        font-size: 11px;
    }

    .details {
        margin-top: 69px;
        margin-bottom: 20px;
        width: 350px;
        height: 30px;
        font-size: 11px;
    }
}
