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

:root {
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  /* Gateway Abroad — navy + cyan on a light canvas */
  --primary: #1b4a9c;
  --primary-dark: #0f2f6d;
  --primary-light: #2f6bc4;
  --accent: #0099d6;
  --accent-2: #00aeef;
  --gradient: linear-gradient(135deg, #0f2f6d 0%, #1b4a9c 45%, #00aeef 100%);
  --gradient-soft: linear-gradient(135deg, rgba(27, 74, 156, 0.1), rgba(0, 174, 239, 0.08));

  --bg-dark: #f4f7fb;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(27, 74, 156, 0.06);
  --bg-panel: rgba(255, 255, 255, 0.72);
  --bg-surface: rgba(255, 255, 255, 0.92);
  --bg-surface-deep: #e8eef6;
  --text: #0f1b2d;
  --text-muted: #5b6b82;
  --border: rgba(15, 47, 109, 0.12);
  --border-glow: rgba(0, 174, 239, 0.35);
  --shadow: 0 16px 40px rgba(15, 47, 109, 0.1);
  --shadow-glow: 0 12px 32px rgba(0, 174, 239, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(0, 174, 239, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 6%, rgba(27, 74, 156, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(27, 74, 156, 0.06), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

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

body > footer.site-footer {
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 80px;
  padding: 0.55rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
  box-shadow: 0 4px 20px rgba(15, 47, 109, 0.06);
}

.logo-link {
  display: block;
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  background-image: url('../images/logo-nav.png?v=5');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  filter: none;
  order: 1;
  flex-shrink: 0;
  border-radius: 12px;
  border: none;
  box-shadow: none;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  order: 2;
  margin-left: auto;
  min-width: 0;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem !important;
  flex-shrink: 0;
  order: 3;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.84rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-glass);
}

.nav-links a.active {
  background: rgba(27, 74, 156, 0.1);
  color: var(--primary);
}

.btn-nav {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.55rem 1.15rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 20px rgba(27, 74, 156, 0.35);
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(27, 74, 156, 0.45);
  color: #fff !important;
}

.btn-nav-logout {
  background: rgba(27, 74, 156, 0.06) !important;
  box-shadow: none !important;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.nav-user { margin-left: 0.15rem; }

.nav-profile-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem !important;
  background: rgba(27, 74, 156, 0.12) !important;
  border: 1px solid rgba(27, 74, 156, 0.25);
  border-radius: 999px !important;
  color: var(--text) !important;
}

.nav-profile-link:hover,
.nav-profile-link.active {
  background: rgba(27, 74, 156, 0.16) !important;
  color: var(--primary-dark) !important;
}

.nav-profile-link i {
  font-size: 1.65rem;
  color: var(--primary);
}

.nav-profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.nav-profile-text strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-profile-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Logged-in top account cluster */
.nga-account-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nga-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 148px;
  min-height: 40px;
  padding: 0.22rem 0.65rem 0.22rem 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 74, 156, 0.28);
  background: rgba(27, 74, 156, 0.12);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nga-account-chip:hover,
.nga-account-chip.is-active {
  background: rgba(27, 74, 156, 0.2);
  border-color: rgba(34, 211, 238, 0.35);
  color: #fff;
}

.nga-account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, #1b4a9c, #00aeef);
  box-shadow: 0 0 0 2px rgba(12, 18, 32, 0.45);
}

.nga-account-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.nga-account-meta strong {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nga-account-meta small {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nga-account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.nga-account-logout:hover {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.nga-account-logout i {
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nga-account-meta {
    display: none;
  }

  .nga-account-chip {
    max-width: none;
    padding: 0;
    width: 40px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    border-radius: 12px;
  }

  .nga-account-avatar {
    width: 28px;
    height: 28px;
    box-shadow: none;
  }

  .nga-account-logout span {
    display: none;
  }

  .nga-account-logout {
    width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 12px;
  }
}

/* Between tablet and mobile app shell — keep one tidy row */
@media (max-width: 1100px) and (min-width: 901px) {
  .logo-link {
    width: 64px;
    height: 64px;
  }
  .nav-links a {
    font-size: 0.78rem;
    padding: 0.4rem 0.5rem;
  }
  .nga-account-meta {
    display: none;
  }
  .nga-account-chip {
    width: 40px;
    height: 40px;
    min-height: 40px;
    max-width: none;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  .nga-account-logout span {
    display: none;
  }
  .nga-account-logout {
    width: 40px;
    padding: 0;
    border-radius: 12px;
  }
}

.home-profile-card {
  margin: 1.25rem 0 1.75rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(27, 74, 156, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(27, 74, 156, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.home-profile-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.home-profile-avatar i {
  font-size: 3rem;
  color: var(--primary-light);
}

.home-profile-meta h2 {
  font-size: 1.35rem;
  margin: 0.15rem 0;
}

.home-profile-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.home-profile-welcome {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.home-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

@media (max-width: 768px) {
  .nav-profile-text { display: none; }
  .home-profile-actions { margin-left: 0; width: 100%; }
  .home-profile-inner { align-items: flex-start; }
}

.menu-toggle {
  display: none;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(18, 28, 46, 0.38) 0%, rgba(14, 20, 34, 0.9) 100%),
    url('../images/hero4.jpg') center/cover no-repeat;
  min-height: calc(100dvh - 80px);
  width: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 5rem clamp(1rem, 3vw, 2.5rem);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 25%, #b8dcff 55%, #7dd8f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-btns { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 32px rgba(27, 74, 156, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(27, 74, 156, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(27, 74, 156, 0.12);
  border-color: var(--border-glow);
  color: var(--primary-dark);
}

/* Sections */
.section { padding: 5rem 0; position: relative; }

.section-alt {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.75rem;
  font-size: 1.05rem;
}

/* Trust stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-card span { font-size: 0.88rem; color: var(--text-muted); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img { transform: scale(1.04); }

.card-body { padding: 1.35rem; }
.card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.card-body p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1rem; }

.card-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }

.badge {
  background: rgba(27, 74, 156, 0.12);
  color: var(--primary);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(27, 74, 156, 0.2);
}

.card-link {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.card-link:hover { color: var(--primary-dark); }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 20px rgba(27, 74, 156, 0.3);
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* AI highlight */
.ai-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.25rem;
}

.ai-feature {
  background: rgba(18, 28, 46, 0.5);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-image: var(--gradient) 1;
  transition: border-color 0.3s;
}

.ai-feature:hover { border-color: var(--border-glow); }

.ai-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-feature h3 i { color: var(--accent); }

.score-demo {
  background: rgba(18, 28, 46, 0.6);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.score-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  pointer-events: none;
}

.score-demo > * { position: relative; }

.score-demo .band {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.testimonial:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.testimonial .score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--bg-surface-deep);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.55rem; color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent-2); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.social-links { display: flex; gap: 0.65rem; margin-top: 1rem; }

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: rgba(27, 74, 156, 0.2);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.float-contact {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  z-index: 220;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
}

.float-contact:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
}

/* Map embed */
.map-section { padding-top: 0; }
.map-address {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.map-address i { color: var(--accent); margin-right: 0.35rem; }
.map-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.map-embed {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
@media (max-width: 768px) {
  .map-embed { height: 300px; }
}

/* Page header */
.page-header {
  background:
    linear-gradient(180deg, rgba(18, 28, 46, 0.5), rgba(18, 28, 46, 0.95)),
    url('../images/edu-header.jpg') center/cover;
  padding: 5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background-size: cover;
  background-position: center;
}

.page-header--courses {
  background-image:
    linear-gradient(180deg, rgba(18, 28, 46, 0.5), rgba(18, 28, 46, 0.95)),
    url('../images/edu-courses.jpg');
}

.page-header--abroad {
  background-image:
    linear-gradient(180deg, rgba(18, 28, 46, 0.5), rgba(18, 28, 46, 0.95)),
    url('../images/edu-abroad.jpg');
}

.page-header--shop {
  background-image: linear-gradient(135deg, rgba(27, 74, 156, 0.2), rgba(34, 211, 238, 0.12));
}

.page-header--mock {
  background-image:
    linear-gradient(180deg, rgba(18, 28, 46, 0.5), rgba(18, 28, 46, 0.95)),
    url('../images/edu-mock.jpg');
}

.page-header--about {
  background-image:
    linear-gradient(180deg, rgba(18, 28, 46, 0.5), rgba(18, 28, 46, 0.95)),
    url('../images/edu-about.jpg');
}

.page-header--resources {
  background-image:
    linear-gradient(180deg, rgba(18, 28, 46, 0.5), rgba(18, 28, 46, 0.95)),
    url('../images/edu-resources.jpg');
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.65rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(27, 74, 156, 0.18);
  border-color: var(--border-glow);
  color: #fff;
}

/* Forms */
.form-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

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

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-control::placeholder { color: #64748b; }

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 74, 156, 0.15);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.25rem;
  background-color: #ffffff;
  color: var(--text);
  color-scheme: light;
  border: 1px solid var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
}

select.form-control option {
  background: #ffffff;
  color: #0f1b2d;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.92rem;
}

.compare-table th {
  background: rgba(27, 74, 156, 0.1);
  color: var(--primary-light);
  font-family: var(--font-display);
  font-weight: 600;
}

.compare-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.open { border-color: var(--border-glow); }

.faq-q {
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.faq-a {
  padding: 0 1.35rem 1.1rem;
  color: var(--text-muted);
  display: none;
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* Blog */
.blog-card .date {
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Auth (login page) */
.auth-container { max-width: 460px; margin: 3rem auto; }

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-glass);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 0.7rem;
  text-align: center;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.25s;
}

.auth-tab.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27, 74, 156, 0.3);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.role-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.role-tab {
  padding: 0.4rem 0.9rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s;
}

.role-tab.active {
  border-color: var(--border-glow);
  color: var(--primary-light);
  background: rgba(27, 74, 156, 0.12);
}

.demo-note {
  background: rgba(27, 74, 156, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.thankyou-box {
  max-width: 520px;
  margin: 5rem auto;
  text-align: center;
  padding: 3rem 2rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.center-section {
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .ai-block { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  .navbar-actions {
    margin-left: auto;
    order: 2;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 28, 46, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: stretch;
    order: 3;
    width: 100%;
    margin-left: 0;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open { display: flex; }
  .nav-links a { border-radius: var(--radius-sm); min-height: 44px; display: flex; align-items: center; }
  .navbar {
    position: relative;
    flex-wrap: wrap;
    padding: 0.75rem max(1.25rem, env(safe-area-inset-left)) 0.75rem max(1.25rem, env(safe-area-inset-right));
  }
  .logo-link {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
  }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1rem; max-width: 100%; }
  .card-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .card:hover { transform: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.35rem; max-width: 100%; }
  .form-control { font-size: 16px; /* prevent iOS zoom */ }
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .hero { min-height: auto; padding: 4.5rem 1.15rem 3.5rem; }
  .hero-btns { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-btns .btn { width: 100%; }
  .page-header { padding: 3.5rem 1rem; }
  .page-header p { font-size: 0.95rem; }
  .filter-bar { gap: 0.45rem; flex-wrap: wrap; }
  .ai-block { gap: 1.5rem; }
  .score-demo { margin: 0 auto; max-width: 100%; }

  table:not(.admin-table) {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .logo-link {
    width: 52px;
    height: 52px;
  }
  .stat-card { padding: 1rem; }
  .thankyou-box { margin: 3rem 1rem; padding: 2rem 1.25rem; }
}
