:root {
    --primary: #43d477;
    --primary-dark: #36b364;
    --navy: #0a2647;
    --white: #ffffff;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-container {
    height: 800px;
    width: 100%;
    margin-top: -95px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-carousel-container {
        height: 600px;
        margin-top: -75px;
    }
}

@media (max-width: 576px) {
    .hero-carousel-container {
        height: 520px;
        margin-top: -65px;
    }
}

.hero-swiper-container {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    height: 100%;
    background-color: #000;
}

.hero-slide .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center !important;
    background-repeat: no-repeat;
    transform: scale(1.15);
    transition: transform 10s linear;
    z-index: 0;
    opacity: 1 !important;
}

.swiper-slide-active .slide-image {
    transform: scale(1);
}

.hero-slide .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-slide .container {
    z-index: 2;
    position: relative;
    height: 100%;
}

/* Animations */
.slider-content>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition);
}

.swiper-slide-active .slider-content>* {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .hero-label {
    transition-delay: 0.2s;
}

.swiper-slide-active h1 {
    transition-delay: 0.4s;
}

.swiper-slide-active .slide-hint {
    transition-delay: 0.6s;
}

.swiper-slide-active .slide-btns {
    transition-delay: 0.8s;
}

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-slide h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-slide .slide-hint {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 25px auto 0 !important;
}

.slider-content {
    text-align: center;
    width: 100%;
}

.slide-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.slide-btns .mr-15 {
    margin-right: 0 !important;
}

/* Controls Layer */
.hero-controls-container {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-controls-container {
        display: none;
    }
}

.hero-pagination-wrapper .swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    text-align: left !important;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    background: transparent !important;
    opacity: 0.5 !important;
    color: var(--white) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 15px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1 !important;
    color: var(--primary) !important;
}

.hero-nav-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    pointer-events: none;
}

[dir="rtl"] .hero-nav-controls {
    flex-direction: row-reverse;
}

.hero-swiper-next,
.hero-swiper-prev {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    color: var(--white) !important;
    transition: all 0.4s var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: all !important;
}

.hero-swiper-prev::after {
    content: '❮' !important;
    font-size: 24px !important;
    font-weight: bold !important;
    font-family: Arial, sans-serif !important;
}

.hero-swiper-next::after {
    content: '❯' !important;
    font-size: 24px !important;
    font-weight: bold !important;
    font-family: Arial, sans-serif !important;
}

[dir="rtl"] .hero-nav-controls {
    flex-direction: row-reverse;
}

@media (max-width: 991px) {

    /* Force arrows to bottom-center on all mobile/tablet views */
    .hero-nav-controls {
        top: auto !important;
        bottom: 20px !important;
        left: 50% !important;
        width: auto !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        padding: 0 !important;
    }

    .hero-swiper-next,
    .hero-swiper-prev {
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(10, 38, 71, 0.8) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    /* Reduce navbar logo size significantly on mobile */
    #mobile-nav .nav-logo img {
        height: 100px ;
        max-width: 210px !important;
    }
}

@media (max-width: 768px) {

    .hero-swiper-next,
    .hero-swiper-prev {
        width: 45px !important;
        height: 45px !important;
        background: rgba(10, 38, 71, 0.8) !important;
    }

    .hero-swiper-prev {
        left: 10px !important;
    }

    .hero-swiper-next {
        right: 10px !important;
    }

    .hero-swiper-next::after,
    .hero-swiper-prev::after {
        font-size: 18px !important;
    }
}

.hero-swiper-next:hover,
.hero-swiper-prev:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--navy) !important;
    transform: scale(1.1) !important;
}

/* Progress Bar */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.hero-progress-bar .progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 6000ms linear;
}

/* Modern Buttons Override */
.hero-slide .btn {
    padding: 14px 36px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s var(--transition) !important;
}

.hero-slide .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(67, 212, 119, 0.3) !important;
}

.hero-slide .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(67, 212, 119, 0.4) !important;
}

.hero-slide .btn-outline-white {
    border-width: 2px !important;
    backdrop-filter: blur(5px);
}

.hero-slide .btn-outline-white:hover {
    background: var(--white) !important;
    color: var(--navy) !important;
    transform: translateY(-50%) !important;
}

/* RTL Support */
[dir="rtl"] .hero-slide {
    text-align: center;
}

[dir="rtl"] .slider-content {
    text-align: center;
}

[dir="rtl"] .slide-btns {
    flex-direction: row;
    justify-content: center;
}

[dir="rtl"] .slide-btns .mr-15 {
    margin-left: 0 !important;
}

/* Hamburger Icon Fix */
.navbar-toggler {
    padding: 0.5rem !important;
}

.navbar-toggler-icon {
    width: 24px !important;
    height: 24px !important;
}

/* Ensure navbar items are properly spaced on mobile */
#mobile-nav .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Mobile Responsiveness for Content */
@media (max-width: 576px) {
    .hero-slide h1 {
        font-size: 1.8rem;
    }

    .hero-slide .slide-hint {
        font-size: 0.9rem;
        margin-top: 15px !important;
    }

    .slide-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .slide-btns .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding: 10px 20px !important;
    }
}