

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html{
  /* منع المتصفح من إظهار انيميشن التحديث Pull-to-Refresh أو التمدد المطاطي */
  overscroll-behavior-y: none;
  /* التأكد من إيقاف السكرول الافتراضي تماماً */
  overflow: hidden;
  height: 100%;
  width: 100%;
}
body {
  background-color: #0d0d0d;
  color: #fff;
  overflow: hidden;
  width: 100vw;
  height: 100vh;

  overscroll-behavior-y: none;
  /* التأكد من إيقاف السكرول الافتراضي تماماً */
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.cards-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  will-change: transform;
}

/*#card1 { background-color: #121212; z-index: 1; }*/
#card1 { background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)), url('images/review_nissan_card_1.jpg') center/cover no-repeat; z-index: 1; }
#card2 { background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)), url('images/review_nissan_card_2.jpg') center/cover no-repeat; z-index: 2; }
#card3 { background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)), url('images/review_nissan_card_3.jpg') center/cover no-repeat; z-index: 3; }
#card4 { background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)), url('images/review_nissan_card_4.jpg') center/cover no-repeat; z-index: 4; }
#card5 { background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)), url('images/review_nissan_card_5.jpg') center/cover no-repeat; z-index: 5; }
#card6 { background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)), url('images/review_nissan_card_6.jpg') center/cover no-repeat; z-index: 6; }
#card7 { background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1)), url('images/review_nissan_card_7.jpg') center/cover no-repeat; z-index: 7; }

.content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.sector-info { flex: 1; }
.sector-info h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.sector-info h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.sector-info p { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.9; line-height: 1.6; }

.step-number { font-size: clamp(2rem, 1vw, 0.6rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
@media (max-width: 868px) {
  .step-number { font-size: clamp(1.5rem, 1vw, 0.6rem); font-weight: 800; margin-bottom: 0.5rem; line-height: 1.2; }
}

.btn {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.8rem 2rem;
  background: #fff;
  color: #000;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}

.sector-image { flex: 1; display: flex; justify-content: center; align-items: center; }

.mockup-box {
  width: 100%;
  max-width: 340px;
  height: 440px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  text-align: center;
  padding: 1rem;
}

/* ===================================================
   شريط الـ Scrollbar الجانبي (على اليمين)
   =================================================== */
.scrollbar-track {
  position: fixed !important;
  right: 15px !important;    /* تثبيت جهة اليمين */
  left: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 6px !important;
  height: 220px !important;  /* ارتفاع رأسي ثابت مناسب */
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  z-index: 9999 !important;
  cursor: pointer;
  overflow: hidden;
}

.scrollbar-thumb {
  width: 100% !important;
  height: 25%;               /* سيتم تحديث الارتفاع أوتوماتيكيًا بالـ JS */
  background: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Responsive للموبايل */
@media (max-width: 868px) {
  .card {
    height: 100vh;
    padding: 1.5rem 0rem 1.5rem 0rem; /* إعطاء مساحة فوق وتحت للـ Header والـ Footer */
    overflow-y: auto;           /* تفعيل السكرول الداخلي عند زيادة المحتوى */
    -webkit-overflow-scrolling: touch;
  }
  .content { flex-direction: column; justify-content: center; text-align: center; gap: 1.5rem; }
  .sector-info { display: flex; flex-direction: column; align-items: center; }
  .mockup-box { height: 220px; max-width: 280px; font-size: 1.1rem; }

  /* تأكيد عدم تغيير مكان أو شكل الـ Scrollbar في الموبايل */
  .scrollbar-track {
    display: none !important;
    right: 15px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 220px !important;
  }
}


.mockup-img {
  width: 100%;
  max-width: 340px;
  height: 100%;
  object-fit: cover; /* لضمان ضبط أبعاد الصورة بدون مط أو تشويه */
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* ظل لإعطاء عمق للمشروع */
  display: block;
}

.mockup-img-clean {
  width: 100%;
  max-width: 340px;
  height: 100%;
  object-fit: cover; /* لضمان ضبط أبعاد الصورة بدون مط أو تشويه */
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.0); /* ظل لإعطاء عمق للمشروع */
  display: block;
}

/* التكيف مع شاشات الموبايل */
@media (max-width: 868px) {
  .mockup-img {
    height: 320px;
    max-width: 280px;
  }

  .mockup-img-clean {
    height: 320px;
    max-width: 280px;
  }
}









/* ===================================================
   Layout 3 Columns (Desktop & Mobile Adaptive)
   =================================================== */



.brand-logo-hero {
  max-width: 175px;
  height: auto;
  padding: 0;
  margin: 0;
}

.brand-logo {
  max-width: 175px;
  height: auto;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
}

.main-btn {
  grid-column: 1; 
  justify-self: start;
  margin-top: 1rem;
}

/* ضبط السهم داخل الزرار ليظهر على اليمين */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #03255c;
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
}

.btn-transparent {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-weight: bold;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: #000;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-weight: bold;
}

/* زر Back (شفاف أو بحدود) */
.btn-back {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* زر Next (أبيض بالكامل) */
.btn-next {
  background: #fff;
  color: #000;
}

.btn-next:hover {
  background: rgba(255, 255, 255, 0.85);
}

.laptop-container {
  position: relative;
  display: flex;
  flex-direction: column; /* جعل الصور تنزل تحت بعض */
  align-items: center;    /* سنترة الصور أفقياً في المنتصف */
  justify-content: center;
  gap: 1.5rem;            /* مسافة مناسبة بين اللوجو وصورة الموبايل */
  width: 100%;
  height: auto;           /* إلغاء الارتفاع الثابت القديم */
}

.laptop-container .laptop {
  position: relative;     /* تحويلها من absolute لـ relative لتترتب تلقائياً */
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  display: block;
  margin: 0 auto;         /* تأكيد السنترة */
}

.laptop {
  position: absolute;
  width: 180px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
}

.laptop-back {
  max-width: 180px;       /* حجم مناسب للوجو اللي فوق */
  height: auto;
}

.laptop-front {
  top: 50px;
  right: 10px;
  z-index: 2;
}

.laptop-swiper {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.laptop-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

/* حاوية السلايدر والأسهم */
.laptop-slider-wrapper {
  position: relative;
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-slider-wrapper .prev-arrow {
  left: 0px; /* أو تجربة قيم مثل 0 أو 15px بحسب مكان الشاشة */
  z-index: 10;
}

.laptop-slider-wrapper .next-arrow {
  right: 0px;
  z-index: 10;
}

.phones-container {
  position: relative;
  display: flex;
  flex-direction: column; /* جعل الصور تنزل تحت بعض */
  align-items: center;    /* سنترة الصور أفقياً في المنتصف */
  justify-content: center;
  gap: 1.5rem;            /* مسافة مناسبة بين اللوجو وصورة الموبايل */
  width: 100%;
  height: auto;           /* إلغاء الارتفاع الثابت القديم */
}

.phones-container .phone {
  position: relative;     /* تحويلها من absolute لـ relative لتترتب تلقائياً */
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  display: block;
  margin: 0 auto;         /* تأكيد السنترة */
}

.phone {
  position: absolute;
  width: 180px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
}

.phone-back {
  max-width: 180px;       /* حجم مناسب للوجو اللي فوق */
  height: auto;
}

.phone-front {
  top: 50px;
  right: 10px;
  z-index: 2;
}

/* حاوية السلايدر والأسهم */
.phone-slider-wrapper {
  position: relative;
  /*
  width: 100%;
  max-width: 480px;
  */
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-swiper {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.phone-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

/* القسم الأيمن (الريفيو) */
.quote-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
  text-align: left; /* محاذاة الاقتباس لليسار */
}

.author-info {
  text-align: left; /* محاذاة اسم وتفاصيل الكاتب لليسار */
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.author-info span {
  font-size: 0.95rem;
  opacity: 0.8;
}

.logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
/* ===================================================
   Responsive Layout (الموبايل)
   =================================================== */
/* ===================================================
   Responsive Layout (الموبايل)
   =================================================== */
@media (max-width: 992px) {
  /* 1. جعل قسم الموبايل واللوجو في المقدمة (Order: 2) */
  .sector-gallary {
    order: 2;
    width: 100%;
  }

  .phones-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: auto; /* إلغاء الارتفاع المحدود القديم */
  }

  /* إلغاء الـ Absolute positioning للصور في الموبايل */
  .phones-container .phone {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    display: block;
    margin: 0 auto;
  }

  /* تكبير لوجو نيسان ليظهر بوضوح في الأعلى */
  .phone-back {
    width: 150px;
    max-width: 65%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); /* ظل خفيف فقط للوضوح */
  }

  /* ضبط حجم صورة الموبايل */
  .phone-front {
    width: 170px;
    max-width: 65%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
  }



  .logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .logo-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .brand-logo-hero {
    max-width: 100px;
    height: auto;
    filter: none; /* إلغاء أي فلتر عكس ألوان */
  }

  .brand-logo {
    max-width: 150px;
    height: auto;
    filter: none; /* إلغاء أي فلتر عكس ألوان */
  }

  .features-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1rem;
    padding: 0;
  }

  .features-list li {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* 3. النص والريفيو (Order: 3) */
  .sector-description {
    order: 3;
    text-align: center;
    max-width: 90%;
  }

  .quote-text {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .author-info {
    text-align: center;
    margin-top: 0.3rem;
  }

  .author-info strong {
    font-size: 0.75rem;
  }

  .author-info span {
    font-size: 0.8rem;
  }

  /* 4. الزرار في الأسفل (Order: 4) */
  .main-btn {
    order: 4;
    grid-column: auto;
    justify-self: center;
    margin-top: 0.4rem;
    padding: 0.7rem 1.8rem;
    font-size: 0.85rem;
    width: auto;
  }
}





/* أسهم التنقل */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: transparent;
  border: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  margin: -3px;
  outline: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.7;
}

.slider-arrow:hover {
  opacity: 1;
}

/* رسم السهم النحيف بالـ CSS Borders */
.slider-arrow::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid #ffffff;  /* سمك ولون السهم */
  border-right: 2.5px solid #ffffff;
  border-radius: 2px;               /* حواف ناعمة خفيفة */
}

/* اتجاه السهم الشمال */
.prev-arrow {
  left: -35px;
}
.prev-arrow::before {
  transform: rotate(-135deg);
}

/* اتجاه السهم اليمين */
.next-arrow {
  right: -35px;
}
.next-arrow::before {
  transform: rotate(45deg);
}

/* تأثير حركة خفيفة عند الـ Hover */
.prev-arrow:hover {
  transform: translateY(-50%) translateX(-3px);
}
.next-arrow:hover {
  transform: translateY(-50%) translateX(3px);
}

/* ضبط المقاسات للموبايل داخل @media (max-width: 992px) */
@media (max-width: 992px) {
  .phone-slider-wrapper {
    position: relative;
    width: 220px; /* توسيع الحاوية المحيطة لتعطي مساحة للأسهم على الجوانب */
    margin: 0 auto;
    overflow: visible !important; /* يمنع عمل Mask أو قص للأسهم */
  }
  
  .prev-arrow { 
    left: -30px; /* أو محاذاتها داخل الحاوية */
    z-index: 30;
  }
  
  .next-arrow { 
    right: -30px; 
    z-index: 30;
  }
}




/* Card Slider Layout */
.card-slider-wrapper {
  position: relative;
  max-width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-swiper {
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-swiper .swiper-slide img {
  max-width: 100%;
  
  height: auto;
  display: block;
  object-fit: cover;
  user-select: none;
}

/* محاذاة أزرار التحكم للـ Card Slider */
.card-slider-wrapper .card-prev {
  left: -30px;
}

.card-slider-wrapper .card-next {
  right: -30px;
}

/* ضبط التكيف للموبايل */
@media (max-width: 868px) {
  .card-slider-wrapper {
    max-width: 66%;
    max-height: 25%
  }
  .card-slider-wrapper .card-prev { left: -22px; }
  .card-slider-wrapper .card-next { right: -22px; }
}

.content-card1 {
  max-width: 1280px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  align-items: center;
  gap: 2rem;
  padding: 0%;
  margin: 0%;
  direction: ltr;
}

/* القسم الأيسر */
.sector-brand {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0%;
  margin: 0%;
  justify-content: center;
  align-items: center;
}

.sector-paragraph {
  grid-column: 1;
  grid-row: 2;
  text-align: left;
}

/* 2. المنتصف (الموبايل المزدوج) */
.sector-gallary {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* 3. العمود الثالث (يمين) */
.sector-description {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}

/* حاوية تجمع الزرين أفقياً */
.sector-navigation {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0;
}

/* تنسيق عام لأزرار التنقل */
.sector-navigation .btn {
  margin-top: 0; /* إلغاء الـ margin الموروث */
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
}


/* ===================================================
   Responsive Layout للموبايل (content-card1)
   =================================================== */
@media (max-width: 992px) {
  .content-card1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-top: 10rem;
    padding-bottom: 4rem;
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* سكرول ناعم لنظام iOS */
    touch-action: pan-y;               /* إعلام المتصفح بالسماح بالسكرول الرأسي */
  }

  /* 1. اللوجوهات في الأعلى */
  .content-card1 .sector-brand {
    order: 1;
    align-items: center;
    width: 100%;
  }

  /* 2. الفقرة التعريفية تحت اللوجو */
  .content-card1 .sector-paragraph {
    order: 2;
    text-align: center;
    width: 100%;
  }

  /* 3. معرض الموبايل في المنتصف */
  .content-card1 .sector-gallary {
    order: 3;
    width: 100%;
  }

  /* 4. نص الريفيو */
  .content-card1 .sector-description {
    order: 4;
    text-align: center;
    width: 100%;
  }

  /* 5. أزرار التنقل في أسفل الشاشة */
  .content-card1 .sector-navigation {
    order: 5;
    justify-content: center;
    width: 100%;

  }
}
/* ===================================================
   Layout 3 Columns for Card 2 (Desktop & Mobile)
   =================================================== */

.content-card2 {
  max-width: 1280px;
  width: 100%;
  display: grid;
  /* 3 أعمدة: الهيدر - الصورة - الأزرار والخطوات */
  grid-template-columns: 1.1fr 1fr 1.1fr;
  grid-template-rows: auto auto; /* صفين للعمود الأخير */
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  direction: ltr;
}

/* 1. العمود الأيسر: الهيدر يمتد على الصفين */
.content-card2 .sector-header {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.content-card2 .sector-header h3 {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.content-card2 .sector-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.content-card2 .sector-header p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* 2. العمود الأوسط: الصورة تمتد على الصفين */
.content-card2 .sector-image {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3. العمود الأيمن العلوي: القائمة والخطوات */
.content-card2 .sector-steps {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

/* 4. العمود الأيمن السفلي: أزرار التنقل */
.content-card2 .sector-navigation {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  align-self: flex-start;
}

/* ===================================================
   Responsive Layout للموبايل (content-card2)
   =================================================== */
@media (max-width: 992px) {
  .content-card2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    /*vertical-align: top;*/
    padding-top: 0rem;
    padding-bottom: 4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* سكرول ناعم لنظام iOS */
    touch-action: pan-y;               /* إعلام المتصفح بالسماح بالسكرول الرأسي */
  }

  /* ترتيب العناصر في الشاشات الصغيرة (Mobile Order) */
  
  /* 1. الهيدر والنصوص في البداية */
  .content-card2 .sector-header {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* 2. الصورة في المنتصف */
  .content-card2 .sector-image {
    order: 2;
    width: 100%;
  }
  .content-card2 .sector-image img {
    max-height: 100%;
  }

  /* 3. الخطوات والقائمة */
  .content-card2 .sector-steps {
    order: 3;
    align-items: center;
    width: 100%;
  }

  .content-card2 .steps-index {
    align-items: center;
  }

  /* 4. أزرار التنقل في نهاية الصفحة */
  .content-card2 .sector-navigation {
    order: 4;
    justify-content: center;
    width: 100%;
  }
}

/* ===================================================
   Layout 2 Columns for Card 3 (Desktop & Mobile)
   =================================================== */
/* ===================================================
   Layout 2 Columns for Card 3 (Based on Wireframe)
   =================================================== */

.content-card3 {
  max-width: 1280px;
  width: 100%;
  display: grid;
  /* عمودين: أيسر للمحتوى وأيمن للصورة */
  grid-template-columns: 1fr 1.2fr;
  /* 3 صفوف في العمود الأيسر */
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding: 0 2rem;
  direction: ltr;
}

/* 1. العمود الأيسر - الصف الأول */
.content-card3 .sector-info {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.content-card3 .sector-info h3 {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.content-card3 .sector-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.content-card3 .sector-info p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* 2. العمود الأيسر - الصف الثاني */
.content-card3 .sector-steps {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 3. العمود الأيسر - الصف الثالث */
.content-card3 .sector-navigation {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* 4. العمود الأيمن: الصورة تمتد على الصفوف الثلاثة */
.content-card3 .sector-image {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ===================================================
   Responsive Layout للموبايل (content-card3)
   =================================================== */
@media (max-width: 992px) {
  .content-card3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    padding-top: 0rem;
    padding-bottom: 4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* سكرول ناعم لنظام iOS */
    touch-action: pan-y;               /* إعلام المتصفح بالسماح بالسكرول الرأسي */
  }

  .content-card3 .sector-info {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .content-card3 .sector-steps {
    order: 3;
    align-items: center;
    width: 100%;
  }

  .content-card3 .steps-index {
    align-items: center;
  }

  .content-card3 .sector-image {
    order: 2;
    /*max-height: 33%;*/
    width: 100%;
  }
  .content-card3 .sector-image img {
    max-height: 100%;
  }

  .content-card3 .sector-navigation {
    order: 4;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
}
/* ===================================================
   Layout 2 Columns for Card 4 (Desktop & Mobile)
   =================================================== */
/* ===================================================
   Layout 2 Columns for Card 4 (Based on Wireframe)
   =================================================== */

.content-card4 {
  max-width: 1280px;
  width: 100%;
  display: grid;
  /* عمودين: أيسر للصورة وأيمن للمحتوى */
  grid-template-columns: 1.2fr 1fr;
  /* 3 صفوف في العمود الأيمن */
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding: 0 2rem;
  direction: ltr;
}

/* 1. العمود الأيسر: الصورة تمتد على الصفوف الثلاثة */
.content-card4 .sector-image {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* 2. العمود الأيمن - الصف الأول: المعلومات للنص */
.content-card4 .sector-info {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.content-card4 .sector-info h3 {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.content-card4 .sector-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.content-card4 .sector-info p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* 3. العمود الأيمن - الصف الثاني: الخطوات */
.content-card4 .sector-steps {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 4. العمود الأيمن - الصف الثالث: أزرار التنقل */
.content-card4 .sector-navigation {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ===================================================
   Responsive Layout للموبايل (content-card4)
   =================================================== */
@media (max-width: 992px) {
  .content-card4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    padding-top: 0rem;
    padding-bottom: 4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* سكرول ناعم لنظام iOS */
    touch-action: pan-y;               /* إعلام المتصفح بالسماح بالسكرول الرأسي */
  }

  .content-card4 .sector-info {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .content-card4 .sector-image {
    order: 2;
    max-height: 33%;
    width: 100%;
  }
  .content-card4 .sector-image img {
    max-height: 100%;
  }
  .content-card4 .sector-steps {
    order: 3;
    align-items: center;
    width: 100%;
  }

  .content-card4 .steps-index {
    align-items: center;
  }

  .content-card4 .sector-navigation {
    order: 4;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
}
/* ===================================================
   Single Column Layout for Card 5 (Desktop & Mobile)
   =================================================== */

/* ===================================================
   Single Column Layout for Card 5 (Based on Wireframe)
   =================================================== */

/* ===================================================
   Single Column Layout for Card 5 (Desktop & Mobile)
   =================================================== */

.content-card5 {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.2rem;
  padding: 0 2rem;
  margin: 0 auto;
  direction: ltr;
}

/* تحديد الترتيب الافتراضي للشاشات الكبيرة (Desktop Orders) */
.content-card5 .sector-info {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.content-card5 .sector-info h3 {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.content-card5 .sector-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.content-card5 .sector-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 650px;
}

.content-card5 .sector-image {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.content-card5 .sector-image img {
  max-height: 35vh;
  object-fit: contain;
  width: auto;
  border-radius: 12px;
}

.content-card5 .sector-description {
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 650px;
  width: 100%;
}

.content-card5 .sector-description .quote-text {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.content-card5 .sector-description .author-info {
  text-align: center;
  margin-top: 0.3rem;
}

.content-card5 .sector-navigation {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  margin-top: 0.5rem;
}

/* ===================================================
   Responsive Layout للموبايل (content-card5)
   =================================================== */
@media (max-width: 992px) {
  .content-card5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    padding-top: 0rem;
    padding-bottom: 4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* سكرول ناعم لنظام iOS */
    touch-action: pan-y;               /* إعلام المتصفح بالسماح بالسكرول الرأسي */
  }

  /* 💡 هنا يمكنك تغيير الأرقام لضبط الترتيب في الموبايل كما تريد */
  .content-card5 .sector-info {
    order: 1; /* 1. النصوص والمعلومات */
  }

  .content-card5 .sector-image {
    order: 2; /* 2. الصورة */

  }

  .content-card5 .sector-image img {
    max-height: 100%;
  }

  .content-card5 .sector-description {
    order: 3; /* 3. الاقتباس والريفيو */
  }

  .content-card5 .sector-description .quote-text {
    font-size: 0.82rem;
  }

  .content-card5 .sector-navigation {
    order: 4; /* 4. أزرار التنقل */
  }
}

/* ===================================================
   Layout 2 Columns for Card 6 (Desktop & Mobile)
   =================================================== */
/* ===================================================
   Layout 2 Columns for Card 6 (Based on Wireframe)
   =================================================== */

.content-card6 {
  max-width: 1280px;
  width: 100%;
  display: grid;
  /* عمودين: أيسر للمحتوى وأيمن للصورة */
  grid-template-columns: 1fr 1.2fr;
  /* 3 صفوف في العمود الأيسر */
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding: 0 2rem;
  direction: ltr;
}

/* 1. العمود الأيسر - الصف الأول: المعلومات والنص */
.content-card6 .sector-info {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.content-card6 .sector-info h3 {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.content-card6 .sector-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.content-card6 .sector-info p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* 2. العمود الأيسر - الصف الثاني: الخطوات */
.content-card6 .sector-steps {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 3. العمود الأيسر - الصف الثالث: أزرار التنقل */
.content-card6 .sector-navigation {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* 4. العمود الأيمن: الصورة تمتد على الصفوف الثلاثة */
.content-card6 .sector-image {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ===================================================
   Responsive Layout للموبايل (content-card6)
   =================================================== */
@media (max-width: 992px) {
  .content-card6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    padding-top: 0rem;
    padding-bottom: 4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* سكرول ناعم لنظام iOS */
    touch-action: pan-y;               /* إعلام المتصفح بالسماح بالسكرول الرأسي */
  }

  .content-card6 .sector-info {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .content-card6 .sector-steps {
    order: 3;
    align-items: center;
    width: 100%;
  }

  .content-card6 .steps-index {
    align-items: center;
  }

  .content-card6 .sector-image {
    order: 2;
    width: 100%;
    max-height: 33%;
  }

  .content-card6 .sector-image img {
    max-height: 100%;
  }

  .content-card6 .sector-navigation {
    order: 4;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
}
/* ===================================================
   Layout 3 Columns for Card 7 (Desktop & Mobile)
   =================================================== */

.content-card7 {
  max-width: 1280px;
  width: 100%;
  display: grid;
  /* 3 أعمدة: المعلومات - الصورة - الخطوات والأزرار */
  grid-template-columns: 1fr 1fr 1.1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  direction: ltr;
}

/* 1. العمود الأيسر: النصوص يمتد على الصفين */
.content-card7 .sector-info {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.content-card7 .sector-info h3 {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.content-card7 .sector-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.content-card7 .sector-info p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* 2. العمود الأوسط: الصورة تمتد على الصفين */
.content-card7 .sector-image {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3. العمود الأيمن (علوي): الخطوات */
.content-card7 .sector-steps {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

/* 4. العمود الأيمن (سفلي): أزرار التنقل */
.content-card7 .sector-navigation {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  align-self: flex-start;
}


/* ===================================================
   Responsive Layout للموبايل (content-card7)
   =================================================== */
@media (max-width: 992px) {
  .content-card7 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    padding-top: 0rem;
    padding-bottom: 4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* سكرول ناعم لنظام iOS */
    touch-action: pan-y;               /* إعلام المتصفح بالسماح بالسكرول الرأسي */
  }

  /* ترتيب العناصر في الشاشات الصغيرة (Order) */
  .content-card7 .sector-info {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .content-card7 .sector-image {
    order: 2;
    width: 100%;
    max-height: 33%;
  }

  .content-card7 .sector-image img {
    max-height: 100%;
  }

  .content-card7 .sector-steps {
    order: 3;
    align-items: center;
    width: 100%;
  }

  .content-card7 .steps-index {
    align-items: center;
  }

  .content-card7 .sector-navigation {
    order: 4;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
}
/* تنسيق قائمة الخطوات (الفهرس) لكارت 2 */
/* تنسيق قائمة الخطوات بعلامة صح */
/* تعديل القائمة لتكون محاذاة لليسار وملاصقة للمسافة المطلوبة */
.steps-index {
  list-style: none;
  margin: 0;                   /* إزالة margin: 1.5rem auto التي كانت تسبب التوسيط */
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* محاذاة العناصر لبداية العمود */
  justify-content: center;
  gap: 0.8rem;
}

.steps-index li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

/* علامة الصح */
.steps-index li::before {
  content: "✓";
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}








/* ===================================================
   Fixed Footer
   =================================================== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  /*background: rgba(0, 0, 0, 0.4);*/ /* خلفية شبه شفافة تناسب التصميم */
  /*backdrop-filter: blur(8px);*/       /* تأثير بلر ناعم خلف الفوتر */
  /*-webkit-backdrop-filter: blur(8px);*/
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 2rem;
  z-index: 9999;                   /* لضمان ظهوره دائماً فوق الكروت */
  /*border-top: 1px solid rgba(255, 255, 255, 0.08);*/
}

.site-footer p {
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  margin: 0;
  opacity: 0.9;
}

.site-footer p strong {
  font-weight: 700;
}

/* ضبط المسافة للموبايل */
@media (max-width: 868px) {
  .site-footer {
    justify-content: center; /* سنترة النص في الشاشات الصغيرة */
    padding: 0 1rem;
    height: 28px;
    display: none;
  }
  .site-footer p {
    font-size: 0.75rem;
    display: none;
  }
}



/* ===================================================
   Fixed Header
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;                     /* ارتفاع رفيع متناسق */
  /*background: rgba(0, 0, 0, 0.4);*/   /* خلفية شفافة تتماشى مع الفوتر */
  /*backdrop-filter: blur(10px);*/        /* تأثير بلر ناعم خلف الـ Header */
  /*-webkit-backdrop-filter: blur(10px);*/
  display: flex;
  align-items: center;
  justify-content: center;      /* محاذاة اللوجو لليسار */
  padding: 0 2rem;
  z-index: 9999;                     /* لضمان ظهوره فوق جميع العناصر */

}

.site-header .logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header .site-logo {
  height: 32px;                     /* الحجم المناسب للوجو ليناسب الـ Header */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.site-header .site-logo:hover {
  transform: scale(1.03);           /* تأثير تفاعلي بسيط عند الوقوف على اللوجو */
}

/* ضبط المسافات للشاشات الصغيرة */
@media (max-width: 868px) {
  .site-header {
    height: 52px;
    padding: 0 1rem;
    justify-content: flex-start; 
  }
  
  .site-header .site-logo {
    height: 20px;
  }
}





/* ===================================================
   Lightbox (Image Preview Overlay)
   =================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000; /* أعلى من الـ Header والـ Scrollbar */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content img {
  transform: scale(1);
}

/* زر إغلاق X */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  
  /* سنترة محاذاة دقيقة جداً */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  
  z-index: 10001;
  transition: background 0.3s ease, transform 0.2s ease;
}

.lightbox-close svg {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
/* تمييز الصور القابلة للنقر */
.swiper-slide img,
.sector-image img.mockup-img,
.sector-image img.mockup-img-clean {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.swiper-slide img:hover,
.sector-image img.mockup-img:hover {
  filter: brightness(1.08);
}


img.zoomable {
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

img.zoomable:hover {
  filter: brightness(1.08);
}


/* --- الوضع الافتراضي (الشرائح والشاشات الكبيرة) --- */

/* إظهار عنصر الديسكتاوب */
.desktop-only {
  display: block; /* أو flex / grid حسب تصميمك */
}

/* إخفاء عنصر الميديا/الهاتف افتراضياً */
.mobile-only {
  display: none;
}

/* --- وضع الميديا (الشاشات التي عرضها 768px أو أقل) --- */
@media (max-width: 768px) {
  /* إخفاء عنصر الديسكتاوب */
  .desktop-only {
    display: none;
  }

  /* إظهار عنصر الميديا */
  .mobile-only {
    display: block; /* أو flex / grid حسب تصميمك */
  }
}