/* section */
.speakers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--black);
    padding: 75px;
}
.speakers-container {
    width: 100%;
    width: 1250px;

    display: flex;
    flex-direction: column;
    gap: 75px;
}

.speakers-title {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 5px;
}
.speakers-title h2 {
    font-weight: normal;
    font-size: 54px;
    color: white;
}
.speakers-title p {
    font-size: 16px;
    font-weight: normal;
    color: var(--yellow);
}


/* carousel */
.carousel-track {
    display: flex;
    gap: 55px;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;

    margin-bottom: -40px;
    padding-bottom: 40px;
}

.carousel-track:active { cursor: grabbing; }

.carousel-track::-webkit-scrollbar { height: 3px; }
.carousel-track::-webkit-scrollbar-track { background: var(--warm); border-radius: 2px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }


/* speaker card (carousel item) */
.speaker-card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;

    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    gap: 12px;
}
.speaker-card.active .card-img-wrap::after {
    opacity: 1;
}
.speaker-card.active .card-name {
    color: var(--yellow);
}

.card-img-wrap {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
}
.card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--yellow);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.speaker-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-name {
    font-weight: normal;
    font-size: 28px;
    color: white;
    transition: color 0.2s;
}

.card-role {
    font-size: 14px;
    color: rgb(var(--white-rgb) / 40%);

    width: 250px;
    max-width: 250px;

    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    border: none;
    cursor: pointer;
    background-color: var(--dark-gray);

    transition: background 0.2s, width 0.2s;
}

.dot.active {
    background: var(--yellow);
}


/* bio panel */
.bio-panel {
    width: 100%;

    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.bio-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.bio-short {
    font-size: 18px;
    color: var(--white);
}

@media (max-width: 1280px) {
    .speakers {
        padding: 60px 40px;
    }

    .speakers-container {
        width: 100%;
        max-width: 1250px;
    }
}

@media (max-width: 992px) {
    .speakers {
        padding: 60px 30px;
    }

    .speakers-container {
        gap: 60px;
    }

    .speakers-title h2 {
        font-size: 42px;
    }

    .carousel-track {
        gap: 35px;
    }

    .card-img-wrap {
        width: 220px;
        height: 220px;
    }

    .card-name {
        font-size: 24px;
    }

    .card-role {
        width: 220px;
        max-width: 220px;
    }

    .bio-short {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .speakers {
        padding: 50px 20px;
    }

    .speakers-container {
        gap: 50px;
    }

    .speakers-title h2 {
        font-size: 34px;
    }

    .speakers-title p {
        font-size: 14px;
    }

    .carousel-track {
        gap: 24px;
        padding-bottom: 30px;
        margin-bottom: -30px;
    }

    .card-img-wrap {
        width: 180px;
        height: 180px;
    }

    .card-name {
        font-size: 22px;
    }

    .card-role {
        font-size: 13px;
        width: 180px;
        max-width: 180px;
    }

    .bio-short {
        font-size: 16px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .speakers {
        padding: 40px 16px;
    }

    .speakers-container {
        gap: 40px;
    }

    .speakers-title h2 {
        font-size: 28px;
    }

    .speakers-title p {
        font-size: 13px;
    }

    .carousel-track {
        gap: 18px;
        scroll-snap-type: x proximity;
    }

    .card-img-wrap {
        width: 150px;
        height: 150px;
        border-radius: 16px;
    }

    .card-img-wrap::after {
        border-radius: 16px;
    }

    .card-name {
        font-size: 18px;
    }

    .card-role {
        font-size: 12px;
        width: 150px;
        max-width: 150px;
    }

    .bio-short {
        font-size: 15px;
        line-height: 1.7;
    }

    .carousel-dots {
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}