.ehb-slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 70vh;
    overflow: hidden;
    background-color: #111;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.ehb-slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.ehb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.8s;
    display: flex;
    align-items: center;
    z-index: 1;
}

.ehb-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Separation of background asset frame to prevent layout breaks on hardware transforms */
.ehb-slide-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1);
    transition: transform 0.1s linear;
}

/* Ken Burns Slow Pan Mode Engine configuration */
.ehb-slide.active .ehb-slide-bg-container.ehb-kb-active {
    animation: ehbKenBurns 12s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes ehbKenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

.ehb-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Gradient Overlay Integration Architecture */
.ehb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--ehb-grad-angle), var(--ehb-grad-start), var(--ehb-grad-end));
    mix-blend-mode: var(--ehb-blend-mode);
    z-index: 2;
    pointer-events: none;
}

/* Overlay type switching - gradient / solid / none */
.ehb-slider-wrapper .ehb-overlay {
    background: linear-gradient(var(--ehb-grad-angle), var(--ehb-grad-start), var(--ehb-grad-end));
}
.ehb-slider-wrapper.overlay-solid .ehb-overlay {
    background: var(--ehb-solid-overlay);
    mix-blend-mode: normal;
}
.ehb-slider-wrapper.overlay-none .ehb-overlay {
    display: none;
}

/* ===== HOVER OVERLAY EFFECT ===== */
.ehb-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ehb-hover-overlay-color, rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}
/* Only show on hover for full-bg slides */
.ehb-slider-wrapper.has-hover-overlay .ehb-slide:not(.ehb-split):hover .ehb-hover-overlay {
    opacity: var(--ehb-hover-overlay-opacity, 0.5);
}
/* For split layouts, apply hover overlay to the media image instead */
.ehb-slider-wrapper.has-hover-overlay .ehb-slide.ehb-split .ehb-split-media { position: relative; overflow: hidden; }
.ehb-slider-wrapper.has-hover-overlay .ehb-split .ehb-hover-overlay { z-index: 2; }
.ehb-slider-wrapper.has-hover-overlay .ehb-split:hover .ehb-hover-overlay {
    opacity: var(--ehb-hover-overlay-opacity, 0.5);
}

.ehb-slide-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
}

.ehb-content-inner {
    max-width: 700px;
    width: 100%;
}

/* Micro Alignment Rule System maps */
.ehb-slide.align-left .ehb-slide-container { display: flex; justify-content: flex-start; text-align: left; }
.ehb-slide.align-center .ehb-slide-container { display: flex; justify-content: center; text-align: center; }
.ehb-slide.align-right .ehb-slide-container { display: flex; justify-content: flex-end; text-align: right; }

/* ===== SPLIT LAYOUT ===== */
.ehb-slide.ehb-split {
    align-items: center;
}
.ehb-slide.ehb-split .ehb-slide-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    text-align: left;
}
.ehb-slide.ehb-split-left .ehb-slide-container { flex-direction: row; }
.ehb-slide.ehb-split-right .ehb-slide-container { flex-direction: row-reverse; }

.ehb-split-media {
    width: 50%;
    flex: 0 0 auto;
    overflow: hidden;
}
.ehb-split-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}
.ehb-split-media.ehb-media-shadow img {
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

/* Split content column */
.ehb-slide.ehb-split .ehb-content-inner {
    max-width: 50%;
    flex: 1 1 50%;
}

/* Override align classes for split so text stays left-aligned within its column */
.ehb-slide.ehb-split.align-center .ehb-slide-container { justify-content: space-between; text-align: left; }
.ehb-slide.ehb-split.align-center .ehb-content-inner { text-align: left; }

/*
 * Fallback typography. Elementor's Typography group controls (font family,
 * size, weight, line-height, letter-spacing) render their own scoped CSS
 * with higher specificity and override these values once the user sets
 * anything in the widget's Style > Typography panel. These rules only
 * matter before that panel has been touched, or if Elementor's generated
 * CSS fails to load for some reason.
 */
.ehb-subtitle {
    font-size: clamp(13px, 1.5vw, 18px);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.ehb-title {
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.ehb-description {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Layer Contrast Shadows Engine logic options */
.ehb-text-shadow-active .ehb-title { text-shadow: 0 4px 15px rgba(0,0,0,0.65), 0 2px 4px rgba(0,0,0,0.4); }
.ehb-text-shadow-active .ehb-subtitle { text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.ehb-text-shadow-active .ehb-description { text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

/* Interactive Action Links Group Styling */
.ehb-buttons-group {
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ehb-slide.align-center .ehb-buttons-group { justify-content: center; }
.ehb-slide.align-right .ehb-buttons-group { justify-content: flex-end; }

.ehb-btn:link,
.ehb-btn:visited,
.ehb-btn:hover,
.ehb-btn:active,
.ehb-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s ease, 
                background 0.3s ease, 
                color 0.3s ease,
                border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
    outline: none;
    box-shadow: none;
    letter-spacing: normal;
    text-transform: none;
    font-family: inherit;
}

/* Neutralize theme link styles that cause underlining / color overrides */
.ehb-btn .ehb-btn__text,
.ehb-btn span { text-decoration: none !important; }

.ehb-btn-primary {
    background-color: var(--ehb-btn1-bg);
    color: var(--ehb-btn1-text);
    border: 2px solid var(--ehb-btn1-border);
}

.ehb-btn-primary:hover,
.ehb-btn-primary:focus {
    background-color: var(--ehb-btn1-hover-bg);
    border-color: var(--ehb-btn1-hover-bg);
    color: var(--ehb-btn1-text);
    text-decoration: none !important;
}

.ehb-btn-secondary {
    background-color: transparent;
    color: var(--ehb-btn2-text);
    border: 2px solid var(--ehb-btn2-border);
}

.ehb-btn-secondary:hover,
.ehb-btn-secondary:focus {
    background-color: var(--ehb-btn2-hover-bg);
    color: var(--ehb-btn2-hover-text);
    border-color: var(--ehb-btn2-hover-bg);
    text-decoration: none !important;
}

/* Micro-Interaction Animation styles mappings hooks */
.btn-hover-grow .ehb-btn:hover {
    transform: scale(1.04);
}

.btn-hover-lift .ehb-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Pseudo element slide color wipes */
.btn-hover-fill .ehb-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(256,256,256,0.15);
    transition: left 0.4s ease;
    z-index: -1;
}
.btn-hover-fill .ehb-btn:hover::before { left: 0; }

/* Editor preview mode: always show backgrounds & first slide content */
.elementor-editor-active .ehb-slide {
    visibility: visible;
    opacity: 1;
}
.elementor-editor-active .ehb-slide .animated-node {
    opacity: 1;
    transform: none;
}
.elementor-editor-active .ehb-slide {
    position: absolute;
}
.elementor-editor-active .ehb-slides-container {
    min-height: 70vh;
}
.elementor-editor-active .ehb-slide-bg-container {
    background-size: cover;
    background-position: center;
}

/* Delayed Content Entrance Sequence Framework */
.animated-node {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.ehb-slide.active .animated-node {
    opacity: 1;
    transform: translateY(0);
}

.ehb-slide.active .node-delay-1 { transition-delay: 0.25s; }
.ehb-slide.active .node-delay-2 { transition-delay: 0.40s; }
.ehb-slide.active .node-delay-3 { transition-delay: 0.55s; }
.ehb-slide.active .node-delay-4 { transition-delay: 0.70s; }

/* Custom Control Architecture Navigation Arrays */
.ehb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ehb-arrow-bg, none);
    border: none;
    color: var(--ehb-arrow-color, #ffffff);
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-family: sans-serif;
    outline: none;
}

.ehb-arrow:focus-visible, .ehb-dot:focus-visible {
    outline: 3px solid var(--ehb-btn1-bg);
}

.ehb-prev { left: 25px; }
.ehb-next { right: 25px; }

/* Custom substyle classes mappings icons variations */
.ehb-arrow.arrow-style-circle {
    background: var(--ehb-arrow-bg, rgba(0, 0, 0, 0.45));
    border-radius: 50%;
    font-size: 24px;
}
.ehb-arrow.arrow-style-circle:hover {
    background: var(--ehb-arrow-hover-bg, var(--ehb-btn1-bg));
    color: var(--ehb-arrow-hover-color, #ffffff);
}
.ehb-arrow.arrow-style-chevron:hover, .ehb-arrow.arrow-style-classical:hover {
    color: var(--ehb-arrow-hover-color, var(--ehb-btn1-bg));
}

/* Pagination Control Nodes layer layout definitions */
.ehb-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ehb-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(256, 256, 256, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.ehb-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Tablet breakpoints - keep buttons inline (like desktop), not stacked */
@media (min-width: 769px) and (max-width: 1024px) {
    /* No button/button-group overrides here — tablet inherits the
       desktop .ehb-buttons-group (inline-flex) and .ehb-btn styles
       untouched, so buttons look and size exactly like desktop. */

    /* Split layout on tablet: keep columns but reduce gap */
    .ehb-slide.ehb-split .ehb-slide-container {
        gap: 24px;
    }
}

/* Strict Mobile Breakpoints Response definitions Layer */
@media (max-width: 768px) {
    .ehb-slider-wrapper {
        height: auto;
        min-height: 480px;
    }

    .ehb-slide-container {
        padding: 80px 24px !important;
    }

    .ehb-slide {
        text-align: center !important;
        justify-content: center !important;
    }

    .ehb-content-inner {
        max-width: 100%;
    }

    .ehb-buttons-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        gap: 12px;
        justify-content: flex-start !important;
    }

    .ehb-btn {
        width: auto;
        text-align: center;
        padding: 12px 20px;
    }

    /* Split layout stacks vertically on mobile */
    .ehb-slide.ehb-split .ehb-slide-container,
    .ehb-slide.ehb-split-left .ehb-slide-container,
    .ehb-slide.ehb-split-right .ehb-slide-container {
        flex-direction: column;
        gap: 24px;
        text-align: center !important;
    }
    .ehb-slide.ehb-split .ehb-split-media {
        width: 100% !important;
        max-width: 100%;
    }
    .ehb-slide.ehb-split .ehb-content-inner {
        max-width: 100% !important;
        text-align: center !important;
    }
    .ehb-slide.ehb-split .ehb-buttons-group {
        justify-content: flex-start !important;
    }

    /* Clean up navigation clutter on compact smartphones touch viewports */
    .ehb-arrow {
        display: none !important;
    }
}

/* Buttons stack vertically only at 767px and below; above that (768px) they stay inline */
@media (max-width: 767px) {
    .ehb-buttons-group {
        flex-direction: column;
        width: 100%;
        justify-content: flex-start !important;
    }

    .ehb-btn {
        width: 100%;
        text-align: center;
    }
}