/* ========== FONTS ========== */
@font-face {
  font-family: 'Mada';
  src: url('assets/fonts/Mada-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'UthmanTaha';
  src: url('assets/fonts/UthmanTN1-Ver10.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

/* ========== RESET & TOKENS ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-cream: #FFFAF5;
  --bg-dark: #0a0a0a;
  --bg-card-dark: #111111;
  --emerald: #00A85A;
  --emerald-hover: #00C96D;
  --emerald-dark: #003D1F;
  --coral: #E74C3C;
  --coral-hover: #c0392b;
  --white: #FFFFFF;
  --white-70: rgba(255,255,255,0.7);
  --white-40: rgba(255,255,255,0.4);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --font-headline: 'Mada', 'Inter', sans-serif;
  --font-body: 'UthmanTaha', 'Inter', sans-serif;
  --font-english: 'Inter', sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

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

.text-accent { color: var(--emerald); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 760px;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 60px;
  padding: 12px 24px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-akhbar {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 22px;
  color: var(--white);
  background: var(--emerald);
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: -0.5px;
}
.logo-fews {
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  font-family: var(--font-headline);
  font-size: 14px;
  color: var(--white-70);
  transition: var(--transition);
  font-weight: 500;
}
.nav-link:hover { color: var(--white); }
.btn-waitlist {
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 30px;
  transition: var(--transition);
}
.btn-waitlist:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0 12px;
}
.mobile-menu.open { display: flex; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  overflow: hidden;
  padding: 120px 24px 60px;
}
.hero-marquee-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}
.marquee-line {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  direction: ltr;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 56px;
  color: var(--text-dark);
}
.marquee-track.marquee-reverse {
  animation: marquee-scroll-reverse 35s linear infinite;
  will-change: transform;
}
.marquee-logo {
  height: 52px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  flex-shrink: 0;
}
.marquee-logo-wide {
  height: 40px;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero-photo-wrapper {
  width: 520px;
  height: 520px;
  margin: 0 auto 24px;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 5;
  overflow: visible;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.08));
}
.hero-photo-face {
  opacity: 1;
  z-index: 2;
}
.hero-photo-robot {
  opacity: 0;
  z-index: 3;
}
.hero-photo-wrapper:hover .hero-photo-face {
  opacity: 0;
  transform: scale(0.95);
}
.hero-photo-wrapper:hover .hero-photo-robot {
  opacity: 1;
  transform: scale(1.03);
}
.hero-pre {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--emerald);
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 17px;
  transition: all var(--spring);
  min-width: 280px;
  justify-content: center;
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
}
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-hover));
  color: var(--white);
  box-shadow: 0 8px 30px rgba(0, 168, 90, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(0, 168, 90, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--text-dark);
  color: var(--white);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}
.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.btn-large {
  padding: 20px 48px;
  font-size: 20px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 4px;
  object-fit: contain;
}
.hero-micro {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ========== SECTIONS COMMON ========== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--white-70);
}

/* ========== PROGRAM GRID ========== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program-card {
  background: var(--bg-card-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--white-10);
  transition: all var(--spring);
  animation-delay: var(--delay, 0s);
}
.program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.program-card-image {
  height: 220px;
  overflow: hidden;
}
.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.program-card:hover .program-card-image img {
  transform: scale(1.05);
}
.program-card-content {
  padding: 24px;
}
.program-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.program-card-content h3 {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--white);
}
.program-card-content p {
  font-size: 15px;
  color: var(--white-70);
  line-height: 1.7;
}
.program-quote {
  padding: 24px;
  border-top: 1px solid var(--white-10);
}
.program-quote p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white-70);
  font-style: italic;
  margin-bottom: 8px;
}
.program-quote cite {
  font-family: var(--font-headline);
  font-size: 13px;
  color: var(--white-40);
  font-style: normal;
}

/* ========== STORY SECTION ========== */
.section-story {
  background: var(--bg-cream);
  padding: 100px 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 250px 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.story-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-avatars {
  display: flex;
}
.stat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--bg-cream);
  margin-inline-start: -12px;
}
.stat-avatar:first-child { margin-inline-start: 0; }
.stat-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
}
.stat-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
}
.stat-badge {
  background: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  color: var(--text-dark);
}
.stat-highlight {
  color: var(--emerald);
  font-weight: 900;
}
.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.story-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.story-content {
  padding-inline-start: 20px;
}
.story-tag {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--emerald);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.story-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.story-body {
  font-size: 16px;
  color: #444;
  margin-bottom: 32px;
  line-height: 1.8;
}
.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-top: 6px;
  flex-shrink: 0;
  opacity: 0.3;
}
.timeline-dot.active {
  background: var(--emerald);
  opacity: 1;
  box-shadow: 0 0 12px rgba(0, 168, 90, 0.4);
}
.timeline-item p {
  font-family: var(--font-headline);
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

/* ========== CREDENTIALS ========== */
.section-creds {
  background: var(--bg-cream);
  padding: 80px 0 100px;
}
.creds-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.cred-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all var(--spring);
  animation-delay: var(--delay, 0s);
}
.cred-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.cred-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.cred-label {
  display: block;
  padding: 16px 20px;
  font-family: var(--font-english);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}
.cred-accent {
  font-weight: 800;
  font-size: 18px;
}
.creds-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 60px;
  color: var(--text-dark);
  opacity: 1 !important;
  transform: none !important;
}
.creds-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all var(--spring);
  animation-delay: var(--delay, 0s);
  text-align: center;
}
.skill-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.skill-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.skill-label {
  display: block;
  padding: 16px 20px;
  font-family: var(--font-english);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}
.skill-accent {
  font-weight: 800;
  font-size: 18px;
}

/* ========== CTA SECTION ========== */
.section-cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background: var(--bg-dark);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(0, 168, 90, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 0%, rgba(0, 168, 90, 0.08) 0%, transparent 50%);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--white);
  margin-bottom: 32px;
}
.cta-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  margin-bottom: 16px;
}
.cta-micro {
  font-size: 14px;
  color: var(--white-40);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  padding: 40px 0;
  border-top: 1px solid var(--white-10);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--font-headline);
  font-size: 14px;
  color: var(--white-70);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social {
  color: var(--white-40);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white-05);
  border: 1px solid var(--white-10);
}
.footer-social:hover {
  color: var(--white);
  background: var(--white-10);
  transform: translateY(-2px);
}
.footer-newsletter {
  display: flex;
  border: 1px solid var(--white-10);
  border-radius: 30px;
  overflow: hidden;
}
.footer-email-input {
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--white);
  font-size: 14px;
  width: 180px;
  outline: none;
  direction: rtl;
}
.footer-email-input::placeholder { color: var(--white-40); }
.footer-subscribe-btn {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  background: var(--white-10);
  color: var(--white);
  border-inline-start: 1px solid var(--white-10);
  transition: var(--transition);
}
.footer-subscribe-btn:hover { background: var(--white-05); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--white-40);
  margin-top: 16px;
  font-family: var(--font-english);
}

/* ========== MODALS ========== */
/* Old modal styles removed — forms are now inline slide-down */
@keyframes field-appear {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== SLIDE-DOWN INLINE FORMS ========== */
.slide-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.slide-form.open {
  max-height: 400px;
  opacity: 1;
}
.slide-form-inner {
  padding: 20px 0 8px;
}
.slide-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.slide-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.slide-form-fields input:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.slide-form input {
  flex: 1;
  min-width: 140px;
  padding: 13px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  direction: rtl;
  transition: border-color 0.2s ease;
  font-family: var(--font-body);
}
.slide-form input::placeholder {
  color: rgba(0,0,0,0.35);
}
.slide-form input:focus {
  border-color: var(--emerald);
}
.slide-submit {
  padding: 13px 28px;
  border: none;
  border-radius: 12px;
  background: var(--text-dark);
  color: var(--white);
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.slide-submit:hover {
  background: #000;
}
.slide-submit:active {
  transform: scale(0.97);
}
.slide-submit-full {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}
.form-error {
  color: #e53935;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0 6px;
  text-align: right;
  direction: rtl;
}
.input-error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 2px rgba(229,57,53,0.15) !important;
}
.slide-note {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  margin-top: 10px;
  text-align: center;
}
.slide-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 168, 90, 0.08);
  border-radius: 12px;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-headline);
  animation: field-appear 0.4s ease forwards;
}
.slide-success.show {
  display: flex;
}

/* Dark variant for CTA section */
.slide-form-dark input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
}
.slide-form-dark input::placeholder {
  color: rgba(255,255,255,0.35);
}
.slide-form-dark input:focus {
  border-color: var(--emerald);
  background: rgba(255,255,255,0.1);
}
.slide-form-dark .slide-submit {
  background: var(--emerald);
  color: var(--white);
}
.slide-form-dark .slide-submit:hover {
  background: var(--emerald-hover);
}
.slide-form-dark .slide-note {
  color: rgba(255,255,255,0.35);
}
.slide-form-dark .slide-success {
  background: rgba(0, 168, 90, 0.15);
}

/* ========== ENGLISH LEVEL GATE ========== */
.eng-gate {
  text-align: center;
}
.eng-gate-label {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.eng-gate-options {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.eng-option {
  padding: 10px 18px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.eng-option:hover {
  border-color: rgba(0,0,0,0.2);
  background: var(--bg-cream);
}
.eng-option-ok {
  border-color: rgba(0, 168, 90, 0.2);
}
.eng-option-ok:hover {
  border-color: var(--emerald);
  background: rgba(0, 168, 90, 0.05);
}
.eng-option-best {
  border-color: rgba(0, 168, 90, 0.3);
  background: rgba(0, 168, 90, 0.04);
}
.eng-option-best:hover {
  border-color: var(--emerald);
  background: rgba(0, 168, 90, 0.08);
}
.eng-option.selected {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--white);
}
.eng-gate-result {
  margin-top: 12px;
  font-size: 13px;
  font-family: var(--font-headline);
  font-weight: 600;
  min-height: 20px;
}
.eng-gate-result.pass {
  color: var(--emerald);
}
.eng-gate-result.fail {
  color: #c0392b;
}

/* Dark variant */
.eng-gate-dark .eng-gate-label {
  color: rgba(255,255,255,0.8);
}
.eng-gate-dark .eng-option {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.eng-gate-dark .eng-option:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.eng-gate-dark .eng-option-ok:hover,
.eng-gate-dark .eng-option-best:hover {
  border-color: var(--emerald);
  background: rgba(0, 168, 90, 0.1);
}
.eng-gate-dark .eng-option-best {
  background: rgba(0, 168, 90, 0.08);
  border-color: rgba(0, 168, 90, 0.2);
}
.eng-gate-dark .eng-option.selected {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

/* Form wrap animation */
.akhbar-form-wrap {
  animation: field-appear 0.4s ease forwards;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) !important;
}
/* Hero elements should be visible on load */
.hero .reveal {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .reveal:nth-child(1) { animation-delay: 0.1s; }
.hero .reveal:nth-child(2) { animation-delay: 0.2s; }
.hero .reveal:nth-child(3) { animation-delay: 0.3s; }
.hero .reveal:nth-child(4) { animation-delay: 0.4s; }
.hero .reveal:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .program-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .program-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .program-card-image { height: 100%; min-height: 200px; }
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .story-stats {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .creds-images, .creds-skills {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar { padding: 10px 20px; border-radius: 50px; }

  .hero { padding: 100px 16px 40px; }
  .hero-photo-wrapper {
    width: 340px;
    height: 340px;
    margin-bottom: 20px;
  }
  .hero-headline { font-size: 32px; margin-bottom: 24px; }
  .btn { min-width: 100%; font-size: 15px; padding: 14px 28px; }
  .marquee-track { font-size: 32px; gap: 24px; }
  .marquee-logo { height: 36px; }

  .section { padding: 60px 0; }
  .section-dark { border-radius: var(--radius-md) var(--radius-md) 0 0; }

  .program-card {
    display: flex;
    flex-direction: column;
  }
  .program-card-image { height: 180px; }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-stats { flex-direction: column; }
  .story-main-img { height: 250px; }
  .story-content { padding-inline-start: 0; }

  .creds-images, .creds-skills {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cred-card img, .skill-card img {
    height: 180px;
  }
  .creds-headline { font-size: 26px; }

  .section-cta { padding: 80px 0; }
  .cta-headline { font-size: 32px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-right { flex-direction: column; }
  .footer-newsletter { width: 100%; }
  .footer-email-input { flex: 1; width: auto; }

  /* Slide forms stack on mobile */
  .slide-form-row {
    flex-direction: column;
  }
  .slide-form-fields {
    grid-template-columns: 1fr;
  }
  .slide-form input {
    min-width: 100%;
  }
}

/* Small Mobile */
@media (max-width: 420px) {
  .hero-photo-wrapper {
    width: 280px;
    height: 280px;
  }
  .hero-headline { font-size: 28px; }
  .hero-badges .badge-icon { width: 36px; height: 36px; }
}
