/* ---- بداية كود CSS الموحد (مع تصغير خط البانر) ---- */

/* == تنسيقات الحاويات الرئيسية == */
.image-banner-container {
  position: relative;               /* ضروري لتحديد موقع النص المتراكب */
  direction: rtl;                   /* اتجاه المحتوى */
  margin-bottom: 25px;              /* مسافة أسفل كل قسم */
}

.image-banner-container.two-images {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 2.5%;
}

.image-banner-container.single-image {
  max-width: 1450px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 2px;
  overflow: hidden;
  border-radius: 12px;
}

/* == تنسيقات حاوية الصورة الفردية (في قسم الصورتين) == */
.image-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  border-radius: 12px;
  overflow: hidden;
}

/* == تنسيقات الصور العامة == */
.image-banner-container img {
  display: block;
  width: 100%;
  height: auto;
}

/* == تنسيقات النص المتراكب الموحدة == */
.text-overlay {
  position: absolute;
  bottom: 20px;
  right: 25px;
  left: 25px;
  z-index: 10;
  color: #ffffff;          /* الأبيض */
  text-shadow: none;
  font-family: sans-serif;
  text-align: right;
  line-height: 1.5;
  padding: 15px;
}

/* == تنسيقات العناوين داخل النص المتراكب == */
.text-overlay h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.3em;
  font-weight: bold;
}

/* == تنسيقات الفقرات داخل النص المتراكب == */
.text-overlay p {
  margin: 0;
  color: #ffffff;
  font-size: 1em;
}

/* == تنسيقات خاصة بنص البانر (صورة واحدة) == */
.image-banner-container.single-image .text-overlay {
  font-size: 1.2em;  /* حجم خط أصغر */
}

/* ==== إضافة سلايدر السيارات ==== */
:root{
  --primary:#000000;   /* النص داخل البطاقة والعنوان بالأسود */
  --card-bg:#ffebe4;   /* خلفية البطاقة */
}

/* إعادة ضبط عامة */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:'Tajawal',sans-serif;
}

/* حاوية السلايدر */
.section-cars{
  position:relative;
  width:100%;
  padding:40px 0;
  overflow:hidden;
}

/* عنوان السلايدر */
.section-cars__title{
  text-align:center;
  color:var(--primary);
  font-size:2.2rem;
  font-weight:800;
  margin-bottom:30px;
  line-height:1.35;
}

/* أزرار التنقّل (الوضع الأساسي) */
.nav-btn{
  position:absolute;
  top:50px;
  width:46px;
  height:46px;
  border:none;
  border-radius:12px;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.05);
  font-size:1.3rem;
  color:var(--primary);
}
.nav-prev{left:50px;}
.nav-next{left:110px;transform:scaleX(-1);}

/* مسار البطاقات */
.cars-track{
  display:flex;
  gap:24px;
  padding:0 50px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  scrollbar-width:none;
}
.cars-track::-webkit-scrollbar{display:none;}

/* البطاقة */
.card{
  flex:0 0 260px;
  background:var(--card-bg);
  border-radius:18px;
  padding:24px 18px 32px;
  text-align:center;
  scroll-snap-align:start;
}
.card img{
  max-width:100%;
  height:160px;
  object-fit:contain;
  margin-bottom:24px;
}
.card__title{
  font-size:1.25rem;
  color:var(--primary);
  font-weight:700;
  margin-bottom:18px;
}

/* بيانات الركّاب والحقائب */
.meta{
  display:flex;
  justify-content:center;
  gap:16px;
  font-size:.9rem;
  color:var(--primary);
}
.meta span{
  display:flex;
  align-items:center;
  gap:4px;
}
.meta svg{
  width:16px;
  height:16px;
  fill:currentColor;
}

/* ==== تحسين مظهر أزرار السلايدر ==== */
.section-cars{position:relative;} /* تأكيد */

.nav-btn{
  top:50%;                          /* وسط السلايدر عموديًا */
  transform:translateY(-50%);
  width:40px;
  height:40px;
  font-size:1.15rem;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  z-index:5;
  cursor:pointer;
}
.nav-prev{left:12px;}
.nav-next{right:12px;transform:translateY(-50%) scaleX(-1);}
/* === تكبير بانر الصورة الواحدة على الجوال === */
@media (max-width:600px){
  .image-banner-container.single-image{padding:0;}
  .image-banner-container.single-image img{
    height:300px;                /* ارفـع أو اخفض الرقم كما تريد */
    width:100%;
    object-fit:cover;
  }
  .image-banner-container.single-image .text-overlay{font-size:1.1em;}
}