/* Hero Carousel Styles */
.hero-carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 67, 96, 0.35) 0%, rgba(26, 82, 118, 0.25) 100%);
    z-index: 1;
}

/* Carousel Navigation Dots */
.hero-carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-carousel-dot.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    width: 35px;
    border-radius: 10px;
}

/* Carousel Navigation Arrows */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-carousel-arrow:hover {
    background: rgba(212, 175, 55, 0.9);
    border-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-arrow.prev {
    left: 30px;
}

.hero-carousel-arrow.next {
    right: 30px;
}

/* RTL Support */
[dir="rtl"] .hero-carousel-arrow.prev {
    left: auto;
    right: 30px;
}

[dir="rtl"] .hero-carousel-arrow.next {
    right: auto;
    left: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-carousel-arrow.prev {
        left: 15px;
    }

    .hero-carousel-arrow.next {
        right: 15px;
    }

    [dir="rtl"] .hero-carousel-arrow.prev {
        left: auto;
        right: 15px;
    }

    [dir="rtl"] .hero-carousel-arrow.next {
        right: auto;
        left: 15px;
    }

    .hero-carousel-dots {
        bottom: 20px;
    }

    .hero-carousel-dot {
        width: 10px;
        height: 10px;
    }

    .hero-carousel-dot.active {
        width: 28px;
    }
}

/* Animation for slide entrance */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-carousel-slide.slide-in-right {
    animation: slideInFromRight 1s ease-out;
}

.hero-carousel-slide.slide-in-left {
    animation: slideInFromLeft 1s ease-out;
}