/* ============================================
   أكاديمية رواد للتدريب — Premium Redesign (RTL)
   Reference: AUC Professional Dev, Riyada Academy
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --green:   #1a5c3a;
  --green2:  #124028;
  --green3:  #22743f;
  --gold:    #d4a843;
  --gold2:   #b08a2e;
  --gold3:   #e8bf5a;
  --dark:    #0a1a0f;
  --dark2:   #101f14;
  --white:   #ffffff;
  --offwhite:#f7faf8;
  --cream:   #f2f7f3;
  --text:    #0f1c13;
  --muted:   #4d6b55;
  --light:   #7a9982;
  --border:  #d4e4d9;
  --wa:      #25d366;
  --radius:  14px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow:    0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; font-size: 16px; direction: rtl; }

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
  text-align: right;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 6%;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s ease;
  background: transparent;
  direction: rtl;
}

.navbar.scrolled {
  background: rgba(10,26,15,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 9px;
  display: grid; place-items: center;
}
.nav-logo .logo-icon img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.nav-logo .name { font-size: 1.1rem; font-weight: 900; color: var(--white); }
.nav-logo .name span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; flex-direction: row-reverse; }
.nav-links a { color: rgba(255,255,255,0.78); font-size: 0.92rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

.btn-nav {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  transition: all 0.2s !important;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--gold2) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; display: block; }

/* ─── HERO ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10,26,15,0.90) 0%,
    rgba(26,92,58,0.75) 50%,
    rgba(212,168,67,0.20) 100%
  );
}

.hero-content {
  position: relative; z-index: 1;
  padding: 140px 6% 100px;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.35);
  color: var(--gold3);
  padding: 7px 18px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero h1 em { color: var(--gold); font-style: normal; }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.85;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold);
  color: var(--dark);
  padding: 15px 32px;
  border-radius: 10px;
  font-weight: 800; font-size: 0.98rem;
  box-shadow: 0 8px 28px rgba(212,168,67,0.4);
  transition: all 0.25s;
  font-family: 'Cairo', sans-serif;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212,168,67,0.48); }
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 15px 32px;
  border-radius: 10px;
  font-weight: 700; font-size: 0.98rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all 0.25s; backdrop-filter: blur(4px);
  font-family: 'Cairo', sans-serif;
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.75rem;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDown 2s ease infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── STATS STRIP ─────────────────────────── */
.stats-strip { background: var(--green2); padding: 0 6%; }
.stats-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 2.6rem; font-weight: 900;
  color: var(--gold); letter-spacing: -1px; line-height: 1;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 8px; font-weight: 600; }

/* ─── SECTIONS COMMON ─────────────────────── */
.section { padding: 100px 6%; }
.container { max-width: 1160px; margin: 0 auto; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green3); font-size: 0.8rem; font-weight: 700;
  margin-bottom: 16px;
}
.section-eyebrow::after {
  content: '';
  width: 28px; height: 2px; background: var(--gold);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 900; color: var(--dark);
  line-height: 1.2; margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--muted); max-width: 560px;
  line-height: 1.85;
}
.header-center { text-align: center; margin-bottom: 64px; }
.header-center .section-eyebrow { margin: 0 auto 16px; display: flex; justify-content: center; }
.header-center .section-eyebrow::after { display: none; }
.header-center .section-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.header-center .section-desc { margin: 0 auto; }

/* ─── ABOUT ──────────────────────────────── */
.about { background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-image-wrap { position: relative; order: 1; }
.about-text { order: 2; }
.about-image-wrap img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--dark);
  padding: 22px 28px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow);
}
.about-badge .num { font-size: 2.2rem; font-weight: 900; color: var(--gold); display: block; line-height: 1; }
.about-badge .txt { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

.about-list { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.about-item { display: flex; gap: 16px; align-items: flex-start; }
.about-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(26,92,58,0.1); border-radius: 10px;
  display: grid; place-items: center;
}
.about-icon svg { width: 20px; height: 20px; fill: var(--green); }
.about-item h4 { font-size: 0.96rem; font-weight: 800; color: var(--dark); margin-bottom: 3px; }
.about-item p { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

/* ─── COURSES ────────────────────────────── */
.courses { background: var(--white); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s; cursor: default;
}
.course-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.course-top {
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.course-card:nth-child(2) .course-top { background: linear-gradient(90deg, var(--gold), var(--green3)); }
.course-card:nth-child(3) .course-top { background: linear-gradient(90deg, var(--green2), var(--green)); }
.course-card:nth-child(4) .course-top { background: linear-gradient(90deg, var(--gold2), var(--green2)); }
.course-card:nth-child(5) .course-top { background: linear-gradient(90deg, var(--green3), var(--gold2)); }
.course-card:nth-child(6) .course-top { background: linear-gradient(90deg, var(--green), var(--green2)); }

.course-body { padding: 28px; }
.course-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--green2), var(--green));
  border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(26,92,58,0.25);
}
.course-icon svg { width: 26px; height: 26px; fill: var(--gold); }
.course-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.course-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }
.course-meta { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.course-meta span { font-size: 0.75rem; color: var(--light); display: flex; align-items: center; gap: 5px; }
.course-meta svg { width: 13px; height: 13px; fill: var(--green); }
.course-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 0.84rem; font-weight: 800;
  color: var(--green); transition: gap 0.2s;
}
.course-link:hover { gap: 10px; color: var(--green2); }
.course-link svg { width: 14px; height: 14px; fill: currentColor; transform: scaleX(-1); }

/* ─── WHY US ─────────────────────────────── */
.why-us { background: var(--green2); }
.why-us .section-title { color: var(--white); }
.why-us .section-eyebrow { color: var(--gold3); }
.why-us .section-eyebrow::before { background: var(--gold); }
.why-us .header-center .section-desc { color: rgba(255,255,255,0.55); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute; top: 0; right: 0; left: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s;
}
.why-card:hover { background: rgba(255,255,255,0.08); }
.why-card:hover::before { transform: scaleX(1); }
.why-card-icon {
  width: 56px; height: 56px;
  background: rgba(212,168,67,0.12);
  border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 22px;
}
.why-card-icon svg { width: 26px; height: 26px; fill: var(--gold); }
.why-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.75; }

/* ─── TESTIMONIALS ───────────────────────── */
.testimonials { background: var(--dark); padding: 100px 6%; }
.testimonials .section-title { color: var(--white); }
.testimonials .section-eyebrow { color: var(--gold3); }
.testimonials .section-eyebrow::before { background: var(--gold); }

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 32px 28px;
  transition: background 0.3s;
}
.testi-card:hover { background: rgba(255,255,255,0.07); }
.stars { display: flex; gap: 4px; margin-bottom: 18px; }
.stars svg { width: 16px; height: 16px; fill: var(--gold); }
.testi-card blockquote { font-size: 0.92rem; color: rgba(255,255,255,0.72); line-height: 1.85; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--gold));
  display: grid; place-items: center; font-size: 1rem; font-weight: 800; color: var(--white);
}
.testi-name { font-size: 0.9rem; font-weight: 800; color: var(--white); }
.testi-role { font-size: 0.76rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ─── CTA BAND ────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  padding: 72px 6%; position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; top: -70px; left: -70px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(212,168,67,0.07);
}
.cta-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--white); }
.cta-inner p { font-size: 1rem; color: rgba(255,255,255,0.65); margin-top: 8px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--dark);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 800; font-size: 0.95rem; white-space: nowrap;
  transition: all 0.2s; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-family: 'Cairo', sans-serif;
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-gold svg { width: 16px; height: 16px; fill: var(--wa); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 13px 27px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
  transition: all 0.2s; font-family: 'Cairo', sans-serif;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: white; }

/* ─── CONTACT ─────────────────────────────── */
.contact { background: var(--offwhite); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }

.info-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius);
  padding: 22px 24px; border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-icon {
  width: 46px; height: 46px; min-width: 46px;
  background: linear-gradient(135deg, var(--dark), var(--green2));
  border-radius: 10px; display: grid; place-items: center;
}
.info-icon svg { width: 20px; height: 20px; fill: var(--gold); }
.info-label { font-size: 0.75rem; font-weight: 700; color: var(--light); margin-bottom: 2px; }
.info-val { font-size: 0.92rem; font-weight: 700; color: var(--text); }

.contact-form-box {
  background: var(--white); border-radius: var(--radius);
  padding: 44px 40px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-form-box h3 { font-size: 1.4rem; font-weight: 900; color: var(--dark); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font-family: 'Cairo', sans-serif; font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text); background-color: var(--cream);
  transition: all 0.2s; outline: none;
  direction: rtl; text-align: right;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 46px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%230b2b1b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: left 16px center;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--green); background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(26,92,58,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; background: var(--green);
  color: var(--white); border: none; padding: 15px;
  border-radius: 10px; font-family: 'Cairo', sans-serif;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: all 0.25s; margin-top: 8px;
}
.btn-submit:hover { background: var(--green2); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(26,92,58,0.35); }
.form-msg { margin-top: 14px; padding: 13px 16px; border-radius: 9px; font-size: 0.9rem; font-weight: 600; display: none; }
.form-msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; display: block; }
.form-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }

/* ─── FOOTER ──────────────────────────────── */
footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 56px 6% 28px; direction: rtl; }
.footer-top {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.4); margin-top: 14px; line-height: 1.8; max-width: 270px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.28); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list a { font-size: 0.86rem; color: rgba(255,255,255,0.45); display: flex; gap: 8px; align-items: center; transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--gold); }
.footer-contact-list svg { width: 14px; height: 14px; fill: var(--gold); min-width: 14px; }
.footer-bottom { max-width: 1160px; margin: 28px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.25); flex-wrap: wrap; gap: 10px; }

/* ─── FLOATING WHATSAPP ───────────────────── */
.wa-float {
  position: fixed; bottom: 28px; left: 28px;
  width: 58px; height: 58px;
  background: var(--wa); border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  z-index: 9999; transition: all 0.25s;
  animation: waFloat 3s ease infinite;
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wa-float:hover { transform: scale(1.12) !important; animation: none; }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ─── MOBILE MENU ─────────────────────────── */
.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--dark); padding: 16px 6% 24px;
  z-index: 999; border-top: 1px solid rgba(255,255,255,0.06);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,0.75); padding: 14px 0; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu a:hover { color: var(--gold); }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap { order: 1; }
  .about-text { order: 2; }
  .about-badge { bottom: -16px; left: -8px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 72px 5%; }
  .courses-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
  .contact-form-box { padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── CURRENT ACADEMY LAYOUT FIXES ─────────── */
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 0 6%;
}
.hero-inner .hero-content {
  padding: 120px 0 90px;
}
.hero-floating-cards {
  position: relative;
  min-height: 360px;
}
.floating-card {
  position: absolute;
  width: 260px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
}
.floating-card-1 { top: 34px; right: 0; }
.floating-card-2 { bottom: 36px; left: 0; }
.floating-card-accent {
  width: 42px; height: 4px;
  border-radius: 999px;
  background: var(--gold);
  margin-bottom: 14px;
}
.floating-card h4 {
  color: var(--dark);
  font-size: 0.98rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.floating-card-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.floating-card-duration svg {
  width: 15px; height: 15px; fill: var(--green);
}
.floating-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.stats-bar {
  background: var(--white);
  padding: 0 6%;
  border-bottom: 1px solid var(--border);
}
.stats-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-bar .stat-item {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-bar .stat-item:first-child { border-right: none; }
.stats-bar .stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 8px;
}

.about {
  background:
    linear-gradient(180deg, rgba(246,248,244,0.92), rgba(255,255,255,1) 45%, rgba(246,248,244,0.96));
}
.about .container {
  max-width: 1180px;
}
.zigzag-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(42px, 6vw, 78px);
}
.zigzag-row + .zigzag-row {
  margin-top: 82px;
}
.zigzag-row-1 .zigzag-text,
.zigzag-row-2 .zigzag-text {
  grid-column: 2;
  text-align: right;
}
.zigzag-row-1 .zigzag-image,
.zigzag-row-2 .achievement-grid {
  grid-column: 1;
  grid-row: 1;
}
.zigzag-text .section-eyebrow {
  margin-bottom: 12px;
}
.zigzag-text .section-title {
  max-width: 560px;
  margin-right: 0;
  margin-left: auto;
  line-height: 1.18;
}
.zigzag-text .section-desc {
  max-width: 600px;
  margin-right: 0;
  margin-left: auto;
  font-size: 1rem;
  line-height: 1.95;
}
.zigzag-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 470px;
  box-shadow: 0 24px 70px rgba(9,40,26,0.16);
  isolation: isolate;
}
.zigzag-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,56,36,0.28), rgba(212,168,67,0.08) 55%, transparent);
  pointer-events: none;
}
.zigzag-image img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  display: block;
  object-fit: cover;
}
.about-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
.about-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(26,92,58,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 14px 34px rgba(9,40,26,0.06);
}
.about-icon {
  grid-column: 2;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  background: rgba(26,92,58,0.1);
}
.about-item > div:not(.about-icon) {
  grid-column: 1;
  grid-row: 1;
}
.about-item h4 {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 6px;
}
.about-item p {
  font-size: 0.9rem;
  line-height: 1.85;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.achievement-box {
  position: relative;
  min-height: 150px;
  padding: 28px 24px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(9,40,26,0.16);
}
.achievement-box::before {
  content: "";
  position: absolute;
  inset: auto -24px -36px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(212,168,67,0.18);
}
.achievement-num {
  position: relative;
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}
.achievement-label {
  position: relative;
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 900;
}

.filter-pills {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: -18px 0 34px;
}
.filter-pill {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(26,92,58,0.16);
}
.courses-list { display: grid; gap: 16px; }
.course-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.course-row:hover {
  transform: translateY(-3px);
  border-color: rgba(26,92,58,0.26);
  box-shadow: var(--shadow);
}
.course-row[style*="display: none"] { display: none !important; }
.course-row-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green2));
  box-shadow: 0 12px 26px rgba(26,92,58,0.2);
}
.course-row-icon svg { width: 30px; height: 30px; fill: var(--gold); }
.course-row-content h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
}
.course-row-content p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 680px;
}
.course-row .course-meta {
  border-top: 0;
  padding-top: 0;
  margin-top: 12px;
}
.course-row .course-link {
  margin-top: 0;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(26,92,58,0.08);
  white-space: nowrap;
}

.instructors { background: var(--cream); }
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.instructor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}
.instructor-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: var(--white);
  font-weight: 900;
  margin-bottom: 18px;
}
.instructor-card h3 {
  color: var(--dark);
  font-size: 1.06rem;
  font-weight: 900;
  margin-bottom: 5px;
}
.instructor-title { color: var(--green); font-size: 0.84rem; font-weight: 800; }
.instructor-specialty {
  color: var(--gold2);
  font-size: 0.76rem;
  font-weight: 800;
  margin: 7px 0 14px;
}
.instructor-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.8; }

.why-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.why-compact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
}
.why-compact-num,
.why-compact-icon {
  width: 64px; min-width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(212,168,67,0.14);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 900;
}
.why-compact-icon svg { width: 28px; height: 28px; fill: var(--gold); }
.why-compact-item h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.why-compact-item p { color: rgba(255,255,255,0.6); font-size: 0.86rem; line-height: 1.75; }

.career-transform {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.career-before,
.career-after {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.career-before { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.62); }
.career-after { background: rgba(212,168,67,0.16); color: var(--gold); }
.career-arrow {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  transform: scaleX(-1);
}
.career-arrow svg { width: 16px; height: 16px; fill: var(--gold); }

.contact-centered { max-width: 900px; margin: 0 auto; }
.info-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 28px;
}
.info-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 700;
}
.info-badge svg { width: 18px; height: 18px; min-width: 18px; fill: var(--green); }
.contact-centered .contact-form-box { max-width: 760px; margin: 0 auto; }
.cta-next-batch { color: var(--gold3) !important; font-weight: 800; }

@media (max-width: 1024px) {
  .instructors-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
    padding-top: 80px;
  }
  .hero-inner .hero-content {
    padding: 60px 0 24px;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-floating-cards {
    min-height: 220px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto 70px;
  }
  .floating-card { width: 230px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .stat-item:nth-child(2n) { border-right: none; }
  .zigzag-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .zigzag-row + .zigzag-row {
    margin-top: 64px;
  }
  .zigzag-row-1 .zigzag-text,
  .zigzag-row-2 .zigzag-text,
  .zigzag-row-1 .zigzag-image,
  .zigzag-row-2 .achievement-grid {
    grid-column: 1;
    grid-row: auto;
  }
  .zigzag-row-1 .zigzag-text,
  .zigzag-row-2 .zigzag-text {
    text-align: center;
  }
  .zigzag-text .section-eyebrow {
    justify-content: center;
  }
  .zigzag-text .section-title,
  .zigzag-text .section-desc {
    margin-right: auto;
    margin-left: auto;
  }
  .zigzag-image,
  .zigzag-image img {
    min-height: 360px;
  }
  .course-row { grid-template-columns: 60px minmax(0, 1fr); }
  .course-row .course-link { grid-column: 1 / -1; justify-content: center; }
  .why-compact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-inner { min-height: auto; }
  .hero-floating-cards { display: none; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stats-bar .stat-item { padding: 22px 12px; }
  .about { padding-top: 58px; }
  .zigzag-row { gap: 28px; }
  .zigzag-row + .zigzag-row { margin-top: 52px; }
  .zigzag-text .section-title { font-size: clamp(2rem, 11vw, 2.55rem); }
  .zigzag-text .section-desc { font-size: 0.94rem; line-height: 1.9; }
  .about-list { gap: 12px; margin-top: 24px; }
  .about-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 20px 18px;
  }
  .about-icon,
  .about-item > div:not(.about-icon) {
    grid-column: 1;
    grid-row: auto;
  }
  .zigzag-image,
  .zigzag-image img {
    min-height: 250px;
  }
  .achievement-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .achievement-box {
    min-height: 112px;
    padding: 20px 14px;
    text-align: center;
  }
  .achievement-label { font-size: 0.86rem; }
  .course-row { grid-template-columns: 1fr; text-align: center; padding: 20px; }
  .course-row-icon { margin: 0 auto; }
  .course-row .course-meta { justify-content: center; }
  .info-badges { grid-template-columns: 1fr; }
  .why-compact-item { flex-direction: column; align-items: center; text-align: center; }
}
