/* CSS Custom Properties */

:root {
    --hero-z-base: 1;
    --hero-z-bg: 1;
    --hero-z-overlay: 2;
    --hero-z-content: 3;
    --hero-z-high: 10;
    --hero-z-editor: 999;
    --hero-z-panel: 99999;
    --hero-transition: all 0.3s ease;
    --hero-shadow-default: 0 4px 20px rgba(0, 0, 0, 0.08);
    --hero-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
    --hero-primary: #4AADCF;
    --hero-primary-hover: #3a9abf;
    --hero-secondary: #0a2240;
    --hero-text: #333;
    --hero-white: #fff;
    --hero-content-max: 1200px;
    --hero-content-vertical-position-offset-top: 0;
    --hero-content-vertical-position-offset-middle: 0;
    --hero-content-vertical-position-offset-bottom: 0;
}


/* Tilted Divider */

.hero-tilted-divider {
    position: relative;
    width: 100%;
    height: 80px;
    background-color: #f5f5f5;
    transform: skewY(3deg);
    z-index: 1;
}

.divider-position-top .hero-tilted-divider {
    order: -1;
    transform-origin: top center;
}

.divider-position-bottom .hero-tilted-divider {
    order: 2;
    transform-origin: bottom center;
}


/* Container & Layout */

.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    z-index: var(--hero-z-base);
}


/* Height Modes */

.height-mode-auto .hero-slider-container {
    height: auto !important;
}

.height-mode-full .hero-slider-container {
    height: 100vh !important;
}


/* Slider Base */

.hero-slider,
.hero-static {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: 8rem;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}


/* Background */

.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--hero-z-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* Overlay */

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--hero-z-overlay);
}


/* Content Container */

.hero-slide-content-container {
    position: relative;
    width: 100%;
    max-width: var(--hero-content-max);
    margin: 0 auto;
    height: auto;
    min-height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: start;
    z-index: var(--hero-z-content);
}


/* Vertical position adjustments */

.hero-slide-content-container[style*="align-items: flex-start"] {
    padding-top: var(--hero-content-vertical-position-offset-top, 3rem);
}

.hero-slide-content-container[style*="align-items: center"] {
    padding-top: var(--hero-content-vertical-position-offset-middle, 0);
}

.hero-slide-content-container[style*="align-items: flex-end"] {
    padding-bottom: var(--hero-content-vertical-position-offset-bottom, 3rem);
}


/* Content Wrapper */

.hero-slide-content-wrapper {
    width: 50%;
    padding: 3rem;
    border-radius: 0.5rem;
    background-color: var(--hero-white);
    box-shadow: var(--hero-shadow-default);
    z-index: var(--hero-z-high);
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
    justify-content: center;
    display: flex;
    flex-direction: column;
}


/* Content */

.hero-slide-title {
    margin-bottom: 1.5rem;
    color: var(--hero-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-slide-content {
    margin-bottom: 2rem;
}

.hero-slide-content p {
    margin-bottom: 1rem;
    color: var(--hero-text);
    font-size: 1.1rem;
    line-height: 1.6;
}


/* Buttons */

.hero-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--hero-transition);
    cursor: pointer;
}

.hero-button-icon {
    margin-left: 0.5rem;
}

.hero-button-1 {
    background-color: var(--hero-primary);
    color: var(--hero-white);
    border: 2px solid var(--hero-primary);
}

.hero-button-1:hover {
    background-color: var(--hero-primary-hover);
    border-color: var(--hero-primary-hover);
    color: var(--hero-white);
    text-decoration: none;
}

.hero-button-2 {
    background-color: transparent;
    color: var(--hero-primary);
    border: 2px solid var(--hero-primary);
}

.hero-button-2:hover {
    background-color: var(--hero-primary);
    color: var(--hero-white);
    text-decoration: none;
}


/* Navigation */

.hero-slide-navigation {
    display: flex;
    justify-content: start;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    z-index: var(--hero-z-high);
}

.hero-slider-arrow {
    position: relative;
    width: 3rem;
    height: 3rem;
    background-color: var(--hero-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--hero-transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-slider-arrow:hover {
    opacity: 0.9;
    box-shadow: var(--hero-shadow-hover);
}

.hero-slider-arrow i {
    font-size: 1.2rem;
    color: var(--hero-white);
}


/* Swiper Specific */

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    transform: none;
    width: 2rem;
    height: 2rem;
    background-image: none;
    color: var(--hero-white);
}

.hero-slider .swiper-button-prev:after,
.hero-slider .swiper-button-next:after {
    display: none;
}

.hero-slider .swiper-pagination {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--hero-z-high);
}

.hero-slider .swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 0.25rem;
    transition: var(--hero-transition);
    border-radius: 50%;
}

.hero-slider .swiper-pagination-bullet-active {
    background-color: var(--hero-white);
    width: 1rem;
    height: 1rem;
}


/* Elementor Editor Fixes */

.elementor-editor-active .elementor-panel {
    z-index: var(--hero-z-panel);
}

.elementor-editor-active .hero-slider-container {
    min-height: 200px;
    border: 1px dashed #ccc;
}


/* Fallback Styles */

.hero-slider-fallback .swiper-wrapper {
    display: block !important;
    transform: none !important;
}

.hero-slider-fallback .swiper-slide {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    transform: none !important;
}

.hero-slider-fallback .swiper-pagination,
.hero-slider-fallback .swiper-button-prev,
.hero-slider-fallback .swiper-button-next {
    display: none !important;
}


/* Error States */

.hero-slider-error {
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}


/* Responsive Styles */

@media (max-width: 1024px) {
    .hero-slide-content-container {
        padding: 1rem;
    }
    .hero-slide-title {
        font-size: 2rem;
    }
    .hero-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    .hero-slide-navigation {
        margin-top: 1.5rem;
    }
    .hero-slider-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
    .hero-slider-arrow i {
        font-size: 1rem;
    }
    /* Tablet vertical position adjustments */
    .hero-slide-content-container[style*="align-items: flex-start"] {
        padding-top: var(--hero-content-vertical-position-offset-top, 2rem);
    }
    .hero-slide-content-container[style*="align-items: flex-end"] {
        padding-bottom: var(--hero-content-vertical-position-offset-bottom, 2rem);
    }
}

@media (max-width: 767px) {
    .hero-slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    .hero-slide-buttons {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    .hero-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .hero-slide-navigation {
        margin-top: 1rem;
        gap: 0.8rem;
    }
    .hero-slider-arrow {
        width: 2rem;
        height: 2rem;
    }
    .hero-slider-arrow i {
        font-size: 0.9rem;
    }
    /* Mobile vertical position adjustments */
    .hero-slide-content-container[style*="align-items: flex-start"] {
        padding-top: var(--hero-content-vertical-position-offset-top, 1.5rem);
    }
    .hero-slide-content-container[style*="align-items: flex-end"] {
        padding-bottom: var(--hero-content-vertical-position-offset-bottom, 1.5rem);
    }
}