/* ==================================================
   FIX HEADER CENTER LOGO – MOBILE SAFE
================================================== */

/* الهيدر */
#fixed-header {
    position: relative;
}

/* حاوية العناصر */
#fixed-header .container {
    display: flex;
    align-items: center;
}

/* الشعار في المنتصف فقط */
#fixed-header .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20;
}

/* تأكيد بقاء أزرار الجوال في أماكنها */
#fixed-header .nav-link,
#fixed-header .navbar-toggler,
#fixed-header a[data-bs-toggle="offcanvas"] {
    position: relative;
    z-index: 30;
}

/* منع Bootstrap من سحب الشعار */
#fixed-header .navbar-brand.me-auto {
    margin-inline-end: 0 !important;
}

/* ===============================
   دمج الهيدر مع العنصر أسفله
================================ */

header,
#fixed-header,
#navigation-menu {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

header + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* ==================================================
   TRANSPARENT HEADER OVER HERO (FINAL)
================================================== */

/* جعل الهيدر فوق المحتوى */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* إزالة خلفية الهيدر */
#fixed-header {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* إزالة أي خلفية فرعية */
#fixed-header *,
#fixed-header .navbar,
#fixed-header .container {
    background: transparent !important;
}

/* الأيقونات والنصوص فوق الهيرو */
#fixed-header .nav-link,
#fixed-header i,
#fixed-header svg {
    color: #fff !important;
}

/* الشعار في المنتصف (كما هو الآن) */
#fixed-header .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

/* تأكيد بقاء أزرار الجوال */
#fixed-header a[data-bs-toggle="offcanvas"] {
    position: relative;
    z-index: 30;
}

/* ===============================
   تعويض الهيرو حتى لا يختفي تحته الهيدر
================================ */

/* أول عنصر بعد الهيدر (الهيرو بانر) */
header + * {
    padding-top: 90px;
}

/* موبايل */
@media (max-width: 768px) {
    header + * {
        padding-top: 70px;
    }
}
/* ===============================
   FORCE ORIGINAL IMAGE QUALITY
   Hero Slider Only
================================ */

#hero-slider-c1b40755-fd88-4eed-880e-1526eb4959b1 img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    image-rendering: auto;
    transform: none !important;
}

/* منع أي قص أو تحجيم من الحاوية */
#hero-slider-c1b40755-fd88-4eed-880e-1526eb4959b1 .carousel-item {
    height: auto !important;
}

/* تأكيد عدم فرض Ratio */
#hero-slider-c1b40755-fd88-4eed-880e-1526eb4959b1 .ratio,
#hero-slider-c1b40755-fd88-4eed-880e-1526eb4959b1 .ratio-16x9 {
    aspect-ratio: unset !important;
}
/* ====== توسيط شريط التصنيفات وجعله شفاف ====== */
#navigation-menu {
    background: transparent !important;
    position: absolute;
    top: 100%; /* تحت الهيدر مباشرة */
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 0 !important;
}

/* توسيط القائمة نفسها */
#navigation-menu .container {
    justify-content: center !important;
}

/* توسيط عناصر القائمة */
#navigation-menu .css-menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 32px;
    padding: 0;
    margin: 0;
}

/* لون النص أبيض */
#navigation-menu .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 6px 0;
}

/* أيقونة جميع التصنيفات */
#navigation-menu .nav-link i {
    color: #ffffff !important;
}

/* تأثير عند المرور */
#navigation-menu .nav-link:hover {
    opacity: 0.85;
}
#navigation-menu .nav-link {
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
/* ===============================
   عنصر الأقسام - تحويله إلى Grid
================================ */

/* توسيط عنوان العنصر (لو وُجد عنوان) */
.css-categories .d-flex {
    justify-content: center !important;
}

/* تعطيل خصائص السلايدر */
.css-categories .swiper-container {
    overflow: visible !important;
}

.css-categories .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    transform: none !important;
}

/* إلغاء خصائص السلايد */
.css-categories .swiper-slide {
    width: 100% !important;
    margin: 0 !important;
}

/* إخفاء الأسهم والنقاط */
.css-categories .swiper-button-next,
.css-categories .swiper-button-prev,
.css-categories .swiper-pagination {
    display: none !important;
}
/* ============================= */
/* 1️⃣ عنوان الأقسام في المنتصف */
/* ============================= */
.css-categories .d-flex {
    justify-content: center !important;
    text-align: center;
}

.css-categories h2 {
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* إزالة أزرار السلايدر */
.css-categories .swiper-button-next,
.css-categories .swiper-button-prev,
.css-categories .swiper-pagination {
    display: none !important;
}


/* ============================= */
/* 2️⃣ تحويل السلايدر إلى Grid */
/* ============================= */
.css-categories .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

/* تابلت */
@media (max-width: 992px) {
    .css-categories .swiper-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* جوال */
@media (max-width: 576px) {
    .css-categories .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}


/* ============================= */
/* 3️⃣ إزالة شكل الكارد نهائيًا */
/* ============================= */
.css-categories .card,
.css-categories .card-footer,
.css-categories .js-card-top {
    all: unset;
    display: block;
}


/* ============================= */
/* 4️⃣ تنسيق الصورة */
/* ============================= */
.css-categories img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}


/* ============================= */
/* 5️⃣ اسم التصنيف تحت الصورة */
/* ============================= */
.css-categories .card-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    color: #000;
}

/* إخفاء الأيقونة */
.css-categories .ti-circle-chevron-left {
    display: none;
}
/* ============================= */
/* توسيط البطاقات في الكمبيوتر */
/* ============================= */
@media (min-width: 992px) {
    .css-categories .swiper-wrapper {
        grid-template-columns: repeat(6, 200px);
        justify-content: center;
    }
}

/* ============================= */
/* الجوال: 3 بطاقات في الصف */
/* ============================= */
@media (max-width: 576px) {
    .css-categories .swiper-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* === Video Slider Wrapper === */
.css-video {
  overflow: hidden;
}

.css-video .container {
  max-width: 100%;
  padding: 0;
}

/* Slider Track */
.video-slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.6s ease;
  will-change: transform;
}

/* Each Video Item */
.video-slide {
  flex: 0 0 auto;
  width: 320px;
}

@media (max-width: 992px) {
  .video-slide {
    width: 260px;
  }
}

@media (max-width: 576px) {
  .video-slide {
    width: 80%;
  }
}

/* Remove ratio container limits */
.video-slide .ratio {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
}

/* Video Styling */
.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}