/* ═══════════════════════════════════════════════════════════
   Elevate Mind Academy — Global Design System
   Soft, modern, calming sage/sand palette  ·  Tajawal font
   ═══════════════════════════════════════════════════════════ */

@font-face { font-family:'Tajawal'; src:url('../fonts/tajawal-300.woff2') format('woff2'); font-weight:300; font-display:swap; }
@font-face { font-family:'Tajawal'; src:url('../fonts/tajawal-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Tajawal'; src:url('../fonts/tajawal-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Tajawal'; src:url('../fonts/tajawal-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Tajawal'; src:url('../fonts/tajawal-800.woff2') format('woff2'); font-weight:800; font-display:swap; }

/* ── Color tokens ─────────────────────────────────────────── */
:root {
  --sage:        #8BAF9A;
  --sage-light:  #B8D0C4;
  --sage-pale:   #EAF2EE;
  --blush:       #D9A89C;
  --blush-pale:  #FBF0EE;
  --sand:        #C8A882;
  --sand-light:  #E6D4BC;
  --sand-pale:   #FBF6F0;
  --dark-ink:    #2E3B35;
  --mid-ink:     #4A5E56;
  --soft-ink:    #7A9088;
  --page-bg:     #FDFAF6;
  --white:       #FFFFFF;
}

/* ── Global reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif !important;
  background-color: #FDFAF6 !important;
  color: #2E3B35 !important;
}

/* ── Tailwind color overrides ─────────────────────────────── */

/* Blue → Sage (buttons, links, rings) */
.bg-blue-700                      { background-color: #8BAF9A !important; }
.hover\:bg-blue-600:hover          { background-color: #7a9f8a !important; }
.text-blue-700                    { color: #8BAF9A !important; }
.hover\:text-blue-700:hover        { color: #8BAF9A !important; }
.border-blue-200                  { border-color: #B8D0C4 !important; }
.bg-blue-50                       { background-color: #EAF2EE !important; }
.focus\:ring-blue-500:focus        { --tw-ring-color: rgba(139,175,154,0.45) !important; }

/* Amber → Sand */
.text-amber-400                   { color: #C8A882 !important; }
.text-amber-500                   { color: #C8A882 !important; }
.bg-amber-100                     { background-color: #EAF2EE !important; }
.text-amber-500.h-8               { color: #8BAF9A !important; }

/* Slate adjustments for cards/forms */
.bg-slate-50                      { background-color: #FBF6F0 !important; }
.bg-slate-100                     { background-color: #FDFAF6 !important; }
.text-slate-800                   { color: #2E3B35 !important; }
.text-slate-700                   { color: #4A5E56 !important; }
.text-slate-600                   { color: #4A5E56 !important; }
.text-slate-500                   { color: #7A9088 !important; }
.text-slate-400                   { color: #7A9088 !important; }
.border-slate-300                 { border-color: #E6D4BC !important; }
.hover\:bg-slate-50:hover          { background-color: #FBF6F0 !important; }
.hover\:bg-slate-100:hover         { background-color: #EAF2EE !important; }
.text-slate-700.font-semibold     { color: #4A5E56 !important; }

/* ── Form inputs ──────────────────────────────────────────── */
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=number],
input[type=search],
select,
textarea {
  font-family: 'Tajawal', sans-serif !important;
}

.focus\:ring-2:focus {
  --tw-ring-color: rgba(139,175,154,0.4) !important;
}

/* ── Primary button ───────────────────────────────────────── */
.btn-primary {
  background: #8BAF9A;
  color: #FFFFFF;
  border-radius: 14px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139,175,154,0.3);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  background: #7a9f8a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,175,154,0.4);
}

/* ── Outline button ───────────────────────────────────────── */
.btn-outline {
  background: #FFFFFF;
  color: #4A5E56;
  border: 2px solid #E6D4BC;
  border-radius: 14px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-outline:hover {
  background: #FBF6F0;
  border-color: #C8A882;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: #FFFFFF;
  border: 1px solid #E6D4BC;
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(46,59,53,0.12);
}

/* ── Fade-up entrance animations ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.fade-up-1 { animation: fadeUp 0.55s ease both; animation-delay: 0.10s; }
.fade-up-2 { animation: fadeUp 0.55s ease both; animation-delay: 0.22s; }
.fade-up-3 { animation: fadeUp 0.55s ease both; animation-delay: 0.34s; }
.fade-up-4 { animation: fadeUp 0.55s ease both; animation-delay: 0.46s; }

/* ── Spinning dashed ring ─────────────────────────────────── */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin-ring { animation: spin-slow 20s linear infinite; }

/* ── Lesson player sidebar (dark area kept intentionally) ─── */
.lesson-link.active { background: rgba(139,175,154,0.15) !important; }

/* ── Dashboard sidebar active state ─────────────────────────*/
.bg-slate-800 { background-color: #2E3B35 !important; }
aside .bg-slate-700,
aside .hover\:bg-slate-700:hover { background-color: rgba(255,255,255,0.07) !important; }
.border-slate-700 { border-color: rgba(255,255,255,0.1) !important; }
.text-slate-300 { color: #B8D0C4 !important; }
.text-slate-400 { color: #7A9088 !important; }

/* Dashboard active nav uses bg-blue-700 — override already above */

  /* ── HERO ── */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #EAF2EE 0%, #FBF6F0 50%, #FBF0EE 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .hero-blob1 {
    position: absolute; top: -160px; left: -100px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139,175,154,0.18) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-blob2 {
    position: absolute; bottom: -120px; right: -80px;
    width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217,168,156,0.14) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-blob3 {
    position: absolute; top: 40%; left: 50%;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,168,130,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
  }
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-photo { order: -1; }
    .hero-badges, .hero-ctas { justify-content: center; }
  }

  .hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(139,175,154,0.15);
    border: 1px solid rgba(139,175,154,0.4);
    color: #5A8A72;
    font-size: 12px; font-weight: 600;
    padding: 6px 16px; border-radius: 100px;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 20px;
  }
  .hero-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8BAF9A; }

  .hero-name {
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 8px;
  }
  .hero-name em { font-style: normal; color: var(--sage); }

  .hero-title {
    font-size: 20px; font-weight: 500;
    color: var(--sand); margin-bottom: 16px;
  }
  .hero-desc {
    font-size: 16px; line-height: 1.8;
    color: var(--ink-mid); max-width: 440px;
    margin-bottom: 28px;
  }

  .hero-badges {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 36px;
  }
  .badge {
    background: white;
    border: 1px solid var(--sand-light);
    color: var(--ink-mid);
    font-size: 13px; font-weight: 500;
    padding: 6px 14px; border-radius: 100px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }

  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  
  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--sage);
    color: white; font-weight: 700;
    padding: 14px 28px; border-radius: 14px;
    font-size: 16px; text-decoration: none;
    box-shadow: 0 4px 20px rgba(139,175,154,0.4);
    transition: all 0.25s ease;
    font-family: 'Tajawal', sans-serif;
  }
  .btn-primary:hover { background: #7A9E8A; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(139,175,154,0.45); }
  .btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    border: 2px solid var(--sand-light);
    color: var(--ink-mid); font-weight: 700;
    padding: 14px 28px; border-radius: 14px;
    font-size: 16px; text-decoration: none;
    background: white;
    transition: all 0.25s ease;
    font-family: 'Tajawal', sans-serif;
  }
  .btn-outline:hover { border-color: var(--sand); color: var(--ink); background: var(--sand-pale); }

  /* Photo */
  .hero-photo { display: flex; justify-content: flex-end;}
  .photo-wrap {
    position: relative; display: inline-block;
    width: 340px; height: 340px;
  }
  .photo-ring-outer {
    position: absolute; inset: -16px; border-radius: 50%;
    border: 2px dashed rgba(139,175,154,0.35);
    animation: spin 30s linear infinite;
  }
  .photo-ring-inner {
    position: absolute; inset: -8px; border-radius: 50%;
    border: 1px solid rgba(200,168,130,0.3);
  }
  .photo-img {
    width: 340px; height: 340px; border-radius: 50%;
    object-fit: cover; object-position: top;
    border: 5px solid white;
    box-shadow: 0 20px 60px rgba(139,175,154,0.25), 0 8px 24px rgba(0,0,0,0.08);
    display: block;
  }
  .photo-placeholder {
    display: none; width: 340px; height: 340px; border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-pale), var(--blush-pale));
    border: 5px solid white;
    box-shadow: 0 20px 60px rgba(139,175,154,0.25);
    align-items: center; justify-content: center; flex-direction: column;
  }
  .photo-badge {
    position: absolute; bottom: 20px; right: -20px;
    background: white; border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    display: flex; align-items: center; gap: 10px;
  }
  .photo-badge-dot { width: 10px; height: 10px; border-radius: 50%; background: #4CAF7D; animation: pulse 2s infinite; }
  .photo-badge-text { font-size: 13px; font-weight: 600; color: var(--ink); }
  .photo-badge-sub { font-size: 11px; color: var(--ink-soft); }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

  /* ── STATS ── */
  .stats { background: white; padding: 28px 0; border-bottom: 1px solid var(--sand-light); }
  .stats-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; text-align: center;
  }
  @media (max-width: 640px) { .stats-inner { grid-template-columns: repeat(2,1fr); } }
  .stat-num { font-size: 38px; font-weight: 800; color: var(--sage); }
  .stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

  /* ── SECTION COMMON ── */
  .section { padding: 96px 24px; }
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-tag {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--sage);
    margin-bottom: 10px;
  }
  .section-title { font-size: clamp(26px,4vw,36px); font-weight: 800; color: var(--ink); margin-bottom: 14px; }
  .section-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.75; max-width: 560px; }

  /* ── ABOUT ── */
  .about { background: white; }
  .about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: start;
  }
  @media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

  .cred-list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
  .cred-item { display: flex; align-items: flex-start; gap: 16px; }
  .cred-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 12px;
    background: var(--sage-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
  }
  .cred-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
  .cred-sub { font-size: 13px; color: var(--ink-soft); }

  .mission-card {
    background: linear-gradient(145deg, #EAF2EE 0%, #FBF6F0 100%);
    border: 1px solid var(--sage-light);
    border-radius: 24px; padding: 40px;
  }
  .mission-icon { font-size: 36px; margin-bottom: 16px; }
  .mission-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
  .mission-body { font-size: 15px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 28px; }
  .location-divider { border-top: 1px solid var(--sage-light); padding-top: 24px; }
  .location-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
  .location-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .location-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
  .location-name { font-size: 14px; font-weight: 500; color: var(--ink-mid); }

  /* ── SERVICES ── */
  .services { background: var(--sand-pale); }
  .services-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 16px; margin-top: 48px;
  }
  @media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

  .service-card {
    background: white; border-radius: 20px; padding: 28px 22px;
    border: 1px solid var(--sand-light);
    text-align: center;
    transition: all 0.25s ease;
  }
  .service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(200,168,130,0.18); border-color: var(--sage-light); }
  .service-emoji {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--sage-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 16px;
  }
  .service-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
  .service-body { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }

  /* ── COURSES ── */
  .courses { background: white; }
  .courses-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 20px; margin-top: 48px;
  }
  @media (max-width: 900px) { .courses-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 560px) { .courses-grid { grid-template-columns: 1fr; } }

  .course-card {
    border-radius: 20px; overflow: hidden;
    border: 1px solid var(--sand-light);
    text-decoration: none;
    display: block;
    background: white;
    transition: all 0.25s ease;
  }
  .course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.09); }
  .course-img { width: 100%; height: 200px; object-fit: cover; display: block; }
  .course-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, var(--sage-pale), var(--blush-pale));
    display: flex; align-items: center; justify-content: center; font-size: 48px;
  }
  .course-body { padding: 20px; }
  .course-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.5; }
  .course-footer { display: flex; align-items: center; justify-content: space-between; }
  .course-price { font-size: 20px; font-weight: 800; color: var(--sage); }
  .course-orig { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; margin-right: 6px; }
  .course-link { font-size: 13px; font-weight: 600; color: var(--sand); }

  .courses-more { text-align: center; margin-top: 40px; }

  /* ── TESTIMONIALS ── */
  .testimonials { background: var(--sage-pale); }
  .testi-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 20px; margin-top: 48px;
  }
  @media (max-width: 900px) { .testi-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 560px) { .testi-grid { grid-template-columns: 1fr; } }

  .testi-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: box-shadow 0.25s;
  }
  .testi-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
  .testi-img { width: 100%; object-fit: cover; max-height: 300px; display: block; }
  .testi-caption { padding: 14px 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

  /* ── CONTACT ── */
  .contact {
    background: linear-gradient(150deg, #2E3B35 0%, #3D5048 100%);
    padding: 96px 24px;
    text-align: center;
    position: relative; overflow: hidden;
  }
  .contact::before {
    content: ''; position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139,175,154,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .contact-inner { max-width: 760px; margin: 0 auto; position: relative; }
  .contact-tag {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--sage-light); margin-bottom: 16px;
  }
  .contact-title { font-size: clamp(28px,5vw,48px); font-weight: 800; color: white; margin-bottom: 16px; }
  .contact-desc { font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 48px; }
  .contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 56px; }

  .btn-wa {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: white; font-weight: 700;
    padding: 16px 32px; border-radius: 16px; font-size: 17px;
    text-decoration: none; font-family: 'Tajawal', sans-serif;
    box-shadow: 0 4px 24px rgba(37,211,102,0.35);
    transition: all 0.25s;
  }
  .btn-wa:hover { background: #20C05B; transform: translateY(-2px); }
  .btn-courses {
    display: inline-flex; align-items: center; gap: 10px;
    border: 2px solid rgba(255,255,255,0.25);
    color: white; font-weight: 700;
    padding: 16px 32px; border-radius: 16px; font-size: 17px;
    text-decoration: none; font-family: 'Tajawal', sans-serif;
    backdrop-filter: blur(4px); background: rgba(255,255,255,0.06);
    transition: all 0.25s;
  }
  .btn-courses:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); }

  .location-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; max-width: 640px; margin: 0 auto; }
  @media (max-width: 640px) { .location-cards { grid-template-columns: 1fr; } }
  .loc-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px; padding: 18px;
    backdrop-filter: blur(6px);
  }
  .loc-name { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 4px; }
  .loc-note { font-size: 12px; color: rgba(255,255,255,0.45); }

  /* Divider wave */
  .wave-divider { line-height: 0; }
  .wave-divider svg { display: block; width: 100%; }

  /* Scroll indicator */
  .scroll-cue {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.45;
    animation: bob 2.5s ease-in-out infinite;
  }
  .scroll-cue span { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.06em; }
  @keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

  /* Fade-in */
  @keyframes fadeUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
  .fade-up { animation: fadeUp 0.7s ease both; }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.22s; }
  .delay-3 { animation-delay: 0.34s; }
  .delay-4 { animation-delay: 0.46s; }

  /* Mobile-first hero layout */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding-top: 100px !important;
    padding-bottom: 60px !important;
    gap: 40px !important;
  }
  .hero-photo { order: -1; justify-content: center !important; }
  .hero-badges, .hero-ctas { justify-content: center !important; }
  .hero-desc { margin-left: auto !important; margin-right: auto !important; }
  .photo-wrap { width: 260px !important; height: 260px !important; }
  .photo-img, .photo-placeholder { width: 260px !important; height: 260px !important; }
  .photo-badge { right: -10px !important; bottom: 10px !important; padding: 10px 14px !important; }
}
 
@media (max-width: 480px) {
  .hero-name { font-size: 40px !important; }
  .hero-ctas { flex-direction: column !important; align-items: center !important; }
  .btn-primary, .btn-outline { width: 100% !important; justify-content: center !important; max-width: 320px; }
  .photo-wrap { width: 220px !important; height: 220px !important; }
  .photo-img, .photo-placeholder { width: 220px !important; height: 220px !important; }
}
 
/* Stats */
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
  .stat-num { font-size: 28px !important; }
}
 
/* About */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
 
/* Services */
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 480px)  { .services-grid { grid-template-columns: 1fr !important; } }
 
/* Courses */
@media (max-width: 900px) { .courses-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 540px) { .courses-grid { grid-template-columns: 1fr !important; } }
 
/* Testimonials */
@media (max-width: 900px) { .testi-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 540px) { .testi-grid { grid-template-columns: 1fr !important; } }
 
/* Instagram */
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 480px)  { .ig-grid { grid-template-columns: 1fr !important; } }
 
/* Contact */
@media (max-width: 640px) {
  .contact-ctas { flex-direction: column !important; align-items: center !important; }
  .btn-wa, .btn-courses { width: 100% !important; justify-content: center !important; max-width: 320px; }
  .location-cards { grid-template-columns: 1fr !important; }
  .contact-desc { font-size: 16px !important; }
}
 
/* Section padding on mobile */
@media (max-width: 640px) {
  .section { padding: 60px 16px !important; }
  .section-title { font-size: 24px !important; }
}
 
/* ══════════════════ INSTAGRAM SECTION ══════════════════ */
.instagram { background: #fff; }
 
.ig-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px;
}
.ig-profile {
  display: flex; align-items: center; gap: 16px;
}
.ig-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 3px;
  flex-shrink: 0;
}
.ig-avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: white; padding: 3px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ig-avatar-inner img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ig-avatar-inner .ig-avatar-fallback {
  font-size: 28px; line-height: 1;
}
.ig-name { font-size: 17px; font-weight: 800; color: #2E3B35; margin-bottom: 2px; }
.ig-handle { font-size: 13px; color: #7A9088; }
 
.ig-follow-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366);
  color: white; font-weight: 700; font-size: 14px;
  padding: 10px 22px; border-radius: 12px;
  text-decoration: none; font-family: 'Tajawal', sans-serif;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.ig-follow-btn:hover { opacity: 0.88; transform: translateY(-1px); }
 
.ig-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 32px;
}
 
.ig-post {
  aspect-ratio: 1;
  border-radius: 16px; overflow: hidden;
  position: relative;
  background: #EAF2EE;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.ig-post:hover .ig-overlay { opacity: 1; }
.ig-post-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.ig-post:hover .ig-post-thumb { transform: scale(1.05); }
 
/* Placeholder cards for posts that can't be scraped */
.ig-post-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #EAF2EE, #FBF6F0);
  padding: 20px; text-align: center;
}
.ig-post-placeholder-icon { font-size: 36px; }
.ig-post-placeholder-text { font-size: 12px; color: #7A9088; line-height: 1.5; }
 
.ig-overlay {
  position: absolute; inset: 0;
  background: rgba(46,59,53,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
  border-radius: 16px;
}
.ig-overlay-icon { color: white; font-size: 28px; }
 
.ig-cta-row { text-align: center; }
.ig-cta-row p { font-size: 14px; color: #7A9088; margin-bottom: 16px; }
 
/* Embed container */
.ig-embed-wrap {
  border-radius: 20px; overflow: hidden;
  border: 1px solid #E6D4BC;
  max-width: 540px; margin: 0 auto 32px;
}

.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366);
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.ig-follow-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ── CAROUSEL ─────────────────────────────────────────────────────── */
.carousel-wrapper { position: relative; margin-top: 48px; }

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:active { cursor: grabbing; }

/* Every direct child of a carousel track becomes a fixed-width snap card */
.carousel-track > * {
  scroll-snap-align: start;
  flex: 0 0 280px;
  min-width: 0;
}
@media (max-width: 640px) {
  .carousel-track > * { flex: 0 0 82vw; }
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.carousel-dot.active {
  background: #2E3B35;
  transform: scale(1.35);
}

/* ── HOME CAROUSEL (grid-based, same card size as the 3-col grid) ── */
.home-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 14px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 48px;
  padding-bottom: 4px;
  cursor: grab;
}
.home-carousel::-webkit-scrollbar { display: none; }
.home-carousel:active { cursor: grabbing; }
.home-carousel > * { scroll-snap-align: start; }

@media (max-width: 900px) {
  .home-carousel { grid-auto-columns: calc(50% - 10px); }
}
@media (max-width: 560px) {
  .home-carousel { grid-auto-columns: 86%; }
}
