/**
 * Hero Slider Widget Styles
 */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   SLIDE
   ========================================================================== */

.hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slider__slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide transition for horizontal slide effect */
.hero-slider[data-transition="slide"] .hero-slider__slide {
    transform: translateX(100%);
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slider[data-transition="slide"] .hero-slider__slide--active {
    transform: translateX(0);
}

.hero-slider[data-transition="slide"] .hero-slider__slide--prev {
    transform: translateX(-100%);
}

/* ==========================================================================
   OVERLAY
   ========================================================================== */

.hero-slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   INNER CONTAINER
   ========================================================================== */

.hero-slider__inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 50px;
    display: flex;
    z-index: 2;
    box-sizing: border-box;
}

/* Horizontal positioning */
.hero-slider__inner--h-left {
    justify-content: flex-start;
}

.hero-slider__inner--h-center {
    justify-content: center;
}

.hero-slider__inner--h-right {
    justify-content: flex-end;
}

/* Vertical positioning */
.hero-slider__inner--v-top {
    align-items: flex-start;
}

.hero-slider__inner--v-middle {
    align-items: center;
}

.hero-slider__inner--v-bottom {
    align-items: flex-end;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.hero-slider__content {
    max-width: 600px;
}

/* ==========================================================================
   MAIN HEADING
   ========================================================================== */

.hero-slider__main-heading {
    color: #ffffff;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

/* ==========================================================================
   SUB HEADING
   ========================================================================== */

.hero-slider__sub-heading {
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.hero-slider__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.hero-slider__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.hero-slider__button--primary {
    background-color: #6b9b37;
    color: #ffffff;
}

.hero-slider__button--primary:hover {
    background-color: #5a8830;
    color: #ffffff;
}

.hero-slider__button--secondary {
    background-color: #6b9b37;
    color: #ffffff;
}

.hero-slider__button--secondary:hover {
    background-color: #5a8830;
    color: #ffffff;
}

.hero-slider__button-text {
    display: inline-block;
}

.hero-slider__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.hero-slider__button-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.hero-slider__button--icon-after:hover .hero-slider__button-icon {
    transform: translateX(5px);
}

.hero-slider__button--icon-before:hover .hero-slider__button-icon {
    transform: translateX(-5px);
}

/* ==========================================================================
   BOTTOM TEXT (DECORATIVE)
   ========================================================================== */

.hero-slider__bottom-text {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 180px;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
    letter-spacing: 0.02em;
    text-align: right;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-slider__inner {
        padding: 40px;
    }
    
    .hero-slider__main-heading {
        font-size: 28px;
    }
    
    .hero-slider__sub-heading {
        font-size: 18px;
    }
    
    .hero-slider__bottom-text {
        font-size: 120px;
        bottom: -30px;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    .hero-slider__inner {
        padding: 30px 20px;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-slider__content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-slider__main-heading {
        font-size: 22px;
    }
    
    .hero-slider__sub-heading {
        font-size: 16px;
    }
    
    .hero-slider__buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-slider__button {
        width: 100%;
        justify-content: center;
        padding: 12px 30px;
    }
    
    .hero-slider__bottom-text {
        font-size: 60px;
        bottom: -15px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* ==========================================================================
   ELEMENTOR EDITOR FIXES
   ========================================================================== */

.elementor-editor-active .hero-slider__slide {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.elementor-editor-active .hero-slider__slide:not(:first-child) {
    display: none;
}
