/* ============================================================
   Regulation Pages — Shared Styles
   (Assessment & Exam · Admissions & Programme Structure)
   Color-matched to srhuonline.com (#1a3868 primary)
   ============================================================ */

/* ── RESET (scoped) ── */
.reg-page *, .reg-page *::before, .reg-page *::after { box-sizing: border-box; }

:root {
  --reg-bg: #F5F7FB;
  --reg-surface: #FFFFFF;
  --reg-surface-2: #EEF1F6;
  --reg-ink: #1C1916;
  --reg-ink-2: #46413C;
  --reg-ink-3: #8C857D;
  --reg-accent: #1a3868;
  --reg-accent-light: #E3EBF5;
  --reg-accent-mid: #2A5899;
  --reg-green: #2A5C3F;
  --reg-green-light: #E5F0E9;
  --reg-green-mid: #3D8A5C;
  --reg-amber: #955B0C;
  --reg-amber-light: #FDF0DC;
  --reg-red: #922B2B;
  --reg-red-light: #FCEAEA;
  --reg-blue: #1B4F72;
  --reg-blue-light: #E8F1F8;
  --reg-purple: #4A3FAA;
  --reg-purple-light: #EEECFC;
  --reg-border: rgba(28,25,22,0.1);
  --reg-border-strong: rgba(28,25,22,0.18);
  --reg-radius: 10px;
  --reg-radius-lg: 16px;
  --reg-shadow: 0 1px 3px rgba(28,25,22,0.06), 0 4px 12px rgba(28,25,22,0.04);
  --reg-shadow-lg: 0 2px 8px rgba(28,25,22,0.07), 0 12px 32px rgba(28,25,22,0.06);
}

.reg-page {
  background: var(--reg-bg);
  color: var(--reg-ink);
  font-family: "Lato", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  display: block;
  width: 100%;
  min-height: 60vh;
}

/* ── Scoped heading overrides (prevent global style.css bloat) ── */
.reg-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem) !important;
  font-weight: 700;
  color: #fff;
  line-height: 1.2 !important;
  max-width: 680px;
  margin: 0 0 1.1rem !important;
}
.reg-section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem !important;
  font-weight: 600;
  color: var(--reg-ink) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
.reg-sidebar-title {
  font-size: 11px !important;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--reg-ink-3);
  margin-bottom: 0.85rem !important;
  line-height: 1.4 !important;
}
.reg-card-title {
  font-size: 12px !important;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: var(--reg-ink-3) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.7rem !important;
  line-height: 1.4 !important;
}

/* ── HERO ── */
.reg-hero {
  background: linear-gradient(135deg, #1a3868 0%, #2d5aa0 100%);
  padding: 3.5rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.reg-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.reg-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.reg-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.reg-hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.85rem;
  font-family: "Montserrat", sans-serif;
}
.reg-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 1.1rem;
}
.reg-hero h1 em { font-style: italic; color: rgba(255,255,255,0.7); font-weight: 400; }
.reg-hero-desc { color: rgba(255,255,255,0.65); font-size: 15px; max-width: 540px; line-height: 1.7; margin-bottom: 2rem; }
.reg-hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.reg-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.reg-hero-stat .num { font-family: "Montserrat", sans-serif; font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.reg-hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.5); }
.reg-hero-div { width: 1px; height: 36px; background: rgba(255,255,255,0.15); align-self: center; }

/* ── NAV STRIP ── */
.reg-nav-strip {
  background: var(--reg-surface);
  border-bottom: 1px solid var(--reg-border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.reg-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.reg-nav-inner::-webkit-scrollbar { display: none; }
.reg-nav-pill {
  padding: 0.7rem 1rem;
  font-size: 13px; font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: var(--reg-ink-3);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.reg-nav-pill:hover { color: var(--reg-accent); border-bottom-color: var(--reg-accent-light); }
.reg-nav-pill.active { color: var(--reg-accent); border-bottom-color: var(--reg-accent); }

/* ── LAYOUT ── */
.reg-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.75rem 2rem 5rem;
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
  isolation: isolate;
}
.reg-content {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
}
.reg-sidebar {
  width: 256px;
  min-width: 256px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 70px;
}

/* ── SECTION ── */
.reg-section { margin-bottom: 2.75rem; animation: regFadeUp 0.4s ease both; }
@keyframes regFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.reg-section:nth-child(1){ animation-delay:.05s }
.reg-section:nth-child(2){ animation-delay:.1s }
.reg-section:nth-child(3){ animation-delay:.15s }
.reg-section:nth-child(4){ animation-delay:.2s }
.reg-section:nth-child(5){ animation-delay:.25s }
.reg-section:nth-child(6){ animation-delay:.3s }
.reg-section:nth-child(7){ animation-delay:.35s }
.reg-section:nth-child(8){ animation-delay:.4s }

.reg-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--reg-border);
}
.reg-section-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.reg-si-blue   { background: var(--reg-accent-light); }
.reg-si-green  { background: var(--reg-green-light); }
.reg-si-amber  { background: var(--reg-amber-light); }
.reg-si-purple { background: var(--reg-purple-light); }
.reg-si-slate  { background: var(--reg-surface-2); }
.reg-si-red    { background: var(--reg-red-light); }

.reg-section-title { font-family: "Montserrat", sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--reg-ink); }
.reg-section-num {
  margin-left: auto;
  font-size: 11px; font-weight: 600; color: var(--reg-ink-3);
  font-family: "Montserrat", sans-serif;
  background: var(--reg-surface-2); padding: 2px 8px; border-radius: 20px;
}

/* ── CARD ── */
.reg-card {
  background: var(--reg-surface);
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--reg-shadow);
}
.reg-card-title {
  font-size: 12px; font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: var(--reg-ink-3);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}

/* ── METRICS ── */
.reg-metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 0.85rem; }
.reg-metric-card {
  background: var(--reg-surface);
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius);
  padding: 0.85rem 1rem;
  text-align: center;
  box-shadow: var(--reg-shadow);
}
.reg-metric-card .m-val { font-family: "Montserrat", sans-serif; font-size: 1.85rem; font-weight: 700; color: var(--reg-accent); line-height: 1; margin-bottom: 4px; }
.reg-metric-card .m-lbl { font-size: 12px; color: var(--reg-ink-3); }
.reg-metric-card .m-sub { font-size: 11px; color: var(--reg-ink-3); opacity: 0.7; margin-top: 2px; }

/* ── TABLES ── */
.reg-table-wrap { overflow-x: auto; border-radius: var(--reg-radius-lg); border: 1px solid var(--reg-border); box-shadow: var(--reg-shadow); margin-bottom: 0.85rem; }
.reg-page table { width: 100%; border-collapse: collapse; background: var(--reg-surface); font-size: 13px; }
.reg-page thead th {
  background: var(--reg-surface-2); color: var(--reg-ink-2);
  font-family: "Montserrat", sans-serif;
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 9px 13px; text-align: left;
  border-bottom: 1px solid var(--reg-border);
}
.reg-page tbody td { padding: 10px 13px; border-bottom: 1px solid var(--reg-border); vertical-align: middle; color: var(--reg-ink); }
.reg-page tbody tr:last-child td { border-bottom: none; }
.reg-page tbody tr:hover { background: var(--reg-bg); }

/* ── BADGES ── */
.reg-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.reg-badge-pass   { background: var(--reg-green-light); color: var(--reg-green); }
.reg-badge-fail   { background: var(--reg-red-light); color: var(--reg-red); }
.reg-badge-warn   { background: var(--reg-amber-light); color: var(--reg-amber); }
.reg-badge-info   { background: var(--reg-blue-light); color: var(--reg-blue); }
.reg-badge-grade  { font-family: "Montserrat", sans-serif; font-size: 15px; padding: 0; background: none; color: var(--reg-ink); font-weight: 600; }
.reg-bd-blue   { background: var(--reg-accent-light); color: var(--reg-accent); }
.reg-bd-green  { background: var(--reg-green-light); color: var(--reg-green); }
.reg-bd-amber  { background: var(--reg-amber-light); color: var(--reg-amber); }
.reg-bd-purple { background: var(--reg-purple-light); color: var(--reg-purple); }
.reg-bd-red    { background: var(--reg-red-light); color: var(--reg-red); }

/* ── CALLOUTS ── */
.reg-callout {
  display: flex; gap: 11px;
  padding: 0.85rem 1.1rem;
  border-radius: var(--reg-radius);
  margin-bottom: 0.85rem;
  font-size: 13.5px; line-height: 1.6;
}
.reg-callout-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.reg-c-blue   { background: var(--reg-accent-light); color: var(--reg-accent); border-left: 3px solid var(--reg-accent-mid); }
.reg-c-green  { background: var(--reg-green-light); color: var(--reg-green); border-left: 3px solid var(--reg-green-mid); }
.reg-c-amber  { background: var(--reg-amber-light); color: var(--reg-amber); border-left: 3px solid var(--reg-amber); }
.reg-c-red    { background: var(--reg-red-light); color: var(--reg-red); border-left: 3px solid var(--reg-red); }
.reg-c-purple { background: var(--reg-purple-light); color: var(--reg-purple); border-left: 3px solid var(--reg-purple); }

/* ── BULLET LIST ── */
.reg-check-list { list-style: none; padding: 0; margin: 0; }
.reg-check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px 0;
  font-size: 13.5px; color: var(--reg-ink-2);
  border-bottom: 1px solid var(--reg-border);
}
.reg-check-list li:last-child { border-bottom: none; }
.reg-check-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--reg-accent-mid);
  flex-shrink: 0; margin-top: 7px;
}
.reg-check-list.green li::before  { background: var(--reg-green-mid); }
.reg-check-list.amber li::before  { background: var(--reg-amber); }
.reg-check-list.red li::before    { background: var(--reg-red); }
.reg-check-list.blue li::before   { background: var(--reg-blue); }
.reg-check-list.purple li::before { background: var(--reg-purple); }

/* ── TWO-COL ── */
.reg-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.85rem; }

/* ── FORMULA BAR ── */
.reg-formula-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--reg-surface);
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius-lg);
  margin-bottom: 0.85rem;
  box-shadow: var(--reg-shadow);
}
.reg-formula-chip {
  padding: 8px 18px;
  border-radius: var(--reg-radius);
  font-size: 14px; font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.reg-fc-cia   { background: var(--reg-blue-light); color: var(--reg-blue); }
.reg-fc-ese   { background: #EDE8F8; color: #4A27AA; }
.reg-fc-total { background: var(--reg-green-light); color: var(--reg-green); }
.reg-formula-op { font-size: 20px; color: var(--reg-ink-3); font-weight: 300; }
.reg-formula-note { width: 100%; font-size: 12px; color: var(--reg-ink-3); margin-top: 4px; }

/* ── STEPS ROW ── */
.reg-steps-row {
  display: flex; align-items: stretch; gap: 0;
  border-radius: var(--reg-radius-lg); overflow: hidden;
  border: 1px solid var(--reg-border);
  margin-bottom: 0.85rem;
  box-shadow: var(--reg-shadow);
}
.reg-step {
  flex: 1; padding: 0.9rem 1rem;
  background: var(--reg-surface);
  border-right: 1px solid var(--reg-border);
  font-size: 13px; position: relative;
}
.reg-step:last-child { border-right: none; }
.reg-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--reg-accent); color: #fff;
  font-size: 11px; font-weight: 600;
  font-family: "Montserrat", sans-serif;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.reg-step-label { font-size: 10px; font-weight: 600; font-family: "Montserrat", sans-serif; color: var(--reg-ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.reg-step-val { font-size: 13px; font-weight: 600; color: var(--reg-ink); line-height: 1.4; }
.reg-step-sub { font-size: 12px; color: var(--reg-ink-3); margin-top: 2px; }

/* ── QUAD GRID ── */
.reg-quad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.85rem; }
.reg-quad-card {
  background: var(--reg-surface-2);
  border-radius: var(--reg-radius);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--reg-border);
}
.reg-quad-head { font-size: 13px; font-weight: 600; font-family: "Montserrat", sans-serif; color: var(--reg-ink); margin-bottom: 5px; }
.reg-quad-sub { font-size: 12.5px; color: var(--reg-ink-3); line-height: 1.5; }

/* ── TIMELINE ── */
.reg-timeline { position: relative; padding-left: 1.75rem; margin-bottom: 0.85rem; }
.reg-timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--reg-border-strong); }
.reg-tl-item { position: relative; margin-bottom: 1rem; }
.reg-tl-item:last-child { margin-bottom: 0; }
.reg-tl-dot {
  position: absolute; left: -1.75rem; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--reg-accent); border: 2px solid var(--reg-bg);
}
.reg-tl-dot.green  { background: var(--reg-green); }
.reg-tl-dot.amber  { background: var(--reg-amber); }
.reg-tl-dot.purple { background: var(--reg-purple); }
.reg-tl-title { font-size: 13.5px; font-weight: 600; font-family: "Montserrat", sans-serif; color: var(--reg-ink); margin-bottom: 3px; }
.reg-tl-desc  { font-size: 13px; color: var(--reg-ink-3); line-height: 1.55; }

/* ── SIDEBAR ── */
.reg-sidebar-card {
  background: var(--reg-surface);
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--reg-shadow);
}
.reg-sidebar-title { font-size: 11px; font-weight: 600; font-family: "Montserrat", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--reg-ink-3); margin-bottom: 0.85rem; }
.reg-toc-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-size: 13px; color: var(--reg-ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--reg-border);
  transition: color 0.15s;
}
.reg-toc-link:last-child { border-bottom: none; }
.reg-toc-link:hover { color: var(--reg-accent); }
.reg-toc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--reg-border-strong); flex-shrink: 0; transition: background 0.15s; }
.reg-toc-link:hover .reg-toc-dot { background: var(--reg-accent); }
.reg-quick-fact { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--reg-border); font-size: 13px; }
.reg-quick-fact:last-child { border-bottom: none; }
.reg-qf-val { font-family: "Montserrat", sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--reg-accent); flex-shrink: 0; }
.reg-qf-lbl { color: var(--reg-ink-3); line-height: 1.4; }

/* ── DISCLAIMER NOTE ── */
.reg-disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  font-size: 12.5px;
  color: var(--reg-ink-3);
}
.reg-disclaimer strong { color: var(--reg-ink-2); font-weight: 600; }

/* ── PRINT ── */
@media print {
  .reg-nav-strip, .reg-sidebar { display: none; }
  .reg-main { display: block; padding: 0; }
  .reg-section { break-inside: avoid; }
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .reg-main { flex-direction: column; padding: 1.75rem 1.25rem 4rem; }
  .reg-sidebar { width: 100%; position: static; }
  .reg-two-col, .reg-quad-grid { grid-template-columns: 1fr; }
  .reg-steps-row { flex-direction: column; }
  .reg-step { border-right: none; border-bottom: 1px solid var(--reg-border); }
  .reg-step:last-child { border-bottom: none; }
  .reg-hero-div { display: none; }
  .reg-hero-stats { gap: 1.25rem; }
}
@media (max-width: 480px) {
  .reg-hero { padding: 2.25rem 1.25rem 3.25rem; }
  .reg-nav-inner { padding: 0 1.25rem; }
}
