/* ── Hero Slider Core Styles ── */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    --desktop-height: 560px;
    --tablet-height: 460px;
    --mobile-height: 380px;
    --slider-fit: cover;
    --transition-speed: 800ms;
    height: var(--desktop-height);
    overflow: hidden;
    background: #0f172a;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet Breakpoint (769px - 1024px) */
@media (max-width: 1024px) {
    .hero-slider-wrapper {
        height: var(--tablet-height);
    }
}

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .hero-slider-wrapper {
        height: var(--mobile-height);
    }
}

/* Small Mobile Breakpoint (<= 480px) */
@media (max-width: 480px) {
    .hero-slider-wrapper {
        height: var(--mobile-height);
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: block !important;
    touch-action: pan-y;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed);
}

.hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 5 !important;
    display: flex !important;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: var(--slider-fit, cover);
    object-position: center center;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    margin: 0;
    padding: 0;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block !important;
    pointer-events: none;
}

/* Subtle gradient protection for text legibility on all devices */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-slide::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 100%);
    }
}

.hero-content {
    color: #fff;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 0 40px;
    }
}

.slide-subtitle {
    font-size: clamp(0.75rem, 1.2vw, 1.15rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.slide-title {
    font-size: clamp(1.6rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    color: #ffffff !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

.slide-description {
    font-size: clamp(0.85rem, 1.15vw, 1.15rem);
    line-height: 1.55;
    margin-bottom: 1.75rem;
    max-width: 580px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.92) !important;
}

.hero-content.text-center .slide-description {
    margin-left: auto;
    margin-right: auto;
}

.hero-content.text-right .slide-description {
    margin-left: auto;
}

.slide-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-content.text-center .slide-buttons {
    justify-content: center;
}

.hero-content.text-right .slide-buttons {
    justify-content: flex-end;
}

.hero-btn {
    padding: 0.75rem 2rem;
    font-size: clamp(0.8125rem, 1vw, 0.95rem);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
}

.hero-btn i {
    color: inherit !important;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    text-decoration: none !important;
}

.hero-btn:hover i,
.hero-btn:focus i,
.hero-btn:active i {
    color: inherit !important;
}

/* Transitions */
.hero-slider[data-transition="fade"] .hero-slide { 
    transition: opacity var(--transition-speed) ease-in-out, visibility var(--transition-speed); 
} 

.hero-slider[data-transition="slide"] .hero-slide { 
    transform: translateX(100%); 
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--transition-speed), visibility var(--transition-speed); 
} 
.hero-slider[data-transition="slide"] .hero-slide.active { transform: translateX(0); } 
.hero-slider[data-transition="slide"] .hero-slide.prev-slide { transform: translateX(-100%); } 

/* Zoom Transitions (Improved: Targets Background Only) */
.hero-slider[data-transition="zoom"] .hero-bg,
.hero-slider[data-transition="zoom-in"] .hero-bg,
.hero-slider[data-transition="zoom-out"] .hero-bg {
    transition: transform var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slider[data-transition="zoom"] .hero-slide .hero-bg { 
    transform: scale(1.15); 
}
.hero-slider[data-transition="zoom"] .hero-slide.active .hero-bg { 
    transform: scale(1); 
}

.hero-slider[data-transition="zoom-in"] .hero-slide .hero-bg { 
    transform: scale(0.75); 
}
.hero-slider[data-transition="zoom-in"] .hero-slide.active .hero-bg { 
    transform: scale(1); 
}

.hero-slider[data-transition="zoom-out"] .hero-slide .hero-bg { 
    transform: scale(1.6); 
}
.hero-slider[data-transition="zoom-out"] .hero-slide.active .hero-bg { 
    transform: scale(1); 
}

.hero-slide .text-animation { opacity: 0; } 
.hero-slide.active .text-animation[data-animation="fade"] { animation: fadeIn var(--animation-duration) forwards; animation-delay: var(--animation-delay); } 
.hero-slide.active .text-animation[data-animation="slide_up"] { animation: slideUp var(--animation-duration) cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: var(--animation-delay); transform: translateY(40px); } 
.hero-slide.active .text-animation[data-animation="zoom_in"] { animation: zoomIn var(--animation-duration) forwards; animation-delay: var(--animation-delay); transform: scale(0.9); } 
@keyframes fadeIn { to { opacity: 1; } } 
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } } 
@keyframes zoomIn { to { opacity: 1; transform: scale(1); } } 

/* Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.25s ease;
    opacity: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 1.15rem;
}

.hero-slider-wrapper:hover .hero-arrow {
    opacity: 1;
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-arrow:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.hero-dot {
    width: 24px;
    height: 4px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.45;
    background-color: #ffffff;
    padding: 0;
}

.hero-dot.active {
    opacity: 1;
    width: 38px;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hero-dots.dark .hero-dot {
    background-color: #000000;
}

.hero-dots.dark .hero-dot.active {
    background-color: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.8);
}

/* Responsive Adaptive Adjustments */
@media (max-width: 991px) {
    .slide-description {
        margin-bottom: 1.25rem;
    }
    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }
}

@media (max-width: 768px) {
    .slide-subtitle {
        margin-bottom: 0.35rem;
    }
    .slide-title {
        margin-bottom: 0.6rem;
    }
    .slide-description {
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-btn {
        padding: 0.55rem 1.35rem;
    }
    .hero-arrow {
        display: none !important;
    }
    .hero-dots {
        bottom: 14px;
        gap: 6px;
    }
    .hero-dot {
        width: 18px;
        height: 3px;
    }
    .hero-dot.active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .slide-buttons {
        gap: 8px;
    }
    .hero-btn {
        padding: 0.45rem 1.15rem;
        font-size: 0.775rem;
    }
}


