/* =========================================================
   1) إعدادات عامة مشتركة لكل الصفحات العربية
   ========================================================= */
@font-face {
  font-family: 'ArabicFont';
  src: url('../../assets/fonts/arabic-font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  direction: rtl;
  unicode-bidi: embed;
}

body {
  /* لو حبيت ترجع للخط العربي بدل سيغو اشطب السطر اللي بعده */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  text-align: right;
}

#home{
            background: url('assets/img/haram.webp') center/cover no-repeat;
        }

/* =========================================================
   2) الـ Navbar
   عندك نوعين: داكن (لـ home) و فاتح (لباقي الصفحات)
   ========================================================= */

/* 2-أ) Navbar داكن - للصفحة الرئيسية home.html */
.navbar-dark-custom {
  transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 0;
}

.navbar-dark-custom.scrolled {
  background-color: var(--sec-color);
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark-custom .nav-logo {
  height: 40px;
  filter: invert(100%) brightness(200%);
  transition: height 0.3s ease-in-out;
}

.navbar-dark-custom.scrolled .nav-logo {
  height: 30px;
}

.navbar-dark-custom .nav-link {
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  padding-bottom: 5px;
  color:var(--bs-white);
}

.navbar-dark-custom .nav-link:hover {
  color: var(--pri-color);
  transform: translateY(-2px);
}

.navbar-dark-custom .nav-link.active {
  font-weight: 600;
  color: var(--pri-color);
}

.navbar-dark-custom .nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background-color: var(--pri-color);
  transition: width 0.3s ease-in-out;
  margin: auto;
}

.navbar-dark-custom .nav-link:hover::after {
  width: 100%;
}

/* 2-ب) Navbar فاتح - لبقية الصفحات (services, team, gallary, brands) */
.navbar-light-custom {
  transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 12px 0;
  backdrop-filter: blur(10px);
}

.navbar-light-custom.scrolled {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-light-custom .nav-link {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.navbar-light-custom.scrolled .nav-link {
  color: #111;
}

.navbar-light-custom .nav-link:hover {
  color: var(--pri-color);
  transform: translateY(-2px);
}

.navbar-light-custom .nav-link.active {
  font-weight: 600;
  color: var(--pri-color);
}

.navbar-light-custom .nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background-color: var(--pri-color);
  transition: width 0.3s ease-in-out;
  margin: auto;
}

.navbar-light-custom .nav-link:hover::after {
  width: 100%;
}

/* موبايل */
@media (max-width: 992px) {
  .navbar-light-custom {
    background-color: rgba(255, 255, 255, 1);
  }
  .navbar-light-custom .nav-link {
    color: #111 !important;
  }
  .navbar-light-custom .collapse {
    border-top: 3px solid var(--pri-color);
    border-bottom: 3px solid var(--pri-color);
  }
}

/* شعار موحّد */
.nav-logo {
  height: 40px;
  transition: height 0.3s ease-in-out;
}

.navbar.scrolled .nav-logo {
  height: 35px;
}

/* =========================================================
   3) الصفحة الرئيسية home.html
   ========================================================= */
#home {
  background: url('../../assets/img/haram.webp') center/cover no-repeat;
}

/* =========================================================
   4) services.html - أقسام الحج والعمرة
   ========================================================= */
.hajj-section,
.umrah-section {
  background: linear-gradient(135deg, #f8f9fa, #f4f6f8);
  padding: 60px 10px;
  border-radius: 0.75rem;
}

/* =========================================================
   5) gallary.html - المعرض
   ========================================================= */
.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  animation: fadeInUp 1s ease-in-out;
}

.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.1);
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 10px;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: rotate(2deg);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   6) brands.html - البراندات
   ========================================================= */
.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--pri-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.brand-name {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #555;
  margin-top: 5px;
  text-transform: uppercase;
}

.tab-pane {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.brand-snippet {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-pills .nav-link.active {
  background-color: var(--sec-color) !important;
  border-radius: 50%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-pills .nav-link.active::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.nav-pills .nav-link.active img {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

/* =========================================================
   7) عناصر متكررة ظهرت في أكثر من صفحة
   ========================================================= */

/* زر الرجوع للأعلى – موجود في أكثر من صفحة */



/* لو حبيت تخلي أي كونتينر بنمط ظل خفيف متكرر */
.bbp {
  /* ظهر في أكثر من صفحة ككلاس DIV عام */
}

/* تأكد إن الألوان var(--pri-color) و var(--sec-color) معرفة في color.css */



.carousel-item img {
            width: 100%;
            height: 400px;
            object-fit: contain;
            border-radius: 10px;
            background-color: #000;
        }

        /* ===== Timeline Wrapper ===== */
.timeline {
            position: relative;
            max-width: 1000px;
            margin: auto;
            padding: 50px 0;
        }

        /* ===== Timeline Line (بتدرج لوني جذاب) ===== */
.timeline-line {
            position: absolute;
            top: 0;
            left: 60px;
            width: 4px;
            height: 0;
            /* تدرج من لونك الثانوي إلى لونك الأساسي: عدل حسب ما تريد */
            background: linear-gradient(var(--sec-color), var(--pri-color));
            transition: height 0.4s ease-in-out;
            border-radius: 2px;
        }

        /* ===== Timeline Item ===== */
.timeline-item {
            position: relative;
            display: flex;
            align-items: center;
            margin-bottom: 60px;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        /* عند إضافة فئة visible للعنصر */
.timeline-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ===== Icon ===== */
.timeline-icon {
            position: absolute;
            left: 30px;
            width: 60px;
            height: 60px;
            background: var(--pri-color);
            color: #fff;
            border-radius: 50%;
            border: 2px solid #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
            transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
            z-index: 2;
        }

        /* عند ظهور العنصر: الأيقونة تتوهج */
.timeline-item.visible .timeline-icon {
            background: var(--sec-color);
            transform: scale(1.15);
        }

        /* ===== Timeline Content ===== */
.timeline-content {
            position: relative;
            background: #fff;
            padding: 20px;
            margin-left: 100px;
            /* إبعاد المحتوى عن الأيقونة */
            border-radius: 10px;
            box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
            transform: translateX(-20px);
            opacity: 0;
            transition: transform 0.6s ease-out, opacity 0.6s ease-out;
        }

        /* عند الظهور الكامل */
.timeline-item.visible .timeline-content {
            transform: translateX(0);
            opacity: 1;
        }

        /* تأثير hover يحسن شكل البطاقة */
.timeline-content:hover {
            box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.15);
        }

        /* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
.timeline-line {
                left: 12px;
            }

.timeline-icon {
                left: 0;
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

.timeline-content {
                margin-left: 70px;
            }
        }
