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

:root {
  --navy: #091428;
  --navy-light: #0f1b3d;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #22c55e;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-warm: #f1f5f9;
  --text: #1e293b;
  --text-light: #64748b;
  --text-faint: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--navy); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-links a:hover { color: var(--navy); background: var(--bg-alt); }
.nav-links a.active { color: var(--navy); font-weight: 600; }

.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  margin-left: 0.5rem !important;
}

.nav-cta:hover { background: var(--green-dark) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  position: relative;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.hero-label .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.hero h1 .gradient {
  color: var(--green);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: var(--bg);
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--bg-alt);
}

.hero-visual { display: flex; justify-content: center; }

.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ── SECTIONS ── */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-navy .label { color: var(--green-light); }

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-navy .section-header h2 { color: #fff; }

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-navy .section-header p { color: rgba(255,255,255,0.7); }

/* ── FEATURE CARDS ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── PROGRAMME CARDS ── */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.programme-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.programme-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.programme-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.programme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.programme-card:hover .programme-thumb img {
  transform: scale(1.05);
}

.programme-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.programme-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.programme-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.programme-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.programme-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.programme-link {
  margin-left: auto;
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ── STATS ── */
.stats-section {
  padding: 4rem 0;
  background: var(--navy);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-grid .number {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green-light);
}

.stats-grid .desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.testimonial-card .quote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.author-info .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.author-info .role {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ── CTA ── */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  background: var(--navy);
  color: #fff;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-section .btn-primary {
  background: var(--green);
}

.cta-section .btn-primary:hover {
  background: var(--green-dark);
}

.cta-section .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.cta-section .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .icon {
  width: 44px; height: 44px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail .text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.1rem;
}

.contact-detail .text span {
  color: var(--text-light);
  font-size: 0.88rem;
}

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 27, 61, 0.08);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  width: 100%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  padding: 0.9rem;
  font-size: 0.95rem;
  border-radius: 12px;
}

.btn-submit:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-md);
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── ABOUT ── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.value-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-card .icon {
  width: 48px; height: 48px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team-card {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
}

.team-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.team-card .title {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── PROGRAMME DETAIL ── */
.prog-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.prog-detail-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1rem;
}

.prog-detail-header .desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.prog-hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 3rem;
  max-height: 360px;
  box-shadow: var(--shadow-lg);
}

.prog-hero-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.prog-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.prog-info-card .info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.prog-info-card .info-row:last-child { border-bottom: none; }

.prog-info-card .info-row .key { color: var(--text-light); font-weight: 500; }
.prog-info-card .info-row .val { color: var(--navy); font-weight: 600; }

.prog-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.module-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition);
}

.module-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }

.module-num {
  width: 36px; height: 36px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.module-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.module-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  background: var(--navy);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-light);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 0;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: #fff; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 2rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-left: 0.25rem;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: var(--bg-alt, rgba(255,255,255,0.06));
  color: var(--navy, var(--text));
}

.lang-toggle img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* ── RTL SUPPORT ── */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', -apple-system, sans-serif;
}

html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-cta {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

html[dir="rtl"] .hero-grid {
  direction: rtl;
}

html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-grid {
  direction: rtl;
}

html[dir="rtl"] .contact-detail {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .value-card {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .module-card {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .author {
  flex-direction: row-reverse;
}

html[dir="rtl"] .author-info {
  text-align: right;
}

html[dir="rtl"] .programme-meta {
  flex-direction: row-reverse;
}

html[dir="rtl"] .programme-link {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .programme-badge {
  right: auto;
  left: 1rem;
}

html[dir="rtl"] .prog-info-card .info-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .form-group select {
  background-position: left 1rem center;
}

html[dir="rtl"] .prog-detail-header {
  direction: rtl;
}

html[dir="rtl"] .about-content {
  direction: rtl;
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero h1 { font-size: 2.75rem; }
  .hero-image { max-width: 100%; }

  .features-grid, .programmes-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .about-content, .prog-detail-header { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
  }
  .mobile-toggle { display: block; }

  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 7rem 0 3rem; }
  .section { padding: 4rem 0; }
  .section-header h2 { font-size: 1.85rem; }
  .page-hero { padding: 8rem 0 3rem; }
  .page-hero h1 { font-size: 2.25rem; }

  .features-grid, .programmes-grid, .team-grid,
  .testimonials-grid, .values-grid, .prog-modules { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
