/* ─── LANGUAGE SYSTEM ────────────────────────────────────────────────────── */

/* Default: only English visible */
.t-en { display: inline; }
.t-de { display: none; }
.t-ur { display: none; }

/* German mode */
body.lang-de .t-en { display: none; }
body.lang-de .t-de { display: inline; }
body.lang-de .t-ur { display: none; }

/* Urdu mode */
body.lang-ur .t-en { display: none; }
body.lang-ur .t-de { display: none; }
body.lang-ur .t-ur { display: inline; }

/* Block-level display for paragraph/heading children */
body.lang-de p > .t-de,
body.lang-de h1 > .t-de, body.lang-de h2 > .t-de,
body.lang-de h3 > .t-de, body.lang-de h4 > .t-de,
body.lang-de li > .t-de, body.lang-de .badge > .t-de,
body.lang-de .section-title > .t-de, body.lang-de .hero-subtitle > .t-de,
body.lang-de .visa-sub > .t-de, body.lang-de .section-sub > .t-de,
body.lang-de .footer-brand > p > .t-de { display: block; }

body.lang-ur p > .t-ur,
body.lang-ur h1 > .t-ur, body.lang-ur h2 > .t-ur,
body.lang-ur h3 > .t-ur, body.lang-ur h4 > .t-ur,
body.lang-ur li > .t-ur, body.lang-ur .badge > .t-ur,
body.lang-ur .section-title > .t-ur, body.lang-ur .hero-subtitle > .t-ur,
body.lang-ur .visa-sub > .t-ur, body.lang-ur .section-sub > .t-ur,
body.lang-ur .footer-brand > p > .t-ur { display: block; }

/* ── Urdu: Nastaliq font + RTL ─────────────────────────────────────────────── */
body.lang-ur {
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', 'Noto Serif', serif;
}
body.lang-ur .t-ur {
  font-family: 'Noto Nastaliq Urdu', 'Noto Serif', serif;
  line-height: 2.2;
  letter-spacing: 0;
}
/* Keep Inter for numbers/code in Urdu mode */
body.lang-ur .stat-num, body.lang-ur .course-level-badge,
body.lang-ur .vstep-num, body.lang-ur .ec-level, body.lang-ur .ec-name,
body.lang-ur .logo-apex, body.lang-ur .btn,
body.lang-ur input, body.lang-ur select, body.lang-ur textarea {
  font-family: 'Inter', sans-serif;
  direction: ltr;
}
/* Urdu text sizing (Nastaliq needs more vertical room) */
body.lang-ur .hero-title .t-ur,
body.lang-ur .section-title .t-ur,
body.lang-ur .visa-heading .t-ur  { font-size: 1.1em; line-height: 2; }
body.lang-ur .hero-subtitle .t-ur { font-size: 1.05rem; line-height: 2.4; }
body.lang-ur p > .t-ur,
body.lang-ur .section-sub > .t-ur,
body.lang-ur .visa-sub > .t-ur    { font-size: 1rem; line-height: 2.3; }
body.lang-ur .bento-card p .t-ur,
body.lang-ur .course-card p .t-ur { font-size: 0.95rem; line-height: 2.2; }

/* RTL layout mirroring */
body.lang-ur .nav-inner           { flex-direction: row-reverse; }
body.lang-ur .nav-links           { margin-left: 0; margin-right: auto; }
body.lang-ur .hero-flag-strip     { right: auto; left: 0; }
body.lang-ur .hero-content        { text-align: right; }
body.lang-ur .hero-actions        { justify-content: flex-end; }
body.lang-ur .hero-stats          { justify-content: flex-end; }
body.lang-ur .section-header      { text-align: right; }
body.lang-ur .exam-split          { direction: rtl; }
body.lang-ur .check-list li       { flex-direction: row-reverse; justify-content: flex-end; }
body.lang-ur .course-features li  { flex-direction: row-reverse; }
body.lang-ur .contact-method      { flex-direction: row-reverse; }
body.lang-ur .contact-method:hover { transform: translateX(-6px); }
body.lang-ur .footer-top          { direction: rtl; }
body.lang-ur .footer-bottom       { flex-direction: row-reverse; }
body.lang-ur .visa-content        { text-align: center; }
body.lang-ur .mobile-menu         { text-align: right; }

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

:root {
  --black:   #000000;
  --white:   #ffffff;
  --gray-50: #f9f9f9;
  --gray-100:#f3f3f3;
  --gray-200:#e8e8e8;
  --gray-400:#adadad;
  --gray-600:#6e6e73;
  --gray-800:#1d1d1f;
  --gray-900:#111111;

  --de-black: #000000;
  --de-red:   #dd0000;
  --de-gold:  #ffce00;

  --accent:   #dd0000;
  --accent-dark: #a80000;
  --blue:     #0071e3;
  --blue-dark:#0060c8;
  --green:    #30d158;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow:    0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.16);

  --nav-h: 60px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gray-900);
}
.section-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin-top: 12px;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  background: rgba(221,0,0,.08);
  padding: 4px 12px;
  border-radius: 100px;
}
.section-tag.light { color: rgba(255,255,255,.9); background: rgba(255,255,255,.15); }

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background .3s cubic-bezier(0.22,1,0.36,1),
              transform .3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow .3s cubic-bezier(0.22,1,0.36,1),
              border-color .2s ease,
              color .2s ease;
  padding: 10px 22px;
  white-space: nowrap;
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 30px rgba(221,0,0,.35); }
.btn-ghost { background: transparent; color: var(--gray-800); border: 1.5px solid var(--gray-200); }
.btn-ghost:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gray-800); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-nav { background: var(--accent); color: var(--white); font-size: .85rem; padding: 8px 18px; }
.btn-nav:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-lg { font-size: 1rem; padding: 14px 30px; }
.btn-white { background: var(--white); color: var(--gray-900); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px) scale(1.02); }
.btn-full { width: 100%; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 20px; }

/* ─── GRADIENT TEXT ───────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--de-red) 0%, #ff6b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-light {
  background: linear-gradient(135deg, var(--de-gold) 0%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .5s cubic-bezier(0.22,1,0.36,1),
              box-shadow .5s cubic-bezier(0.22,1,0.36,1);
}
.nav.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-apex {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gray-900); }
/* ─── LANGUAGE TOGGLE ─────────────────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 100px;
  color: var(--gray-600);
  transition: background .25s cubic-bezier(0.22,1,0.36,1),
              color .2s ease,
              transform .25s cubic-bezier(0.34,1.56,0.64,1);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lang-btn.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.lang-btn:not(.active):hover { color: var(--gray-900); transform: scale(1.05); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
}
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu.open { display: flex; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(221,0,0,.4) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: blobFloat1 12s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,206,0,.3) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: blobFloat2 15s ease-in-out infinite;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,113,227,.2) 0%, transparent 70%);
  top: 50%; left: 40%;
  animation: blobFloat3 10s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%     { transform: translate(-30px, 20px) scale(1.04); }
  66%     { transform: translate(20px, -30px) scale(0.97); }
}
@keyframes blobFloat2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  40%     { transform: translate(30px, -20px) scale(1.06); }
  70%     { transform: translate(-20px, 25px) scale(0.95); }
}
@keyframes blobFloat3 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(15px, 20px) scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
  max-width: 680px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(48,209,88,.1);
  border: 1px solid rgba(48,209,88,.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(48,209,88,.4); }
  50%      { opacity: .7; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(48,209,88,0); }
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--gray-600); }
.stat-divider { width: 1px; height: 36px; background: var(--gray-200); }

.hero-flag-strip {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 8px;
  display: flex;
  flex-direction: column;
}
.flag-bar { flex: 1; }
.flag-bar.black { background: var(--de-black); }
.flag-bar.red   { background: var(--de-red); }
.flag-bar.gold  { background: var(--de-gold); }

/* ─── ANIMATIONS ──────────────────────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .28s; }
.delay-3 { animation-delay: .42s; }
.delay-4 { animation-delay: .56s; }

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── MARQUEE ─────────────────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: var(--gray-900);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.marquee {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.marquee .dot { color: var(--de-red); font-weight: 800; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTION ─────────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-header { margin-bottom: 60px; }
.section-header.light .section-title { color: var(--white); }
.section-header.light .section-sub { color: rgba(255,255,255,.6); }
.section-dark { background: var(--gray-900); }
.section-accent { background: linear-gradient(135deg, #1a0000 0%, #2d0000 40%, #1a0000 100%); }

/* ─── COURSES ─────────────────────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.course-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .5s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow .4s cubic-bezier(0.22,1,0.36,1),
              border-color .3s ease;
  overflow: hidden;
  will-change: transform;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}
.course-card.featured {
  background: var(--gray-900);
  border-color: transparent;
  color: var(--white);
}
.course-card.featured h3 { color: var(--white); }
.course-card.featured p  { color: rgba(255,255,255,.6); }
.course-card.featured .course-features li { color: rgba(255,255,255,.7); }
.course-card.featured .course-features li::before { background: var(--de-gold); }

.course-popular-tag {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--de-gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.course-level-badge {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.course-level-badge.a1 { color: #4caf50; }
.course-level-badge.a2 { color: var(--de-gold); }
.course-level-badge.b1 { color: var(--de-red); }

.course-flag { margin-bottom: 16px; }
.flag-mini {
  display: flex;
  flex-direction: column;
  width: 40px;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
}
.flag-mini .f-black, .flag-mini .f-red, .flag-mini .f-gold { flex: 1; }
.f-black { background: var(--de-black); }
.f-red   { background: var(--de-red); }
.f-gold  { background: var(--de-gold); }

.course-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.course-card p  { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }

.course-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.course-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.course-features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── BENTO (FEATURES) ────────────────────────────────────────────────────── */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background .4s cubic-bezier(0.22,1,0.36,1),
              transform .45s cubic-bezier(0.34,1.56,0.64,1),
              border-color .3s ease;
  will-change: transform;
}
.bento-card:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.14);
}
.bento-wide { grid-column: span 2; }
.bento-icon { font-size: 2.2rem; margin-bottom: 16px; }
.bento-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.bento-card p  { font-size: 0.9rem; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ─── EXAM SECTION ────────────────────────────────────────────────────────── */
.exam-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.exam-text p { font-size: 1rem; color: var(--gray-600); line-height: 1.7; margin: 16px 0 24px; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray-700, #444);
}
.check-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(221,0,0,.1);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.exam-visual { position: relative; height: 320px; }
.exam-cards-stack { position: relative; width: 320px; height: 320px; }
.exam-card {
  position: absolute;
  width: 280px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow .4s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.exam-card:hover { transform: translateY(-4px) rotate(0deg) !important; }
.ec-1 { top: 0; left: 0; transform: rotate(-3deg); z-index: 1; }
.ec-2 { top: 60px; left: 30px; transform: rotate(0deg); z-index: 2; }
.ec-3 { top: 120px; left: 10px; transform: rotate(2deg); z-index: 3; }

.ec-flag {
  display: flex;
  flex-direction: column;
  width: 36px;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.ec-flag .f-black, .ec-flag .f-red, .ec-flag .f-gold { flex: 1; }

.ec-body { flex: 1; }
.ec-level { display: block; font-size: 1.2rem; font-weight: 900; color: var(--gray-900); letter-spacing: -0.02em; }
.ec-name  { display: block; font-size: 0.75rem; color: var(--gray-600); margin-top: 2px; }
.ec-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.ec-status.confirmed { background: rgba(48,209,88,.12); color: #1a8c3a; }
.ec-status.pending   { background: rgba(255,206,0,.2); color: #996600; }

/* ─── VISA SECTION ────────────────────────────────────────────────────────── */
.visa-content { max-width: 900px; margin: 0 auto; text-align: center; }
.visa-heading { color: var(--white) !important; }
.visa-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin: 20px 0 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.visa-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.vstep {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
  width: 180px;
}
.vstep-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--de-gold);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  opacity: .6;
}
.vstep h4  { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.vstep p   { font-size: 0.8rem; color: rgba(255,255,255,.5); line-height: 1.5; }
.vstep-arrow { font-size: 1.4rem; color: rgba(255,255,255,.2); padding-top: 36px; align-self: flex-start; }

/* ─── CONTACT ─────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info p { font-size: 1rem; color: var(--gray-600); line-height: 1.7; margin: 16px 0 32px; }

.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: transform .4s cubic-bezier(0.34,1.56,0.64,1),
              border-color .3s ease,
              box-shadow .3s ease;
  will-change: transform;
}
.contact-method:hover { border-color: var(--accent); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.contact-method.whatsapp:hover { border-color: #25d366; }
.cm-icon { font-size: 1.6rem; }
.cm-text { display: flex; flex-direction: column; gap: 2px; }
.cm-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.06em; }
.cm-value { font-size: 1rem; font-weight: 600; color: var(--gray-900); }

.contact-form-wrap {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .3s cubic-bezier(0.22,1,0.36,1),
              box-shadow .3s cubic-bezier(0.22,1,0.36,1),
              transform .3s cubic-bezier(0.22,1,0.36,1);
  outline: none;
  resize: none;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--gray-400);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(221,0,0,.1);
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236e6e73'%3E%3Cpath d='M7 7l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 320px; }

.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 4px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.3); }
.footer-flag {
  display: flex;
  flex-direction: column;
  width: 32px; height: 20px;
  border-radius: 3px;
  overflow: hidden;
}

.footer-credit {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 16px;
  margin-top: 16px;
  text-align: center;
}
.footer-credit p { font-size: 0.75rem; color: rgba(255,255,255,.25); }
.footer-credit a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-credit a:hover { color: rgba(255,255,255,.8); }

/* ─── FLOATING WHATSAPP ───────────────────────────────────────────────────── */
.float-wa {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
  transition: transform .45s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow .35s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
  animation: waPop .8s cubic-bezier(0.34,1.56,0.64,1) 1s both;
}
.float-wa:hover { transform: scale(1.14); box-shadow: 0 14px 44px rgba(37,211,102,.55); }
@keyframes waPop {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.float-wa svg { width: 28px; height: 28px; }

/* ─── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .85s cubic-bezier(0.22, 1, 0.36, 1),
              transform .85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .nav-inner { gap: 0; }

  .courses-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .features-bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }

  .exam-split { grid-template-columns: 1fr; gap: 48px; }
  .exam-visual { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }

  .visa-steps { flex-direction: column; align-items: center; }
  .vstep { width: 100%; max-width: 340px; }
  .vstep-arrow { transform: rotate(90deg); padding: 0; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.3rem; }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
}

/* ─── REVIEWS ─────────────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.review-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .5s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow .4s cubic-bezier(0.22,1,0.36,1),
              border-color .3s ease;
  will-change: transform;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  font-family: var(--font);
}
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.review-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-course-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(221,0,0,.08);
  padding: 2px 8px;
  border-radius: 100px;
  width: fit-content;
  letter-spacing: 0.03em;
}
.review-stars {
  font-size: 1.1rem;
  color: var(--de-gold);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.review-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.review-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}
.reviews-section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.see-all-reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 18px;
  border: 2px solid var(--accent);
  border-radius: 100px;
  transition: background .2s, color .2s, transform .2s;
  flex-shrink: 0;
  margin-top: 12px;
}
.see-all-reviews-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}
.reviews-cta {
  text-align: center;
}

/* ─── REVIEW MODAL ────────────────────────────────────────────────────────── */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(0.22,1,0.36,1);
}
.review-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.review-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform .45s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 90vh;
  overflow-y: auto;
}
.review-modal-overlay.open .review-modal {
  transform: translateY(0) scale(1);
}
.review-modal h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
  padding-right: 36px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray-600);
  transition: background .2s, transform .25s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-close:hover { background: var(--gray-200); transform: scale(1.12); }

/* ─── STAR INPUT ──────────────────────────────────────────────────────────── */
.star-input {
  display: flex;
  gap: 4px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-200);
  user-select: none;
}
.star-input span {
  transition: color .15s ease,
              transform .2s cubic-bezier(0.34,1.56,0.64,1);
  line-height: 1;
}
.star-input span.hover,
.star-input span.active { color: var(--de-gold); }
.star-input span:hover  { transform: scale(1.2); }

/* ─── REVIEWS LOADING / EMPTY ────────────────────────────────────────────── */
.reviews-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 72px 0;
}
.reviews-loading span {
  width: 10px; height: 10px;
  background: var(--gray-200);
  border-radius: 50%;
  animation: reviewDot 1.2s ease-in-out infinite;
}
.reviews-loading span:nth-child(2) { animation-delay: .18s; }
.reviews-loading span:nth-child(3) { animation-delay: .36s; }
@keyframes reviewDot {
  0%,80%,100% { transform: scale(0.75); opacity: .4; }
  40%         { transform: scale(1.2);  opacity: 1; }
}
.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-400);
  font-size: 1rem;
  padding: 72px 0;
}
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── REVIEWS RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 40px;
  }
  .review-modal { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .star-input { font-size: 1.7rem; }
}
