: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; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  /* No overflow-x here: setting overflow on html/body is a well-known way
     to break position:sticky (especially in Safari) for direct children
     like .site-header. The nav-drawer overflow this was guarding against
     is already fixed at the source (drawer reparented to body, no
     backdrop-filter trapping it), so it's no longer needed. */
}

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 {
  /* position:fixed instead of sticky: sticky has several ancestor-dependent
     edge cases (overflow, transform, contain on any ancestor can silently
     break it), and since this header is always pinned from top:0 with no
     "scroll past a point first" behavior needed, fixed gives the identical
     visual result with none of those failure modes. Content below needs a
     matching spacer (see body padding-top / .header-spacer). */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px 20px 0;
  background: transparent;
}
.header-spacer { height: 78px; }
.header-bar {
  /* No backdrop-filter here: in many browsers it creates a new containing
     block for position:fixed descendants (the mobile nav drawer lives
     inside this element), which would trap the "fixed" drawer inside this
     small pill instead of the viewport. Use an opaque-enough background
     instead of blur to keep it robust across browsers/devices. */
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, background 0.2s;
}
.site-header.scrolled .header-bar { box-shadow: var(--shadow-md); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}
.brand .brand-lead { color: var(--text); }
.brand .brand-tail { color: var(--primary); }
.brand .brand-mark {
  width: 36px; height: 36px;
  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: 36px; 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 9px;
  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 15px;
  margin-left: 4px;
}
.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: 4px;
}
.lang-toggle a,
.lang-toggle button {
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--muted) !important;
  background: transparent !important;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: normal;
}
.lang-toggle a.active,
.lang-toggle button.active { background: var(--primary) !important; color: #fff !important; }
.lang-toggle a::after { display: none !important; }
.question-lang-toggle { flex-shrink: 0; }

.nav-account {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  flex-shrink: 1;
  min-width: 0;
}
.nav-account-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 6px;
  text-transform: capitalize;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-logout-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logout-btn svg { width: 16px; height: 16px; }
.nav-logout-btn:hover { color: var(--danger); background: var(--bg-alt); }
.nav-logout-label { display: none; }

.nav-toggle {
  display: none;
  background: var(--bg-alt);
  border: none;
  border-radius: 999px;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.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: var(--white); border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.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(135deg, #eef2ff 0%, #f3eefd 32%, #fdf1e7 68%, #fffaf2 100%);
  color: var(--text);
  padding: 90px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  opacity: 0.45;
}
.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(--primary-light) 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: var(--white);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  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; color: var(--text); }
.hero-text h1 .accent-word {
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text p { font-size: 1.15rem; margin: 0 0 30px; color: var(--muted); 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; color: var(--text); font-weight: 500; }
.hero-chip .chip-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  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: var(--white);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.hero-slide {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px) !important;
  height: calc(100% - 20px);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}
.hero-slider-arrow:hover { background: var(--white); color: var(--primary); }
.hero-slider-arrow .icon { width: 18px; height: 18px; }
.hero-slider-prev { left: 18px; }
.hero-slider-next { right: 18px; }
.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}
.hero-slider-dot.active { background: var(--white); width: 22px; border-radius: 4px; transition: width 0.25s ease; }
.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; text-decoration: none; transition: color 0.15s; }
a.trust-item:hover { color: var(--primary); }
.trust-item svg { color: var(--primary); }
#connect { scroll-margin-top: 100px; }

/* ============ 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 {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-decoration: none;
  color: inherit;
  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); }

/* ============ Test Series (category thumbnail cards) ============ */
.test-category-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.test-category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.test-category-card .tc-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.test-category-card:hover .tc-thumb { transform: scale(1.07); }
.test-category-card .tc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.test-category-card .tc-placeholder .icon { width: 56px; height: 56px; color: rgba(255, 255, 255, 0.85); }
.test-category-card .tc-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(to top, rgba(15, 17, 30, 0.92) 0%, rgba(15, 17, 30, 0.55) 60%, transparent 100%);
}
.test-category-card .tc-title { font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.test-category-card .tc-meta { display: flex; align-items: center; justify-content: space-between; }
.test-category-card .tc-count { font-size: 0.82rem; font-weight: 600; opacity: 0.92; }
.test-category-card .tc-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.test-category-card:hover .tc-arrow { transform: rotate(45deg); }
.test-category-card .tc-arrow .icon { width: 16px; height: 16px; color: #fff; }

/* Corner "Paid"/"Free" tag - shared by category thumbnail cards and
   individual test cards so paid status is visible before clicking in. */
.corner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.corner-badge.is-paid { background: linear-gradient(135deg, #f43f5e, #db2777); }
.corner-badge.is-free { background: linear-gradient(135deg, var(--secondary), #34d399); }

/* Category banner on the "tests within a category" page */
.test-category-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.test-category-banner .tcb-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.test-category-banner .tcb-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.test-category-banner .tcb-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 30, 0.88) 0%, rgba(15, 17, 30, 0.45) 55%, rgba(15, 17, 30, 0.15) 100%);
}
.test-category-banner .tcb-info { position: relative; color: #fff; padding: 28px 32px; }
.test-category-banner .tcb-info .section-eyebrow { background: rgba(255, 255, 255, 0.18); color: #fff; }
.test-category-banner h1 { margin: 6px 0 8px; font-size: 1.8rem; color: #fff; }
.test-category-banner .tcb-count { font-size: 0.92rem; opacity: 0.92; }

/* Individual test cards */
.test-item-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  padding-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.test-item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ti-title { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.ti-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: var(--muted); }
.ti-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ti-meta .icon { width: 15px; height: 15px; color: var(--primary); }
.ti-cta { margin-top: auto; }

/* ============ 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; }
.drag-handle { cursor: grab; color: var(--muted); text-align: center; width: 32px; user-select: none; }
.drag-handle:active { cursor: grabbing; }
tr.sortable-ghost { opacity: 0.4; }
tr.sortable-chosen { background: var(--bg-alt); }

/* ============ 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 .num.num-text { font-size: 1.15rem; line-height: 1.3; word-break: break-word; }
.stat-card .label { color: var(--muted); font-size: 0.85rem; }

.student-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.student-subnav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
}
.student-subnav nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.student-subnav nav a,
.student-subnav nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.student-subnav nav a .icon,
.student-subnav nav button .icon {
  width: 16px;
  height: 16px;
}
.student-subnav nav a:hover,
.student-subnav nav button:hover {
  background: var(--bg);
  color: var(--text);
}
.student-subnav nav a.active {
  background: var(--primary);
  color: #fff;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.chart-container {
  position: relative;
  height: 280px;
  width: 100%;
}

.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);
}

/* ============ Homepage Books scroll ============ */
.book-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch;
}
.book-scroll::-webkit-scrollbar { height: 8px; }
.book-scroll::-webkit-scrollbar-track { background: transparent; }
.book-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 20px; }
.book-scroll-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.book-scroll-img-wrap { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-alt); }
.book-scroll-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-scroll-placeholder { display: flex; align-items: center; justify-content: center; }
.book-scroll-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-scroll-body h4 { margin: 0; font-size: 0.95rem; line-height: 1.35; }
.book-scroll-price { font-size: 0.9rem; margin-top: auto; }
.book-scroll-price .strike { text-decoration: line-through; color: var(--muted); margin-right: 6px; font-size: 0.85em; }
.book-scroll-price strong { color: var(--primary); }

/* ============ 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%; }

/* ============ Advanced exam UI (one-question-at-a-time + palette) ============ */
.exam-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.exam-question-col { min-width: 0; }
.exam-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.exam-toolbar .btn { flex: 1 1 auto; white-space: nowrap; }
.exam-palette {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 130px;
}
.palette-summary { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.palette-btn {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.1s;
}
.palette-btn:hover { transform: scale(1.08); }
.palette-btn.palette-active { outline: 2.5px solid var(--primary-dark); outline-offset: 1px; }
.palette-btn.palette-not-visited { background: var(--white); border-color: var(--border); color: var(--muted); }
.palette-btn.palette-not-answered { background: var(--danger); border-color: var(--danger); color: #fff; }
.palette-btn.palette-answered { background: var(--success); border-color: var(--success); color: #fff; }
.palette-btn.palette-marked { background: var(--primary); border-color: var(--primary); color: #fff; }
.palette-btn.palette-answered-marked {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: inset 0 0 0 3px var(--success);
}
.palette-legend { display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.palette-legend > div { display: flex; align-items: center; gap: 8px; }
.palette-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
.palette-dot.palette-not-visited { background: var(--white); border: 1.5px solid var(--border); }
.palette-dot.palette-not-answered { background: var(--danger); }
.palette-dot.palette-answered { background: var(--success); }
.palette-dot.palette-marked { background: var(--primary); }
.palette-dot.palette-answered-marked { background: var(--primary); box-shadow: inset 0 0 0 2px var(--success); }

@media (max-width: 860px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-palette { position: static; order: -1; }
  .palette-grid { grid-template-columns: repeat(8, 1fr); }
}

/* ============ Instructions popup (exam start gate) ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 30, 0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.instructions-list { margin: 0 0 10px; padding-left: 20px; }
.instructions-list li { margin-bottom: 10px; line-height: 1.5; color: var(--text); }

.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; }
}

/* Nav switches to the hamburger + slide-in drawer well before phone width,
   so tablets (which can't fit the full link list + lang toggle + CTA in
   the floating pill) get the same reliable pattern as phones. */
@media (max-width: 1200px) {
  .site-header { padding: 12px 14px 0; }
  .header-bar { padding: 6px 8px 6px 14px; }
  .header-spacer { height: 66px; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    transform: translateX(100%);
    width: min(320px, 86vw);
    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;
    overflow-y: auto;
  }
  .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-account {
    margin: 16px 0 0; width: 100%;
    justify-content: space-between;
    padding: 13px 14px;
    background: var(--bg-alt);
    border-radius: 10px;
  }
  .nav-account-name { padding: 0; font-size: 1rem; max-width: none; }
  .nav-logout-btn {
    width: auto; height: auto;
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    gap: 6px;
  }
  .nav-logout-btn .nav-logout-label { display: inline; font-size: 0.85rem; font-weight: 600; }
  .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; }
}

@media (max-width: 768px) {
  .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; }
}
