/* ==========================================================
       1. الخلفية الثابتة والهوية الهندسية
    ========================================================== */

    [hidden] { display: none !important; }
    :focus-visible { outline: 3px solid #122A6B; outline-offset: 4px; }

    .ambient-canvas {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
      background: #122A6B !important;
    }

    .cursor-spotlight,
    .architectural-grid,
    .topographic-waves-left,
    .topographic-waves-right {
      display: none !important;
    }
/* قسم الطبيب — منقول من المصدر الأصلي */

.doctor-section {

      position: relative;

      z-index: 20;

      /* استعادة حافة القسم البيضاء المنحنية وظلها عند خروجه من الفيديو */
      border-radius: 40px 0 0 0;

      background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

      color: #101112;

      padding: 95px 0 90px;

      overflow: hidden;
      scroll-margin-top: 110px;

      box-shadow: 0 -25px 60px rgba(9, 26, 56, 0.35);

    }



    /* الموجة الزخرفية الكحلية في الزاوية العلوية اليسرى كما في الصورة */

    .corner-wave-tl {

      position: absolute;

      top: 0;

      left: 0;

      width: 240px;

      height: 240px;

      pointer-events: none;

      z-index: 1;

    }



    /* العلامة المائية الكبيرة والخفيفة للسن في جهة اليمين كما في الصورة */

    .tooth-watermark-right {

      position: absolute;

      top: 45px;

      right: -35px;

      width: 270px;

      height: 270px;

      opacity: 0.045;

      pointer-events: none;

      z-index: 1;

    }



    .doctor-container {

      max-width: 1220px;

      margin: 0 auto;

      padding: 0 28px;

      position: relative;

      z-index: 2;

    }



    /* الشبكة العلوية: النص في اليمين + صورة الدكتور في اليسار */

    .doctor-top-grid {

      display: grid;

      grid-template-columns: 1.25fr 0.75fr;

      gap: 56px;

      align-items: center;

      margin-bottom: 64px;

    }



    /* العمود الأيمن: النصوص وضربة الفرشاة والأعمدة الثلاثة */

    .doctor-info-side {

      text-align: right;

    }



    /* معلومات وهوية الدكتور (الاسم ثنائي اللغة واللقب والشهادة) */

    .doctor-main-name {
      font-size: clamp(28px, 3.8vw, 46px);
      font-weight: 800;
      color: #091A38;
      line-height: 1.3;
      margin-bottom: 12px;
      letter-spacing: -0.5px;
    }

    .doctor-name-en {
      font-weight: 600;
      font-size: 0.9em;
      color: #122A6B;
      display: inline-block;
      direction: ltr;
    }

    .doctor-sub-role {
      font-size: clamp(17px, 2.1vw, 22px);
      font-weight: 600;
      color: #475569;
      margin-bottom: 28px;
      line-height: 1.5;
    }

    .doctor-degree {
      color: #122A6B;
      font-weight: 700;
      direction: ltr;
      display: inline-block;
    }

    .doctor-cta-wrap {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .btn-doctor-booking {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      min-height: 54px;
      padding: 13px 32px;
      background: #122A6B;
      color: #FFFFFF;
      border-radius: 9999px;
      font-size: 16px;
      font-weight: 700;
      text-decoration: none;
      box-shadow: 0 10px 25px rgba(18, 42, 107, 0.2);
      transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    }

    .btn-doctor-booking:hover {
      background: #091A38;
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(9, 26, 56, 0.3);
      color: #FFFFFF;
    }

    .btn-doctor-booking svg {
      stroke: #FFFFFF !important;
      transition: transform 0.25s ease;
    }

    .btn-doctor-booking:hover svg {
      transform: translateX(-4px);
    }



    /* العمود الأيسر: كادر صورة الدكتور مع الحافة الكحلية البارزة في الأسفل واليسار */

    .doctor-photo-side {

      display: flex;

      justify-content: center;

    }



    .photo-frame-container {

      position: relative;

      width: 100%;

      max-width: 380px;

    }



    /* الكتلة الكحلية البارزة خلف الزاوية السفلية اليسرى للصورة */

    .photo-offset-accent {

      position: absolute;

      bottom: -16px;

      left: -16px;

      width: 85%;

      height: 85%;

      background-color: #122A6B;

      border-radius: 26px;

      z-index: 0;

    }



    .photo-bordered-box {

      position: relative;

      z-index: 1;

      border-radius: 22px;

      overflow: hidden;

      border: 4px solid #122A6B;

      background-color: #F8FAFC;

      aspect-ratio: 4 / 4.7;

      box-shadow: 0 20px 45px rgba(18, 42, 107, 0.12);

    }



    .photo-bordered-box img {

      width: 100%;

      height: 100%;

      object-fit: cover;

      object-position: top center;

      display: block;

    }



    /* ==========================================================
   التجاوب لقسم الطبيب فقط
   يبقى تخطيط الطبيب أفقياً على الشاشات المتوسطة والكبيرة،
   ولا يتحول إلى عمود واحد إلا على شاشات الجوال.
   ========================================================== */

@media (min-width: 641px) and (max-width: 900px) {
  .doctor-container {
    padding-inline: 22px;
  }

  .doctor-top-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
    gap: 24px;
  }

  .doctor-info-side {
    text-align: right;
  }

  .photo-frame-container {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .doctor-section {
    padding: 52px 0 48px;
  }

  .doctor-container {
    padding-inline: 20px;
  }

  .doctor-top-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 36px;
  }

  /* على الجوال: الصورة في الأعلى وتحتها المعلومات مباشرة */
  .doctor-photo-side {
    order: 1;
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .doctor-info-side {
    order: 2;
    text-align: center;
  }

  .doctor-main-name {
    font-size: clamp(21px, 5.5vw, 28px);
    margin-bottom: 8px;
  }

  .doctor-name-en {
    display: block;
    margin-top: 4px;
    font-size: 0.88em;
  }

  .doctor-sub-role {
    font-size: 15.5px;
    margin-bottom: 22px;
  }

  .doctor-cta-wrap {
    justify-content: center;
  }

  .btn-doctor-booking {
    width: 100%;
    max-width: 300px;
  }
}

/* حواف انتقال القسم من الفيديو على الشاشات الأصغر */
@media (max-width: 900px) {
  .doctor-section {
    border-radius: 32px 32px 0 0;
  }
}

@media (max-width: 640px) {
  .doctor-section {
    border-radius: 27px 27px 0 0;
  }
}
/* ==========================================================
       5. الهيرو: يبدأ مباشرة بالعنوان بلا عبارة تعريفية
    ========================================================== */

    .hero-section {
      position: relative;
      z-index: 10;
      width: 100%;
      background: #122A6B !important;
    }

    .hero-copy-container {
      width: min(100%, 1120px);
      margin: 0 auto;
      padding: 137px 24px 64px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .hero-headline {
      max-width: 1000px;
      margin-bottom: 15px;
      font-size: clamp(36px, 5vw, 65px);
      font-weight: 700;
      line-height: 1.35;
      letter-spacing: -0.7px;
      color: #FFFFFF !important;
      background: none !important;
      -webkit-text-fill-color: #FFFFFF !important;
    }

    .hero-description {
      max-width: 760px;
      margin-bottom: 20px;
      color: rgba(255, 255, 255, 0.9);
      font-size: clamp(14px, 1.35vw, 17px);
      font-weight: 400;
      line-height: 2;
    }
      color: var(--text-silver);
      font-size: clamp(14px, 1.35vw, 17px);
      font-weight: 400;
      line-height: 2;
    }

/* ==========================================================
       6. أزرار الهيرو
    ========================================================== */

    .cta-group {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
    }

    .btn-primary-luxury {
      min-height: 58px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 13px 27px;
      border-radius: 17px;
      background: #FFFFFF;
      color: #122A6B;
      font-size: 15px;
      font-weight: 700;
      text-decoration: none;
      box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
      transition:
        transform 0.35s var(--ease-out-expo),
        box-shadow 0.35s var(--ease-out-expo),
        background 0.25s ease,
        color 0.25s ease;
    }

    .arrow-circle {
      width: 30px;
      height: 30px;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: #122A6B;
      color: #FFFFFF;
      transition: transform 0.35s var(--ease-out-expo), background 0.3s ease;
    }

    .arrow-circle svg {
      width: 15px;
      height: 15px;
      stroke: #FFFFFF !important;
      fill: none;
    }

    .btn-primary-luxury:hover {
      transform: translateY(-3px);
      box-shadow: 0 25px 50px -12px rgba(18, 42, 107, 0.35);
      background: #E8ECEF;
      color: #091A38;
    }

    .btn-primary-luxury:hover .arrow-circle {
      transform: translateX(-4px);
      background: #091A38;
      color: #FFFFFF;
    }

    .btn-video-trigger {
      min-height: 58px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 13px 27px;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 17px;
      background: rgba(255, 255, 255, 0.08);
      color: #FFFFFF;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      transition:
        transform 0.35s var(--ease-out-expo),
        background 0.35s ease,
        border-color 0.35s ease;
    }

    .btn-video-trigger svg {
      fill: #FFFFFF !important;
    }

    .btn-video-trigger:hover {
      transform: translateY(-3px);
      background: rgba(255, 255, 255, 0.16);
      border-color: #FFFFFF;
    }

    .btn-video-trigger:hover {
      transform: translateY(-3px);
      background: rgba(255, 255, 255, 0.13);
      border-color: var(--glass-highlight);
    }

/* ==========================================================
       7. بيانات العيادة
    ========================================================== */

    .hero-info-strip {
      width: 100%;
      max-width: 1050px;
      margin-top: 33px;
      display: grid;
      grid-template-columns: 1.45fr 1fr 1fr;
      overflow: hidden;
      border: 1px solid var(--glass-border);
      border-radius: 21px;
      background: rgba(255, 255, 255, 0.035);
      text-align: right;
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
    }

    .hero-info-item {
      min-width: 0;
      min-height: 91px;
      padding: 17px 19px;
      display: flex;
      align-items: center;
      gap: 12px;
      color: #fff;
      text-decoration: none;
      transition: background 0.3s ease, transform 0.3s ease;
    }

    .hero-info-item + .hero-info-item {
      border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
    }

    a.hero-info-item:hover {
      background: rgba(18, 42, 107, 0.07);
    }

    .info-icon {
      width: 44px;
      height: 44px;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 13px;
      background: rgba(255, 255, 255, 0.16);
      color: #FFFFFF;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .info-icon svg {
      width: 22px;
      height: 22px;
      stroke: #FFFFFF !important;
      fill: none;
    }

    .info-content {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .info-label {
      color: rgba(255, 255, 255, 0.57);
      font-size: 11.5px;
      font-weight: 500;
    }

    .info-value {
      color: rgba(255, 255, 255, 0.96);
      font-size: 12.7px;
      font-weight: 600;
      line-height: 1.75;
      overflow-wrap: anywhere;
    }

    .info-subvalue {
      color: rgba(255, 255, 255, 0.56);
      font-size: 10.8px;
      line-height: 1.6;
    }

    .phone-value {
      direction: ltr;
      unicode-bidi: isolate;
      text-align: right;
      font-family: Arial, sans-serif;
      letter-spacing: 0.3px;
    }

/* ==========================================
   HERO PREMIUM REFINEMENT
========================================== */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  margin-bottom: 20px;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);

  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}




/* مؤشرات الثقة: الأيقونات SVG موجودة في HTML، لذلك لا نضيف علامة ✓ وهمية */
.hero-trust-points {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 29px;
  padding: 0;
  list-style: none;
}

.hero-trust-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
}


/* Keyboard accessibility */

.hero-section a:focus-visible,
.hero-section button:focus-visible {
  outline: 2px solid #122A6B;
  outline-offset: 5px;
}

/* ==========================================
   RESPONSIVE - TABLET & MOBILE
========================================== */

@media (max-width: 768px) {

  .hero-copy-container {
    padding: 105px 19px 30px;
  }

  .hero-headline {
    max-width: 620px;
    font-size: clamp(32px, 7vw, 46px);
    line-height: 1.4;
  }

  .hero-description {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 20px;
  }

  .hero-trust-points {
    gap: 13px 17px;
    margin-bottom: 25px;
  }

  .hero-trust-points li {
    font-size: 12px;
  }

  .hero-info-strip {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .hero-info-item {
    min-height: 76px;
    padding: 15px 17px;
  }

  .hero-info-item + .hero-info-item {
    border-inline-start: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

}

@media (max-width: 480px) {

  .hero-copy-container {
    padding: 90px 16px 25px;
  }

  .hero-eyebrow {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .hero-headline {
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.45;
  }

  .cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary-luxury,
  .btn-video-trigger {
    width: 100%;
    max-width: 340px;
    min-height: 54px;
  }

  .hero-trust-points {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }

  .hero-info-strip {
    margin-top: 26px;
  }

}
.trust-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: .3s ease;
}

.trust-icon svg {
  width: 19px;
  height: 19px;
  stroke: #FFFFFF !important;
  fill: none;
}

.hero-trust-points li:hover .trust-icon {
  background: #122A6B;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================
   قسم التواصل / خاتمة الموقع — نسخة واحدة، متوافقة مع لوحة التحكم
   ========================================================== */
.clinic-location-section {
  position: relative;
  z-index: 27;
  isolation: isolate;
  overflow: hidden;
  padding: 86px 24px 28px;
  background: #091A38;
  color: var(--text-white);
  scroll-margin-top: 100px;
}

.clinic-location-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(to left, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, transparent, #000 48%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%, transparent);
  content: "";
  pointer-events: none;
}

.clinic-location-shell { position:relative; width:min(1160px,100%); margin-inline:auto; }
.clinic-location-head { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:33px; }
.clinic-location-heading { max-width:650px; text-align:right; }
.clinic-location-heading > span {
  display:inline-flex; align-items:center; gap:10px;
  margin-bottom:13px; color:#FFFFFF; font-size:12px; font-weight:700;
}
.clinic-location-heading > span::before {
  width:22px; height:2px; border-radius:2px; background:var(--sky-accent); content:"";
}
.clinic-location-heading h2 {
  margin:0 0 11px; color:#FFFFFF;
  font-size:clamp(28px,3vw,40px); font-weight:700; line-height:1.45;
}
.clinic-location-heading p {
  margin:0; color:rgba(233,243,255,.72); font-size:14px; line-height:2;
}

.clinic-location-cta {
  display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; gap:11px;
  min-height:52px; padding:13px 22px; border:1px solid #FFFFFF;
  border-radius:14px; background:#FFFFFF; color:#122A6B;
  font-size:13px; font-weight:700; text-decoration:none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition:transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
.clinic-location-cta svg { width:18px; height:18px; fill:none; stroke:#122A6B !important; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.clinic-location-cta:hover { transform:translateY(-2px); background:#E8ECEF; color:#091A38; box-shadow:0 12px 30px rgba(0,0,0,.25); }
.clinic-location-cta:hover svg { stroke:#091A38 !important; }

.clinic-location-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.clinic-contact-card {
  display:flex; flex-direction:column; align-items:flex-start;
  min-width:0; min-height:198px; padding:22px 20px;
  border:1px solid rgba(255, 255, 255, 0.16); border-radius:19px;
  background:rgba(255,255,255,.06);
  box-shadow:0 10px 24px rgba(0, 0, 0, 0.25);
  text-align:right;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}
.clinic-contact-card:hover {
  transform:translateY(-3px); border-color:rgba(255, 255, 255, 0.35);
  background:rgba(255,255,255,.1);
}
.clinic-contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background .25s ease, border-color .25s ease;
}
.clinic-contact-card:hover .clinic-contact-icon {
  background: #122A6B;
  border-color: #FFFFFF;
}
.clinic-contact-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #FFFFFF !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clinic-contact-card h3 { margin:16px 0 8px; color:#FFFFFF; font-size:14px; font-weight:700; }
.clinic-contact-card p {
  margin:0 0 10px; color:rgba(236,244,255,.72); font-size:12px;
  line-height:1.9; overflow-wrap:anywhere;
}
.clinic-contact-card small { display:block; margin:-3px 0 9px; color:rgba(236,244,255,.55); font-size:11px; line-height:1.7; }
.clinic-contact-card a {
  display:inline-flex; align-items:center; margin-top:auto; padding-top:8px;
  color:#FFFFFF; font-size:12px; font-weight:700; line-height:1.6;
  text-decoration:none; transition:color .2s ease;
}
.clinic-contact-card a:hover { color:#FFFFFF; }
.clinic-contact-card a[href="mailto:"] { display:none; }
.clinic-phone-text, .clinic-email-text { direction:ltr; unicode-bidi:isolate; text-align:right; }

.clinic-social-links { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:29px; }
.clinic-social-links a {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:37px; padding:8px 15px; border:1px solid rgba(255,255,255,.18);
  border-radius:999px; background:rgba(255,255,255,.055);
  color:rgba(246,250,255,.84); font-size:12px; text-decoration:none;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.clinic-social-links a:hover { border-color:rgba(18, 42, 107,.4); background:rgba(18, 42, 107,.11); color:#FFFFFF; }

.clinic-location-bottom {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  margin-top:42px; padding-top:19px; border-top:1px solid rgba(255,255,255,.13);
}
.clinic-footer-brand { display:inline-flex; align-items:center; width:190px; max-width:46%; text-decoration:none; }
.clinic-footer-brand img { display:block; width:100%; height:auto; max-height:52px; object-fit:contain; object-position:right center; }
.clinic-location-bottom p { margin:0; color:rgba(228,238,252,.53); font-size:11px; line-height:1.8; text-align:left; }

@media (max-width: 950px) {
  .clinic-location-head { align-items:start; }
  .clinic-location-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .clinic-contact-card { min-height:185px; }
}
@media (max-width: 640px) {
  .clinic-location-section { padding:61px 16px 24px; }
  .clinic-location-head { flex-direction:column; align-items:stretch; gap:22px; margin-bottom:26px; }
  .clinic-location-heading h2 { font-size:clamp(26px,7vw,33px); }
  .clinic-location-heading p { font-size:13px; }
  .clinic-location-cta { align-self:stretch; min-height:49px; }
  .clinic-location-grid { grid-template-columns:minmax(0,1fr); gap:11px; }
  .clinic-contact-card { min-height:0; padding:19px; }
  .clinic-contact-card h3 { margin-top:12px; }
  .clinic-contact-card p { font-size:12.5px; }
  .clinic-location-bottom { flex-direction:column; align-items:center; gap:12px; margin-top:32px; }
  .clinic-footer-brand { width:170px; max-width:65%; }
  .clinic-footer-brand img { object-position:center; }
  .clinic-location-bottom p { text-align:center; }
}
@media (prefers-reduced-motion: reduce) {
  .clinic-contact-card, .clinic-location-cta, .clinic-social-links a { transition:none; }
  .clinic-contact-card:hover, .clinic-location-cta:hover { transform:none; }
}

/* متغيرات الهوية والقواعد العامة للموقع */

:root {
      --navy-light: #1A3E96;
      --navy-brand: #122A6B;
      --navy-core: #122A6B;
      --navy-deep: #122A6B;
      --navy-surface: rgba(255, 255, 255, 0.08);
      --glass-border: rgba(255, 255, 255, 0.2);
      --glass-highlight: rgba(255, 255, 255, 0.3);
      --sky-accent: #FFFFFF;
      --brand-hover: #1A3E96;
      --slate-light: #E8ECEF;
      --slate-border: #CBD5E1;
      --rich-black: #101112;
      --emerald-live: #10B981;
      --text-white: #FFFFFF;
      --text-silver: rgba(255, 255, 255, 0.9);
      --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
      --menu-duration: 820ms;
    }

*,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      overflow-x: clip;
    }

    body {
      min-width: 320px;
      font-family: 'IBM Plex Sans Arabic', sans-serif;
      background: #122A6B !important;
      color: var(--text-white);
      overflow-x: clip;
      -webkit-font-smoothing: antialiased;
    }

    html.service-detail-open,
    body.service-detail-open,
    body.menu-open,
    body.modal-open {
      overflow: hidden !important;
    }

    /* ==========================================================
       Global Brand Scrollbar (Royal Navy & Brand Identity)
    ========================================================== */
    ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    ::-webkit-scrollbar-track {
      background: #091A38;
      border-radius: 9999px;
    }

    ::-webkit-scrollbar-thumb {
      background: #122A6B;
      border-radius: 9999px;
      border: 2px solid #091A38;
      transition: background 0.25s ease;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: #1A3E96;
    }

    * {
      scrollbar-width: thin;
      scrollbar-color: #122A6B #091A38;
    }

    button,
    a {
      -webkit-tap-highlight-color: transparent;
    }

    button {
      font: inherit;
    }

    a {
      color: inherit;
    }

    button:focus-visible,
    a:focus-visible {
      outline: 2px solid var(--sky-accent);
      outline-offset: 4px;
    }
/* ==========================================================
       4. قائمة الجوال: تتمدد من مركز زر القائمة حتى تغطي الشاشة
    ========================================================== */

    .mobile-menu {
      position: fixed;
      inset: 0;
      z-index: 130;
      width: 100%;
      height: 100vh;
      height: 100dvh;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: max(92px, calc(env(safe-area-inset-top) + 82px)) 24px
        max(28px, calc(env(safe-area-inset-bottom) + 24px));
      background: #122A6B;
      clip-path: circle(
        0px at var(--menu-origin-x, calc(100vw - 38px))
        var(--menu-origin-y, 42px)
      );
      visibility: hidden;
      pointer-events: none;
      transition:
        clip-path var(--menu-duration) var(--ease-out-expo),
        visibility 0s linear var(--menu-duration);
    }

    .mobile-menu::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.35;
      background-image:
        linear-gradient(to left, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 54px 54px;
      mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 90%);
      -webkit-mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 90%);
    }

    .mobile-menu.is-open {
      clip-path: circle(
        160vmax at var(--menu-origin-x, calc(100vw - 38px))
        var(--menu-origin-y, 42px)
      );
      visibility: visible;
      pointer-events: auto;
      transition:
        clip-path var(--menu-duration) var(--ease-out-expo),
        visibility 0s;
    }

    .mobile-menu-inner {
      position: relative;
      z-index: 1;
      width: min(100%, 510px);
      min-height: 100%;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      gap: 25px;
    }

    .mobile-menu-brand {
      width: min(76%, 270px);
      margin: 0 auto 5px;
      display: flex;
      justify-content: center;
      opacity: 0;
      transform: translateY(14px) scale(0.98);
      transition:
        opacity 0.45s ease,
        transform 0.6s var(--ease-out-expo);
      transition-delay: 0s;
    }

    .mobile-menu-brand img {
      display: block;
      width: 100%;
      height: auto;
      max-height: 82px;
      object-fit: contain;
    }

    .mobile-menu.is-open .mobile-menu-brand {
      opacity: 1;
      transform: translateY(0) scale(1);
      transition-delay: 0.2s;
    }

    .mobile-menu-links {
      width: 100%;
      list-style: none;
      display: flex;
      flex-direction: column;
    }

    .mobile-menu-links li {
      border-bottom: 1px solid rgba(255, 255, 255, 0.105);
      opacity: 0;
      transform: translateY(17px);
      transition:
        opacity 0.38s ease,
        transform 0.55s var(--ease-out-expo);
      transition-delay: 0s;
    }

    .mobile-menu-links li:first-child {
      border-top: 1px solid rgba(255, 255, 255, 0.105);
    }

    .mobile-menu.is-open .mobile-menu-links li {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.28s;
    }

    .mobile-menu.is-open .mobile-menu-links li:nth-child(2) { transition-delay: 0.345s; }
    .mobile-menu.is-open .mobile-menu-links li:nth-child(3) { transition-delay: 0.41s; }
    .mobile-menu.is-open .mobile-menu-links li:nth-child(4) { transition-delay: 0.475s; }
    .mobile-menu.is-open .mobile-menu-links li:nth-child(5) { transition-delay: 0.54s; }

    .mobile-menu-links a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 59px;
      padding: 13px 5px;
      color: rgba(255, 255, 255, 0.94);
      font-size: clamp(18px, 4.8vw, 22px);
      font-weight: 500;
      text-decoration: none;
      transition: color 0.25s ease, padding 0.25s ease;
    }

    .mobile-menu-links a::after {
      content: "";
      width: 7px;
      height: 7px;
      flex: 0 0 auto;
      margin-inline-start: 12px;
      border-top: 1.5px solid var(--sky-accent);
      border-left: 1.5px solid var(--sky-accent);
      transform: rotate(-45deg);
      opacity: 0.8;
    }

    .mobile-menu-links a:hover {
      color: var(--sky-accent);
      padding-inline-end: 12px;
    }

    .mobile-menu-footer {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.4s ease, transform 0.55s var(--ease-out-expo);
      transition-delay: 0s;
    }

    .mobile-menu.is-open .mobile-menu-footer {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.65s;
    }

    .mobile-menu-cta {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 15px 20px;
      border: 1px solid rgba(255, 255, 255, 0.9);
      border-radius: 16px;
      background: #fff;
      color: var(--navy-deep);
      font-size: 15px;
      font-weight: 700;
      text-decoration: none;
      transition: transform 0.3s var(--ease-out-expo), background 0.3s ease;
    }

    .mobile-menu-cta:hover {
      transform: translateY(-2px);
      background: #E8ECEF;
      color: #091A38;
    }

    .mobile-menu-contact {
      display: flex;
      justify-content: center;
      color: rgba(255, 255, 255, 0.68);
      font-family: Arial, sans-serif;
      font-size: 14px;
      letter-spacing: 0.3px;
      text-decoration: none;
      direction: ltr;
    }
/* ==========================================================
       2. النافبار الزجاجي
    ========================================================== */

    .nav-fixed-wrapper {
      position: fixed;
      top: 20px;
      inset-inline: 28px;
      z-index: 140;
      pointer-events: none;
      opacity: 1;
      visibility: visible;
      transition:
        transform 0.42s var(--ease-out-expo),
        opacity 0.28s ease,
        visibility 0s;
    }

    .nav-fixed-wrapper.nav-hidden {
      /* تغطي الإزاحة ارتفاع النافبار مع حالة شريط العروض. */
      transform: translate3d(0, -200%, 0);
      opacity: 0;
      visibility: hidden;
      transition:
        transform 0.42s var(--ease-out-expo),
        opacity 0.25s ease,
        visibility 0s linear 0.42s;
    }

    .glass-navbar {
      width: 100%;
      max-width: 1300px;
      min-height: 76px;
      margin: 0 auto;
      padding: 10px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      background: #122A6B;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 22px;
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      pointer-events: auto;
      transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
    }

    /* نفس الهوية الكحلية فوق الأقسام البيضاء عند التمرير. */
    .nav-fixed-wrapper.is-scrolled .glass-navbar {
      background: #122A6B;
      border-color: rgba(255, 255, 255, 0.25);
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    }

    .brand-identity {
      width: 226px;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      text-decoration: none;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .brand-logo {
      display: block;
      width: 100%;
      max-height: 58px;
      object-fit: contain;
      object-position: center;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 27px;
      list-style: none;
    }

    .nav-links a {
      position: relative;
      color: var(--text-silver);
      font-size: 13.5px;
      text-decoration: none;
      white-space: nowrap;
      transition: color 0.25s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: var(--text-white);
      font-weight: 500;
    }

    .nav-links a.active::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: -7px;
      width: 18px;
      height: 2px;
      border-radius: 2px;
      background: var(--sky-accent);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      flex: 0 0 auto;
    }

    .btn-nav-cta {
      padding: 11px 22px;
      border-radius: 13px;
      background: #FFFFFF;
      color: #122A6B;
      font-size: 13.5px;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
      transition: transform 0.3s var(--ease-out-expo), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-nav-cta:hover {
      transform: translateY(-2px);
      background: #E8ECEF;
      color: #091A38;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }

/* ==========================================================
       3. زر القائمة: يتحول إلى X
    ========================================================== */

    .mobile-menu-toggle {
      position: relative;
      z-index: 145;
      display: none;
      width: 45px;
      height: 45px;
      flex: 0 0 auto;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--glass-highlight);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.07);
      cursor: pointer;
      transition:
        background 0.35s ease,
        border-color 0.35s ease,
        border-radius 0.5s var(--ease-out-expo);
    }

    .mobile-menu-toggle span {
      position: absolute;
      width: 19px;
      height: 2px;
      border-radius: 3px;
      background: #fff;
      transition: transform 0.45s var(--ease-out-expo), width 0.3s ease;
    }

    .mobile-menu-toggle span:first-child {
      transform: translateY(-5px);
    }

    .mobile-menu-toggle span:last-child {
      transform: translateY(5px);
    }

    .mobile-menu-toggle.is-open {
      border-color: rgba(255, 255, 255, 0.34);
      background: rgba(255, 255, 255, 0.12);
    }

    .mobile-menu-toggle.is-open span:first-child {
      transform: rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:last-child {
      transform: rotate(-45deg);
    }

    /* أثناء فتح القائمة يبقى زر X فوق الطبقة المتحركة فقط */

    body.menu-open .nav-fixed-wrapper .glass-navbar {
      background: transparent;
      border-color: transparent;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      pointer-events: none;
    }

    body.menu-open .mobile-menu-toggle {
      pointer-events: auto;
    }

    body.menu-open .brand-identity {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
/* شريط العروض أعلى النافبار */
.promo-bar {
  position: fixed;
  top: 9px;
  inset-inline: 28px;
  z-index: 150;
  color: #fff;
  pointer-events: none;
}
.promo-bar[hidden] { display: none !important; }
.promo-bar-inner {
  width: min(1300px, 100%);
  min-height: 48px;
  margin: 0 auto;
  padding: 6px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: #122A6B;
  box-shadow: 0 8px 24px rgba(9, 26, 56, 0.35);
  pointer-events: auto;
}
.promo-image { width:38px; height:34px; flex:0 0 auto; object-fit:cover; border-radius:7px; }
.promo-copy { min-width: 0; display: flex; align-items: center; gap: 9px; }
.promo-kicker { flex: 0 0 auto; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.28); color: #FFFFFF; font-size: 10px; font-weight: 700; }
.promo-copy strong { color: #fff; font-size: 12px; white-space: nowrap; }
.promo-copy > span:last-child { max-width: 260px; overflow: hidden; color: rgba(255, 255, 255, 0.85); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.promo-countdown { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; direction: ltr; }
.promo-countdown > span { min-width: 31px; display: grid; justify-items: center; gap: 0; }
.promo-countdown b { color: #fff; font: 700 13px/1.2 "Plus Jakarta Sans",sans-serif; font-variant-numeric: tabular-nums; }
.promo-countdown small { color: rgba(255, 255, 255, 0.7); font-size: 8px; }
.promo-countdown i { color: #CBD5E1; font-size: 12px; font-style: normal; }
.promo-button { flex: 0 0 auto; padding: 8px 14px; border-radius: 9px; background: #FFFFFF; color: #122A6B; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease; }
.promo-button:hover { background: #E8ECEF; color: #091A38; transform: translateY(-1px); }
.promo-close { width: 24px; height: 24px; flex: 0 0 auto; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.has-active-promo .nav-fixed-wrapper { top: 66px; }
.has-active-promo .hero-copy-container { padding-top: 190px; }
@media(max-width:900px) {
  .promo-bar { inset-inline: 14px; }
  .promo-bar-inner { gap: 10px; }
  .promo-copy > span:last-child { display: none; }
}
@media(max-width:600px) {
  .promo-bar { top: 6px; inset-inline: 8px; }
  .promo-bar-inner { min-height: 43px; justify-content: space-between; gap: 7px; padding: 5px 8px; border-radius: 11px; }
  .promo-image { width:29px; height:29px; }
  .promo-copy { gap: 6px; }
  .promo-copy strong { max-width: 105px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .promo-kicker { padding: 4px 6px; font-size: 8px; }
  .promo-countdown { gap: 2px; }
  .promo-countdown > span { min-width: 23px; }
  .promo-countdown b { font-size: 10px; }
  .promo-countdown small { font-size: 7px; }
  .promo-button { padding: 7px 8px; font-size: 8px; }
  .promo-close { width: 20px; height: 20px; font-size: 15px; }
  .has-active-promo .nav-fixed-wrapper { top: 57px; }
  .has-active-promo .hero-copy-container { padding-top: 164px; }
}

/* ==========================================================
   القسم الثاني: العرض الترويجي البارز بعد الهيرو
========================================================== */
.promo-section {
  position: relative;
  z-index: 15;
  width: 100%;
  background: #122A6B !important;
  padding: 0 24px 64px;
}
.promo-section[hidden] {
  display: none !important;
}
.promo-section-container {
  width: min(100%, 1120px);
  margin: 0 auto;
}
.promo-section-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  background: linear-gradient(145deg, #0D2258 0%, #091A38 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.promo-section-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.promo-section-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.promo-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: #FBBF24;
  color: #091A38;
  font-weight: 800;
  font-size: 12px;
  border-radius: 99px;
  letter-spacing: -0.2px;
}
.promo-section-badge[hidden] {
  display: none !important;
}
.promo-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  border-radius: 99px;
}
.promo-section-title {
  color: #FFFFFF;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}
.promo-section-description {
  color: #CBD5E1;
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
  max-width: 680px;
}
.promo-section-pricing {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  width: fit-content;
}
.promo-section-pricing[hidden] {
  display: none !important;
}
.promo-price-current {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.promo-price-label {
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 500;
}
.promo-price-value {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.promo-price-old {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.promo-price-old[hidden] {
  display: none !important;
}
.promo-price-old-value {
  color: #94A3B8;
  font-size: 16px;
  font-weight: 600;
}
.promo-section-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.promo-countdown-title {
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
}
.promo-section-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
.promo-count-box {
  min-width: 44px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.promo-count-box b {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.promo-count-box small {
  color: #CBD5E1;
  font-size: 9px;
  font-weight: 500;
}
.promo-count-sep {
  color: #CBD5E1;
  font-size: 16px;
  font-weight: 700;
}
.promo-section-actions {
  margin-top: 8px;
}
.promo-section-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: #FFFFFF;
  color: #122A6B;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.promo-section-cta svg {
  color: #122A6B;
  stroke: #122A6B !important;
  transition: transform 0.2s ease, stroke 0.2s ease;
}
.promo-section-cta:hover {
  background: #E8ECEF;
  color: #091A38;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.promo-section-cta:hover svg {
  color: #091A38;
  stroke: #091A38 !important;
  transform: translateX(-3px);
}
.promo-section-media {
  flex: 0 0 320px;
  max-width: 340px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.promo-section-media[hidden] {
  display: none !important;
}
.promo-section-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .promo-section {
    padding: 0 16px 44px;
  }
  .promo-section-card {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    gap: 22px;
  }
  .promo-section-media {
    flex: none;
    max-width: 100%;
    order: -1;
  }
  .promo-section-image {
    height: 190px;
  }
}
/* ==========================================================
       11. التجاوب
    ========================================================== */

    @media (max-width: 1180px) {
      .nav-links { gap: 17px; }
      .nav-links a { font-size: 12.5px; }
      .brand-identity { width: 205px; }
      .glass-navbar { gap: 14px; padding-inline: 16px; }
    }

    @media (max-width: 1050px) {
      .nav-fixed-wrapper {
        top: 12px;
        inset-inline: 12px;
      }

      .glass-navbar {
        min-height: 64px;
        padding: 8px 11px;
        border-radius: 18px;
      }

      .brand-identity { width: 190px; }
      .brand-logo { max-height: 48px; }
      .nav-links,
      .nav-actions { display: none; }
      .mobile-menu-toggle { display: flex; }

      .hero-copy-container { padding-top: 112px; }

      .expanding-portal-card {
        width: 92vw;
        height: 56vh;
        height: 56svh;
        border-radius: 22px;
      }

      .portal-hud-bar {
        right: 14px;
        bottom: 16px;
        left: 14px;
        padding: 12px 15px;
      }
    }

    @media (max-width: 700px) {
      .hero-copy-container {
        padding: 108px 17px 29px;
      }

      .hero-headline {
        margin-bottom: 12px;
        font-size: clamp(32px, 8.5vw, 44px);
        line-height: 1.48;
      }

      .hero-description {
        margin-bottom: 23px;
        font-size: 14px;
        line-height: 2;
      }

      .cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
      }

      .btn-primary-luxury,
      .btn-video-trigger {
        width: 100%;
        min-height: 54px;
        justify-content: center;
        padding: 12px 18px;
        border-radius: 15px;
        font-size: 14px;
      }

      .hero-info-strip {
        grid-template-columns: 1fr;
        margin-top: 23px;
        border-radius: 17px;
      }

      .hero-info-item {
        min-height: 76px;
        padding: 13px 14px;
        gap: 12px;
      }

      .hero-info-item + .hero-info-item {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-inline-start: 0;
      }

      .info-icon {
        width: 39px;
        height: 39px;
      }

      .info-value { font-size: 12.3px; }
      .info-label { font-size: 10.8px; }

      .portal-hud-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        border-radius: 13px;
        font-size: 11px;
      }

      .hud-meta {
        width: 100%;
        justify-content: space-between;
      }

      .hud-sound-pill { font-size: 10.5px; }
      .portal-play-orb { width: 65px; height: 65px; }

      .video-modal { padding: 10px; }
      .modal-frame { border-radius: 15px; }
      .modal-top { padding: 11px 13px; }
      .modal-top strong { font-size: 12px; }

      .mobile-menu {
        padding-inline: 22px;
      }

      .mobile-menu-inner { gap: 20px; }
      .mobile-menu-brand { width: min(74%, 245px); }
      .mobile-menu-links a { min-height: 54px; }
    }

    @media (max-height: 690px) and (max-width: 700px) {
      .mobile-menu {
        align-items: flex-start;
        padding-top: max(82px, calc(env(safe-area-inset-top) + 72px));
      }

      .mobile-menu-inner { gap: 13px; }
      .mobile-menu-brand { width: min(62%, 205px); }
      .mobile-menu-links a {
        min-height: 45px;
        padding-block: 9px;
        font-size: 18px;
      }

      .mobile-menu-cta { min-height: 50px; }
    }

/* ==========================================================
       12. تقليل الحركة حسب إعدادات الجهاز
    ========================================================== */

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      .mobile-menu,
      .mobile-menu.is-open {
        clip-path: none;
        opacity: 0;
        transition: opacity 0.15s ease;
      }

      .mobile-menu.is-open { opacity: 1; }

      .video-scroll-track {
        height: auto;
        padding: 25px 0 45px;
      }

      .video-sticky-viewport {
        position: relative;
        height: auto;
        min-height: 0;
      }

      .expanding-portal-card {
        width: min(92vw, 1100px) !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        border-radius: 20px !important;
      }
    }

/* ==========================================================
   الخدمات العلاجية — عارض تفاعلي بثلاثة أعمدة
   ========================================================== */

.services-section {
  position: relative;
  z-index: 25;
  padding: 82px 24px 96px;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 8% 18%, rgba(18, 42, 107, 0.055), transparent 72%),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  color: #101112;
  scroll-margin-top: 95px;
}

.services-section-shell {
  width: min(100%, 1260px);
  margin-inline: auto;
}

.services-experience {
  position: relative;
  overflow: hidden;
  padding: 22px 26px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(70% 90% at 52% 0%, rgba(18, 42, 107, 0.12), transparent 68%),
    linear-gradient(135deg, #122A6B 0%, #091A38 100%);
  box-shadow:
    0 24px 60px rgba(9, 26, 56, 0.18),
    0 3px 12px rgba(9, 26, 56, 0.08);
  color: #FFFFFF;
}

.services-panel-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.services-panel-head h2 {
  margin: 0;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
}

.services-panel-head > span {
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns:
    minmax(205px, 0.92fr)
    minmax(250px, 1.08fr)
    minmax(230px, 0.96fr);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  min-height: 345px;
  padding: 20px 0 17px;
  direction: rtl;
}

.services-copy,
.services-visual {
  min-width: 0;
  transition:
    opacity 420ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.services-copy {
  direction: rtl;
  text-align: right;
}

.services-copy-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
}

.services-copy-kicker b {
  color: #FFFFFF;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.services-kicker-line {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #CBD5E1;
}

.services-copy h3 {
  margin: 0 0 12px;
  color: #FFFFFF;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.55;
}

.services-copy p {
  max-width: 390px;
  margin: 0 0 20px;
  color: rgba(232, 239, 250, 0.78);
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
}

.services-detail-link {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 15px;
  border: 1px solid rgba(180, 205, 235, 0.58);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.services-detail-link:hover {
  transform: translateY(-2px);
  border-color: #122A6B;
  background: rgba(18, 42, 107, 0.13);
}

.services-detail-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.services-image-frame {
  position: relative;
  width: min(100%, 286px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 12px;
  border-radius: 20px;
 
  
}

.services-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.services-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: #F8FAFC;
  color: #64748B;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.services-image-fallback svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #122A6B;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-image-frame.has-image-error .services-image-fallback {
  display: flex;
}

.services-image-frame.has-image-error img {
  display: none;
}

.services-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  margin-top: 12px;
}

.services-arrow {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.services-arrow:hover {
  transform: translateY(-2px);
  border-color: #FFFFFF;
  background: #122A6B;
}

.services-arrow:active {
  transform: scale(0.94);
}

.services-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #FFFFFF !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-counter {
  min-width: 72px;
  color: #FFFFFF;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.services-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  direction: rtl;
}

.service-nav-item {
  width: 100%;
  min-height: 30px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(226, 235, 248, 0.66);
  text-align: right;
  cursor: pointer;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.service-nav-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.065);
}

.service-nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.service-nav-number {
  color: #CBD5E1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.service-nav-item.is-active .service-nav-number {
  color: #FFFFFF;
}

.service-nav-name {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.services-panel-foot {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  font-size: 10.5px;
  line-height: 1.7;
}

.services-autoplay-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.services-autoplay-note i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.85);
}

/* دخول الخدمة التالية من اليمين وخروج الحالية إلى اليسار */
.services-copy.is-exiting-left,
.services-visual.is-exiting-left {
  opacity: 0;
  transform: translateX(-42px);
}

.services-copy.is-exiting-right,
.services-visual.is-exiting-right {
  opacity: 0;
  transform: translateX(42px);
}

.services-copy.is-entering-right,
.services-visual.is-entering-right {
  opacity: 0;
  transform: translateX(42px);
  transition: none;
}

.services-copy.is-entering-left,
.services-visual.is-entering-left {
  opacity: 0;
  transform: translateX(-42px);
  transition: none;
}

.services-arrow:focus-visible,
.service-nav-item:focus-visible,
.services-detail-link:focus-visible {
  outline: 2px solid #122A6B;
  outline-offset: 3px;
}

/* الشاشات المتوسطة: تبقى الصورة والنص متجاورين، والقائمة أسفلهما */
@media (max-width: 1000px) {
  .services-section {
    padding: 68px 20px 78px;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 25px;
    min-height: 0;
    padding-block: 24px;
  }

  .services-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .services-visual {
    grid-column: 2;
    grid-row: 1;
  }

  .services-list {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .service-nav-item {
    min-height: 38px;
  }

  .service-nav-name {
    font-size: 11px;
    white-space: normal;
  }

  .services-image-frame {
    width: min(100%, 270px);
  }
}

/* الجوال: تفاصيل الخدمة ثم الصورة والتنقل، وقائمة مختصرة أسفلها */
@media (max-width: 700px) {
  .services-section {
    padding: 52px 13px 62px;
  }

  .services-experience {
    padding: 17px 13px 13px;
    border-radius: 20px;
  }

  .services-panel-head {
    align-items: flex-start;
    padding-bottom: 12px;
  }

  .services-panel-head h2 {
    font-size: 14px;
  }

  .services-panel-head > span {
    max-width: 46%;
    font-size: 10px;
    text-align: left;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-block: 20px 15px;
  }

  .services-copy {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }

  .services-copy-kicker {
    margin-bottom: 7px;
  }

  .services-copy h3 {
    margin-bottom: 7px;
    font-size: 23px;
  }

  .services-copy p {
    max-width: none;
    margin-bottom: 13px;
    font-size: 13px;
    line-height: 1.9;
  }

  .services-detail-link {
    min-height: 36px;
    font-size: 11px;
  }

  .services-visual {
    grid-column: 1;
    grid-row: 2;
  }

  .services-image-frame {
    width: min(78vw, 280px);
    border-radius: 17px;
    padding: 10px;
  }

  .services-controls {
    gap: 15px;
    margin-top: 10px;
  }

  .services-arrow {
    width: 37px;
    height: 37px;
  }

  .services-counter {
    font-size: 16px;
  }

  .services-list {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding-top: 13px;
  }

  .service-nav-item {
    min-height: 43px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
    padding: 6px 7px;
  }

  .service-nav-number {
    font-size: 9px;
  }

  .service-nav-name {
    font-size: 10.5px;
    line-height: 1.5;
  }

  .services-panel-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 9px;
    font-size: 9.5px;
  }
}

@media (max-width: 380px) {
  .services-section {
    padding-inline: 9px;
  }

  .services-experience {
    padding-inline: 10px;
  }

  .services-copy h3 {
    font-size: 21px;
  }

  .service-nav-item {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 3px;
    padding-inline: 5px;
  }

  .service-nav-name {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-copy,
  .services-visual,
  .service-nav-item,
  .services-arrow,
  .services-detail-link {
    transition-duration: 0.01ms !important;
  }
}
/* ==========================================================
       10. نافذة الفيديو بالصوت
    ========================================================== */

    .video-modal {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(9, 26, 56, 0.94);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    .video-modal.active {
      display: flex;
    }

    .modal-frame {
      width: 100%;
      max-width: 1050px;
      overflow: hidden;
      border: 1px solid var(--glass-highlight);
      border-radius: 22px;
      background: var(--navy-deep);
      box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6);
    }

    .modal-top {
      min-height: 62px;
      padding: 12px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
      border-bottom: 1px solid var(--glass-border);
    }

    .modal-top strong {
      font-size: 14px;
      font-weight: 600;
    }

    .close-modal {
      width: 38px;
      height: 38px;
      flex: 0 0 auto;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 11px;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      font-size: 18px;
      cursor: pointer;
    }

    .modal-video {
      display: block;
      width: 100%;
      max-height: 78vh;
      background: #000;
      object-fit: contain;
    }
/* ==========================================================
       8. مسار الفيديو المتمدد - نحافظ على حركة المرجع
    ========================================================== */

    .video-scroll-track {
      position: relative;
      width: 100%;
      height: 210vh;
    }

    .video-sticky-viewport {
      position: sticky;
      top: 0;
      width: 100%;
      height: 100vh;
      height: 100svh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .expanding-portal-card {
      position: relative;
      width: 78vw;
      height: 70vh;
      height: 70svh;
      overflow: hidden;
      isolation: isolate;
      border: 1px solid var(--glass-highlight);
      border-radius: 30px;
      background: #091A38;
      box-shadow:
        0 30px 80px -15px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(18, 42, 107, 0.1);
      will-change: width, height, border-radius;
    }

    .expanding-portal-card video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.92) contrast(1.04);
      transform: scale(1.06);
      will-change: transform;
    }

    .portal-open-button {
      position: absolute;
      inset: 0;
      z-index: 3;
      width: 100%;
      height: 100%;
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .portal-chrome {
      position: absolute;
      inset: 0;
      z-index: 4;
      opacity: 1;
      pointer-events: none;
      transition: opacity 0.15s linear;
    }

    .portal-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        180deg,
        rgba(9, 26, 56, 0.18) 0%,
        rgba(9, 26, 56, 0.12) 50%,
        rgba(9, 26, 56, 0.9) 100%
      );
    }

    .portal-play-orb {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 80px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.45);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.16);
      color: #fff;
      transform: translate(-50%, -50%);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    .portal-play-orb::before {
      content: "";
      position: absolute;
      inset: -9px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 50%;
      animation: ripple 2.5s infinite ease-out;
    }

    @keyframes ripple {
      0% { transform: scale(0.95); opacity: 0.8; }
      100% { transform: scale(1.32); opacity: 0; }
    }

    .portal-hud-bar {
      position: absolute;
      right: 28px;
      bottom: 24px;
      left: 28px;
      min-height: 62px;
      padding: 13px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      border: 1px solid var(--glass-border);
      border-radius: 18px;
      background: rgba(9, 26, 56, 0.75);
      color: rgba(255, 255, 255, 0.94);
      font-size: 13px;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    .hud-location {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .hud-location span {
      line-height: 1.7;
    }

    .hud-meta {
      display: flex;
      align-items: center;
      gap: 13px;
      flex: 0 0 auto;
    }

    .hud-phone {
      font-family: Arial, sans-serif;
      font-size: 13px;
      font-weight: 600;
      direction: ltr;
      white-space: nowrap;
    }

    .hud-sound-pill {
      padding: 7px 13px;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      color: #FFFFFF;
      font-size: 11.5px;
      font-weight: 600;
      white-space: nowrap;
    }


/* Keep the reduced-motion layout after the shared portal rules above. */
@media (prefers-reduced-motion: reduce) {
  .video-scroll-track { height: auto; padding: 25px 0 45px; }
  .video-sticky-viewport { position: relative; height: auto; min-height: 0; }
}
/* ==========================================================
   معرض الحالات العلاجية — تابات + مقارنة قبل وبعد (نسخة محسنة ومتوسطة)
   ========================================================== */
.cases-section {
  position: relative;
  z-index: 26;
  padding: clamp(66px, 7vw, 100px) 24px clamp(76px, 8vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 92% 8%, rgba(18, 42, 107, .055), transparent 72%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  color: #101112;
  scroll-margin-top: 100px;
}
.cases-shell { width: min(100%, 1260px); margin-inline: auto; }
.cases-heading { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.cases-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 13px;
  color: #122A6B; font-size: 13px; font-weight: 700;
}
.cases-eyebrow i { width: 20px; height: 2px; border-radius: 9px; background: #122A6B; }
.cases-heading h2 { margin: 0 0 12px; color: #101112; font-size: clamp(27px, 3.2vw, 42px); line-height: 1.45; font-weight: 700; }
.cases-heading p { max-width: 660px; margin: 0 auto; color: #64748B; font-size: 14px; line-height: 2; }
.cases-tabs-wrap { position: relative; margin: 0 auto 28px; }
.cases-tabs {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px;
  padding: 5px 2px 13px; border-bottom: 1px solid #E8ECEF;
}
.cases-tab {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 17px; border: 1px solid #CBD5E1; border-radius: 999px;
  background: #FFFFFF; color: #334155; font: inherit; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}
.cases-tab:hover { transform: translateY(-1px); border-color: #122A6B; color: #122A6B; }
.cases-tab.is-active { border-color: #122A6B; background: #122A6B; color: #FFFFFF; box-shadow: 0 7px 18px rgba(18, 42, 107, 0.25); }
.cases-tab-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding-inline: 5px; border-radius: 99px; background: rgba(18, 42, 107, 0.08); color: #122A6B; font: 600 10px/1 "Plus Jakarta Sans", sans-serif; }
.cases-tab.is-active .cases-tab-count { background: rgba(255,255,255,.14); color: #FFFFFF; }
.cases-tabs-loading { color: #64748B; font-size: 12px; padding: 12px; }
.cases-feedback {
  display: none; min-height: 160px; padding: 34px 20px; border: 1px dashed #CBD5E1; border-radius: 20px;
  background: rgba(255,255,255,.78); color: #64748B; text-align: center; font-size: 14px; line-height: 2;
  align-items: center; justify-content: center;
}
.cases-feedback.is-visible { display: flex; }
.cases-feedback.is-error { border-color: #CBD5E1; color: #122A6B; }

/* تم التعديل هنا: التوسيط التلقائي للبطاقات دائماً سواء كانت حالة واحدة أو أكثر */
.cases-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(360px, 520px)); 
  justify-content: center; 
  gap: 28px; 
  align-items: start; 
}

.case-card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-width: 0; 
  overflow: hidden; 
  border: 1px solid #E8ECEF; 
  border-radius: 22px;
  background: #FFFFFF; 
  box-shadow: 0 12px 35px rgba(18, 42, 107, 0.06);
  animation: case-card-enter .55s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes case-card-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.case-compare {
  --compare-position: 50%; 
  position: relative; 
  isolation: isolate; 
  width: 100%; 
  aspect-ratio: 4 / 3;
  overflow: hidden; 
  background: #F8FAFC; 
  user-select: none; 
  touch-action: pan-y;
}

/* تم التعديل هنا: استخدام cover لملء الإطار بشكل متناسق وفخم بدون فراغات */
.case-compare-image { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center; 
}
.case-compare-image.after { z-index: 1; }

.case-before-clip {
  position: absolute; 
  z-index: 2; 
  inset: 0;
  clip-path: inset(0 0 0 calc(100% - var(--compare-position)));
  pointer-events: none;
}
.case-before-clip img { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center; 
}

.case-compare-divider {
  position: absolute; 
  z-index: 3; 
  top: 0; 
  bottom: 0; 
  left: calc(100% - var(--compare-position));
  width: 2px; 
  background: rgba(255,255,255,.98); 
  box-shadow: 0 0 0 1px rgba(18, 42, 107, 0.16), 0 0 16px rgba(0,0,0,.15);
  transform: translateX(-50%); 
  pointer-events: none;
}
.case-compare-knob {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  width: 42px; 
  height: 42px; 
  display: grid; 
  place-items: center;
  border: 2px solid #FFFFFF; 
  border-radius: 50%; 
  background: #122A6B; 
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(9, 26, 56, 0.35); 
  transform: translate(-50%,-50%);
}
.case-compare-knob svg { width: 19px; height: 19px; fill: none; stroke: #FFFFFF !important; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-compare-labels { position: absolute; z-index: 4; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.case-compare-labels span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.58); border-radius: 999px; background: rgba(9, 26, 56, 0.85); color: #FFFFFF; font-size: 10.5px; font-weight: 700; backdrop-filter: blur(8px); }
.case-compare-range {
  position: absolute; 
  z-index: 5; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  margin: 0; 
  opacity: 0;
  cursor: ew-resize; 
  direction: rtl; 
  appearance: none; 
  -webkit-appearance: none;
}
.case-compare-range:focus-visible { outline: 3px solid #122A6B; outline-offset: -4px; opacity: .01; }
.case-card-content { padding: 22px 24px 24px; }
.case-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.case-category-label { color: #122A6B; font-size: 11.5px; font-weight: 700; }
.case-number { color: #64748B; font: 600 10.5px "Plus Jakarta Sans", sans-serif; direction: ltr; }
.case-card h3 { margin: 0 0 9px; color: #101112; font-size: 19px; line-height: 1.55; font-weight: 700; }
.case-description { margin: 0; color: #64748B; font-size: 13px; line-height: 2; }
.case-treatment { margin-top: 14px; padding-top: 13px; border-top: 1px solid #E8ECEF; }
.case-treatment strong { display: block; margin-bottom: 4px; color: #122A6B; font-size: 11px; font-weight: 700; }
.case-treatment p { margin: 0; color: #64748B; font-size: 12px; line-height: 1.9; }
.cases-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.cases-more-button { min-height: 46px; padding: 10px 25px; border: 1px solid #CBD5E1; border-radius: 999px; background: #FFFFFF; color: #122A6B; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: .22s ease; }
.cases-more-button:hover { border-color: #122A6B; background: #122A6B; color: #FFFFFF; transform: translateY(-2px); }
.cases-more-button:disabled { opacity: .55; cursor: wait; transform: none; }
.cases-footnote { margin-top: 26px; color: #64748B; text-align: center; font-size: 10.5px; line-height: 1.8; }

@media (max-width: 820px) {
  .cases-section { padding-inline: 18px; }
  .cases-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x proximity; padding: 4px 1px 13px; }
  .cases-tabs::-webkit-scrollbar { display: none; }
  .cases-tab { flex: 0 0 auto; scroll-snap-align: start; }
  .cases-grid { gap: 18px; }
  .case-card-content { padding: 17px 18px 19px; }
}
@media (max-width: 620px) {
  .cases-section { padding: 62px 15px 72px; }
  .cases-heading { margin-bottom: 24px; }
  .cases-heading h2 { font-size: clamp(25px, 7vw, 32px); }
  .cases-heading p { font-size: 12.5px; }
  .cases-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .case-compare { aspect-ratio: 1.15 / 1; }
  .case-compare-labels { top: 10px; inset-inline: 10px; }
  .case-compare-labels span { font-size: 9.5px; padding: 5px 9px; }
  .case-compare-knob { width: 37px; height: 37px; }
  .case-card h3 { font-size: 17px; }
  .case-description { font-size: 12.5px; }
  .cases-footnote { margin-top: 20px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-card { animation: none; }
  .cases-tab, .cases-more-button { transition: none; }
}
.case-compare:focus-within .case-compare-knob { outline: 3px solid rgba(18, 42, 107,.85); outline-offset: 3px; }

/* ==========================================================
   معرض صور العيادة (في قلب العيادة - 5 يمين + الوسط + 5 يسار)
========================================================== */
.clinic-showcase-section {
  position: relative;
  z-index: 20;
  width: 100%;
  background: radial-gradient(circle at 50% 35%, #0d2258 0%, #091A38 75%) !important;
  padding: 85px 0 95px;
  overflow: hidden;
  color: #FFFFFF;
}

.showcase-container {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

.showcase-header {
  text-align: center;
  margin-bottom: 38px;
}

.showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  border-radius: 99px;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.showcase-title {
  color: #FFFFFF;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.5px;
}

.showcase-stage {
  position: relative;
  width: 100%;
  outline: none;
  user-select: none;
}

/* التخطيط: 5 يمين + الوسط + 5 يسار - ارتفاع ثابت محكوم بدقة يمنع التمدد الرأسي */
.showcase-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  grid-template-rows: 520px;
  height: 520px;
  max-height: 520px;
  gap: 20px;
  align-items: stretch;
}

/* الأجنحة الجانبية (يمين ويسار): شبكة من 5 بطاقات متناسقة الارتفاع */
.showcase-wing {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: 12px;
  height: 520px;
  max-height: 520px;
}

/* البطاقة المصغرة */
.showcase-thumb-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: #091A38;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease,
              opacity 0.28s ease;
  will-change: transform, border-color;
  outline: none;
}

.showcase-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.82);
}

.showcase-thumb-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.showcase-thumb-card:hover .showcase-thumb-img {
  filter: brightness(1);
}

.showcase-thumb-card.is-active {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 16px 36px rgba(0, 0, 0, 0.6);
  transform: scale(1.03);
}

.showcase-thumb-card.is-active .showcase-thumb-img {
  filter: brightness(1.05);
}

/* الإطار الرئيسي في الوسط: ارتفاع ثابت تماماً 520px لا يتأثر بأبعاد الصورة */
.showcase-main-frame {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 520px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: #081630;
}

.showcase-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.32s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.showcase-main-img.is-changing {
  opacity: 0.15;
  transform: scale(0.98);
}

.showcase-main-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
  border-radius: 26px;
  z-index: 2;
}

/* عناصر التحكم: الأسهم والعداد */
.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}

.showcase-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.showcase-arrow svg {
  color: #FFFFFF;
  stroke: #FFFFFF !important;
}

.showcase-arrow:hover {
  background: #FFFFFF;
  color: #091A38;
  border-color: #FFFFFF;
  transform: scale(1.08);
}

.showcase-arrow:hover svg {
  color: #091A38;
  stroke: #091A38 !important;
}

.showcase-arrow:active {
  transform: scale(0.96);
}

.showcase-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.counter-current {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
}

.counter-divider {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  font-weight: 600;
  margin: 0 2px;
}

.counter-total {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 700;
}

/* شاشات التابلت والأجهزة المتوسطة */
@media (max-width: 1080px) {
  .showcase-layout {
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    grid-template-rows: 450px;
    height: 450px;
    max-height: 450px;
    gap: 14px;
  }
  .showcase-wing {
    height: 450px;
    max-height: 450px;
    gap: 10px;
  }
  .showcase-main-frame {
    height: 450px;
    max-height: 450px;
  }
  .showcase-thumb-card {
    border-radius: 14px;
  }
}

/* شاشات الجوال والشاشات الضيقة */
@media (max-width: 820px) {
  .clinic-showcase-section {
    padding: 60px 0 70px;
  }
  .showcase-header {
    margin-bottom: 24px;
  }
  .showcase-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    gap: 14px;
  }
  .showcase-main-frame {
    order: 1;
    width: 100%;
    height: 320px;
    max-height: 320px;
    border-radius: 20px;
  }
  .showcase-wing {
    order: 2;
    display: flex;
    flex-direction: row;
    height: 72px;
    max-height: 72px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    gap: 10px;
    scrollbar-width: none;
  }
  .showcase-wing::-webkit-scrollbar {
    display: none;
  }
  .showcase-thumb-card {
    flex: 0 0 92px;
    width: 92px;
    height: 68px;
    min-height: 68px;
    max-height: 68px;
    border-radius: 12px;
  }
  .showcase-controls {
    margin-top: 20px;
    gap: 16px;
  }
  .showcase-arrow {
    width: 44px;
    height: 44px;
  }
}

