/* Hero Slider Modern Design */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    padding: 20px 0 40px;
    /* Add some spacing */
}

/* Custom Navigation Arrows */
/* Fix Splide RTL Arrow Placement */
.hero-slider-section .splide__arrows {
    /* Ensure the arrows container spans full width */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    pointer-events: none;
    /* Let clicks pass through container */
    z-index: 10;
}

.hero-slider-section .splide__arrow {
    background: var(--primary-color, #5A6FDC) !important;
    opacity: 0;
    transition: all 0.3s ease;
    width: 3.5rem;
    height: 3.5rem;
    box-shadow: 0 4px 15px rgba(90, 111, 220, 0.4);
    pointer-events: auto;
    /* Re-enable clicks on arrows */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hero-slider-section .splide__arrow svg {
    fill: #ffffff !important;
    width: 1.5rem;
    height: 1.5rem;
    transition: fill 0.3s ease;
}

.hero-slider-section:hover .splide__arrow {
    opacity: 0.85;
}

.hero-slider-section .splide__arrow:hover {
    background: var(--primary-color, #ff6b6b) !important;
    /* Secondary hover color if needed or darker shade, let's stick to opacity 1 */
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* In RTL: 'Prev' arrow moves the slider forward (shows older/later slides) visually going right */
.hero-slider-section .splide__arrow--prev {
    right: 20px;
    left: auto;
}

/* In RTL: 'Next' arrow moves the slider backward visually going left */
.hero-slider-section .splide__arrow--next {
    left: 20px;
    right: auto;
}

/* Custom Pagination */
.hero-slider-section .splide__pagination {
    bottom: -30px;
    /* Move outside */
}

.hero-slider-section .splide__pagination__page {
    background: #e0e0e0;
    width: 30px;
    /* Long bars */
    height: 4px;
    border-radius: 2px;
    margin: 0 4px;
    transition: all 0.3s ease;
    opacity: 1;
}

.hero-slider-section .splide__pagination__page.is-active {
    background: var(--primary-color, #ff6b6b);
    width: 45px;
    transform: scale(1);
}

/* Slide Content Wrapper */
.hero-slide-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    height: 500px;
    width: 100%;
    margin: 0 auto;
    /* Aspect ratio for mobile can be handled via media queries */
}

/* Background Image */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.splide__slide.is-active .hero-slide-bg {
    transform: scale(1.05);
    /* Zoom effect on active */
    transition: transform 6s ease-out;
    /* Slow zoom */
}

/* Overlay Gradient */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

/* RTL Gradient */
[dir="rtl"] .hero-slide-overlay {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Content Container */
.hero-slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

/* Glassmorphism Card for Text */
.hero-content-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    max-width: 550px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.splide__slide.is-active .hero-content-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
    /* Delay text appearance */
}

/* Typography & Elements */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #ff6b6b;
    /* Accent color */
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #333;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
    color: #000;
}

.hero-btn i {
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(-5px);
    /* Move arrow left on RTL */
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-slide-wrapper {
        height: 450px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content-card {
        padding: 2rem;
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .hero-slider-section {
        padding: 10px 0 30px;
    }

    .hero-slide-wrapper {
        height: 550px;
        /* Taller on mobile for stacked content if needed, or keeping standard */
        border-radius: 16px;
    }

    .hero-slide-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8) 100%);
    }

    .hero-slide-content {
        padding: 0 20px;
        align-items: flex-end;
        /* Bottom align text on mobile */
        padding-bottom: 40px;
    }

    .hero-content-card {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-desc {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-slider-section .splide__pagination {
        bottom: -25px;
    }

    .hero-slider-section .splide__arrow {
        display: none;
        /* Hide arrows on mobile */
    }
}

/* Progress Bar Customization */
.hero-slider-section .splide__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.hero-slider-section .splide__progress__bar {
    height: 100%;
    background: var(--primary-color, #ff6b6b);
    width: 0;
}

@keyframes splide-progress-bar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.hero-slider-section .splide__progress__bar.animate {
    animation-name: splide-progress-bar;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}