
.apc-oeh-hero {
    --apc-oeh-green: #123f32;
    --apc-oeh-gold: #d9b76a;
    --apc-oeh-red: #a93b25;

    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1920 / 700;
    overflow: hidden;
    background: var(--apc-oeh-red);
    isolation: isolate;
    line-height: 1;
}

.apc-oeh-slides,
.apc-oeh-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.apc-oeh-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
    pointer-events: none;
}

.apc-oeh-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.apc-oeh-slide-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Entire banner image is the CTA. No hotspot is used. */
.apc-oeh-slide-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none !important;
    outline: none;
    cursor: pointer;
}

.apc-oeh-slide-picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.apc-oeh-slide-picture .apc-oeh-slide-image {
    position: absolute;
    inset: 0;
}

.apc-oeh-slide-link:focus-visible {
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: -3px;
}

.apc-oeh-slide-link:hover .apc-oeh-slide-image {
    transform: scale(1.002);
}

.apc-oeh-slide-image {
    transition: transform .35s ease;
}

.apc-oeh-arrow {
    position: absolute;
    z-index: 20;
    top: 50%;
    width: clamp(34px, 2.4vw, 46px);
    height: clamp(34px, 2.4vw, 46px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(18,63,50,.34);
    color: #fff;
    cursor: pointer;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1;
    transition: background .25s ease, border-color .25s ease;
}

.apc-oeh-arrow:hover,
.apc-oeh-arrow:focus-visible {
    background: var(--apc-oeh-green);
    border-color: var(--apc-oeh-green);
}

.apc-oeh-prev {
    left: clamp(10px, 1.1vw, 20px);
}

.apc-oeh-next {
    right: clamp(10px, 1.1vw, 20px);
}

.apc-oeh-controls {
    position: absolute;
    z-index: 25;
    left: 50%;
    bottom: clamp(14px, 1.35vw, 26px);
    width: min(1320px, calc(100% - 50px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    pointer-events: none;
}

.apc-oeh-counter {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: rgba(18,63,50,.76);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.75);
    font: 9px/1 Arial, sans-serif;
}

.apc-oeh-counter strong {
    color: #fff;
    font-size: 11px;
}

.apc-oeh-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.apc-oeh-dot {
    width: 7px;
    height: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(255,255,255,.48);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}

.apc-oeh-dot.is-active {
    width: 25px;
    background: #fff;
}

.apc-oeh-pattern {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(6px, .52vw, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, .26vw, 5px);
    background: var(--apc-oeh-green);
    border-top: 1px solid rgba(255,255,255,.35);
    pointer-events: none;
}

.apc-oeh-pattern span {
    width: clamp(10px, .94vw, 18px);
    height: clamp(3px, .21vw, 4px);
    border-top: 1px solid var(--apc-oeh-gold);
    border-bottom: 1px solid var(--apc-oeh-gold);
}

@media (max-width: 767px) {
    .apc-oeh-hero {
        /* Auto mode: JavaScript follows the selected mobile artwork ratio. */
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .apc-oeh-hero.apc-oeh-mobile-manual {
        /* Manual mode: Elementor controls width and height. */
        aspect-ratio: auto;
    }

    .apc-oeh-slide-image {
        object-fit: contain;
        background: var(--apc-oeh-red);
    }

    .apc-oeh-arrow {
        top: auto;
        bottom: 14%;
        transform: none;
        width: 34px;
        height: 34px;
    }

    .apc-oeh-prev {
        left: 10px;
    }

    .apc-oeh-next {
        right: 10px;
    }

    .apc-oeh-controls {
        width: calc(100% - 24px);
        bottom: 4.5%;
    }

    .apc-oeh-counter {
        padding: 6px 8px;
        font-size: 8px;
    }

    .apc-oeh-counter strong {
        font-size: 9px;
    }

    .apc-oeh-dots {
        gap: 4px;
    }

    .apc-oeh-dot {
        width: 5px;
        height: 5px;
    }

    .apc-oeh-dot.is-active {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .apc-oeh-arrow {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .apc-oeh-controls {
        width: calc(100% - 18px);
    }
}

/* Elementor editor safety */
.elementor-editor-active .apc-oeh-hero {
    min-width: 0;
}


/* Navigation mode helpers */
.apc-oeh-nav-none .apc-oeh-arrow,
.apc-oeh-nav-none .apc-oeh-controls,
.apc-oeh-nav-arrows .apc-oeh-dots,
.apc-oeh-nav-dots .apc-oeh-arrow,
.apc-oeh-nav-dots .apc-oeh-counter { display: none !important; }

.apc-oeh-nav-arrows .apc-oeh-controls,
.apc-oeh-nav-none .apc-oeh-controls { display: none !important; }

.apc-oeh-arrow-bottom { top: auto !important; bottom: clamp(18px, 5vw, 42px); transform: none !important; }
.apc-oeh-controls { justify-content: center; }
.apc-oeh-controls .apc-oeh-counter { margin-right: auto; }
.apc-oeh-nav-dots .apc-oeh-controls .apc-oeh-counter { display: none !important; }

@media (max-width: 767px) {
    .apc-oeh-arrow-bottom { bottom: 16%; }
}

.apc-oeh-align-left .apc-oeh-controls { justify-content: flex-start; }
.apc-oeh-align-center .apc-oeh-controls { justify-content: center; }
.apc-oeh-align-right .apc-oeh-controls { justify-content: flex-end; }
.apc-oeh-align-left .apc-oeh-controls .apc-oeh-counter { margin-right: 0; }
.apc-oeh-align-right .apc-oeh-controls .apc-oeh-counter { margin-right: 0; }
