:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --secondary: #10b981;
  --bg: #f8fafc;
  --bg-alt: #eef2ff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 41, 59, 0.1);
  --shadow-lg: 0 20px 50px rgba(49, 46, 129, 0.18);
  --radius: 14px;
  --font-head: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; }

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

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

svg.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }

/* ============ Header ============ */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.brand .brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand img { height: 38px; width: auto; border-radius: 8px; }
.brand:hover { color: var(--primary-dark); }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--primary); background: var(--bg-alt); }
.main-nav a.nav-cta {
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  padding: 9px 18px;
  margin-left: 6px;
}
.main-nav a.nav-cta:hover { background: var(--primary-dark); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 3px;
  margin-left: 10px;
}
.lang-toggle a {
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--muted) !important;
  background: transparent !important;
}
.lang-toggle a.active { background: var(--primary) !important; color: #fff !important; }
.lang-toggle a::after { display: none !important; }

.nav-toggle {
  display: none;
  background: var(--bg-alt);
  border: none;
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-overlay { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #1e1500; box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35); }
.btn-accent:hover { box-shadow: 0 14px 30px rgba(245, 158, 11, 0.45); color: #1e1500; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.18); color: var(--white); }
.btn-outline-dark { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(160deg, #1e1b6e 0%, var(--primary-dark) 45%, var(--primary) 100%);
  color: var(--white);
  padding: 90px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
  opacity: 0.55;
}
.hero::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -220px; right: -140px;
  animation: float-blob 10s ease-in-out infinite;
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px));
  transition: transform 0.3s ease-out;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: -200px; left: -120px;
  animation: float-blob 12s ease-in-out infinite reverse;
  transform: translate(calc(var(--mx, 0) * -1px), calc(var(--my, 0) * -1px));
  transition: transform 0.3s ease-out;
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-anim { opacity: 0; animation: fade-in-up 0.8s ease forwards; }
.hero-anim-1 { animation-delay: 0.05s; }
.hero-anim-2 { animation-delay: 0.18s; }
.hero-anim-3 { animation-delay: 0.31s; }
.hero-anim-4 { animation-delay: 0.44s; }
.hero-anim-5 { animation-delay: 0.57s; }
.hero-anim-6 { animation-delay: 0.7s; }
.hero .container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 440px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-text h1 { font-size: 2.9rem; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero-text h1 .accent-word {
  background: linear-gradient(135deg, var(--accent), #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text p { font-size: 1.15rem; margin: 0 0 30px; opacity: 0.9; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-chips { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-chip { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; opacity: 0.92; }
.hero-chip .chip-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hero-photo { flex: 0 0 300px; position: relative; text-align: center; }
.hero-photo-frame {
  position: relative;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  backdrop-filter: blur(6px);
}
.hero-photo img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.hero-float-card {
  position: absolute;
  background: var(--white);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float-card 4s ease-in-out infinite;
}
.hero-float-card.card-1 { top: -14px; left: -30px; animation-delay: 0s; }
.hero-float-card.card-2 { bottom: -16px; right: -26px; animation-delay: 1.5s; }
.hero-float-card .fc-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ Trust strip ============ */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.trust-item svg { color: var(--primary); }

/* ============ Stats ============ */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  margin-top: -46px;
  position: relative;
  z-index: 5;
  border-radius: var(--radius);
  max-width: 1100px;
  margin-left: auto; margin-right: auto;
  box-shadow: var(--shadow-lg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 20px;
}
.stat-item { text-align: center; color: #fff; padding: 10px; }
.stat-item .stat-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; }
.stat-item .stat-num .plus { color: var(--accent); }
.stat-item .stat-label { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }

/* ============ Sections ============ */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  background: var(--bg-alt);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}
.section-sub { color: var(--muted); margin: 0 0 30px; font-size: 1.02rem; max-width: 560px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.section-header .view-all {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ============ Feature cards ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  font-size: 1.4rem;
  transition: transform 0.35s ease;
}
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.1); }
.feature-card h3 { font-size: 1.08rem; margin: 0 0 10px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.icon-bg-1 { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.icon-bg-2 { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.icon-bg-3 { background: linear-gradient(135deg, var(--secondary), #34d399); }
.icon-bg-4 { background: linear-gradient(135deg, #ec4899, #f472b6); }

/* ============ Content cards (current affairs / jobs / materials) ============ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-img-wrap { overflow: hidden; height: 170px; }
.card img { width: 100%; height: 170px; object-fit: cover; transition: transform 0.35s; }
.card:hover img { transform: scale(1.06); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.4; }
.card-body p { color: var(--muted); font-size: 0.92rem; margin: 0 0 12px; }
.card-meta { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.02em; }
.card-footer { margin-top: auto; padding-top: 6px; }
.card-footer a { font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--primary);
}
.badge-success { background: #ecfdf5; color: var(--success); }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-urgent { background: #fff7ed; color: var(--accent-dark); }

/* ============ Promo / CTA banners ============ */
.promo-banner {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, #6d28d9);
  color: #fff;
  padding: 64px 50px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(245,158,11,0.35), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(16,185,129,0.3), transparent 45%);
  z-index: -1;
}
.promo-banner h2 { font-size: 2.1rem; font-weight: 800; margin: 0 0 14px; }
.promo-banner p { font-size: 1.08rem; opacity: 0.92; max-width: 560px; margin: 0 auto 30px; }
.promo-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.promo-features { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.promo-feature { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; opacity: 0.9; }

/* ============ About teaser ============ */
.about-teaser { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.about-photo-wrap { flex: 0 0 320px; position: relative; }
.about-photo-wrap img { border-radius: 22px; box-shadow: var(--shadow-md); width: 100%; }
.about-photo-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
}
.about-photo-badge .num { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.about-photo-badge .label { font-size: 0.75rem; color: var(--muted); }
.about-content { flex: 1 1 380px; }
.about-content .section-eyebrow { margin-bottom: 14px; }
.about-content h2 { font-size: 2rem; font-weight: 800; margin: 0 0 16px; }
.about-content p { color: var(--muted); font-size: 1.02rem; margin: 0 0 24px; }
.about-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.about-badge { display: flex; align-items: center; gap: 8px; background: var(--bg-alt); padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); }

/* ============ App / social CTA ============ */
.app-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: var(--text); color: #fff; border-radius: 28px; padding: 46px 50px; }
.app-cta-text h3 { font-size: 1.5rem; margin: 0 0 8px; font-weight: 800; }
.app-cta-text p { color: #cbd5e1; margin: 0; }
.app-links { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 10px 18px;
  color: #fff !important;
  transition: background 0.15s, transform 0.15s;
}
.store-badge:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.store-badge svg { width: 22px; height: 22px; }
.store-badge .label-sm { font-size: 0.65rem; opacity: 0.75; display: block; }
.store-badge .label-lg { font-size: 0.92rem; font-weight: 700; }
.social-row { display: flex; gap: 10px; }
.social-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: #fff !important;
  transition: background 0.15s, transform 0.15s;
}
.social-circle:hover { background: var(--primary); transform: translateY(-3px); }

/* ============ Connect With Us grid ============ */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.connect-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  color: var(--text) !important;
}
.connect-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.connect-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.connect-icon svg { width: 24px; height: 24px; }
.connect-card h4 { margin: 0 0 3px; font-size: 1rem; }
.connect-card p { margin: 0; font-size: 0.83rem; color: var(--muted); }
.connect-arrow { margin-left: auto; color: var(--muted); flex-shrink: 0; transition: transform 0.2s, color 0.2s; }
.connect-card:hover .connect-arrow { transform: translateX(4px); color: var(--primary); }
.connect-icon-youtube { background: #ff0000; }
.connect-icon-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.connect-icon-telegram { background: #26a5e4; }
.connect-icon-linkedin { background: #0a66c2; }
.connect-icon-playstore { background: linear-gradient(135deg, #00c2ff, #00e676); }
.connect-icon-appstore { background: #000; }
.connect-icon-classx { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }

/* ============ Footer ============ */
.site-footer {
  background: #14213d;
  color: #cbd5e1;
  padding: 56px 0 22px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); margin: 0 0 16px; font-size: 1rem; font-family: var(--font-head); }
.footer-grid a { color: #94a3b8; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
}
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  background: rgba(255,255,255,0.08);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1 !important;
}
.social-icons a:hover { background: var(--primary); color: #fff !important; }

/* ============ Forms ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 100px; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-error {
  background: #fef2f2;
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.form-success {
  background: #ecfdf5;
  color: var(--success);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
table.data-table th, table.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}
table.data-table th { background: #f1f5f9; font-weight: 600; }
table.data-table tr:hover { background: #fafbfc; }

/* ============ Admin layout ============ */
.admin-body { background: #f1f5f9; font-family: var(--font-body); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--primary-dark);
  color: var(--white);
  flex-shrink: 0;
  padding: 20px 0;
}
.admin-sidebar .brand { color: var(--white); padding: 0 20px 20px; font-size: 1.05rem; }
.admin-sidebar nav a {
  display: block;
  padding: 10px 20px;
  color: #cbd5e1;
  font-size: 0.92rem;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  text-decoration: none;
}
.admin-main { flex: 1; padding: 30px; max-width: calc(100% - 240px); }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-page-title { font-size: 1.5rem; margin: 0; font-family: var(--font-head); }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border);
}
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-card .label { color: var(--muted); font-size: 0.85rem; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1e1b6e 0%, var(--primary-dark) 45%, var(--primary) 100%);
}
.login-box {
  background: var(--white);
  padding: 40px;
  border-radius: 18px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}

/* ============ Quiz UI ============ */
.quiz-timer {
  position: sticky;
  top: 70px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}
.quiz-timer .time { font-weight: 700; font-size: 1.2rem; color: var(--danger); }
.question-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.question-card h4 { margin: 0 0 14px; }
.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.option-row:hover { background: var(--bg-alt); }
.option-row.selected { border-color: var(--primary); background: var(--bg-alt); }
.option-row.correct { border-color: var(--success); background: #ecfdf5; }
.option-row.incorrect { border-color: var(--danger); background: #fef2f2; }

.progress-bar-wrap {
  background: var(--border);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-bar-fill { background: linear-gradient(90deg, var(--primary), var(--primary-light)); height: 100%; }

.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.result-summary .box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.result-summary .box .num { font-size: 1.6rem; font-weight: 700; }

.pagination { display: flex; gap: 8px; margin-top: 30px; justify-content: center; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.9rem;
}
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

.filters { margin-bottom: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.filters a {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
}
.filters a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .empty-icon { color: var(--primary-light); margin-bottom: 12px; }

.content-body img { max-width: 100%; height: auto; border-radius: 10px; }
.content-body { font-size: 1.02rem; }
.content-body h1, .content-body h2, .content-body h3 { color: var(--primary-dark); font-family: var(--font-head); }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}

@media (max-width: 900px) {
  .about-teaser { flex-direction: column; }
  .about-photo-wrap { flex: 0 0 auto; max-width: 340px; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    transform: translateX(100%);
    width: min(300px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 90px 22px 22px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    z-index: 300;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 13px 14px; font-size: 1rem; }
  .main-nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .lang-toggle { margin: 16px 0 0; align-self: flex-start; }
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 250;
  }
  .nav-overlay.open { display: block; }

  .hero { padding: 56px 0 80px; text-align: center; }
  .hero .container { flex-direction: column; }
  .hero-text h1 { font-size: 2.1rem; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
  .hero-photo { flex: 0 0 auto; max-width: 260px; }
  .hero-float-card { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item .stat-num { font-size: 1.7rem; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.55rem; }
  .section-header { flex-direction: column; align-items: flex-start; }

  .promo-banner { padding: 44px 24px; border-radius: 20px; }
  .promo-banner h2 { font-size: 1.5rem; }

  .app-cta { flex-direction: column; text-align: center; padding: 36px 26px; border-radius: 20px; }
  .app-links { justify-content: center; }
  .social-row { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-main { max-width: 100%; padding: 20px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-photo-badge { left: 50%; transform: translateX(-50%); bottom: -16px; }
}
