/* ======================================
   TPA 1882 AIBE 2026 — STYLES.CSS
   Digital E-Filing Coach | CA Amanuddin Mallick
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@400;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary-navy: #0f2040;
  --primary-blue: #1d4ed8;
  --primary-green: #059669;
  --primary-saffron: #d97706;
  --primary-violet: #7c3aed;
  --primary-red: #dc2626;
  --primary-teal: #0f766e;
  --primary-orange: #ea580c;
  --primary-pink: #db2777;
  --primary-lime: #65a30d;
  --primary-indigo: #4338ca;
  --primary-amber: #b45309;
  --primary-crimson: #9f1239;
  --primary-cyan: #0e7490;
  --primary-emerald: #047857;
  --primary-gold: #a16207;
  --primary-purple: #7e22ce;

  --bg-main: #f0f4ff;
  --bg-card: #ffffff;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.65;
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse at 10% 20%, rgba(29,78,216,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(124,58,237,0.06) 0%, transparent 60%);
}

/* ===== SITE HEADER ===== */
/*
 * ── SCROLL OFFSET VARIABLE ───────────────────────────────────────────
 * Change --host-header-height to match the pixel height of your
 * website's existing sticky/fixed header.
 * Common values: 60px, 70px, 80px, 90px, 100px
 * If you have NO external header, set this to 0px.
 * ─────────────────────────────────────────────────────────────────────
 */
:root {
  --host-header-height: 215px;  /* WordPress admin bar 32px + green nav menu ~183px  */
  --this-header-height: 0px;    /* this page's header is NOT sticky — no offset needed */
  --total-offset: calc(var(--host-header-height) + 20px); /* 20px breathing room       */
}

/* Every section anchor target gets a matching top margin so it
   never hides behind the stacked headers when jumping or scrolling */
section[id],
div[id].content-section,
nav[id] {
  scroll-margin-top: var(--total-offset);
}

.site-header {
  background: linear-gradient(135deg, #0f2040 0%, #1a3a6b 50%, #0f2040 100%);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #f4a261;
  position: relative;   /* NOT sticky — scrolls away with page, no overlap */
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.brand-icon { font-size: 2.2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.brand-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #f4a261; line-height: 1.2; }
.brand-sub { font-size: 0.8rem; color: #93c5fd; font-weight: 600; }
.header-badge {
  background: linear-gradient(135deg, #f4a261, #ea580c);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(234,88,12,0.4);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #0f2040 0%, #1a3a6b 40%, #1e3a8a 70%, #1a2e55 100%);
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(244,162,97,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  background: rgba(244,162,97,0.18);
  border: 1px solid rgba(244,162,97,0.4);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-year {
  color: #f4a261;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  display: block;
}
.hero-desc {
  color: #93c5fd;
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 700px;
  margin: 16px auto 32px;
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  padding: 11px 24px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.btn-print { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; }
.btn-nav { background: linear-gradient(135deg, #059669, #10b981); color: white; }
.btn-mcq { background: linear-gradient(135deg, #9f1239, #dc2626); color: white; }
.btn-rev { background: linear-gradient(135deg, #d97706, #f59e0b); color: white; }
.btn-ak { background: linear-gradient(135deg, #a16207, #d97706); color: white; padding: 12px 28px; border-radius: 8px; font-size: 1rem; border: none; cursor: pointer; transition: all 0.2s; }
.btn-ak:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(161,98,7,0.4); }

/* ===== QUICK NAV ===== */
.quick-nav {
  background: linear-gradient(135deg, #1a2e55, #0f2040);
  padding: 24px 32px;
  border-bottom: 2px solid rgba(244,162,97,0.3);
}
.qnav-label {
  color: #f4a261;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.qnav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qbtn {
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.qbtn:hover { transform: translateY(-1px); filter: brightness(1.15); }
.qbtn-blue { background: rgba(29,78,216,0.85); color: #bfdbfe; border: 1px solid rgba(96,165,250,0.4); }
.qbtn-green { background: rgba(5,150,105,0.85); color: #a7f3d0; border: 1px solid rgba(52,211,153,0.4); }
.qbtn-saffron { background: rgba(217,119,6,0.85); color: #fde68a; border: 1px solid rgba(251,191,36,0.4); }
.qbtn-violet { background: rgba(124,58,237,0.85); color: #ddd6fe; border: 1px solid rgba(167,139,250,0.4); }
.qbtn-red { background: rgba(220,38,38,0.85); color: #fecaca; border: 1px solid rgba(248,113,113,0.4); }
.qbtn-teal { background: rgba(15,118,110,0.85); color: #99f6e4; border: 1px solid rgba(45,212,191,0.4); }
.qbtn-orange { background: rgba(234,88,12,0.85); color: #fed7aa; border: 1px solid rgba(251,146,60,0.4); }
.qbtn-pink { background: rgba(219,39,119,0.85); color: #fbcfe8; border: 1px solid rgba(244,114,182,0.4); }
.qbtn-lime { background: rgba(101,163,13,0.85); color: #d9f99d; border: 1px solid rgba(163,230,53,0.4); }
.qbtn-indigo { background: rgba(67,56,202,0.85); color: #c7d2fe; border: 1px solid rgba(129,140,248,0.4); }
.qbtn-amber { background: rgba(180,83,9,0.85); color: #fde68a; border: 1px solid rgba(245,158,11,0.4); }
.qbtn-crimson { background: rgba(159,18,57,0.85); color: #fecdd3; border: 1px solid rgba(251,113,133,0.4); }
.qbtn-cyan { background: rgba(14,116,144,0.85); color: #a5f3fc; border: 1px solid rgba(34,211,238,0.4); }
.qbtn-emerald { background: rgba(4,120,87,0.85); color: #a7f3d0; border: 1px solid rgba(52,211,153,0.4); }
.qbtn-gold { background: rgba(161,98,7,0.85); color: #fef3c7; border: 1px solid rgba(251,191,36,0.4); }
.qbtn-purple { background: rgba(126,34,206,0.85); color: #e9d5ff; border: 1px solid rgba(192,132,252,0.4); }

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.content-section:hover { box-shadow: var(--shadow-hover); }

/* Section Headers */
.section-header {
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.sec-icon { font-size: 2rem; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}
.sec-sub { font-size: 0.82rem; color: rgba(255,255,255,0.75); font-weight: 600; }

.blue-header { background: linear-gradient(135deg, #1e40af, #2563eb); }
.green-header { background: linear-gradient(135deg, #065f46, #059669); }
.saffron-header { background: linear-gradient(135deg, #92400e, #d97706); }
.violet-header { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.red-header { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.teal-header { background: linear-gradient(135deg, #134e4a, #0f766e); }
.orange-header { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.pink-header { background: linear-gradient(135deg, #831843, #db2777); }
.lime-header { background: linear-gradient(135deg, #365314, #65a30d); }
.indigo-header { background: linear-gradient(135deg, #312e81, #4338ca); }
.amber-header { background: linear-gradient(135deg, #78350f, #b45309); }
.crimson-header { background: linear-gradient(135deg, #4c0519, #9f1239); }
.cyan-header { background: linear-gradient(135deg, #083344, #0e7490); }
.emerald-header { background: linear-gradient(135deg, #022c22, #047857); }
.gold-header { background: linear-gradient(135deg, #451a03, #a16207); }
.purple-header { background: linear-gradient(135deg, #3b0764, #7e22ce); }

.section-body { padding: 28px 32px; }

/* ===== INFO GRID & CARDS ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.info-card {
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 5px solid transparent;
}
.info-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.info-card ul { padding-left: 18px; }
.info-card li { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--text-mid); }
.info-card p { font-size: 0.9rem; font-weight: 600; color: var(--text-mid); }

.card-blue { background: #eff6ff; border-left-color: #2563eb; }
.card-blue h3 { color: #1d4ed8; }
.card-green { background: #f0fdf4; border-left-color: #059669; }
.card-green h3 { color: #065f46; }
.card-saffron { background: #fffbeb; border-left-color: #d97706; }
.card-saffron h3 { color: #92400e; }
.card-violet { background: #f5f3ff; border-left-color: #7c3aed; }
.card-violet h3 { color: #4c1d95; }
.card-pink { background: #fdf2f8; border-left-color: #db2777; }
.card-pink h3 { color: #831843; }
.card-lime { background: #f7fee7; border-left-color: #65a30d; }
.card-lime h3 { color: #365314; }
.card-teal { background: #f0fdfa; border-left-color: #0f766e; }
.card-teal h3 { color: #134e4a; }
.card-amber { background: #fffbeb; border-left-color: #b45309; }
.card-amber h3 { color: #78350f; }

/* ===== HIGHLIGHT BOXES ===== */
.highlight-box {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.7;
}
.hbox-blue { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e3a8a; }
.hbox-red { background: #fff1f2; border: 1.5px solid #fecaca; color: #7f1d1d; }
.hbox-green { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #14532d; }
.hbox-teal { background: #f0fdfa; border: 1.5px solid #99f6e4; color: #134e4a; }
.hbox-orange { background: #fff7ed; border: 1.5px solid #fed7aa; color: #7c2d12; }
.hbox-lime { background: #f7fee7; border: 1.5px solid #d9f99d; color: #365314; }
.hbox-indigo { background: #eef2ff; border: 1.5px solid #c7d2fe; color: #312e81; }
.highlight-box ul { padding-left: 20px; margin-top: 8px; }
.highlight-box li { margin-bottom: 5px; }

/* ===== EXAM TIP ===== */
.exam-tip {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #78350f;
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.et-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ===== EXAMPLE BOX ===== */
.example-box {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid #0ea5e9;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0c4a6e;
  line-height: 1.6;
}

/* ===== ACCORDION ===== */
.accordion-group { display: flex; flex-direction: column; gap: 10px; }
.acc-item { border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
.acc-btn {
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: white;
  border: none;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: background 0.2s;
}
.acc-btn:hover { filter: brightness(1.1); }
.acc-btn.acc-saffron { background: linear-gradient(135deg, #92400e, #d97706); }
.acc-btn.acc-violet { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.acc-btn.acc-teal { background: linear-gradient(135deg, #134e4a, #0f766e); }
.acc-btn.acc-orange { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.acc-btn.acc-lime { background: linear-gradient(135deg, #365314, #65a30d); }
.acc-btn.acc-indigo { background: linear-gradient(135deg, #312e81, #4338ca); }
.acc-arrow { font-size: 0.8rem; transition: transform 0.3s; flex-shrink: 0; }
.acc-btn.open .acc-arrow { transform: rotate(180deg); }
.acc-content {
  padding: 20px;
  background: #f9fafb;
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.7;
}
.acc-content ul, .acc-content ol { padding-left: 20px; margin: 8px 0; }
.acc-content li { margin-bottom: 6px; }
.acc-content p { margin-bottom: 10px; }

/* ===== TWO COLUMN LAYOUT ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col-box { border-radius: var(--radius-md); padding: 16px; }
.col-box h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.col-box ul { padding-left: 18px; }
.col-box li { font-size: 0.87rem; font-weight: 600; margin-bottom: 5px; color: var(--text-mid); }
.col-green { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.col-green h4 { color: #065f46; }
.col-amber { background: #fffbeb; border: 1.5px solid #fde68a; }
.col-amber h4 { color: #78350f; }
.col-blue { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.col-blue h4 { color: #1e40af; }
.col-red { background: #fff1f2; border: 1.5px solid #fecaca; }
.col-red h4 { color: #7f1d1d; }
.col-orange { background: #fff7ed; border: 1.5px solid #fed7aa; }
.col-orange h4 { color: #7c2d12; }
.col-violet { background: #f5f3ff; border: 1.5px solid #ddd6fe; }
.col-violet h4 { color: #4c1d95; }

/* ===== TABLES ===== */
.def-table, .styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.def-table thead tr, .styled-table thead tr {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: white;
}
.def-table th, .styled-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.def-table td, .styled-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: var(--text-mid);
  vertical-align: top;
}
.def-table tbody tr:nth-child(even), .styled-table tbody .alt-row {
  background: #f8faff;
}
.def-table tbody tr:hover, .styled-table tbody tr:hover {
  background: #eff6ff;
  transition: background 0.15s;
}
.mortgage-table-wrap { overflow-x: auto; }
.revision-table td:first-child { font-weight: 700; color: #1d4ed8; white-space: nowrap; }
.revision-table thead tr { background: linear-gradient(135deg, #4c1d95, #7c3aed); }

/* ===== SUB-HEADING ===== */
.sub-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #bfdbfe;
}

/* ===== MCQ SECTION ===== */
.mcq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 16px;
}
.mcq-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-mid);
  transition: all 0.2s;
}
.mcq-tab:hover { border-color: #1d4ed8; color: #1d4ed8; }
.mcq-tab.active { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); color: white; border-color: #1d4ed8; }
.mcq-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #bfdbfe;
}
.mcq-item {
  background: #fafbff;
  border: 1px solid #e0e7ff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.mcq-q { font-size: 0.92rem; font-weight: 700; color: #1e3a8a; margin-bottom: 12px; line-height: 1.5; }
.mcq-opts { display: flex; flex-direction: column; gap: 8px; }
.mcq-opts label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mcq-opts label:hover { background: #eff6ff; }
.mcq-opts input[type="radio"] { margin-top: 2px; flex-shrink: 0; accent-color: #1d4ed8; }

/* ===== SHORT QUESTIONS ===== */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.qa-item { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: var(--radius-md); padding: 16px; border-left: 4px solid #059669; }
.qa-q { font-size: 0.9rem; font-weight: 700; color: #065f46; margin-bottom: 8px; line-height: 1.4; }
.qa-ans { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); line-height: 1.6; }

/* ===== DESCRIPTIVE QUESTIONS ===== */
.desc-list { display: flex; flex-direction: column; gap: 16px; }
.desc-item {
  display: flex;
  gap: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border-left: 5px solid #047857;
}
.desc-num {
  background: linear-gradient(135deg, #047857, #059669);
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  height: fit-content;
  white-space: nowrap;
}
.desc-q { font-size: 0.92rem; font-weight: 700; color: #1e3a8a; margin-bottom: 6px; line-height: 1.5; }
.desc-hint { font-size: 0.82rem; color: #6b7280; line-height: 1.5; }

/* ===== ANSWER KEY ===== */
.ak-controls { margin-bottom: 24px; }
.ak-content-hidden { display: none; }

/* ===== FLOWCHART / MIND MAP / ROADMAP ===== */
.chart-container {
  background: linear-gradient(135deg, #0f1f35, #1a2e55);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
  border: 2px solid rgba(244,162,97,0.3);
}
.flow-svg { width: 100%; max-width: 100%; height: auto; display: block; }

/* ===== ROADMAP ===== */
.roadmap-container { display: flex; flex-direction: column; gap: 16px; }
.road-step {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  border: 1.5px solid var(--border-light);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  min-width: 70px;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  height: fit-content;
  color: white;
}
.step-content h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-content ul { padding-left: 20px; }
.step-content li { font-size: 0.88rem; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; }
.step-tip {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(245,158,11,0.12);
  border-left: 3px solid #f59e0b;
  color: #78350f;
}

.step-blue { background: #eff6ff; border-color: #bfdbfe; }
.step-blue .step-num { background: linear-gradient(135deg, #1e40af, #2563eb); }
.step-blue h4 { color: #1e3a8a; }
.step-green { background: #f0fdf4; border-color: #bbf7d0; }
.step-green .step-num { background: linear-gradient(135deg, #065f46, #059669); }
.step-green h4 { color: #065f46; }
.step-saffron { background: #fffbeb; border-color: #fde68a; }
.step-saffron .step-num { background: linear-gradient(135deg, #92400e, #d97706); }
.step-saffron h4 { color: #92400e; }
.step-red { background: #fff1f2; border-color: #fecaca; }
.step-red .step-num { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.step-red h4 { color: #7f1d1d; }
.step-teal { background: #f0fdfa; border-color: #99f6e4; }
.step-teal .step-num { background: linear-gradient(135deg, #134e4a, #0f766e); }
.step-teal h4 { color: #134e4a; }
.step-orange { background: #fff7ed; border-color: #fed7aa; }
.step-orange .step-num { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.step-orange h4 { color: #7c2d12; }
.step-violet { background: #f5f3ff; border-color: #ddd6fe; }
.step-violet .step-num { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.step-violet h4 { color: #4c1d95; }
.step-gold { background: #fefce8; border-color: #fef08a; }
.step-gold .step-num { background: linear-gradient(135deg, #713f12, #a16207); }
.step-gold h4 { color: #713f12; }

/* ===== FOOTER ===== */
.site-footer-main {
  background: linear-gradient(135deg, #0f2040, #1a3a6b);
  padding: 32px;
  border-top: 3px solid #f4a261;
  margin-top: 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.disclaimer-box {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(244,162,97,0.4);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #93c5fd;
  line-height: 1.6;
}
.disclaimer-icon { font-size: 1.4rem; flex-shrink: 0; }
.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(147,197,253,0.7);
  font-weight: 600;
  text-align: center;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: white;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(29,78,216,0.4);
  display: none;
  transition: all 0.2s;
  z-index: 999;
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(29,78,216,0.5); }

/* ===== PRINT STYLES ===== */
@media print {
  .site-header, .quick-nav, .hero-btns, .btn, .back-to-top, .mcq-tabs, .acc-btn, .qbtn { display: none !important; }
  body { background: white; font-size: 11pt; color: #000; }
  .main-content { padding: 0; max-width: 100%; }
  .content-section { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; margin-bottom: 20pt; }
  .section-header h2 { font-size: 14pt; }
  .acc-content { display: block !important; }
  .hero { background: #0f2040; -webkit-print-color-adjust: exact; }
  .styled-table { font-size: 9pt; }
  .chart-container { background: white; border: 1px solid #ccc; }
  .flow-svg { max-width: 700pt; }
  @page { margin: 2cm; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .hero { padding: 40px 16px; }
  .section-body { padding: 18px 16px; }
  .section-header { padding: 16px 18px; }
  .main-content { padding: 20px 12px; gap: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
  .qnav-grid { gap: 6px; }
  .qbtn { font-size: 0.72rem; padding: 6px 10px; }
  .hero-title { font-size: 2rem; }
  .hero-year { font-size: 2.5rem; }
  .mcq-tabs { gap: 6px; }
  .mcq-tab { font-size: 0.78rem; padding: 8px 12px; }
  .road-step { flex-direction: column; gap: 10px; }
  .step-num { min-width: auto; width: fit-content; }
  .brand-sub { display: none; }
  .footer-brand-row { flex-direction: column; gap: 8px; }
  .desc-item { flex-direction: column; gap: 8px; }
  .mortgage-table-wrap { font-size: 0.78rem; }
  .chart-container { padding: 12px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .styled-table { font-size: 0.78rem; }
  .styled-table th, .styled-table td { padding: 8px 10px; }
}

/* =========================================================
   SECTION ENTRANCE ANIMATIONS (added by script.js)
   ========================================================= */
.section-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active nav highlight */
.qbtn-active {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(255,255,255,0.7) !important;
  filter: brightness(1.18) !important;
  transform: scale(1.06) !important;
}

/* Answer key button override */
.btn-ak {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.btn-ak:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(39,174,96,0.4);
}

/* MCQ panel smooth opacity on tab switch */
.mcq-panel {
  transition: opacity 0.35s ease;
}

/* Mark / highlight */
mark.highlight {
  background: #ffe066;
  color: #1a1a2e;
  padding: 0 2px;
  border-radius: 2px;
}

/* Print overrides */
@media print {
  .site-header, .hero-btns, .quick-nav, .back-to-top,
  .btn-print, .btn-nav, .btn-mcq, .btn-rev, .btn-ak,
  .ak-controls { display: none !important; }

  .acc-content {
    max-height: none !important;
    padding: 14px 16px !important;
    overflow: visible !important;
    display: block !important;
  }

  .mcq-panel {
    display: block !important;
  }

  #ak-content {
    display: block !important;
  }

  .content-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body {
    font-size: 12pt;
    color: #000 !important;
    background: #fff !important;
  }

  .section-header {
    background: #f0f0f0 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .styled-table th {
    background: #ddd !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}