/* Extracted Standard presentation; loaded before the shared behavior rules. */
/* ── Hero Reset ─────────────────────────────────────── */
.ccstl-hero,
.ccstl-hero *,
.ccstl-hero *::before,
.ccstl-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Hero Container ─────────────────────────────────── */
.ccstl-hero {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* ── Slides Container ───────────────────────────────── */
.ccstl-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Individual Slide ───────────────────────────────── */
.ccstl-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0;
}
/* Single slide: use relative positioning so it sizes naturally */
.ccstl-hero-slide:only-child {
    position: relative !important;
    height: auto !important;
    opacity: 1 !important;
}
.ccstl-hero-slide:only-child .ccstl-hero-content {
    position: relative !important;
    bottom: auto !important;
    transition: opacity 600ms ease;
    z-index: 1;
}

/*
 * Before JS initializes, keep the first active slide in normal flow so
 * the hero has a natural height and doesn't snap into place later.
 */
.ccstl-hero:not(.ccstl-hero--ready) .ccstl-hero-slide.ccstl-hero-slide--active {
    position: relative;
    height: auto;
    opacity: 1;
}
.ccstl-hero:not(.ccstl-hero--ready) .ccstl-hero-slide.ccstl-hero-slide--active .ccstl-hero-content {
    position: relative;
    bottom: auto;
}
.ccstl-hero-slide--active {
    opacity: 1;
    z-index: 2;
}

/* ── Dark Overlay ───────────────────────────────────── */
.ccstl-hero-bg-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.ccstl-hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100%;
    min-width: 177.78vh; /* 16:9 inverse */
    transform: translate(-50%, -50%);
    border: none;
}
.ccstl-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    z-index: 1;
}

/* ── Content ────────────────────────────────────────── */
.ccstl-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
    padding: 150px 20px 100px;
}

/* ── Eyebrow ────────────────────────────────────────── */
.ccstl-hero-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.32px;
    color: #FFFFFF;
    margin-bottom: 16px;
    line-height: 1.4;
}
.ccstl-hero-eyebrow--italic {
    font-style: italic;
}

/* ── Headline ───────────────────────────────────────── */
.ccstl-hero-headline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 72px;
    line-height: 72px;
    letter-spacing: -2.16px;
    color: #FFFFFF;
    max-width: 1000px;
    margin-bottom: 30px;
}

/* ── Body Text ──────────────────────────────────────── */
.ccstl-hero-body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 30px;
}

/* ── CTA Actions ────────────────────────────────────── */
.ccstl-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

/* ── CTA Button ─────────────────────────────────────── */
.ccstl-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 50px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.4px;
    color: #FFFFFF !important;
    text-decoration: none !important;
    padding: 15px 30px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}
.ccstl-hero-cta--gold {
    background: #AB903C;
    border-color: #AB903C;
}
.ccstl-hero-cta--gold:hover {
    background: #96793A;
    border-color: #96793A;
}
.ccstl-hero-cta--red {
    background: #CC0F40;
    border-color: #CC0F40;
}
.ccstl-hero-cta--red:hover {
    background: #B00D38;
    border-color: #B00D38;
}
.ccstl-hero-cta--white {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #001C58 !important;
}
.ccstl-hero-cta--white:hover {
    background: rgba(255, 255, 255, 0.85);
}
.ccstl-hero-cta--outline {
    background: transparent;
    border-color: #FFFFFF;
}
.ccstl-hero-cta--outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── CTA 2 Outline Variants (inherit CTA 1 color) ── */
.ccstl-hero-cta--outline-gold {
    background: transparent;
    border-color: #AB903C;
    color: #AB903C !important;
}
.ccstl-hero-cta--outline-gold:hover {
    background: #AB903C;
    border-color: #AB903C;
    color: #FFFFFF !important;
}
.ccstl-hero-cta--outline-red {
    background: transparent;
    border-color: #CC0F40;
    color: #CC0F40 !important;
}
.ccstl-hero-cta--outline-red:hover {
    background: #CC0F40;
    border-color: #CC0F40;
    color: #FFFFFF !important;
}
.ccstl-hero-cta--outline-white {
    background: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF !important;
}
.ccstl-hero-cta--outline-white:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #001C58 !important;
}
.ccstl-hero-cta--outline-outline {
    background: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF !important;
}
.ccstl-hero-cta--outline-outline:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #001C58 !important;
}

/* ── CTA Play Icon ──────────────────────────────────── */
.ccstl-hero-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ccstl-hero-cta-icon svg {
    display: block;
}

/* ── Arrows ─────────────────────────────────────────── */
.ccstl-hero-arrows {
    display: flex;
    align-items: center;
    gap: 20px;
    pointer-events: auto;
}
.ccstl-hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}
.ccstl-hero-arrow:hover svg rect:first-child {
    fill-opacity: 0.3;
}
.ccstl-hero-arrow svg {
    display: block;
}

/* ── Lightbox ───────────────────────────────────────── */
.ccstl-hero-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ccstl-hero-lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}
.ccstl-hero-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.ccstl-hero-lightbox-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 870px;
    aspect-ratio: 16 / 9;
    max-height: 489px;
    border-radius: 10px;
    overflow: hidden;
}
.ccstl-hero-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── BB Editor Safety ───────────────────────────────── */
.fl-builder-edit .ccstl-hero {
    position: static !important;
}

/* ── Responsive: ≤992px ─────────────────────────────── */
@media (max-width: 992px) {
    .ccstl-hero {
        min-height: auto;
    }
    .ccstl-hero-headline {
        font-size: 48px;
        line-height: 50px;
        letter-spacing: -1.44px;
    }
    .ccstl-hero-arrow svg {
        width: 40px;
        height: 40px;
    }
    .ccstl-hero-content {
        padding: 100px 20px 70px;
    }
}

/* ── Responsive: ≤768px ─────────────────────────────── */
@media (max-width: 768px) {
    .ccstl-hero {
        min-height: auto;
    }
    .ccstl-hero-eyebrow {
        font-size: 14px;
        letter-spacing: -0.28px;
    }
    .ccstl-hero-headline {
        font-size: 32px;
        line-height: 34px;
        letter-spacing: -0.96px;
        margin-bottom: 20px;
    }
    .ccstl-hero-body {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .ccstl-hero-actions {
        /* Intrinsic label widths decide when to wrap; a button on its own row
           grows to the full content width, keeping the same side margins. */
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: none;
    }
    .ccstl-hero-cta {
        font-size: 16px;
        letter-spacing: -0.32px;
        line-height: 1.25;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        height: auto;
        padding: 10px 24px;
        /* Oversized or translated labels can wrap inside a full-width button. */
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .ccstl-hero-arrow svg {
        width: 36px;
        height: 36px;
    }
    .ccstl-hero-content {
        padding: 100px 20px 30px;
    }
    .ccstl-hero-bg-video-wrap {
        display: none;
    }
}
