/* RNCOE Hero Carousel v1.2.0
   Isolated component with Elementor Flexbox Container support. */

.rncoe-hero-carousel,
.rncoe-hero-carousel * {
    box-sizing: border-box;
}

/* Ensure Elementor Flexbox Containers and widget wrappers give full width.
   When placed inside an Elementor Flexbox Container (Row direction),
   the widget wrapper defaults to flex-grow:0 and width:auto.
   Since slides are absolutely positioned, intrinsic width is 0.
   These rules ensure the widget and shortcode wrapper expand to 100% width. */
.elementor-widget-shortcode:has(.rncoe-hero-carousel),
.elementor-widget:has(.rncoe-hero-carousel),
.elementor-shortcode:has(.rncoe-hero-carousel),
.elementor-widget-container:has(.rncoe-hero-carousel) {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    flex-grow: 1 !important;
    flex-basis: 100% !important;
    align-self: stretch !important;
}

.elementor-widget-shortcode .rncoe-hero-carousel,
.elementor-shortcode .rncoe-hero-carousel {
    width: 100% !important;
    min-width: 100% !important;
}

.rncoe-hero-carousel {
    --rncoe-height: 640px;
    --rncoe-mobile-height: 560px;
    --rncoe-primary: #08233f;
    --rncoe-accent: #ed168c;

    position: relative;
    display: block;
    width: 100%;
    min-width: 100%;
    flex: 1 1 100%;
    height: var(--rncoe-height);
    min-height: 300px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: var(--rncoe-primary);
    font-family: inherit;
    line-height: 1.4;
}

.rncoe-hero-carousel .rncoe-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.rncoe-hero-carousel .rncoe-hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--rncoe-speed, .65s) ease, visibility 0s linear var(--rncoe-speed, .65s);
}

.rncoe-hero-carousel .rncoe-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--rncoe-speed, .65s) ease;
}

.rncoe-hero-carousel .rncoe-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.001);
}

.rncoe-hero-carousel .rncoe-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 20, 37, .84) 0%, rgba(3, 20, 37, .60) 42%, rgba(3, 20, 37, .18) 78%, rgba(3, 20, 37, .08) 100%),
        linear-gradient(0deg, rgba(3, 20, 37, .42), rgba(3, 20, 37, .04) 55%);
}

.rncoe-hero-carousel .rncoe-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(1180px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: 60px clamp(24px, 5vw, 72px);
    color: #fff;
    text-align: left;
}

.rncoe-hero-carousel .rncoe-hero-eyebrow {
    margin: 0 0 12px;
    font-size: clamp(18px, 1.8vw, 27px);
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
}

.rncoe-hero-carousel .rncoe-hero-title {
    max-width: 1050px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(38px, 5.1vw, 78px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.035em;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(0,0,0,.28);
}

.rncoe-hero-carousel .rncoe-hero-title span {
    display: block;
    color: var(--rncoe-accent);
}

.rncoe-hero-carousel .rncoe-hero-subtitle {
    max-width: 760px;
    margin: 24px 0 0;
    padding: 0;
    color: rgba(255,255,255,.94);
    font-size: clamp(15px, 1.45vw, 21px);
    font-weight: 500;
    line-height: 1.55;
}

.rncoe-hero-carousel .rncoe-hero-tagline {
    margin: 18px 0 0;
    color: #fff;
    font-size: clamp(15px, 1.25vw, 19px);
    font-weight: 700;
    letter-spacing: .02em;
}

.rncoe-hero-carousel .rncoe-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.rncoe-hero-carousel .rncoe-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--btn-hover-time, 0.3s) ease, background var(--btn-hover-time, 0.3s) ease, color var(--btn-hover-time, 0.3s) ease, border-color var(--btn-hover-time, 0.3s) ease;
}

.rncoe-hero-carousel .rncoe-hero-btn:hover {
    transform: translateY(-2px);
}

.rncoe-hero-carousel .rncoe-hero-btn-primary {
    color: var(--btn-color, #fff) !important;
    background: var(--btn-bg, var(--rncoe-accent)) !important;
    border-color: var(--btn-bg, var(--rncoe-accent)) !important;
}

.rncoe-hero-carousel .rncoe-hero-btn-primary:hover {
    color: var(--btn-hover-color, #fff) !important;
    background: var(--btn-hover-bg, var(--rncoe-primary)) !important;
    border-color: var(--btn-hover-bg, var(--rncoe-primary)) !important;
}

.rncoe-hero-carousel .rncoe-hero-btn-secondary {
    color: var(--btn-color, #fff) !important;
    background: var(--btn-bg, rgba(255,255,255,.08)) !important;
    border-color: var(--btn-border, rgba(255,255,255,.72)) !important;
    backdrop-filter: blur(5px);
}

.rncoe-hero-carousel .rncoe-hero-btn-secondary:hover {
    color: var(--btn-hover-color, var(--rncoe-primary)) !important;
    background: var(--btn-hover-bg, #fff) !important;
    border-color: var(--btn-hover-bg, #fff) !important;
}

.rncoe-hero-carousel .rncoe-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0 0 5px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    color: #fff;
    background: rgba(8,35,63,.45);
    box-shadow: 0 8px 25px rgba(0,0,0,.14);
    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(5px);
}

.rncoe-hero-carousel .rncoe-hero-arrow:hover {
    background: var(--rncoe-accent);
    border-color: var(--rncoe-accent);
}

.rncoe-hero-carousel .rncoe-hero-prev { left: 24px; }
.rncoe-hero-carousel .rncoe-hero-next { right: 24px; }

.rncoe-hero-carousel .rncoe-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
}

.rncoe-hero-carousel .rncoe-hero-dot {
    width: 9px;
    height: 9px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.52);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.rncoe-hero-carousel .rncoe-hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--rncoe-accent);
}

.rncoe-hero-carousel .rncoe-hero-pause {
    position: absolute;
    right: 24px;
    bottom: 20px;
    z-index: 11;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    color: #fff;
    background: rgba(8,35,63,.45);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.rncoe-hero-carousel .rncoe-hero-pause:hover {
    background: var(--rncoe-accent);
    border-color: var(--rncoe-accent);
}

@media (max-width: 767px) {
    .rncoe-hero-carousel {
        height: var(--rncoe-mobile-height);
    }

    .rncoe-hero-carousel .rncoe-hero-overlay {
        background:
            linear-gradient(90deg, rgba(3,20,37,.82), rgba(3,20,37,.45)),
            linear-gradient(0deg, rgba(3,20,37,.5), rgba(3,20,37,.08));
    }

    .rncoe-hero-carousel .rncoe-hero-content {
        justify-content: center;
        padding: 38px 22px 72px;
    }

    .rncoe-hero-carousel .rncoe-hero-title {
        font-size: clamp(32px, 10vw, 52px);
        line-height: 1.02;
    }

    .rncoe-hero-carousel .rncoe-hero-subtitle {
        margin-top: 17px;
        font-size: 15px;
        line-height: 1.48;
    }

    .rncoe-hero-carousel .rncoe-hero-tagline {
        margin-top: 13px;
        font-size: 14px;
    }

    .rncoe-hero-carousel .rncoe-hero-actions {
        margin-top: 20px;
        gap: 9px;
    }

    .rncoe-hero-carousel .rncoe-hero-btn {
        min-height: 44px;
        padding: 10px 17px;
        font-size: 13px;
    }

    .rncoe-hero-carousel .rncoe-hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .rncoe-hero-carousel .rncoe-hero-prev { left: 10px; }
    .rncoe-hero-carousel .rncoe-hero-next { right: 10px; }

    .rncoe-hero-carousel .rncoe-hero-dots {
        bottom: 18px;
    }

    .rncoe-hero-carousel .rncoe-hero-pause {
        right: 10px;
        bottom: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rncoe-hero-carousel .rncoe-hero-slide,
    .rncoe-hero-carousel .rncoe-hero-btn,
    .rncoe-hero-carousel .rncoe-hero-dot {
        transition: none !important;
    }
}
