/* ============================================================
   Hero Banner - سلايدر احترافي أعلى الصفحة الرئيسية
   ملف مستقل بالكامل عن gallery-slider الحالي (المستخدم في معرض صور
   المطعم/المنتج) عشان محدش يتأثر بالتاني. بيستخدم نفس متغيرات
   التصميم العامة للموقع (الألوان/الظلال/الاستدارة) بس بكلاسات جديدة.
   ============================================================ */

.hero-banner-wrap {
    padding-top: 20px;
}

.hero-banner-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 420px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: #10131a;
    isolation: isolate;
}

.hero-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s var(--ease);
    display: block;
}
.hero-banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-banner-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #10131a;
}

/* تدرّج غامق أسفل السلايد عشان النص يفضل واضح فوق أي صورة/فيديو */
.hero-banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.62) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: start;
    padding: 28px 32px 46px;
    color: #fff;
    max-width: 640px;
}

.hero-banner-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.hero-banner-desc {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
    max-width: 560px;
}

.hero-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(11,95,255,.55);
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.hero-banner-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* بانر بدون رابط أو بدون عنوان/وصف/CTA — يفضل شغال كسلايدر صور/فيديو بسيط زي الوضع القديم */
.hero-banner-slide-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* ---------- أسهم Prev / Next ---------- */
.hero-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(15,17,23,.4);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-banner-arrow:hover { background: rgba(15,17,23,.65); }
.hero-banner-arrow:active { transform: translateY(-50%) scale(.94); }
.hero-banner-prev { right: 16px; }
.hero-banner-next { left: 16px; }

/* ---------- Indicators (Dots) ---------- */
.hero-banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}
.hero-banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-banner-dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* ---------- شريط تقدّم الـ Auto Play (اختياري بصريًا، بيدي إحساس احترافي) ---------- */
.hero-banner-progress {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,.18);
    z-index: 4;
    overflow: hidden;
}
.hero-banner-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
}
.hero-banner-progress-bar.animating {
    transition: width linear;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-banner-slider { height: 340px; }
    .hero-banner-title { font-size: 24px; }
}

@media (max-width: 640px) {
    .hero-banner-slider { height: 280px; border-radius: var(--radius-md); }
    .hero-banner-content { padding: 18px 18px 30px; max-width: 100%; }
    .hero-banner-title { font-size: 19px; margin-bottom: 6px; }
    .hero-banner-desc { font-size: 13px; margin-bottom: 12px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-banner-cta { padding: 9px 18px; font-size: 13px; }
    .hero-banner-arrow { width: 34px; height: 34px; font-size: 18px; }
    .hero-banner-prev { right: 8px; }
    .hero-banner-next { left: 8px; }
}

@media (max-width: 420px) {
    .hero-banner-slider { height: 220px; }
}