:root {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-subtle: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --accent-indigo: #4f46e5;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --purple: #7c3aed;
  --purple-bg: #ede9fe;
  --header-dark: #0f172a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.1);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:has(dialog[open]) {
  overflow: hidden;
}

/* Top Navbar */
.app-navbar {
  background: var(--header-dark);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.mode-switcher {
  display: flex;
  background: #1e293b;
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid #334155;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  color: #cbd5e1;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Main Container */
.main-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* Admin Hero Header */
.admin-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.85rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.admin-banner h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.admin-banner p {
  color: #cbd5e1;
  font-size: 0.92rem;
  max-width: 720px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.step-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-indigo {
  background: var(--accent-indigo);
  color: #ffffff;
}

.btn-indigo:hover {
  background: #4338ca;
}

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background: #15803d;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-purple {
  background: var(--purple);
  color: #ffffff;
}

.btn-purple:hover {
  background: #6d28d9;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-subtle);
}

.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 0.98rem;
}

/* Admin Studio Grid */
.admin-grid-top {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 1.35rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .admin-grid-top {
    grid-template-columns: 1fr;
  }
}

.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--bg-subtle);
}

/* PDF Upload Dropzone */
.pdf-dropzone {
  border: 2px dashed #60a5fa;
  background: #eff6ff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}

.pdf-dropzone:hover,
.pdf-dropzone.dragover {
  background: #dbeafe;
  border-color: var(--primary);
}

.pdf-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pdf-status-bar {
  margin-top: 0.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Dual Box: PDF Question Text & Answer Analyzer */
.extractor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.1rem;
}

@media (max-width: 820px) {
  .extractor-split {
    grid-template-columns: 1fr;
  }
}

.analyzer-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.analyzer-box h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.analyzer-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

/* PDF Visual Page Preview Strip */
.pdf-pages-strip {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.75rem 0.25rem;
  margin-top: 0.75rem;
}

.pdf-page-thumb {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.35rem;
  flex-shrink: 0;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pdf-page-thumb:hover {
  border-color: var(--primary);
}

.pdf-page-thumb canvas {
  height: 140px;
  width: auto;
  display: block;
}

/* Forms */
.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--text-main);
}

.form-control:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

/* Extracted Questions Review Cards */
.extracted-q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1rem;
}

@media (max-width: 600px) {
  .extracted-q-grid {
    grid-template-columns: 1fr;
  }
}

.eq-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.eq-card.ans-mapped {
  border-left-color: var(--success);
}

.eq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.eq-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.eq-opt-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
}

.eq-opt-input-wrap.is-correct {
  border-color: var(--success);
  background: var(--success-bg);
}

.eq-opt-input-wrap input[type="text"] {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.83rem;
  outline: none;
}

/* Badges & Tags */
.badge-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.test-tag {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tag-neet { background: #dcfce7; color: #166534; }
.tag-jee { background: #dbeafe; color: #1e40af; }
.tag-ssc { background: #fef3c7; color: #92400e; }
.tag-banking { background: #ede9fe; color: #5b21b6; }
.tag-railways { background: #fce7f3; color: #9d174d; }
.tag-upsc { background: #ffedd5; color: #9a3412; }

/* Student Portal Test Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 0.2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.test-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--bg-subtle);
  font-weight: 600;
}

/* CBT Exam Mode */
.exam-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 115px);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.nta-top-bar {
  background: var(--header-dark);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.nta-timer-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1e293b;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
}

.timer-digits {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
}

.nta-subject-bar {
  background: var(--bg-subtle);
  padding: 0.55rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subject-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.subject-tab {
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.subject-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.exam-body {
  display: grid;
  grid-template-columns: 1fr 330px;
  flex: 1;
}

@media (max-width: 960px) {
  .exam-body {
    grid-template-columns: 1fr;
  }
}

.question-area {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-color);
}

.q-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.q-stem {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  white-space: pre-line;
}

.q-image-preview {
  max-width: 100%;
  max-height: 270px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.1rem;
  display: block;
}

.q-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.05rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #ffffff;
}

.option-label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.q-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Palette Sidebar */
.palette-sidebar {
  background: #f8fafc;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.palette-badge {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
}

.palette-badge.answered, .palette-btn.answered { background: #16a34a; color: #fff; }
.palette-badge.not-answered, .palette-btn.not-answered { background: #ef4444; color: #fff; }
.palette-badge.marked, .palette-btn.marked { background: #7c3aed; color: #fff; border-radius: 999px; }
.palette-badge.answered-marked, .palette-btn.answered-marked {
  background: #7c3aed; color: #fff; border-radius: 999px; box-shadow: inset 0 -4px 0 #22c55e;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.25rem;
}

.palette-btn {
  height: 36px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
}

.palette-btn.current {
  outline: 3px solid var(--primary);
  outline-offset: 1px;
}

/* Tables & Solutions */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 0.7rem 0.95rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { background: var(--bg-subtle); font-weight: 700; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; }

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 0.9rem;
}
.solution-card.correct { border-left: 5px solid var(--success); }
.solution-card.incorrect { border-left: 5px solid var(--danger); }
.solution-card.unattempted { border-left: 5px solid #94a3b8; }

.explanation-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.86rem;
  color: #14532d;
}

dialog.modal-dialog {
  margin: auto;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 650px;
  width: 94%;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  background: #ffffff;
  color: var(--text-main);
  overscroll-behavior: contain;
}

dialog.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
}

.toast-notification {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: none;
}

.toast-notification.show {
  display: block;
}

/* =========================================================
   SEO POWERHOUSE HOMEPAGE STYLES (#homeLandingView)
========================================================= */
.seo-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 960px) {
  .seo-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.seo-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.65rem 0 0.85rem;
  letter-spacing: -0.02em;
}

.seo-hero h1 .highlight-yellow {
  color: #fde047;
}

.seo-hero-sub {
  color: #dbeafe;
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.seo-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.seo-trust-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
}

.seo-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 600px) {
  .seo-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-hero-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
}

.seo-hero-stat-lbl {
  font-size: 0.74rem;
  color: #cbd5e1;
}

.hero-login-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  border-top: 5px solid #38bdf8;
}

.seo-section-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.seo-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.seo-section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.seo-exam-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.1rem;
}

.seo-exam-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.seo-exam-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: #ffffff;
}

.seo-exam-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.35rem 0;
}

.seo-exam-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.seo-kw-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.seo-kw-tag {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.seo-kw-tag:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.seo-faq-list {
  display: grid;
  gap: 0.75rem;
}

.seo-faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  background: #f8fafc;
}

.seo-faq-item summary {
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  color: #0f172a;
}

.seo-faq-item p {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.seo-footer {
  background: #0f172a;
  color: #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  line-height: 1.65;
}

