/* Speakers Section Styles */
.speakers-section {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 2rem 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.speakers-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: #FFFFFF;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

/* Carousel Styles */

.speakers-wrapper {
    overflow: hidden;
}

.speakers-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.speakers-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: speakers-scroll 40s linear infinite;
}

.speakers-carousel:hover .speakers-track {
    animation-play-state: paused;
}

@keyframes speakers-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Add media queries for responsiveness */
@media (max-width: 768px) {
    .carousel article {
        min-width: 250px;
        max-width: 250px;
        padding: 1.5rem;
    }
    
    .speaker-image {
        width: 120px;
        height: 120px;
    }
    
    .speaker-name {
        font-size: 1.25rem;
    }
}

/* Gradient masks for smooth fade effect */
.carousel::before,
.carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel::before {
    left: 0;
    /* background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 100%); */
}

.carousel::after {
    right: 0;
    /* background: linear-gradient(to left, rgba(0,0,0,0.8) 0%, transparent 100%); */
}

/* Speaker card hover expand */
.speaker-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* Uniform sizing for all cards */
    width: 230px;
    min-width: 230px;
    height: 290px;
}

.speakers-carousel .speaker-card:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Image: consistent circle */
.speaker-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 4px solid #7c2ae8;
}

/* Text alignment and uniform heights */
.speaker-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c0050;
    margin: 0 0 0.15rem 0;
    text-align: center;
    min-height: 36px; /* keep rows aligned across cards */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.speaker-title {
    font-size: 0.95rem;
    color: #7c2ae8;
    font-weight: 600;
    text-align: center;
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
    min-height: 34px; /* uniform height for job titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.speaker-company, .speaker-bio {
    text-align: center;
}
