/* ECC Hero Slider 1.1.7 - isolated namespace, overlap fix, mobile spacing fix */

.elementor-widget-ecc_hero_slider,
.elementor-widget-ecc_hero_slider > .elementor-widget-container {
    position: relative !important;
    z-index: 30;
    display: block;
    width: 100%;
    clear: both;
    overflow: visible;
}

.ecchero17-root,
.ecchero17-root *,
.ecchero17-root *::before,
.ecchero17-root *::after {
    box-sizing: border-box;
}

.ecchero17-root * {
    margin: 0;
    padding: 0;
}

.ecchero17-root {
    --ecc-green: #00512d;
    --ecchero17-gold: #fdbb20;
    --ecchero17-navy: #061b42;
    --ecc-panel: #ffffff;
    --ecchero17-content-width: min(56%, 780px);
    position: relative !important;
    z-index: 31;
    isolation: isolate;
    contain: layout paint style;
    display: block;
    width: 100%;
    height: 620px;
    min-height: 620px;
    max-width: 100%;
    overflow: hidden;
    color: var(--ecchero17-navy);
    background: var(--ecc-panel, #fff);
    font-family: Arial, Helvetica, sans-serif;
}

.ecchero17-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .7s ease, visibility .7s ease;
}

.ecchero17-slide.ecchero17-is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ecchero17-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.01);
    transition: transform 8s cubic-bezier(.2, .6, .2, 1);
}

.ecchero17-slide.ecchero17-is-active .ecchero17-bg {
    transform: scale(1.035);
}

.ecchero17-bg-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8ece9, #b9c8c0);
}

.ecchero17-bg-placeholder span {
    max-width: 250px;
    color: var(--ecc-green);
    font-size: 13px;
    text-align: center;
}

.ecchero17-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.96) 32%,
            rgba(255,255,255,.82) 52%,
            rgba(255,255,255,.34) 71%,
            rgba(255,255,255,.08) 88%,
            rgba(255,255,255,0) 100%);
}

/* The white fade only appears when the "White Fade Over Image" control is on. */
.ecchero17-has-overlay .ecchero17-overlay {
    display: block;
}

.ecchero17-text-panel {
    display: none !important;
}

.ecchero17-content {
    position: relative;
    z-index: 5;
    width: var(--ecchero17-content-width);
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 62px clamp(34px, 4vw, 76px) 92px clamp(42px, 5vw, 86px);
}

.ecchero17-badge,
.ecchero17-eyebrow,
.ecchero17-title,
.ecchero17-desc,
.ecchero17-buttons {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .52s ease, transform .62s cubic-bezier(.2, .75, .2, 1);
}

.ecchero17-badge { transition-delay: .08s; }
.ecchero17-eyebrow { transition-delay: .15s; }
.ecchero17-title { transition-delay: .22s; }
.ecchero17-desc { transition-delay: .30s; }
.ecchero17-buttons { transition-delay: .36s; }

.ecchero17-root .ecchero17-is-active .ecchero17-badge,
.ecchero17-root .ecchero17-is-active .ecchero17-eyebrow,
.ecchero17-root .ecchero17-is-active .ecchero17-title,
.ecchero17-root .ecchero17-is-active .ecchero17-desc,
.ecchero17-root .ecchero17-is-active .ecchero17-buttons {
    opacity: 1;
    transform: none;
}

.ecchero17-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 17px;
    padding: 7px 13px;
    color: #fff;
    border: 0;
    border-radius: 2px;
    background: var(--ecc-green);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ecchero17-eyebrow {
    margin-bottom: 7px;
    color: var(--ecc-green);
    font-family: 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
    font-size: clamp(17px, 1.45vw, 24px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.ecchero17-title {
    max-width: 720px;
    margin-bottom: 22px;
    font-family: 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
    font-size: clamp(42px, 4.7vw, 76px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.025em;
    text-transform: uppercase;
    text-wrap: balance;
}

.ecchero17-root .ecchero17-title-line1,
.ecchero17-root .ecchero17-title-accent {
    display: block;
}

.ecchero17-title-line1 { color: var(--ecchero17-navy); }
.ecchero17-title-accent { color: var(--ecc-green); }

.ecchero17-desc {
    max-width: 555px;
    margin-bottom: 28px;
    color: #253449;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.65;
}

.ecchero17-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.ecchero17-btn-primary,
.ecchero17-btn-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .035em;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .2s, color .2s, background .2s, border-color .2s, box-shadow .2s;
}

.ecchero17-btn-primary {
    color: #10223d;
    border: 1px solid var(--ecchero17-gold);
    background: var(--ecchero17-gold);
    box-shadow: 0 9px 20px rgba(6, 27, 66, .14);
}

.ecchero17-btn-secondary {
    color: var(--ecc-green);
    border: 1px solid var(--ecc-green);
    background: rgba(255,255,255,.70);
    backdrop-filter: blur(2px);
}

.ecchero17-btn-primary:hover,
.ecchero17-btn-secondary:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.ecchero17-btn-primary:hover {
    color: #fff;
    border-color: var(--ecc-green);
    background: var(--ecc-green);
}

.ecchero17-btn-secondary:hover {
    color: #fff;
    background: var(--ecc-green);
}

.ecchero17-nav {
    position: absolute;
    top: 50%;
    z-index: 40;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(0, 81, 45, .86);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .16);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background .2s, border-color .2s, transform .2s;
}

.ecchero17-nav:hover {
    color: var(--ecchero17-navy);
    border-color: var(--ecchero17-gold);
    background: var(--ecchero17-gold);
}

.ecchero17-nav-prev { left: 16px; }
.ecchero17-nav-next { right: 16px; }

.ecchero17-controls {
    position: absolute;
    left: clamp(42px, 5vw, 86px);
    bottom: 30px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecchero17-dot {
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(0, 81, 45, .27);
    cursor: pointer;
    transition: width .3s, background .3s;
}

.ecchero17-dot.ecchero17-dot-is-active {
    width: 52px;
    background: var(--ecc-green);
}

.ecchero17-progress-wrap {
    position: absolute;
    right: 19px;
    bottom: 18px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecchero17-pause {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: rgba(0, 81, 45, .86);
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
}

.ecchero17-ring svg { display: block; transform: rotate(-90deg); }
.ecchero17-ring-bg,
.ecchero17-ring-arc { fill: none; stroke-width: 2.5; }
.ecchero17-ring-bg { stroke: rgba(255, 255, 255, .62); }
.ecchero17-ring-arc {
    stroke: var(--ecchero17-gold);
    stroke-linecap: round;
    stroke-dasharray: 94.2;
    stroke-dashoffset: 94.2;
}

.ecchero17-root:focus-visible {
    outline: 3px solid var(--ecchero17-gold);
    outline-offset: -3px;
}

@media (max-width: 1280px) {
    .ecchero17-root { --ecchero17-content-width: min(58%, 720px); }
    .ecchero17-content { padding-right: 42px; }
    .ecchero17-title { font-size: clamp(40px, 4.8vw, 62px); }
}

@media (max-width: 1024px) {
    .ecchero17-root {
        --ecchero17-content-width: min(65%, 650px);
        height: 560px;
        min-height: 560px;
    }
    .ecchero17-overlay {
        background: linear-gradient(90deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.94) 48%,
            rgba(255,255,255,.56) 76%,
            rgba(255,255,255,.10) 100%);
    }
    .ecchero17-content { padding: 52px 42px 82px 44px; }
    .ecchero17-title { font-size: clamp(36px, 5vw, 52px); }
    .ecchero17-desc { font-size: 15px; }
    .ecchero17-controls { left: 44px; }
}

/* Mobile: hide the image, make the slide content determine the height, and keep controls close to the buttons. */
@media (max-width: 767px) {
    .elementor-widget-ecc_hero_slider,
    .elementor-widget-ecc_hero_slider > .elementor-widget-container {
        z-index: 30 !important;
        overflow: visible;
    }

    .ecchero17-root {
        height: auto !important;
        min-height: 0 !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(253,187,32,.14), transparent 34%),
            linear-gradient(180deg, #fffaf0 0%, #ffffff 62%, #f8fbf8 100%);
        overflow: hidden !important;
    }

    .ecchero17-bg,
    .ecchero17-overlay,
    .ecchero17-text-panel {
        display: none !important;
    }

    .ecchero17-root .ecchero17-slide {
        position: relative;
        inset: auto;
        display: none !important;
        width: 100%;
        height: auto;
        min-height: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transition: none;
    }

    .ecchero17-root .ecchero17-slide.ecchero17-is-active {
        display: block !important;
        pointer-events: auto;
    }

    .ecchero17-content {
        width: 100%;
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        padding: 24px 22px 70px;
    }

    .ecchero17-badge {
        margin-bottom: 10px;
        padding: 6px 10px;
        font-size: 8px;
        letter-spacing: .11em;
    }

    .ecchero17-eyebrow {
        margin-bottom: 5px;
        font-size: clamp(13px, 3.8vw, 16px);
    }

    .ecchero17-title {
        max-width: 100%;
        margin-bottom: 12px;
        font-size: clamp(28px, 8.4vw, 38px);
        line-height: 1;
    }

    .ecchero17-desc {
        max-width: 100%;
        margin-bottom: 16px;
        font-size: clamp(12.5px, 3.4vw, 14px);
        line-height: 1.45;
    }

    .ecchero17-buttons {
        width: 100%;
        gap: 8px;
        flex-direction: row;
        margin-bottom: 0;
    }

    .ecchero17-btn-primary,
    .ecchero17-btn-secondary {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 11px;
        letter-spacing: .02em;
        flex: 1 1 calc(50% - 4px);
    }

    .ecchero17-btn-secondary {
        background: transparent;
        backdrop-filter: none;
    }

    .ecchero17-nav { display: none !important; }

    .ecchero17-controls {
        left: 22px;
        bottom: 32px;
        gap: 6px;
    }

    .ecchero17-dot {
        width: 20px;
        height: 3px;
    }

    .ecchero17-dot.ecchero17-dot-is-active {
        width: 36px;
    }

    .ecchero17-progress-wrap {
        right: 18px;
        bottom: 19px;
        gap: 6px;
    }

    .ecchero17-pause {
        width: 28px;
        height: 28px;
    }

    .ecchero17-ring svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .ecchero17-content { padding: 22px 18px 64px; }
    .ecchero17-title { font-size: clamp(27px, 8.5vw, 34px); }
    .ecchero17-desc { font-size: 12.5px; line-height: 1.42; margin-bottom: 14px; }
    .ecchero17-buttons { flex-direction: column; gap: 7px; }
    .ecchero17-btn-primary,
    .ecchero17-btn-secondary {
        width: 100%;
        flex-basis: auto;
        min-height: 38px;
    }
    .ecchero17-controls { left: 18px; bottom: 29px; }
    .ecchero17-progress-wrap { right: 16px; bottom: 18px; }
    .ecchero17-ring { display: none; }
}

@media (max-width: 380px) {
    .ecchero17-content { padding: 20px 16px 60px; }
    .ecchero17-badge { font-size: 7.5px; }
    .ecchero17-eyebrow { font-size: 12px; }
    .ecchero17-title { font-size: clamp(25px, 8vw, 31px); }
    .ecchero17-desc { font-size: 12px; margin-bottom: 12px; }
    .ecchero17-btn-primary,
    .ecchero17-btn-secondary { min-height: 36px; }
    .ecchero17-controls { bottom: 26px; }
    .ecchero17-progress-wrap { bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .ecchero17-slide,
    .ecchero17-bg,
    .ecchero17-badge,
    .ecchero17-eyebrow,
    .ecchero17-title,
    .ecchero17-desc,
    .ecchero17-buttons { transition: none !important; }
    .ecchero17-root .ecchero17-is-active .ecchero17-bg { transform: none; }
}
