/* ================================================================
   _exam.css — shared styles for /education/exam/<slug>/ pages.
   2026-05-13: created (was 404 on prod, leaving pages unstyled).
   Matches LLOS amber→orange accent (Pawan retune row N19).
   Responsive: mobile-first, sm/md/lg breakpoints.
   ================================================================ */

:root {
  --ex-accent:        #ea580c;     /* deep orange */
  --ex-accent-soft:   #fff7ed;     /* cream */
  --ex-accent-mid:    #f97316;     /* mid orange */
  --ex-border:        #fed7aa;     /* amber-200 */
  --ex-border-soft:   #fde68a;     /* amber-300 */
  --ex-text:          #0f172a;
  --ex-text-muted:    #64748b;
  --ex-text-soft:     #94a3b8;
  --ex-bg:            #fafafa;
  --ex-card-bg:       #ffffff;
  --ex-card-shadow:   0 1px 3px rgba(15, 23, 42, 0.04);
  --ex-card-shadow-h: 0 8px 24px rgba(234, 88, 12, 0.10);
}

/* Base reset within exam page so global styles don't bleed weirdly */
.exam-page,
.exam-page * { box-sizing: border-box; }

.exam-page {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--ex-bg);
  color: var(--ex-text);
  min-height: 60vh;
  padding: 1.5rem 0 3rem;
  line-height: 1.55;
}
.exam-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px)  { .exam-page { padding: 2rem 0 4rem; } .exam-page .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .exam-page .container { padding: 0 2rem; } }

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.exam-crumbs {
  font-size: 0.75rem;
  color: var(--ex-text-muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.exam-crumbs a {
  color: var(--ex-accent);
  text-decoration: none;
  font-weight: 600;
}
.exam-crumbs a:hover { text-decoration: underline; }
.exam-crumbs .sep { color: var(--ex-text-soft); }
.exam-crumbs [aria-current="page"] { color: var(--ex-text); font-weight: 700; }

/* ── Hero ────────────────────────────────────────────────────── */
.exam-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--ex-accent-soft) 0%, #fff 100%);
  border: 1px solid var(--ex-border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .exam-hero { padding: 1.75rem 2rem; gap: 1.5rem; } }
.exam-emoji {
  font-size: 2.25rem;
  line-height: 1;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--ex-border);
  border-radius: 0.875rem;
  box-shadow: var(--ex-card-shadow);
}
@media (min-width: 768px) { .exam-emoji { font-size: 3rem; width: 4.5rem; height: 4.5rem; } }
.exam-hero-body { flex: 1; min-width: 0; }
.exam-cat-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--ex-accent);
  background: #fff;
  border: 1px solid var(--ex-border);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.exam-name {
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--ex-text);
  margin: 0 0 0.375rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
@media (min-width: 768px) { .exam-name { font-size: 2.25rem; } }
@media (min-width: 1024px) { .exam-name { font-size: 2.5rem; } }
.exam-full-name {
  font-size: 0.875rem;
  color: var(--ex-text-muted);
  margin: 0 0 0.25rem;
  font-weight: 500;
}
.exam-body {
  font-size: 0.75rem;
  color: var(--ex-text-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ── Meta cards (Duration, Questions, Frequency, Language) ─── */
.exam-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .exam-meta-grid { grid-template-columns: repeat(4, 1fr); gap: 0.875rem; } }
.meta-card {
  background: var(--ex-card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.875rem;
  box-shadow: var(--ex-card-shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.meta-card:hover { border-color: var(--ex-border); box-shadow: var(--ex-card-shadow-h); }
.meta-label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--ex-text-soft);
  margin-bottom: 0.25rem;
}
.meta-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ex-text);
  line-height: 1.35;
}
@media (min-width: 768px) { .meta-value { font-size: 1rem; } }

/* ── CTA buttons ─────────────────────────────────────────────── */
.exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  align-items: center;
}
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.cta-primary {
  background: linear-gradient(135deg, var(--ex-accent-mid), var(--ex-accent));
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(234, 88, 12, 0.35);
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px rgba(234, 88, 12, 0.45);
  color: #fff;
  text-decoration: none;
}
.cta-primary:active { transform: translateY(0); }
.cta-secondary {
  background: #fff;
  color: var(--ex-accent);
  border: 2px solid var(--ex-border);
}
.cta-secondary:hover {
  background: var(--ex-accent-soft);
  border-color: var(--ex-accent);
  text-decoration: none;
}

/* ── Syllabus section ───────────────────────────────────────── */
.exam-syllabus {
  margin-bottom: 2rem;
}
.exam-syllabus h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ex-text);
  margin: 0 0 0.375rem;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .exam-syllabus h2 { font-size: 1.5rem; } }
.exam-syllabus-meta {
  font-size: 0.875rem;
  color: var(--ex-text-muted);
  margin: 0 0 1.25rem;
}
.exam-syllabus-meta strong { color: var(--ex-accent); font-weight: 800; }

.syllabus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}
@media (min-width: 640px) { .syllabus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .syllabus-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

.syllabus-card {
  background: var(--ex-card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  box-shadow: var(--ex-card-shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.syllabus-card:hover {
  border-color: var(--ex-border);
  box-shadow: var(--ex-card-shadow-h);
  transform: translateY(-2px);
}
.syllabus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.625rem;
}
.syllabus-name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ex-text);
  letter-spacing: -0.005em;
}
.syllabus-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ex-accent);
  background: var(--ex-accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.syllabus-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--ex-text-muted);
}
.syllabus-chapters li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f8fafc;
  text-transform: capitalize;
}
.syllabus-chapters li:last-child { border-bottom: 0; }
.syllabus-chapters li span {
  font-weight: 700;
  color: var(--ex-text-soft);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}
.syllabus-chapters .syllabus-more {
  color: var(--ex-accent);
  font-weight: 700;
  font-style: italic;
  border-bottom: 0;
  padding-top: 0.5rem;
}

/* ── Bottom CTA band ─────────────────────────────────────────── */
.exam-cta-band {
  background: linear-gradient(135deg, var(--ex-accent) 0%, #c2410c 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin-top: 1.25rem;
  box-shadow: 0 12px 28px -8px rgba(234, 88, 12, 0.35);
}
@media (min-width: 768px) { .exam-cta-band { padding: 2rem; } }
.exam-cta-band h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: #fff;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) { .exam-cta-band h2 { font-size: 1.5rem; } }
.exam-cta-band p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1rem;
}
.exam-cta-band .cta-primary {
  background: #fff;
  color: var(--ex-accent);
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.15);
}
.exam-cta-band .cta-primary:hover {
  background: #fff7ed;
  color: var(--ex-accent);
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.2);
}

/* ── Empty state for syllabus ────────────────────────────────── */
.syllabus-grid > .cta-primary {
  justify-self: center;
  margin: 1rem auto;
}
