/* ==========================================================================
   Hero Slider Component CSS - 10 Presets & Edge Softening System
   ========================================================================== */

.hero-slider-container {
    position: relative;
    width: 100%;
    border-radius: var(--theme-card-radius, 1.75rem);
    overflow: hidden;
    user-select: none;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    /* Custom Typography & Manual Color CSS Variables with Safe Fallbacks */
    --hero-title-color: #ffffff;
    --hero-subtitle-color: #cbd5e1;
    --hero-accent-color: #6366f1;
    --hero-btn-bg: #4f46e5;
    --hero-btn-text: #ffffff;
    --hero-title-size-desktop: 34px;
    --hero-title-size-mobile: 22px;
    --hero-font-weight: 900;
    --hero-text-align: right;
}

.hero-slider-container.has-custom-bg {
    background: var(--hero-custom-bg) !important;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero-slides-wrapper {
        min-height: 440px;
    }
}

@media (min-width: 1024px) {
    .hero-slides-wrapper {
        min-height: 460px;
    }
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    display: flex;
    align-items: center;
    padding: 1.5rem 1.25rem;
    z-index: 1;
}

@media (min-width: 640px) {
    .hero-slide {
        padding: 2.25rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-slide {
        padding: 3rem 3.5rem;
    }
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transform: translateX(0) scale(1);
}

/* Slide Transition Modes */
.hero-transition-slide .hero-slide {
    transform: translateX(-40px);
}
.hero-transition-slide .hero-slide.is-active {
    transform: translateX(0);
}
.hero-transition-slide .hero-slide.is-prev {
    transform: translateX(40px);
}

.hero-transition-fade .hero-slide {
    transform: none;
}

.hero-transition-zoom .hero-slide {
    transform: scale(0.96);
}
.hero-transition-zoom .hero-slide.is-active {
    transform: scale(1);
}

/* --------------------------------------------------------------------------
   STYLE 1: MESH GLOW (نئوتکنولوژی و مش‌گرادیانت درخشان)
   -------------------------------------------------------------------------- */
.hero-style-mesh-glow {
    background: linear-gradient(135deg, #090d16 0%, #151932 45%, #0d111f 100%);
    color: #ffffff;
}

.hero-style-mesh-glow::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-style-mesh-glow::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.hero-style-mesh-glow .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 60%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   STYLE 2: GLASSMORPHISM LIFESTYLE (گلس‌مورفیسم لایف‌استایل و شمارشگر)
   -------------------------------------------------------------------------- */
.hero-style-glassmorphism {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e3a8a 100%);
    color: #ffffff;
}

.hero-style-glassmorphism .hero-slide > div {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.hero-style-glassmorphism .hero-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   STYLE 3: CYBER GAMING DYNAMIC (سایبر گیمینگ پویا و نئونی)
   -------------------------------------------------------------------------- */
.hero-style-cyber-gaming {
    background: linear-gradient(135deg, #030712 0%, #111827 50%, #1e1b4b 100%);
    color: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 40px -10px rgba(99, 102, 241, 0.3);
}

.hero-style-cyber-gaming .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 60%, #818cf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #ffffff !important;
    text-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

/* --------------------------------------------------------------------------
   STYLE 4: STUDIO MINIMAL WHITE (استودیویی مینیمال سفید و لوکس نوردیک)
   -------------------------------------------------------------------------- */
.hero-style-studio-minimal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    color: #0f172a;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

.hero-style-studio-minimal .hero-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.hero-style-studio-minimal .hero-subtitle {
    color: #475569 !important;
}

.hero-style-studio-minimal .hero-badge {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
}

.hero-style-studio-minimal .hero-btn-primary {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3) !important;
}

.hero-style-studio-minimal .hero-btn-primary:hover {
    background: #1e293b !important;
}

.hero-style-studio-minimal .hero-btn-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.hero-style-studio-minimal .hero-btn-secondary:hover {
    background: #f1f5f9 !important;
}

.hero-style-studio-minimal .hero-spec-pill {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #334155 !important;
}

.hero-style-studio-minimal .hero-nav-btn {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

/* --------------------------------------------------------------------------
   STYLE 5: BENTO GRID FLOATING (چیدمان کارت معلق بنتو گرید)
   -------------------------------------------------------------------------- */
.hero-style-bento-grid {
    background: linear-gradient(135deg, #090e1a 0%, #111a2e 50%, #0a101f 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.hero-style-bento-grid .hero-slide {
    padding: 2rem 2.5rem;
}

.hero-style-bento-grid .hero-image-showcase {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-style-bento-grid .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   STYLE 6: CINEMATIC FULL-WIDTH SPLIT (اسپلیت سینمایی تمام‌عرض)
   -------------------------------------------------------------------------- */
.hero-style-cinematic-split {
    background: linear-gradient(135deg, #020408 0%, #080d1a 50%, #03060f 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 25px 60px -15px rgba(2, 6, 23, 0.8);
}

.hero-style-cinematic-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-cinematic-image {
    max-width: 540px !important;
}

.hero-badge-cinematic {
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
}

.hero-title-cinematic {
    font-size: clamp(1.5rem, 3.6vw, 2.75rem) !important;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 60%, #7dd3fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* --------------------------------------------------------------------------
   STYLE 7: CAROUSEL 3D OVERLAPPING (کاروسل سه‌بعدی لایه‌ای همپوشان)
   -------------------------------------------------------------------------- */
.hero-style-carousel-3d {
    background: linear-gradient(135deg, #09090b 0%, #18181b 50%, #09090b 100%);
    color: #ffffff;
    perspective: 1200px;
}

.hero-style-carousel-3d .hero-slides-wrapper {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.hero-style-carousel-3d .hero-slide.is-prev {
    opacity: 0.35;
    visibility: visible;
    transform: translateX(60%) scale(0.85) rotateY(-8deg);
    pointer-events: auto;
    z-index: 1;
    filter: blur(2px);
    cursor: pointer;
}

.hero-style-carousel-3d .hero-slide.is-next {
    opacity: 0.35;
    visibility: visible;
    transform: translateX(-60%) scale(0.85) rotateY(8deg);
    pointer-events: auto;
    z-index: 1;
    filter: blur(2px);
    cursor: pointer;
}

.hero-style-carousel-3d .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 5;
    filter: none;
}

/* --------------------------------------------------------------------------
   STYLE 8: SPLIT HERO CATALOG 3-COLUMN (کاتالوگ ۳ ستونه هوشمند)
   -------------------------------------------------------------------------- */
.hero-style-split-catalog {
    background: linear-gradient(135deg, #080c16 0%, #131b2e 50%, #090f1d 100%);
    color: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.hero-style-split-catalog .hero-slide {
    padding: 2rem 2.5rem;
}

.hero-style-split-catalog .hero-title {
    font-size: clamp(1.25rem, 2.6vw, 2rem) !important;
}

/* --------------------------------------------------------------------------
   STYLE 9: THUMBNAIL STRIP DOCK (نوار تب و تامبنیل‌های زنده تعاملی)
   -------------------------------------------------------------------------- */
.hero-style-thumbnail-strip {
    background: linear-gradient(135deg, #0a0f1d 0%, #162035 50%, #0d1424 100%);
    color: #ffffff;
    padding-bottom: 4rem;
}

.hero-thumbnails-dock {
    position: absolute !important;
    bottom: 0.75rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.35rem 0.6rem;
    z-index: 20;
    max-width: 90%;
    overflow-x: auto;
}

.hero-thumbnails-dock .hero-thumbnail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: auto !important;
    height: 38px !important;
    border-radius: 9999px !important;
    padding: 0.25rem 0.75rem 0.25rem 0.35rem !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-thumbnails-dock .hero-thumbnail-item img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
}

.hero-thumbnails-dock .hero-thumbnail-item.is-active {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5) !important;
}

.hero-th-title {
    font-size: 11px;
    color: #e2e8f0;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   STYLE 10: EDITORIAL LUXURY SHOWCASE (ژورنالی لوکس استودیویی)
   -------------------------------------------------------------------------- */
.hero-style-editorial-luxury {
    background: linear-gradient(135deg, #0e1118 0%, #171d29 50%, #0e1118 100%);
    color: #f8fafc;
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

.hero-style-editorial-luxury .hero-title {
    font-family: inherit;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em;
}

.hero-style-editorial-luxury .hero-badge {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #fbbf24 !important;
}

.hero-style-editorial-luxury .hero-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4) !important;
}

/* ==========================================================================
   IMAGE EDGE SOFTENING & VIGNETTE SYSTEM (رفع تیزی کادر عکس)
   ========================================================================== */

/* 1. FEATHER MASK (محوشدگی نرم و مات لبه‌ها) */
.hero-edge-feather .hero-image-showcase img,
.hero-image-showcase.is-feather img {
    mask-image: radial-gradient(ellipse 92% 86% at center, black 50%, rgba(0, 0, 0, 0.85) 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 92% 86% at center, black 50%, rgba(0, 0, 0, 0.85) 70%, transparent 100%);
    border-radius: 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. FLOATING GLASS POD (کادر گرد شیشه‌ای معلق با بلور) */
.hero-edge-glass-pod .hero-image-showcase,
.hero-image-showcase.is-glass-pod {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 2.25rem;
    padding: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-edge-glass-pod .hero-image-showcase img,
.hero-image-showcase.is-glass-pod img {
    border-radius: 1.5rem;
}

/* 3. AMBIENT GLOW POD (هاله نوری درخشان محیطی) */
.hero-edge-ambient-glow .hero-image-showcase::before,
.hero-image-showcase.is-ambient-glow::before {
    content: '';
    position: absolute;
    inset: -12%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(168, 85, 247, 0.25) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.hero-edge-ambient-glow .hero-image-showcase img,
.hero-image-showcase.is-ambient-glow img {
    position: relative;
    z-index: 1;
    border-radius: 1.75rem;
    mask-image: radial-gradient(ellipse 95% 90% at center, black 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 95% 90% at center, black 65%, transparent 100%);
}

/* 4. NONE (عکس فلت بدون افکت) */
.hero-edge-none .hero-image-showcase img,
.hero-image-showcase.is-none img {
    border-radius: 1rem;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* --------------------------------------------------------------------------
   SHARED HERO ELEMENTS (With CSS Variables Support)
   -------------------------------------------------------------------------- */
.hero-title {
    font-size: var(--hero-title-size-desktop, clamp(1.35rem, 3.2vw, 2.5rem)) !important;
    line-height: 1.3 !important;
    font-weight: var(--hero-font-weight, 900) !important;
    color: var(--hero-title-color, #ffffff) !important;
    -webkit-text-fill-color: var(--hero-title-color, #ffffff) !important;
    text-align: var(--hero-text-align, right) !important;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: clamp(0.75rem, 1.2vw, 0.9375rem);
    line-height: 1.65;
    color: var(--hero-subtitle-color, #cbd5e1) !important;
    text-align: var(--hero-text-align, right) !important;
    max-width: 520px;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hero-accent-color, rgba(255, 255, 255, 0.18)) !important;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #ffffff;
}

.hero-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #e2e8f0;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--hero-btn-bg, linear-gradient(135deg, #4f46e5 0%, #4338ca 100%)) !important;
    color: var(--hero-btn-text, #ffffff) !important;
    font-weight: 800;
    font-size: 0.8125rem;
    border-radius: 0.875rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
    color: var(--hero-btn-text, #ffffff) !important;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8125rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Product Showcase Image Container */
.hero-image-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    width: 100%;
}

.hero-image-showcase img {
    max-height: 330px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.35));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active .hero-image-showcase img {
    transform: scale(1.02) translateY(-4px);
}

/* Navigation Controls (Arrows & Pagination) */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev {
    right: 1rem;
}

.hero-nav-next {
    left: 1rem;
}

/* ==========================================================================
   MOBILE-FIRST OPTIMIZATION & RESPONSIVE UX ENGINE
   Applies to screens <= 768px and in Admin Mobile Live Preview (.is-mobile-preview)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-slides-wrapper {
        min-height: 480px !important;
        height: auto !important;
    }

    .hero-slide {
        padding: 1.25rem 1rem 2.25rem 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    /* Force all layout styles into clean vertical stack */
    .hero-slide > div,
    .hero-slide .grid,
    .hero-slide .flex-col-reverse,
    .hero-slide .lg\:grid-cols-12,
    .hero-slide .lg\:flex-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }

    /* Hero Image Showcase: Placed at Top (Order 1), Clean, Prominent and Centered */
    .hero-image-showcase {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 195px !important;
        min-height: 180px !important;
        margin: 0 auto 0.5rem auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-image-showcase img {
        max-height: 175px !important;
        max-width: 85% !important;
        width: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    /* Text & Content Container: Placed underneath image (Order 2) */
    .hero-slide > div > div:not(.hero-image-showcase),
    .hero-slide .lg\:col-span-5,
    .hero-slide .lg\:w-1\/2,
    .hero-slide .w-full.lg\:max-w-xl {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: var(--hero-text-align, center) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hide redundant desktop-only side widgets on mobile */
    .lg\:col-span-3.order-3,
    .hero-slide .order-3 {
        display: none !important;
    }

    /* Badge on Mobile */
    .hero-badge {
        font-size: 10px !important;
        padding: 2px 8px !important;
        margin-bottom: 0.25rem !important;
    }

    /* Title on Mobile */
    .hero-title {
        font-size: var(--hero-title-size-mobile, 1.35rem) !important;
        line-height: 1.28 !important;
        font-weight: var(--hero-font-weight, 900) !important;
        text-align: var(--hero-text-align, center) !important;
        margin-bottom: 0.35rem !important;
        max-width: 95% !important;
        display: block !important;
    }

    /* Subtitle on Mobile */
    .hero-subtitle {
        font-size: 0.75rem !important;
        line-height: 1.45 !important;
        text-align: var(--hero-text-align, center) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 0.5rem !important;
        max-width: 90% !important;
        opacity: 0.9;
    }

    /* Floating Specs Pills: Inline compact chips */
    .hero-spec-pill {
        font-size: 10px !important;
        padding: 2px 7px !important;
        border-radius: 0.5rem !important;
    }

    /* Buttons Container on Mobile */
    .hero-slide .flex-wrap.gap-3,
    .hero-slide .flex.items-center.gap-3 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin-top: 0.25rem !important;
    }

    .hero-btn-primary {
        font-size: 0.75rem !important;
        padding: 0.5rem 1.25rem !important;
        min-height: 38px !important;
        border-radius: 0.75rem !important;
    }

    .hero-btn-secondary {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.875rem !important;
        min-height: 38px !important;
        border-radius: 0.75rem !important;
    }

    /* Navigation Arrows: Completely hidden on mobile to never block content */
    .hero-nav-btn {
        display: none !important;
    }

    /* Thumbnail Dock: Hidden on mobile */
    .hero-thumbnails-bar {
        display: none !important;
    }

    /* Pagination Dots: Positioned neatly at bottom */
    .hero-dots-container {
        bottom: 0.6rem !important;
    }
}

/* Also apply exact same rules when inside Admin Mobile Live Preview (.is-mobile-preview) */
.hero-slider-container.is-mobile-preview .hero-slides-wrapper {
    min-height: 480px !important;
    height: auto !important;
}
.hero-slider-container.is-mobile-preview .hero-slide {
    padding: 1.25rem 1rem 2.25rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
}
.hero-slider-container.is-mobile-preview .hero-slide > div,
.hero-slider-container.is-mobile-preview .hero-slide .grid,
.hero-slider-container.is-mobile-preview .hero-slide .flex-col-reverse,
.hero-slider-container.is-mobile-preview .hero-slide .lg\:grid-cols-12,
.hero-slider-container.is-mobile-preview .hero-slide .lg\:flex-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
    align-items: center !important;
}
.hero-slider-container.is-mobile-preview .hero-image-showcase {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 195px !important;
    min-height: 180px !important;
    margin: 0 auto 0.5rem auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.hero-slider-container.is-mobile-preview .hero-image-showcase img {
    max-height: 175px !important;
    max-width: 85% !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}
.hero-slider-container.is-mobile-preview .hero-slide > div > div:not(.hero-image-showcase),
.hero-slider-container.is-mobile-preview .hero-slide .lg\:col-span-5,
.hero-slider-container.is-mobile-preview .hero-slide .lg\:w-1\/2,
.hero-slider-container.is-mobile-preview .hero-slide .w-full.lg\:max-w-xl {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: var(--hero-text-align, center) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}
.hero-slider-container.is-mobile-preview .lg\:col-span-3.order-3,
.hero-slider-container.is-mobile-preview .hero-slide .order-3 {
    display: none !important;
}
.hero-slider-container.is-mobile-preview .hero-badge {
    font-size: 10px !important;
    padding: 2px 8px !important;
    margin-bottom: 0.25rem !important;
}
.hero-slider-container.is-mobile-preview .hero-title {
    font-size: var(--hero-title-size-mobile, 1.35rem) !important;
    line-height: 1.28 !important;
    font-weight: var(--hero-font-weight, 900) !important;
    text-align: var(--hero-text-align, center) !important;
    margin-bottom: 0.35rem !important;
    max-width: 95% !important;
    display: block !important;
}
.hero-slider-container.is-mobile-preview .hero-subtitle {
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
    text-align: var(--hero-text-align, center) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 0.5rem !important;
    max-width: 90% !important;
    opacity: 0.9;
}
.hero-slider-container.is-mobile-preview .hero-spec-pill {
    font-size: 10px !important;
    padding: 2px 7px !important;
    border-radius: 0.5rem !important;
}
.hero-slider-container.is-mobile-preview .hero-slide .flex-wrap.gap-3,
.hero-slider-container.is-mobile-preview .hero-slide .flex.items-center.gap-3 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
}
.hero-slider-container.is-mobile-preview .hero-btn-primary {
    font-size: 0.75rem !important;
    padding: 0.5rem 1.25rem !important;
    min-height: 38px !important;
    border-radius: 0.75rem !important;
}
.hero-slider-container.is-mobile-preview .hero-btn-secondary {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.875rem !important;
    min-height: 38px !important;
    border-radius: 0.75rem !important;
}
.hero-slider-container.is-mobile-preview .hero-nav-btn {
    display: none !important;
}
.hero-slider-container.is-mobile-preview .hero-thumbnails-bar {
    display: none !important;
}
.hero-slider-container.is-mobile-preview .hero-dots-container {
    bottom: 0.6rem !important;
}

/* Linear Progress Bar at bottom of hero */
.hero-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.hero-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    transition: width linear;
}

/* Dots Pagination */
.hero-dots-container {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
}

.hero-dot.is-active {
    width: 26px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Miniature Interactive Thumbnails */
.hero-thumbnails-bar {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-thumbnails-bar {
        display: flex;
    }
}

.hero-thumbnail-item {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.hero-thumbnail-item.is-active,
.hero-thumbnail-item:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.hero-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
