/* Hero Slider Styles (extracted from pages/home.css) */

/* Hero section background ornaments */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

.hero-slider-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb),0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    will-change: contents;
}

.hero-slider-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(176,138,79,0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    will-change: contents;
}

html[data-bs-theme="dark"] .hero-slider-section::before {
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.08) 0%, transparent 60%);
}

html[data-bs-theme="dark"] .hero-slider-section::after {
    background: radial-gradient(circle, rgba(176,138,79,0.06) 0%, transparent 60%);
}

.hero-slider-section h1,
.hero-slider-section .display-6 {
    position: relative;
    z-index: 2;
}

.hero-slider-section h1,
.hero-slider-section .display-6 {
    font-family: var(--font-display, inherit);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hero-slider-section h1 i {
    color: rgba(176,138,79,.95);
}

/* Modern Hero Slider - Fashion Editorial */
.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(260px, 38vh, 460px);
    min-height: clamp(260px, 38vh, 460px);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb),0.08) 0%, rgba(176,138,79,0.05) 50%, rgba(var(--bs-primary-rgb),0.08) 100%);
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Premium section separation (Hero Slider -> Courses) */
.hero-slider {
    border: 1px solid rgba(17,24,39,0.10);
    box-shadow: 0 22px 70px rgba(17,24,39,.12);
}

/* Decorative divider under hero section */
.hero-slider-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 28px;
    background: radial-gradient(60% 140% at 50% 0%, rgba(17,24,39,.12) 0%, rgba(17,24,39,0) 70%);
    pointer-events: none;
}

html[data-bs-theme="dark"] .hero-slider {
    border-color: rgba(255,255,255,0.12) !important;
    box-shadow: 0 26px 70px rgba(0,0,0,.40);
}

html[data-bs-theme="dark"] .hero-slider-section::after {
    background: radial-gradient(60% 140% at 50% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
}

@supports (height: 1svh) {
    .hero-slider {
        height: clamp(260px, 38svh, 460px);
        min-height: clamp(260px, 38svh, 460px);
    }
}

@media (max-width: 575.98px) {
    .hero-slider {
        height: clamp(200px, 30vh, 340px);
        min-height: clamp(200px, 30vh, 340px);
    }

    .hero-slide-content {
        padding: 1.25rem 0;
    }

    .hero-slider-section .min-vh-50 {
        min-height: auto !important;
    }
}

@supports (height: 1svh) {
    @media (max-width: 575.98px) {
        .hero-slider {
            height: clamp(200px, 30svh, 340px);
            min-height: clamp(200px, 30svh, 340px);
        }
    }
}

@media (min-width: 768px) {
    .hero-slider {
        height: clamp(320px, 40vh, 520px);
        min-height: clamp(320px, 40vh, 520px);
        border-radius: 1rem;
    }
}

@supports (height: 1svh) {
    @media (min-width: 768px) {
        .hero-slider {
            height: clamp(320px, 40svh, 520px);
            min-height: clamp(320px, 40svh, 520px);
        }
    }
}

@media (min-width: 992px) {
    .hero-slider {
        height: clamp(360px, 42vh, 560px);
        min-height: clamp(360px, 42vh, 560px);
    }
}

@supports (height: 1svh) {
    @media (min-width: 992px) {
        .hero-slider {
            height: clamp(360px, 42svh, 560px);
            min-height: clamp(360px, 42svh, 560px);
        }
    }
}

/* Slider Track */
.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    z-index: 1;
}

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

/* Slide Transition Types */
.hero-slider[data-transition="slide"] .hero-slide {
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

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

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

/* Slide Background Image */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,24,39,0.35) 0%, rgba(17,24,39,0.15) 50%, rgba(17,24,39,0.25) 100%);
    z-index: 1;
}

/* Slide Content */
.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-slide-text {
    max-width: 100%;
    padding: 0 1rem;
    position: relative;
    transform: translateZ(0);
    will-change: auto;
    backface-visibility: hidden;
}

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

.hero-slide-title {
    font-size: 1.75rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 576px) {
    .hero-slide-title { font-size: 2.25rem; }
}
@media (min-width: 768px) {
    .hero-slide-title { font-size: 2.75rem; }
}
@media (min-width: 992px) {
    .hero-slide-title { font-size: 3.25rem; }
}

.hero-slide-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-slide-subtitle { font-size: 1.125rem; }
}

.hero-slide-btn {
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb),0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb),0.5);
}

/* Slider Navigation Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.hero-slider-arrow:hover {
    background: rgba(255,255,255,0.25);
    opacity: 1;
}

.hero-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-slider-prev { left: 1rem; }
.hero-slider-next { right: 1rem; }

@media (min-width: 768px) {
    .hero-slider-arrow { width: 50px; height: 50px; font-size: 1.125rem; }
    .hero-slider-prev { left: 1.5rem; }
    .hero-slider-next { right: 1.5rem; }
}
@media (min-width: 992px) {
    .hero-slider-arrow { width: 56px; height: 56px; font-size: 1.25rem; }
}

/* Slider Dots Navigation */
.hero-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 0;
}

.hero-slider-dot:hover { background: rgba(255,255,255,0.6); }

.hero-slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

@media (min-width: 768px) {
    .hero-slider-dots { bottom: 2rem; gap: 0.75rem; }
    .hero-slider-dot { width: 12px; height: 12px; }
}

@media (max-width: 767px) {
    .hero-slider::after {
        content: '';
        position: absolute;
        bottom: 4rem;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.2);
        border-radius: 2px;
        z-index: 5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slider[data-transition="slide"] .hero-slide {
        transition: none;
        transform: none;
    }

    .hero-slider-arrow,
    .hero-slider-dot,
    .hero-slide-btn {
        transition: none;
    }
}

/* Reduce motion for ornaments too */
@media (prefers-reduced-motion: reduce) {
    .hero-slider-section::before,
    .hero-slider-section::after {
        animation: none !important;
    }
}

@media (prefers-color-scheme: light) {
    .hero-slider:not([data-force-dark]) {
        background: linear-gradient(135deg, rgba(var(--bs-primary-rgb),0.06) 0%, rgba(176,138,79,0.03) 50%, rgba(var(--bs-primary-rgb),0.06) 100%);
    }
}

html[data-bs-theme="dark"] .hero-slider {
    background: linear-gradient(135deg, rgba(17,24,39,0.95) 0%, rgba(31,41,55,0.98) 50%, rgba(17,24,39,0.95) 100%);
    border-color: rgba(255,255,255,0.12) !important;
    box-shadow: 0 26px 70px rgba(0,0,0,.40);
}

html[data-bs-theme="dark"] .hero-slider-section::after {
    background: radial-gradient(60% 140% at 50% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
}

/* Dark mode background gradient helpers (avoid inline style overrides) */
html[data-bs-theme="dark"] .hero-slider-section {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08) 0%, rgba(17, 24, 39, .4) 100%);
}

html[data-bs-theme="dark"] .hero-slider-section[style*="background"] {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .06) 0%, rgba(17, 24, 39, .3) 100%) !important;
}

@media (max-width: 575.98px) {
    html[data-bs-theme="dark"] .hero-slider-section {
        background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .1) 0%, rgba(17, 24, 39, .5) 100%);
    }
}

html[data-bs-theme="dark"] .hero-slide-overlay {
    background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.55) 50%, rgba(17,24,39,0.75) 100%);
}

html[data-bs-theme="dark"] .hero-slider-arrow {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

html[data-bs-theme="dark"] .hero-slider-arrow:hover { background: rgba(255,255,255,0.2); }

html[data-bs-theme="dark"] .hero-slider-dot { background: rgba(255,255,255,0.3); }
html[data-bs-theme="dark"] .hero-slider-dot.active { background: rgba(255,255,255,0.9); }

.hero-slider.loading .hero-slide-bg img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slider.loaded .hero-slide-bg img { opacity: 1; }

.hero-slider-arrow:focus-visible,
.hero-slider-dot:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb),0.8);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .hero-slide {
        --slide-offset-x: var(--slide-offset-x-mobile) !important;
        --slide-offset-y: var(--slide-offset-y-mobile) !important;
    }
}

/* Hero image optimization - prevent oversized LCP element */
.hero-slider img,
.hero-image img,
.banner-hero img {
    width: 100%;
    height: auto;
    max-width: 900px;
    display: block;
    object-fit: cover;
}
