/* ═══════════════════════════════════════════════════════════════════
   MOBILE FIX — Challengers International School
   يعالج جميع مشاكل نسخة الموبايل من الصفر
   ═══════════════════════════════════════════════════════════════════ */

/* ── 0. قاعدة عامة ── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* لا نضع overflow على body أو html لأنها تكسر position:sticky
   كل قسم يحتاج يحجب overflow يعمل ذلك بنفسه */
@media (max-width: 900px) {
  /* نمنع overflow الأفقي على مستوى كل section — ليس على body */
  .hero, .stats-bar, .problem-solution,
  .welcome, .transform, .director,
  .dayone, .levels, .programs,
  .bunyan-home, .stories, .admission,
  .fee-calculator-section,
  .closing, .site-footer, .ribbon-bridge {
    overflow-x: hidden;
  }
  /* students-sticky وحدها تتحكم بـ overflow للـ track */
}

/* ══════════════════════════════════════════════════════════════════
   1. HEADER + ANNOUNCEMENT BANNER
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Banner أكثر إحكاماً */
  .announcement-banner {
    padding: 10px 44px 10px 14px;
    font-size: 12px;
    text-align: center;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
  }

  .announcement-banner a {
    font-size: 12px;
    margin-inline-start: 0;
    display: inline-block;
  }

  .banner-close {
    position: absolute;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
  }

  .banner-close svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #fff !important;
    stroke-width: 2.5 !important;
  }

  /* Header inner: لوجو + زر القائمة فقط */
  .site-header {
    padding: 0;
  }

  .header-inner {
    padding: 12px 20px;
    gap: 0;
    justify-content: space-between;
  }

  .logo-link img {
    height: 40px;
  }

  .site-header.scrolled .logo-link img {
    height: 36px;
  }

  /* إخفاء Nav والـ CTA على الموبايل */
  .main-nav,
  .header-cta,
  .lang-btn {
    display: none !important;
  }

  /* إظهار زر القائمة المطور مع أنيميشن راقي */
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    gap: 5px !important;
    background: rgba(28, 46, 74, 0.05) !important;
    border: 1px solid rgba(28, 46, 74, 0.12) !important;
    border-radius: 12px !important;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 1001;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .menu-toggle:hover {
    background: rgba(232, 131, 58, 0.08) !important;
    border-color: rgba(232, 131, 58, 0.25) !important;
  }

  .menu-toggle:active {
    transform: scale(0.92) !important;
  }

  .menu-toggle span {
    display: block !important;
    height: 2px !important;
    background: var(--ink) !important;
    border-radius: 2px !important;
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
                width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                background-color 0.3s ease !important;
    transform-origin: center;
  }

  .menu-toggle span:nth-child(1) {
    width: 22px !important;
  }

  .menu-toggle span:nth-child(2) {
    width: 15px !important;
    align-self: flex-start !important;
    margin-inline-start: 11px !important;
  }

  .menu-toggle span:nth-child(3) {
    width: 22px !important;
  }

  /* Morphing into X */
  .menu-toggle.is-active,
  .menu-toggle.active {
    background: rgba(232, 131, 58, 0.15) !important;
    border-color: rgba(232, 131, 58, 0.4) !important;
    box-shadow: 0 4px 16px rgba(232, 131, 58, 0.2) !important;
  }

  .menu-toggle.is-active span:nth-child(1),
  .menu-toggle.active span:nth-child(1) {
    width: 20px !important;
    transform: translateY(7px) rotate(45deg) !important;
    background: var(--orange) !important;
  }

  .menu-toggle.is-active span:nth-child(2),
  .menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
    width: 0 !important;
  }

  .menu-toggle.is-active span:nth-child(3),
  .menu-toggle.active span:nth-child(3) {
    width: 20px !important;
    transform: translateY(-7px) rotate(-45deg) !important;
    background: var(--orange) !important;
  }

  /* header-right لا يأخذ مسافة زائدة */
  .header-right {
    gap: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════
   1b. STUDENTS SECTION — تصغير بسيط للصورة والنص على الموبايل
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .student-portrait {
    height: 360px !important;
  }

  .student-word {
    font-size: clamp(46px, 11vw, 180px) !important;
    line-height: 0.9 !important;
  }

  /* الشريحة: توسيط عمودي للمحتوى كله */
  .student-slide {
    align-items: center !important;
  }

  .student-slide-inner {
    padding: 60px 16px 16px !important;
    gap: 0 !important;
    align-items: center !important;
    justify-items: center !important;
  }

  /* النص العلوي (يداً...) — ملاصق للصورة من الأعلى */
  .student-word-col {
    padding-bottom: 0 !important;
    margin-bottom: -30px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* الصورة */
  .student-portrait-col {
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* النص السفلي (الاسم + الوصف) — ملاصق للصورة من الأسفل */
  .student-info-col {
    padding-top: 0 !important;
    margin-top: -24px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   2. HERO SECTION
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .hero {
    min-height: 100svh;
    padding-top: 100px;  /* تحت الهيدر + البانر */
    padding-bottom: 60px;
    overflow: hidden;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    min-height: unset !important;
    align-items: start;
  }

  /* النص أولاً، ثم الصورة */
  .hero-text {
    order: 1;
    text-align: center;
  }

  .hero-visual {
    order: 2;
    max-width: 100%;
    margin-inline-start: 0;
    width: 100%;
  }

  .hero-label {
    justify-content: center;
    margin-bottom: 24px;
    font-size: 11px;
  }

  .hero-headline {
    font-size: clamp(40px, 10vw, 64px) !important;
    line-height: 1.0;
    margin-bottom: 20px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 16px !important;
    margin-bottom: 32px;
    text-align: center;
    max-width: 100%;
    padding: 0 8px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* الصورة تظهر كاملة بدون قصّ */
  .hero-visual-inner {
    max-height: none !important;
    overflow: visible !important;
    width: 100%;
  }

  .hero-visual-inner img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 110px;
  }

  .hero-headline {
    font-size: 36px !important;
  }

  .hero-subtitle {
    font-size: 15px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   3. STATS BAR
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .stats-bar {
    padding: 40px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 16px;
    row-gap: 36px;
  }

  .stat-divider {
    display: none !important;
  }

  .stat-number {
    font-size: clamp(36px, 8vw, 52px);
  }

  .stat-label {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   3.5 STUDENTS SECTION — شاشات 4:3 و لابتوب صغير (901–1300px)
   الهدف: إعطاء عمود المعلومات مساحة كافية بتصغير عمود الكلمة
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 901px) and (max-width: 1300px) {

  .student-slide {
    padding: 0 40px !important;
  }

  .student-slide-inner {
    /* word | portrait | info — في RTL الترتيب معكوس عكس اللغة */
    /* نعطي الكلمة 0.65 فقط، الصورة 1.35، المعلومات 1.0 */
    grid-template-columns: 0.65fr 1.35fr 1fr !important;
    gap: 16px !important;
    padding: 80px 0 10px !important;
  }

  /* الكلمة الكبيرة: أصغر بشكل ملحوظ */
  .student-word {
    font-size: clamp(44px, 5.8vw, 76px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.045em !important;
    word-break: keep-all;
  }

  .student-verb {
    font-size: clamp(14px, 1.6vw, 20px) !important;
    margin-bottom: 4px !important;
  }

  /* عمود المعلومات: نص منسّق واسع */
  .student-info-col {
    min-width: 0; /* يمنع الـ overflow في الـ grid */
  }

  .student-roman {
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 10px !important;
  }

  .student-name {
    font-size: clamp(18px, 1.9vw, 26px) !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
    word-break: keep-all;
  }

  .student-role {
    font-size: 13.5px !important;
    line-height: 1.85 !important;
  }

  .student-divider {
    margin-top: 16px;
  }

  /* الصورة: ارتفاع متناسب */
  .student-portrait {
    height: min(600px, 78vh) !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   4. STUDENTS SECTION — نفس تأثير الديسكتوب على الموبايل
   الـ sticky + JS-driven horizontal scroll يعمل على كل الشاشات
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* نبقي الـ pin بارتفاعه الأصلي حتى يعمل الـ sticky */
  .students-pin {
    height: 500vh !important;
  }

  .students-sticky {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  /* الـ track يتحرك بالـ JS — overflow يتحكم فيه students-sticky */
  .students-track {
    flex-direction: row !important;
    overflow: visible !important;
    height: 100% !important;
  }

  /* كل slide: 100vw × 100vh مثل الديسكتوب */
  .student-slide {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    height: 100% !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* تخطيط داخل الـ slide: عمود واحد مرتّب */
  .student-slide-inner {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr auto !important;
    gap: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    align-items: center;
  }

  /* الترتيب: الكلمة أعلى ← الصورة وسط ← المعلومات أسفل */
  .student-word-col {
    order: 1;
    text-align: center;
    padding-top: 80px; /* تحت الهيدر */
    padding-bottom: 8px;
  }

  .student-portrait-col {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex: 1;
  }

  .student-info-col {
    order: 3;
    text-align: center;
    padding: 12px 0 60px;
  }

  /* الكلمة الكبيرة */
  .student-word {
    font-size: clamp(52px, 16vw, 96px) !important;
    display: block;
    text-align: center;
    line-height: 0.92 !important;
  }

  .student-verb {
    font-size: 15px !important;
    text-align: center;
    display: block;
    margin-bottom: 2px;
  }

  /* الصورة تملأ المنطقة الوسطى */
  .student-portrait {
    height: 45vh !important;
    height: 45dvh !important;
    width: auto !important;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible !important;
    background: transparent !important;
  }

  .student-portrait img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    object-position: bottom center;
    display: block;
  }

  /* معلومات الطالب */
  .student-roman {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  .student-name {
    font-size: clamp(20px, 5vw, 28px) !important;
    margin-bottom: 6px !important;
  }

  .student-role {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  .student-divider {
    margin: 12px auto 0 !important;
  }

  /* إخفاء الـ SVG comet على الموبايل */
  .ribbon-svg {
    display: none !important;
  }

  /* progress dots تبقى في مكانها */
  .students-progress {
    position: absolute !important;
    bottom: 20px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    z-index: 5;
  }

  /* hint نص السحب */
  .students-scroll-hint {
    position: absolute !important;
    top: 72px !important;
    right: 20px !important;
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   5. RIBBON BRIDGE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ribbon-bridge {
    height: 60px;
    overflow: hidden;
  }

  .ribbon-bridge-svg {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   6. PROBLEM / SOLUTION (المشكلة والحل)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .problem-solution {
    flex-direction: column !important;
    min-height: unset !important;
  }

  .ps-side {
    flex: none !important;
    min-width: unset !important;
    width: 100%;
    padding: 52px 24px !important;
  }

  .ps-content {
    max-width: 100%;
  }

  .ps-title {
    font-size: clamp(22px, 6vw, 32px) !important;
    margin-bottom: 24px;
  }

  .ps-text {
    font-size: 15px !important;
    margin-bottom: 32px;
  }

  .ps-btn {
    padding: 14px 28px;
    font-size: 14px;
    width: 100%;
    text-align: center;
    display: block;
  }
}

/* ══════════════════════════════════════════════════════════════════
   7. WELCOME SECTION
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .welcome {
    padding: 80px 0;
  }

  .welcome-title {
    font-size: clamp(28px, 7vw, 44px) !important;
    margin-bottom: 24px;
  }

  .welcome-body {
    font-size: 16px !important;
    line-height: 1.75;
    margin-bottom: 36px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   8. TRANSFORMATION STORIES (شهادات الأهل)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .transform {
    padding: 80px 0;
  }

  .transform-header {
    margin-bottom: 40px;
  }

  .transform-title {
    font-size: clamp(28px, 7vw, 44px) !important;
  }

  .transform-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 20px;
    margin-bottom: 40px;
  }

  .transform-card {
    padding: 28px 20px 24px !important;
    border-radius: 16px !important;
    gap: 16px !important;
  }

  .tc-quote {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  .tc-quote-mark {
    font-size: 64px !important;
    top: 20px;
    right: 20px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   9. DIRECTOR'S LETTER (كلمة المديرة)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .director {
    padding: 80px 0;
  }

  .director-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .director-portrait {
    max-width: 280px;
    margin: 0 auto;
  }

  .director-quote {
    font-size: clamp(22px, 5.5vw, 36px) !important;
    margin-bottom: 24px;
  }

  .director-body {
    font-size: 16px !important;
    line-height: 1.75;
  }

  .director-signature {
    gap: 12px;
    flex-direction: column !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   10. A DAY AT CIS (Timeline)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .dayone {
    padding: 72px 0;
    overflow: hidden;
  }

  .dayone-header {
    margin-bottom: 48px;
    padding: 0 4px;
  }

  .dayone-title {
    font-size: clamp(22px, 5.5vw, 36px) !important;
  }

  /* جدول أحداث اليوم: عمود واحد بسيط */
  .dayone-track {
    position: relative;
    padding: 0;
    width: 100%;
    direction: rtl !important;
  }

  /* خط العمود الجانبي */
  .dayone-spine {
    position: absolute;
    left: 24px !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 2px !important;
    transform: none !important;
  }

  /* كل حدث — تخطيط عمودي بسيط */
  .dayone-moment,
  .dayone-moment:nth-child(odd),
  .dayone-moment:nth-child(even) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 28px 0 28px 56px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    position: relative !important;
    border-bottom: 1px solid var(--hairline-soft);
  }

  .dayone-moment:last-child {
    border-bottom: none !important;
  }

  .dm-dot {
    position: absolute !important;
    left: 18px !important;
    right: auto !important;
    top: 32px !important;
    transform: none !important;
    width: 14px !important;
    height: 14px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: var(--dot-color, var(--orange)) !important;
    margin: 0 !important;
  }

  .dm-content {
    width: 100%;
  }

  .dm-category {
    font-size: 11px;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
  }

  .dm-title {
    font-size: 18px !important;
    margin-bottom: 8px;
  }

  .dm-text {
    font-size: 14px !important;
    line-height: 1.65;
  }

  /* الصندوق الداكن الختامي — padding مضغوط على الموبايل */
  .dayone-closing {
    margin-top: 40px !important;
    padding: 36px 24px 32px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    text-align: center;
  }

  .dayone-statement {
    font-size: clamp(20px, 5.5vw, 30px) !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    color: var(--paper) !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   11. LEVELS (المراحل الدراسية)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .levels {
    padding: 80px 0;
  }

  .levels-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 4px;
  }

  .levels-title {
    font-size: clamp(26px, 6.5vw, 42px) !important;
  }

  .levels-lede {
    font-size: 15px !important;
  }

  .levels-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .level-card {
    aspect-ratio: 3/4 !important;
    min-height: 460px;
    padding: 28px 20px 24px !important;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
  }

  .level-card::before {
    background-position: center top !important;
    background-size: cover !important;
  }

  .level-card::after {
    background: linear-gradient(180deg, 
      rgba(9, 14, 22, 0.45) 0%, 
      rgba(9, 14, 22, 0.1) 25%, 
      rgba(9, 14, 22, 0.4) 55%, 
      rgba(9, 14, 22, 0.88) 78%, 
      rgba(9, 14, 22, 0.98) 100%) !important;
  }

  .level-title {
    font-size: 22px !important;
  }

  .level-body {
    font-size: 13.5px !important;
    line-height: 1.6;
    margin-bottom: 16px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   12. PROGRAMS (البرامج الأربعة)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .programs {
    padding: 80px 0;
  }

  .programs-header {
    margin-bottom: 40px;
  }

  .programs-title {
    font-size: clamp(26px, 6.5vw, 42px) !important;
  }

  .programs-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  .program-card {
    aspect-ratio: unset !important;
    min-height: 340px !important;
    padding: 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
  }

  .program-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: auto !important;
  }

  .program-tag {
    order: 1 !important;
    font-size: 7.5px !important;
    letter-spacing: 0.04em !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 1) !important;
  }

  .program-icon {
    order: 2 !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  .program-bottom {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .program-title {
    font-size: 17px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }

  .program-text {
    font-size: 11.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }

  .program-cta {
    font-size: 11px !important;
    padding-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .program-cta .circle {
    width: 22px !important;
    height: 22px !important;
    font-size: 10px !important;
    flex-shrink: 0;
  }
}

@media (max-width: 400px) {
  .programs-grid {
    grid-template-columns: 1fr !important;
  }

  .program-card {
    min-height: 180px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   13. BUNYAN AT HOME
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .bunyan-home {
    padding: 80px 0;
  }

  .bh-header {
    margin: 0 auto 40px !important;
    max-width: 100%;
    text-align: center;
  }

  .bh-title {
    font-size: clamp(22px, 5.5vw, 34px) !important;
    line-height: 1.3 !important;
  }

  .bh-lede {
    font-size: 15px !important;
  }

  .bh-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 40px;
  }

  .bh-card {
    padding: 28px 20px 24px !important;
    border-radius: 16px !important;
  }

  .bh-icon {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
  }

  .bh-card-title {
    font-size: 18px !important;
    margin-bottom: 14px !important;
  }

  .bh-card-text {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .bh-footer-note {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-top: 32px;
    margin-top: 0 !important;
  }

  .bh-final {
    font-size: 20px !important;
    margin-bottom: 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   14. STORIES
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .stories {
    padding: 80px 0;
  }

  .stories-header {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 36px;
    text-align: center;
  }

  .stories-title {
    font-size: clamp(26px, 6.5vw, 40px) !important;
  }

  .stories-lede {
    font-size: 14px !important;
    max-width: 100%;
  }

  .stories-header .cta-round {
    justify-content: center;
  }

  .stories-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .story-card {
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .story-img-wrap {
    width: 100% !important;
    height: 215px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f1f4f8 !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
  }

  .story-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .story-image {
    aspect-ratio: 1/1 !important;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
  }
  .story-image::before {
    background-size: cover !important;
    background-position: center center !important;
  }

  .story-title {
    font-size: 17px !important;
  }

  .story-excerpt {
    font-size: 13.5px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   15. ADMISSION (التسجيل)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .admission {
    padding: 80px 0;
  }

  /* Fee Calculator Section Responsive Fix */
  .fee-calculator-section {
    padding: 70px 0 !important;
    overflow-x: hidden !important;
  }

  .calc-title-area {
    margin-bottom: 35px !important;
  }

  .calc-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    width: 100% !important;
  }

  .calc-form-card {
    padding: 22px 16px !important;
    border-radius: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .calc-receipt-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .calc-receipt-card {
    padding: 26px 20px !important;
    border-radius: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .calc-group {
    margin-bottom: 22px !important;
    width: 100% !important;
  }

  .calc-label {
    font-size: 14.5px !important;
    margin-bottom: 10px !important;
  }

  .luxury-select-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .luxury-select-trigger {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }

  .luxury-trigger-content {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    gap: 8px !important;
  }

  .luxury-trigger-label {
    font-size: 14px !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .luxury-trigger-badge {
    font-size: 11.5px !important;
    padding: 3px 8px !important;
    flex-shrink: 0 !important;
  }

  .luxury-trigger-arrow {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    margin-inline-start: 6px !important;
  }

  .receipt-divider::before,
  .receipt-divider::after {
    display: none !important;
  }

  .total-amount {
    font-size: 34px !important;
  }

  .adm-inner {
    gap: 48px;
  }

  .adm-title {
    font-size: clamp(32px, 8vw, 52px) !important;
  }

  .adm-lede {
    font-size: 15px !important;
  }

  .adm-conditions {
    gap: 32px !important;
  }

  .adm-condition {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .ac-num {
    width: auto !important;
  }

  .ac-digit {
    font-size: 48px !important;
  }

  .ac-title {
    font-size: 18px !important;
  }

  .ac-text {
    font-size: 14px !important;
    line-height: 1.7;
  }

  .adm-cta-block {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 32px 24px !important;
    gap: 28px !important;
    border-radius: 16px !important;
  }

  .adm-cta-heading {
    font-size: 20px !important;
  }

  .adm-cta-actions {
    flex-direction: column !important;
    width: 100%;
    gap: 12px;
  }

  .adm-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   16. CLOSING SECTION
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .closing {
    padding: 80px 0;
  }

  .closing-mark {
    margin-bottom: 36px;
  }

  .closing-ar {
    font-size: clamp(24px, 7vw, 40px) !important;
    line-height: 1.35;
    margin-bottom: 24px;
  }

  .closing-en {
    font-size: 15px !important;
    margin-bottom: 40px;
    line-height: 1.6;
  }

  .closing-actions {
    flex-direction: column !important;
    align-items: center;
    gap: 16px;
  }

  .closing-actions .cta-round {
    font-size: 14px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   17. FOOTER
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .site-footer {
    padding: 60px 0 28px;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 36px;
    margin-bottom: 40px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
  }

  .footer-logo img {
    height: 44px;
  }

  .footer-tagline {
    font-size: 15px;
    max-width: 100%;
    text-align: center;
  }

  .footer-socials {
    justify-content: center !important;
    margin-top: 20px !important;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col-title {
    margin-bottom: 16px;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  .footer-contact-list li {
    text-align: center;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   18. CTA BUTTONS (عامة)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .cta-round {
    font-size: 14px;
    gap: 12px;
  }

  .cta-round .circle {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0;
  }

  .cta-pill {
    font-size: 14px !important;
    padding: 14px 24px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   19. WHATSAPP FLOAT BUTTON
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .wa-float {
    bottom: 20px !important;
    left: 16px !important;
    right: auto !important;
    font-size: 0 !important;
    overflow: hidden !important;
  }

  .wa-float > div {
    width: 52px !important;
    height: 52px !important;
    font-size: 0 !important;
    overflow: hidden !important;
  }

  .wa-float svg {
    width: 26px !important;
    height: 26px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   20. GENERAL SECTION PADDING على الموبايل
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .wrap {
    padding: 0 20px !important;
  }

  /* headings عامة */
  .transform-header .transform-title,
  .bh-header .bh-title,
  .programs-header .programs-title,
  .levels-header .levels-title,
  .adm-title {
    letter-spacing: -0.02em !important;
  }

  /* eyebrow labels — أصغر */
  .transform-eyebrow,
  .bh-eyebrow,
  .programs-eyebrow,
  .levels-eyebrow,
  .dayone-eyebrow,
  .adm-eyebrow,
  .welcome-eyebrow,
  .director-eyebrow {
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 16px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   21. REVEAL ANIMATION — أسرع على الموبايل
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .reveal {
    transition: opacity 0.6s ease, transform 0.6s ease !important;
    transform: translateY(20px) !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   22. MOBILE MENU — التحفة التصميمية والأنيميشن الفاخر للهواتف الذكية
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: calc(env(safe-area-inset-top, 20px) + 20px) 24px calc(env(safe-area-inset-bottom, 20px) + 24px) !important;
    background: radial-gradient(130% 100% at 100% 0%, #162846 0%, #0D1B2E 50%, #070F1B 100%) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-16px) scale(0.985) !important;
    transition: opacity 0.45s cubic-bezier(0.19, 1, 0.22, 1),
                visibility 0.45s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.45s cubic-bezier(0.19, 1, 0.22, 1) !important;
    box-sizing: border-box !important;
  }

  /* توهجات فخمة في خلفية القائمة لإعطاء عمق بصري استثنائي */
  .mobile-menu::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 131, 58, 0.2) 0%, rgba(232, 131, 58, 0) 70%);
    pointer-events: none;
    z-index: 0;
  }

  .mobile-menu::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 122, 58, 0.16) 0%, rgba(107, 122, 58, 0) 70%);
    pointer-events: none;
    z-index: 0;
  }

  /* حالة التفعيل عند فتح القائمة */
  .mobile-menu.active,
  .mobile-menu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  /* هيدر القائمة العلوية */
  .mobile-menu-header {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* الشعار ناصع البياض فوق الخلفية الفاخرة */
  .mobile-menu-header .logo-link {
    display: flex;
    align-items: center;
  }

  .mobile-menu-header .logo-link img {
    height: 38px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    transition: transform 0.3s ease;
  }

  /* زر الإغلاق الزجاجي مع حركة دوران تفاعلية */
  .mobile-menu-close {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
    font-size: 20px !important;
    line-height: 1 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .mobile-menu-close:active {
    transform: rotate(90deg) scale(0.92) !important;
    background: rgba(232, 131, 58, 0.25) !important;
    border-color: var(--orange) !important;
    color: var(--orange) !important;
  }

  /* جسم الروابط */
  .mobile-nav {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 8px 0 !important;
  }

  .mobile-nav-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* تتابع دخول الروابط (Staggered Animation) */
  .mobile-nav-list li {
    opacity: 0;
    transform: translateX(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu.active .mobile-nav-list li,
  .mobile-menu.open .mobile-nav-list li {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-menu.active .mobile-nav-list li:nth-child(1), .mobile-menu.open .mobile-nav-list li:nth-child(1) { transition-delay: 0.08s; }
  .mobile-menu.active .mobile-nav-list li:nth-child(2), .mobile-menu.open .mobile-nav-list li:nth-child(2) { transition-delay: 0.13s; }
  .mobile-menu.active .mobile-nav-list li:nth-child(3), .mobile-menu.open .mobile-nav-list li:nth-child(3) { transition-delay: 0.18s; }
  .mobile-menu.active .mobile-nav-list li:nth-child(4), .mobile-menu.open .mobile-nav-list li:nth-child(4) { transition-delay: 0.23s; }
  .mobile-menu.active .mobile-nav-list li:nth-child(5), .mobile-menu.open .mobile-nav-list li:nth-child(5) { transition-delay: 0.28s; }
  .mobile-menu.active .mobile-nav-list li:nth-child(6), .mobile-menu.open .mobile-nav-list li:nth-child(6) { transition-delay: 0.33s; }
  .mobile-menu.active .mobile-nav-list li:nth-child(7), .mobile-menu.open .mobile-nav-list li:nth-child(7) { transition-delay: 0.38s; }
  .mobile-menu.active .mobile-nav-list li:nth-child(8), .mobile-menu.open .mobile-nav-list li:nth-child(8) { transition-delay: 0.43s; }

  /* ترقيم الروابط الأنيق (01, 02, 03...) */
  .mobile-nav-list li:nth-child(1) a::before { content: '01'; }
  .mobile-nav-list li:nth-child(2) a::before { content: '02'; }
  .mobile-nav-list li:nth-child(3) a::before { content: '03'; }
  .mobile-nav-list li:nth-child(4) a::before { content: '04'; }
  .mobile-nav-list li:nth-child(5) a::before { content: '05'; }
  .mobile-nav-list li:nth-child(6) a::before { content: '06'; }
  .mobile-nav-list li:nth-child(7) a::before { content: '07'; }
  .mobile-nav-list li:nth-child(8) a::before { content: '08'; }

  /* تصميم الروابط والتفاعلات الدقيقة */
  .mobile-nav-list a.mobile-link {
    display: flex !important;
    align-items: center !important;
    padding: 13px 10px !important;
    font-family: 'Graphik Arabic', sans-serif !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    border-radius: 10px;
    letter-spacing: -0.01em;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .mobile-nav-list a.mobile-link::before {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(232, 131, 58, 0.7);
    margin-inline-end: 14px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    opacity: 0.85;
  }

  /* سهم انسيابي رقيق في الطرف الأيسر */
  .mobile-nav-list a.mobile-link::after {
    content: '‹';
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
    margin-inline-start: auto;
    transform: translateX(0);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-nav-list a.mobile-link:hover,
  .mobile-nav-list a.mobile-link:active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-4px) !important;
  }

  .mobile-nav-list a.mobile-link:hover::after,
  .mobile-nav-list a.mobile-link:active::after {
    color: var(--orange);
    transform: translateX(-6px);
  }

  /* تمييز الصفحة الحالية بنور ذهبي فخم */
  .mobile-nav-list a.mobile-link.active,
  .mobile-nav-list a.mobile-link.is-current {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    background: linear-gradient(90deg, rgba(232, 131, 58, 0.16) 0%, rgba(232, 131, 58, 0.03) 100%) !important;
    border-right: 3px solid var(--orange) !important;
    padding-right: 14px !important;
  }

  .mobile-nav-list a.mobile-link.active::before,
  .mobile-nav-list a.mobile-link.is-current::before {
    color: var(--orange) !important;
    opacity: 1;
  }

  .mobile-nav-list a.mobile-link.active::after,
  .mobile-nav-list a.mobile-link.is-current::after {
    content: '•';
    font-size: 16px;
    color: var(--orange);
    text-shadow: 0 0 10px rgba(232, 131, 58, 0.8);
  }

  /* أزرار الحث على اتخاذ إجراء الفاخرة */
  .mobile-menu-footer {
    position: relative;
    z-index: 2;
    margin-top: auto !important;
    padding-top: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* زر الاتصال والتسجيل الرئيسي مع تدرج لوني دافئ وظلال ذهبية */
  .mobile-menu-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: 100% !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #E8833A 0%, #D06922 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(232, 131, 58, 0.35) !important;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .mobile-menu-cta:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(232, 131, 58, 0.4) !important;
  }

  /* زر الواتساب الزجاجي الزمردي */
  .mobile-menu-cta.whatsapp {
    background: rgba(37, 211, 102, 0.12) !important;
    border: 1px solid rgba(37, 211, 102, 0.35) !important;
    color: #25D366 !important;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-menu-cta.whatsapp:active {
    background: rgba(37, 211, 102, 0.24) !important;
    transform: scale(0.97);
  }
}

/* ══════════════════════════════════════════════════════════════════
   24. ACADEMICS PAGE — صفحة البرامج
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* تحكم بالفيض الأفقي */
  .ac-hero, .ac-why, .ac-stages, .ac-subjects, .ac-outcomes, .ac-cta {
    overflow-x: hidden;
  }

  /* ── هيرو البرامج ── */
  .ac-hero {
    padding: 100px 0 50px !important;
  }

  .ac-eyebrow {
    font-size: 13px !important;
    letter-spacing: 0.18em !important;
  }

  .ac-title {
    font-size: clamp(24px, 6.5vw, 40px) !important;
    line-height: 1.2 !important;
    margin: 14px 0 !important;
  }

  .ac-subtitle {
    font-size: 1rem !important;
    margin-top: 16px !important;
  }

  /* ── لماذا كامبريدج ── */
  .ac-why {
    padding: 56px 0 !important;
  }

  /* الشبكة الخارجية: عمودان → عمود واحد */
  .ac-why .wrap > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  .ac-why h2 {
    font-size: clamp(22px, 5.5vw, 36px) !important;
    margin-bottom: 24px !important;
  }

  /* الشبكة الداخلية 2×2 — تبقى 2 أعمدة بـ gap أصغر */
  .ac-why .reveal > div[style*="grid-template-columns: 1fr 1fr"] {
    gap: 20px !important;
  }

  .why-item h4 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .why-item p {
    font-size: 13px !important;
  }

  /* ختم وشعار كامبريدج المعتمد */
  .ac-why .cambridge-seal-container {
    width: auto !important;
    height: auto !important;
    margin-top: 24px !important;
  }

  .ac-why .cambridge-seal-disc {
    width: 210px !important;
    height: 210px !important;
  }

  /* ── المراحل الأربع ── */
  .ac-stages {
    padding: 56px 0 !important;
  }

  .ac-stages .wrap > .reveal {
    margin-bottom: 40px !important;
  }

  .ac-stages h2 {
    font-size: clamp(26px, 7vw, 44px) !important;
  }

  /* 4 أعمدة → عمود واحد */
  .ac-stages .wrap > div[style*="repeat(4, 1fr)"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .ac-stage-card {
    padding: 24px 20px !important;
  }

  .ac-stage-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
  }

  .ac-stage-card p {
    font-size: 14px !important;
  }

  /* ── جدول المواد ── */
  .ac-subjects {
    padding: 56px 0 !important;
  }

  .ac-subjects h2 {
    font-size: clamp(22px, 6vw, 38px) !important;
    margin-bottom: 0 !important;
  }

  .ac-subjects .reveal[style*="margin-bottom: 60px"] {
    margin-bottom: 32px !important;
  }

  /* الجدول يملأ عرض الشاشة كاملاً */
  .table-responsive {
    overflow-x: visible !important;
    border-radius: 8px;
  }

  .table-responsive table {
    width: 100% !important;
    min-width: unset !important;
    table-layout: fixed !important;
  }

  .table-responsive th,
  .table-responsive td {
    padding: 10px 6px !important;
    font-size: 11px !important;
    word-break: break-word;
    white-space: normal !important;
    line-height: 1.4;
  }

  /* عمود المادة أعرض قليلاً */
  .table-responsive th:first-child,
  .table-responsive td:first-child {
    width: 40% !important;
  }

  /* ── المخرجات ── */
  .ac-outcomes {
    padding: 56px 0 !important;
  }

  .ac-outcomes h2 {
    font-size: clamp(24px, 6.5vw, 42px) !important;
    margin-bottom: 12px !important;
  }

  .ac-outcomes .reveal[style*="margin-bottom: 80px"] {
    margin-bottom: 40px !important;
  }

  /* 3 أعمدة → عمود واحد */
  .ac-outcomes .wrap > div[style*="repeat(3, 1fr)"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 36px !important;
  }

  .outcome-col h3 {
    font-size: 1.1rem !important;
    margin-bottom: 16px !important;
  }

  .outcome-col li {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* ── CTA البرامج ── */
  .ac-cta {
    padding: 60px 0 !important;
  }

  .ac-cta h2 {
    font-size: clamp(22px, 6.5vw, 44px) !important;
    margin-bottom: 28px !important;
  }

  .ac-cta .cta-outline {
    padding: 14px 28px !important;
    font-size: 14px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   28. ADMISSIONS PAGE — صفحة القبول
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* هيرو */
  .adm-hero {
    padding: 100px 0 50px !important;
  }

  .adm-title {
    font-size: clamp(32px, 8vw, 52px) !important;
    margin-bottom: 24px !important;
  }

  .adm-hero-text {
    font-size: 1rem !important;
  }

  /* الرسوم */
  .adm-fees {
    padding: 56px 0 !important;
  }

  .af-title {
    font-size: clamp(22px, 6vw, 36px) !important;
  }

  /* الخصومات */
  .adm-discounts {
    padding: 56px 0 !important;
  }

  .ad-title {
    font-size: clamp(22px, 6vw, 36px) !important;
  }

  /* المواصلات */
  .sl-transport {
    padding: 56px 0 !important;
  }

  /* جدول المواصلات — قابل للتمرير مثل جدول الرسوم */
  .transport-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .transport-table table {
    min-width: 500px !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  .transport-table th,
  .transport-table td {
    padding: 16px 20px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
    word-break: normal !important;
  }

  .sl-transport h2 {
    font-size: clamp(20px, 5.5vw, 34px) !important;
    margin-bottom: 0 !important;
  }

  .sl-transport .reveal[style*="margin-bottom: 60px"] {
    margin-bottom: 32px !important;
  }

  /* الشبكة الثلاثية في المواصلات → عمود واحد */
  .sl-transport .wrap > div[style*="repeat(3, 1fr)"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 32px !important;
  }

  /* نموذج القبول */
  .adm-form-section {
    padding: 56px 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   27. TABLE SCROLL HINT — سهم تمرير الجدول
   ══════════════════════════════════════════════════════════════════ */
.table-scroll-hint {
  display: none;
}

@media (max-width: 900px) {
  .table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 52px;
    padding: 10px 20px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.4s ease;
    background: rgba(232, 131, 58, 0.08);
    border-radius: 100px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .table-scroll-hint svg {
    animation: hintBounce 1.1s ease-in-out infinite;
    flex-shrink: 0;
  }

  .table-scroll-hint svg:last-child {
    animation-delay: 0.18s;
  }

  .table-scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
  }

  @keyframes hintBounce {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(-6px); }
  }
}

/* ══════════════════════════════════════════════════════════════════
   26. SCHOOL LIFE PAGE — صفحة الحياة المدرسية
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .sl-hero, .sl-activities, .sl-facilities, .sl-day {
    overflow-x: hidden;
  }

  /* ── هيرو ── */
  .sl-hero {
    padding: 100px 0 50px !important;
  }

  .sl-eyebrow {
    font-size: 13px !important;
  }

  .sl-title {
    font-size: clamp(24px, 6.5vw, 38px) !important;
    margin-top: 14px !important;
  }

  .sl-subtitle {
    font-size: 1rem !important;
    margin-top: 16px !important;
  }

  /* ── الأنشطة: 3 أعمدة ← 2 أعمدة ── */
  .sl-activities {
    padding: 56px 0 !important;
  }

  .sl-activities .reveal[style*="margin-bottom: 80px"] {
    margin-bottom: 36px !important;
  }

  .sl-activities h2 {
    font-size: clamp(22px, 6vw, 38px) !important;
  }

  .sl-activities .wrap > div[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .activity-card {
    padding: 22px 16px !important;
  }

  .activity-icon {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
  }

  .activity-title {
    font-size: 1.05rem !important;
    margin-bottom: 12px !important;
  }

  .activity-list {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  /* ── المرافق: 3 أعمدة ← عمود واحد ── */
  .sl-facilities {
    padding: 56px 0 !important;
  }

  .sl-facilities .reveal[style*="margin-bottom: 80px"] {
    margin-bottom: 36px !important;
  }

  .sl-facilities h2 {
    font-size: clamp(24px, 6.5vw, 42px) !important;
  }

  .sl-facilities p[style*="1.2rem"] {
    font-size: 0.95rem !important;
  }

  .sl-facilities .wrap > div[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .facility-card h4 {
    font-size: 1.1rem !important;
  }

  /* ── جدول اليوم الدراسي ── */
  .sl-day {
    padding: 56px 0 !important;
  }

  .sl-day .reveal[style*="margin-bottom: 80px"] {
    margin-bottom: 36px !important;
  }

  .sl-day h2 {
    font-size: clamp(20px, 5.5vw, 36px) !important;
  }

  /* صفوف الجدول: جانب بجانب ← فوق بعض */
  .day-timeline > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 18px 0 !important;
  }

  .day-timeline > div > div:first-child {
    font-size: 13px !important;
  }

  .day-timeline > div > div:last-child {
    font-size: 14px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   25. BUNYAN PAGE — صفحة بنيان (الصندوق المنقل)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .bunyan-hero {
    overflow-x: hidden;
    padding: 100px 0 60px !important;
  }

  /* الصندوق: مصغّر + في المنتصف + ظل مقلّص */
  .bh-hero-visual {
    width: 80% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    padding: 44px 32px 44px !important;
    box-shadow: 18px 18px 0 var(--navy-dark) !important;
    align-self: center !important;
  }

  .bh-quote-box p {
    font-size: 1.3rem !important;
    margin-bottom: 18px !important;
    line-height: 1.5 !important;
  }

  .bh-large-letter {
    font-size: 12rem !important;
  }

  /* النص الرئيسي */
  .bh-hero-title {
    font-size: clamp(28px, 7vw, 44px) !important;
    line-height: 1.2 !important;
  }

  .bh-hero-lede {
    font-size: 1rem !important;
    margin-bottom: 32px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   23. ABOUT PAGE — صفحة من نحن
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* تحكم بالفيض الأفقي لكل أقسام الصفحة */
  .ab-hero,
  .ab-principal,
  .ab-vmv,
  .ab-story,
  .ab-leadership,
  .ab-cta {
    overflow-x: hidden;
  }

  /* ── قسم الهيرو ── */
  .ab-hero {
    padding: 100px 0 50px !important;
  }

  .ab-eyebrow {
    font-size: 13px !important;
    letter-spacing: 0.18em !important;
  }

  .ab-title {
    font-size: clamp(26px, 7vw, 42px) !important;
    line-height: 1.2 !important;
    margin-top: 14px !important;
  }

  /* ── قسم كلمة المديرة ── */
  .ab-principal {
    padding: 56px 0 !important;
  }

  /* تحويل الشبكة إلى عمود واحد */
  .ab-principal .wrap > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 36px !important;
  }

  /* صورة المديرة — مواءمة البورتريه الرأسي الفاخر */
  .ab-principal .reveal:first-child > div {
    aspect-ratio: 4 / 5 !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
  }

  /* نص الاقتباس */
  .ab-principal h2 {
    font-size: clamp(20px, 5.5vw, 30px) !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
  }

  .ab-principal p {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  .ab-principal .wrap > div > .reveal:last-child > div[style*="margin-top: 40px"][style*="display: flex"] {
    margin-top: 24px !important;
  }

  /* ── قسم الرؤية والرسالة والقيم ── */
  .ab-vmv {
    padding: 56px 0 !important;
  }

  .ab-vmv .wrap > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .vmv-card {
    padding: 28px 20px !important;
    border-radius: 8px !important;
  }

  .vmv-card h3 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
  }

  .vmv-card > div:first-child {
    font-size: 2.2rem !important;
    margin-bottom: 12px !important;
  }

  /* ── قسم القصة والتاريخ ── */
  .ab-story {
    padding: 56px 0 !important;
  }

  .ab-story .wrap > .reveal {
    margin-bottom: 40px !important;
    text-align: center !important;
  }

  .ab-story h2 {
    font-size: clamp(24px, 6.5vw, 42px) !important;
  }

  .ab-timeline {
    max-width: 100% !important;
  }

  .timeline-item h4 {
    font-size: 1.1rem !important;
  }

  .timeline-item > div[style*="font-size: 1.8rem"] {
    font-size: 1.5rem !important;
  }

  /* ── قسم القيادة ── */
  .ab-leadership {
    padding: 56px 0 !important;
  }

  .ab-leadership .wrap .reveal {
    margin-bottom: 40px !important;
  }

  .ab-leadership h2 {
    font-size: clamp(22px, 6vw, 38px) !important;
    margin-bottom: 8px !important;
  }

  .ab-leadership p {
    font-size: 15px !important;
  }

  /* بطاقات القيادة في السلايدر */
  .leader-card {
    flex: 0 0 200px !important;
  }

  .leader-name {
    font-size: 0.95rem !important;
  }

  .leader-role {
    font-size: 12px !important;
  }

  /* ── قسم CTA ── */
  .ab-cta {
    padding: 60px 0 !important;
  }

  .ab-cta h2 {
    font-size: clamp(22px, 6.5vw, 44px) !important;
    margin-bottom: 24px !important;
    line-height: 1.25 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   29. STORIES PAGE — صفحة القصص
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .st-hero {
    padding: 100px 0 50px !important;
  }

  .st-title {
    font-size: clamp(26px, 7vw, 42px) !important;
  }

  .st-content {
    padding: 56px 0 !important;
  }

  .filter-bar {
    gap: 8px !important;
    margin-bottom: 40px !important;
  }

  .filter-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   30. OUR-SYSTEM PAGE — صفحة المنظومة
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* هيرو */
  .os-hero {
    padding: 100px 0 56px !important;
  }

  .os-title {
    font-size: clamp(24px, 6.5vw, 40px) !important;
    margin-bottom: 20px !important;
  }

  .os-hero-text {
    font-size: 1rem !important;
    margin-bottom: 40px !important;
  }

  /* مقدمة */
  .os-intro {
    padding: 56px 0 !important;
  }

  .os-intro-text p {
    font-size: 1.1rem !important;
  }

  /* كل أقسام المحاور */
  .os-axis,
  .axis-spiritual {
    padding: 56px 0 !important;
  }

  .axis-header {
    margin-bottom: 40px !important;
  }

  .axis-title {
    font-size: clamp(22px, 6vw, 36px) !important;
  }

  /* بطاقات الركائز */
  .pillar-card {
    padding: 24px !important;
  }

  .pillar-num {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
  }

  .pillar-title {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }

  /* قسم التكامل */
  .os-integration {
    padding: 60px 0 !important;
  }

  /* قسم CTA */
  .os-cta {
    padding: 60px 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   31. CONTACT PAGE — صفحة تواصل معنا
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* هيرو — لوحة المعلومات */
  .co-panel {
    padding: 100px 24px 48px !important;
  }

  .co-headline {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important;
  }

  .co-sub {
    font-size: 0.9rem !important;
    margin-bottom: 32px !important;
  }

  /* الخريطة */
  .co-map {
    height: 40vh !important;
    min-height: 280px !important;
  }

  /* قسم بطاقات التواصل */
  .co-cards-sec {
    padding: 56px 20px !important;
  }

  /* قسم النموذج */
  .co-form-sec {
    padding: 56px 20px !important;
  }

  .co-form-card {
    padding: 28px 20px !important;
  }

  /* قسم CTA */
  .co-cta {
    padding: 60px 20px !important;
  }

  .co-cta-h {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
  }
}
