/* ECC Hero Slider 1.1.1 - ECC split-panel design */

.ecc-hero-root *,
.ecc-hero-root *::before,
.ecc-hero-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ecc-hero-root {
    --ecc-green: #00512d;
    --ecc-gold: #fdbb20;
    --ecc-navy: #061b42;
    --ecc-panel: #ffffff;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 560px;
    overflow: hidden;
    color: var(--ecc-navy);
    background: #e8ece9;
    font-family: Arial, Helvetica, sans-serif;
}

.ecc-slide {
    position: absolute;
    inset: 0;
    z-index: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .75s ease, visibility .75s;
}

.ecc-slide.ecc-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

.ecc-slide.ecc-active .ecc-bg { transform: scale(1.055); }

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

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

/* The white field is part of the reference partition, so no dark image overlay is used. */
.ecc-overlay { display: none; }

.ecc-content {
    position: relative;
    z-index: 5;
    width: min(49%, 720px);
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 62px clamp(54px, 6vw, 100px) 92px clamp(48px, 5.2vw, 86px);
}

.ecc-badge,
.ecc-eyebrow,
.ecc-title,
.ecc-desc,
.ecc-btns {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .65s cubic-bezier(.2, .75, .2, 1);
}

.ecc-badge { transition-delay: .08s; }
.ecc-eyebrow { transition-delay: .15s; }
.ecc-title { transition-delay: .22s; }
.ecc-desc { transition-delay: .3s; }
.ecc-btns { transition-delay: .38s; }

.ecc-active .ecc-badge,
.ecc-active .ecc-eyebrow,
.ecc-active .ecc-title,
.ecc-active .ecc-desc,
.ecc-active .ecc-btns {
    opacity: 1;
    transform: none;
}

.ecc-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;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ecc-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;
}

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

.ecc-title-line1,
.ecc-gold { display: block; }
.ecc-title-line1 { color: var(--ecc-navy); }
.ecc-gold { color: var(--ecc-green); }

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

.ecc-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.ecc-btn-primary,
.ecc-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;
    letter-spacing: .035em;
    text-decoration: none;
    transition: transform .2s, color .2s, background .2s, border-color .2s, box-shadow .2s;
}

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

.ecc-btn-secondary {
    color: var(--ecc-green);
    border: 1px solid var(--ecc-green);
    background: transparent;
}

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

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

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

/*
 * Full-size SVG partition:
 * white content field -> gold edge -> green ribbon -> image.
 * The curves use preserveAspectRatio="none" so their proportions remain
 * consistent at any Elementor-selected hero height.
 */
.ecc-partition-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    min-height: inherit;
    pointer-events: none;
}

.ecc-partition {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.ecc-partition .ecc-panel-fill { fill: var(--ecc-panel); }
.ecc-partition .part-primary {
    fill: var(--ecc-green);
    opacity: var(--ecc-partition-opacity, 1);
}
.ecc-partition .part-secondary {
    fill: var(--ecc-gold);
    opacity: var(--ecc-partition-opacity, 1);
}

.ecc-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    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;
    transform: translateY(-50%);
    transition: background .2s, border-color .2s, transform .2s;
}

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

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

.ecc-controls {
    position: absolute;
    left: clamp(48px, 5.2vw, 86px);
    bottom: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecc-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;
}

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

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

.ecc-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;
}

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

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

@media (max-width: 1100px) {
    .ecc-content {
        width: 53%;
        padding-left: 58px;
        padding-right: 65px;
    }
    .ecc-title { font-size: clamp(43px, 5.5vw, 62px); }
    .ecc-controls { left: 58px; }
}

@media (max-width: 767px) {
    .ecc-hero-root { min-height: 690px; }
    .ecc-slide { display: flex; flex-direction: column; }
    .ecc-bg {
        inset: auto 0 0;
        height: 45%;
        background-position: center;
    }
    .ecc-content {
        width: 100%;
        height: auto;
        min-height: 59%;
        justify-content: center;
        padding: 42px 28px 80px;
    }
    .ecc-title {
        max-width: 600px;
        font-size: clamp(39px, 11vw, 57px);
    }
    .ecc-desc { max-width: 590px; }
    .ecc-partition .ecc-desktop-shape { display: none; }
    .ecc-partition .ecc-mobile-shape { display: block; }
    .ecc-controls { left: 28px; bottom: 34px; }
    .ecc-nav { display: none; }
    .ecc-progress-wrap { right: 15px; bottom: 19px; }
}

@media (min-width: 768px) {
    .ecc-partition .ecc-mobile-shape { display: none; }
}

@media (max-width: 480px) {
    .ecc-hero-root { min-height: 740px; }
    .ecc-content { min-height: 62%; padding: 36px 22px 78px; }
    .ecc-eyebrow { font-size: 16px; }
    .ecc-title { font-size: clamp(36px, 12vw, 48px); }
    .ecc-btns { width: 100%; flex-direction: column; }
    .ecc-btn-primary,
    .ecc-btn-secondary { width: 100%; }
    .ecc-controls { left: 22px; }
    .ecc-dot { width: 20px; }
    .ecc-dot.ecc-dot-active { width: 38px; }
    .ecc-ring { display: none; }
}

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