/* CFM Speakers & Team Cards */

.cfm-speakers-section {
    --cfm-card-width: 396px;
    --cfm-card-gap: 36px;
    --cfm-card-radius: 9px;
    --cfm-image-radius: 4px;
    --cfm-card-shadow: 0 9px 22px rgba(0, 0, 0, 0.14);
    --cfm-border: #dfe2e7;
    --cfm-text: #000000;
    --cfm-muted: #303a68;
    --cfm-bg: #f6f8fa;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--cfm-bg);
    padding: 42px 20px 80px;
    overflow: hidden;
}

.cfm-speakers-title {
    margin: 0 0 48px;
    color: var(--cfm-text);
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(28px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cfm-speakers-viewport {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
}

.cfm-speakers-track {
    display: flex;
    align-items: stretch;
    gap: var(--cfm-card-gap);
}

.cfm-speakers-grid-enabled .cfm-speakers-track {
    display: grid;
    grid-template-columns: repeat(var(--cfm-columns), minmax(0, 1fr));
    justify-items: center;
}

.cfm-speakers-marquee-enabled .cfm-speakers-track {
    width: max-content;
    animation: cfmSpeakerMarquee var(--cfm-speed, 32s) linear infinite;
}

.cfm-speakers-marquee-enabled .cfm-pause-on-hover:hover .cfm-speakers-track {
    animation-play-state: paused;
}

@keyframes cfmSpeakerMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - (var(--cfm-card-gap) / 2)), 0, 0); }
}

.cfm-speaker-card {
    flex: 0 0 var(--cfm-card-width);
    width: var(--cfm-card-width);
    min-height: 506px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--cfm-border);
    border-radius: var(--cfm-card-radius);
    box-shadow: var(--cfm-card-shadow);
    padding: 27px 27px 28px;
    text-align: center;
}

.cfm-speaker-image-wrap {
    width: 100%;
    height: 315px;
    overflow: hidden;
    border-radius: var(--cfm-image-radius);
    background: #e9ecef;
    margin-bottom: 25px;
}

.cfm-speaker-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cfm-speaker-name {
    margin: 0 0 2px;
    color: var(--cfm-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.cfm-speaker-role {
    margin: 0 0 21px;
    color: var(--cfm-muted);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}

.cfm-speaker-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
}

.cfm-social-link {
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9dde4;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    text-decoration: none !important;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cfm-social-link:hover,
.cfm-social-link:focus {
    transform: translateY(-2px);
    border-color: #b9bfca;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
}

.cfm-social-link svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: currentColor;
}

.cfm-social-custom-icon {
    width: 23px !important;
    height: 23px !important;
    display: block;
    object-fit: contain;
}

@media (max-width: 1280px) {
    .cfm-speakers-section {
        --cfm-card-width: 360px;
        --cfm-card-gap: 28px;
    }

    .cfm-speaker-card {
        min-height: 488px;
    }

    .cfm-speaker-image-wrap {
        height: 315px;
    }
}

@media (max-width: 900px) {
    .cfm-speakers-section {
        --cfm-card-width: 320px;
        --cfm-card-gap: 22px;
        padding: 34px 16px 58px;
    }

    .cfm-speakers-title {
        margin-bottom: 30px;
    }

    .cfm-speaker-card {
        padding: 22px;
        min-height: 450px;
    }

    .cfm-speaker-image-wrap {
        height: 275px;
    }

    .cfm-speakers-grid-enabled .cfm-speakers-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cfm-speakers-section {
        --cfm-card-width: min(88vw, 340px);
        --cfm-card-gap: 18px;
    }

    .cfm-speakers-grid-enabled .cfm-speakers-track {
        grid-template-columns: 1fr;
    }

    .cfm-speaker-card {
        width: var(--cfm-card-width);
        min-height: auto;
    }

    .cfm-speaker-image-wrap {
        height: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cfm-speakers-marquee-enabled .cfm-speakers-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
}
