/* ================================================================
   SARDAM EDUCATION — Main Stylesheet
   sardameducation.org
================================================================ */

/* 1. Variables
---------------------------------------------------------------- */
:root {
  --primary:        #DC1FDD;
  --primary-dark:   #b018b1;
  --primary-light:  #e84de9;
  --secondary:      #f59e0b;
  --secondary-dark: #d97706;
  --accent:         #0891b2;
  --dark:           #0f172a;
  --dark-2:         #1e293b;
  --text:           #334155;
  --text-light:     #64748b;
  --border:         #e2e8f0;
  --bg-light:       #f8fafc;
  --white:          #ffffff;
  --success:        #10b981;
  --error:          #ef4444;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.14);
  --shadow-xl: 0 20px 48px rgba(0,0,0,.18);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: .3s ease;
}

/* 2. Reset & Base
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Language-specific fonts */
body.lang-en  { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
body.lang-ar  { font-family: 'Cairo', 'Noto Sans Arabic', Arial, sans-serif; line-height: 1.9; }
body.lang-ckb { font-family: 'Noto Sans Arabic', 'Cairo', Arial, sans-serif; line-height: 1.9; }

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* 3. Container
---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* 4. Sections
---------------------------------------------------------------- */
.section { padding: 6rem 0; }
.section-light { background: var(--bg-light); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  background: rgba(220,31,221,.1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* 5. Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-blue:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,31,221,.35);
}

/* 6. Preloader
---------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-ring {
  width: 54px; height: 54px;
  border: 4px solid rgba(255,255,255,.15);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 7. Back to Top
---------------------------------------------------------------- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  width: 46px; height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 500;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover   { background: var(--primary-dark); }

/* 8. Navbar
---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(15,23,42,.96);
  backdrop-filter: blur(12px);
  padding: .8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-text .logo-main {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.logo-text .logo-sub {
  display: block;
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: rgba(255,255,255,.08);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}
.lang-btn:hover { color: var(--white); background: rgba(255,255,255,.12); }
.lang-btn.active { background: var(--secondary); color: var(--dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* 9. Hero
---------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0420 0%, #520754 45%, #DC1FDD 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(220,31,221,.22) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: floatSlow 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: floatSlow 10s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 200px; height: 200px;
  border: 2px solid rgba(255,255,255,.06);
  top: 30%;
  left: 8%;
  animation: spin 30s linear infinite;
}
.hero-shape-4 {
  width: 80px; height: 80px;
  border: 2px solid rgba(245,158,11,.2);
  bottom: 25%;
  right: 12%;
  border-radius: var(--radius);
  animation: floatSlow 6s ease-in-out infinite;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 8rem 0 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--secondary);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 20px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  width: 4px; height: 10px;
  background: var(--white);
  border-radius: 2px;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.6s ease infinite;
}

/* 10. Stats
---------------------------------------------------------------- */
.stats-section {
  background: var(--dark);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: rgba(255,255,255,.03);
  text-align: center;
  padding: 2.5rem 1.5rem;
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,.07); }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-suffix { font-size: 1.5rem; color: var(--secondary); }
.stat-label {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-weight: 500;
}

/* 11. About
---------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-inner {
  text-align: center;
  color: rgba(255,255,255,.9);
}
.about-image-inner i { font-size: 5rem; margin-bottom: 1rem; opacity: .7; }
.about-image-inner p { font-size: 1.1rem; font-weight: 600; opacity: .8; }
.about-badge {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-end: -1rem;
  background: var(--secondary);
  color: var(--dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  line-height: 1.3;
}
.about-badge span { display: block; font-size: .75rem; font-weight: 600; opacity: .8; }

.about-label { color: var(--primary); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.about-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.about-text { color: var(--text-light); margin-bottom: 1rem; font-size: 1rem; }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.75rem 0; }
.about-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-inline-start: 4px solid var(--primary);
}
.about-card h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.about-card h4 i { color: var(--primary); }
.about-card p { font-size: .85rem; color: var(--text-light); line-height: 1.6; }

/* 12. Programs
---------------------------------------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.program-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.program-card:hover::after { opacity: 1; }
.program-card > * { position: relative; z-index: 1; }
.program-card:hover .prog-icon { background: rgba(255,255,255,.2); color: var(--white); }
.program-card:hover .prog-title,
.program-card:hover .prog-desc,
.program-card:hover .prog-link { color: var(--white); }
.program-card:hover .prog-link { border-color: rgba(255,255,255,.4); }

.prog-icon {
  width: 56px; height: 56px;
  background: rgba(220,31,221,.1);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.prog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
  transition: color var(--transition);
}
.prog-desc {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}
.prog-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid rgba(220,31,221,.25);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.prog-link i { font-size: .75rem; transition: transform var(--transition); }
.program-card:hover .prog-link i { transform: translateX(4px); }
[dir="rtl"] .prog-link i { transform: scaleX(-1); }
[dir="rtl"] .program-card:hover .prog-link i { transform: scaleX(-1) translateX(4px); }

/* 13. News
---------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.news-thumb {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.news-thumb-1 { background: linear-gradient(135deg, #7b0a7c, #DC1FDD); }
.news-thumb-2 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.news-thumb-3 { background: linear-gradient(135deg, #065f46, #10b981); }
.news-thumb-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 3rem;
  opacity: .18;
  color: var(--white);
}
.news-cat {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-date {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: .75rem;
}
.news-date i { color: var(--primary); }
.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
  line-height: 1.4;
}
.news-desc {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}
.news-link i { transition: transform var(--transition); }
.news-card:hover .news-link i { transform: translateX(4px); }
[dir="rtl"] .news-link i { transform: scaleX(-1); }
[dir="rtl"] .news-card:hover .news-link i { transform: scaleX(-1) translateX(4px); }

.news-cta { text-align: center; margin-top: 3rem; }

/* 14. Gallery
---------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
}
.gallery-item:nth-child(1) { background: linear-gradient(135deg, #667eea, #764ba2); grid-row: span 2; aspect-ratio: auto; }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #fa709a, #fee140); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--white);
}
.gallery-overlay i { font-size: 1.5rem; }
.gallery-overlay span { font-size: .9rem; font-weight: 600; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-cta { text-align: center; margin-top: 2.5rem; }

/* 15. CTA Banner
---------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.cta-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-content p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* 16. Contact
---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .75rem;
}
.contact-info > p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(220,31,221,.1);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.contact-item-text strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .15rem;
}
.contact-item-text span { font-size: .9rem; color: var(--text-light); }

.contact-social { display: flex; gap: .75rem; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: all var(--transition);
}
.social-btn.fb   { background: #1877F2; color: var(--white); }
.social-btn.tw   { background: #000000; color: var(--white); }
.social-btn.ig   { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: var(--white); }
.social-btn.yt   { background: #FF0000; color: var(--white); }
.social-btn.tt   { background: #010101; color: var(--white); }
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-light);
  transition: all var(--transition);
  font-family: inherit;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(220,31,221,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-alert {
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: none;
}
.form-alert.show { display: block; }
.form-alert.success { background: rgba(16,185,129,.1); color: #065f46; border: 1px solid rgba(16,185,129,.3); }
.form-alert.error   { background: rgba(239,68,68,.1);  color: #991b1b; border: 1px solid rgba(239,68,68,.3); }

/* 17. Footer
---------------------------------------------------------------- */
.footer {
  background: var(--dark);
  padding-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { margin-bottom: 1.25rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-links-list li { margin-bottom: .6rem; }
.footer-links-list a {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links-list a i { font-size: .65rem; color: var(--secondary); }
.footer-links-list a:hover { color: var(--white); }
.footer-contact-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .85rem; }
.footer-contact-list i { color: var(--secondary); font-size: .9rem; margin-top: .2rem; flex-shrink: 0; }
.footer-contact-list span { color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.6; }
.footer-social { display: flex; gap: .65rem; flex-wrap: wrap; }

.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { color: rgba(255,255,255,.4); font-size: .82rem; }
.footer-policy { display: flex; gap: 1.5rem; }
.footer-policy a { color: rgba(255,255,255,.4); font-size: .82rem; transition: color var(--transition); }
.footer-policy a:hover { color: var(--white); }

/* 18. Reveal animation
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 19. Keyframes
---------------------------------------------------------------- */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes floatSlow  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }
@keyframes scrollDown { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 22px; } }

/* 20. RTL tweaks
---------------------------------------------------------------- */
[dir="rtl"] .about-card { border-inline-start: 4px solid var(--primary); border-inline-end: none; }
[dir="rtl"] .footer-links-list a i { transform: scaleX(-1); }

/* 21. Responsive
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .about-grid    { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; }
  .about-image   { max-width: 500px; margin-inline: auto; }
  .contact-grid  { grid-template-columns: 1fr; }
  .news-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 0; bottom: 0;
    inset-inline-end: -100%;
    width: min(300px, 85vw);
    background: var(--dark-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: .25rem;
    transition: inset-inline-end var(--transition);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
    overflow-y: auto;
  }
  [dir="rtl"] .nav-links { inset-inline-end: auto; inset-inline-start: -100%; }
  .nav-links.open { inset-inline-end: 0; }
  [dir="rtl"] .nav-links.open { inset-inline-start: 0; }
  .nav-link { width: 100%; padding: .7rem 1rem; border-radius: var(--radius); font-size: .95rem; }
  .hamburger { display: flex; z-index: 1000; }

  .hero-title   { font-size: 2rem; }
  .hero-content { padding: 7rem 0 4rem; }

  .programs-grid { grid-template-columns: 1fr; }
  .news-grid     { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-row: auto; aspect-ratio: 4/3; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .about-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns  { flex-direction: column; align-items: flex-start; }
  .lang-switcher { display: none; }

  /* Show lang switcher in mobile nav as separate row */
  .nav-lang-mobile {
    display: flex !important;
    gap: .5rem;
    padding: .75rem 1rem;
    margin-top: .5rem;
  }
}
