/* ============================================================
   SAMARTHYA IAS — STYLES
   Light Theme Default · Dark Theme Toggle
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap");

/* ══ LIGHT THEME (Default) ══ */
:root {
  --bg-primary: #fffcf5;
  --bg-secondary: #f4edd9;
  --bg-card: #ffffff;
  --bg-card-alt: #fbf6ec;
  --bg-nav: rgba(255, 252, 245, 0.95);
  --bg-input: rgba(11, 26, 47, 0.04);
  --text-primary: #0b1a2f;
  --text-secondary: #2e4268;
  --text-muted: #6b7a8d;
  --text-subtle: #9aaabb;
  --border: rgba(11, 26, 47, 0.09);
  --border-accent: rgba(232, 132, 26, 0.28);
  --saffron: #e8841a;
  --saffron-light: #fef0dc;
  --gold: #c9a84c;
  --gold-light: #f0cc7a;
  --navy: #0b1a2f;
  --navy-mid: #1e3557;
  --success: #1e9a5e;
  --shadow-sm: 0 2px 8px rgba(11, 26, 47, 0.06);
  --shadow:
    0 2px 12px rgba(11, 26, 47, 0.08), 0 6px 24px rgba(11, 26, 47, 0.06);
  --shadow-lg: 0 16px 48px rgba(11, 26, 47, 0.13);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "DM Sans", sans-serif;
  --ff-hindi: "Noto Sans Devanagari", sans-serif;
}

/* ══ DARK THEME ══ */
[data-theme="dark"] {
  --bg-primary: #0b1a2f;
  --bg-secondary: #152540;
  --bg-card: #152540;
  --bg-card-alt: #1e3557;
  --bg-nav: rgba(11, 26, 47, 0.96);
  --bg-input: rgba(255, 255, 255, 0.05);
  --text-primary: #f8f2e6;
  --text-secondary: #c8d8ea;
  --text-muted: #8fa0b8;
  --text-subtle: #5a7090;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(232, 132, 26, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.25), 0 6px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --saffron-light: rgba(232, 132, 26, 0.12);
}

/* ══ RESET ══ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-subtle);
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg-secondary);
}

/* Focus-visible — keyboard-only focus ring */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}
button:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 4px;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none; /* already handled by border-color + box-shadow */
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--saffron);
  border-radius: 3px;
}

/* ══ TOP BAR ══ */
.top-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.top-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  font-family: var(--ff-body);
}
a.top-bar-item:hover {
  color: var(--gold-light);
}
.top-bar-item svg {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}

/* ══ LAYOUT ══ */
.section {
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad {
  padding: 100px 0;
}

/* Alternating section backgrounds for visual rhythm */
.why-us,
.testimonials,
.contact {
  background: var(--bg-secondary);
}
.courses,
.mentors {
  background: var(--bg-primary);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 16px;
}
.section-tag::before {
  content: "";
  width: 32px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-display);
  line-height: 1.2;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.section-title span {
  color: var(--saffron);
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 100%;
  line-height: 1.8;
}

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}
.btn svg {
  flex-shrink: 0;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 0.92rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
  display: flex;
}
.btn-primary {
  background: linear-gradient(145deg, var(--saffron), #c96e10);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 132, 26, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(145deg, #d6760f, #b06010);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 132, 26, 0.38);
}
.btn-outline {
  background: rgba(232, 132, 26, 0.08);
  color: var(--saffron);
  border: 1.5px solid var(--saffron);
}
.btn-outline:hover {
  background: var(--saffron);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 132, 26, 0.35);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--bg-card-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-dark-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ══ THEME TOGGLE ══ */
.theme-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  cursor: pointer;
  gap: 2px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
  border-color: var(--saffron);
}
.theme-toggle-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 100px;
  font-size: 0.85rem;
  transition: var(--transition);
  color: var(--text-muted);
}
.theme-toggle-opt.active {
  background: var(--saffron);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 132, 26, 0.35);
}

/* ══ NAVBAR ══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.scrolled {
  top: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Blog + course pages: keep nav link text readable over the dark hero */
:is(.page-blog, .page-course) .navbar:not(.scrolled) .nav-links > li > a {
  color: rgba(248, 242, 230, 0.92);
}
:is(.page-blog, .page-course) .navbar:not(.scrolled) .nav-links > li > a:hover {
  color: var(--text-primary);
  background: var(--bg-card-alt);
}
:is(.page-blog, .page-course) .navbar:not(.scrolled) .nav-links .active > a {
  color: var(--saffron);
}
:is(.page-blog, .page-course) .navbar:not(.scrolled) .nav-links .active > a:hover {
  color: var(--text-primary);
  background: var(--bg-card-alt);
}
:is(.page-blog, .page-course) .navbar:not(.scrolled) .nav-logo-text .english {
  color: rgba(248, 242, 230, 0.9);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.06);
}
.nav-logo-img--wide {
  width: auto;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, var(--saffron), #c06c0a);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  font-family: var(--ff-hindi);
  box-shadow:
    0 4px 14px rgba(232, 132, 26, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .hindi {
  font-family: var(--ff-hindi);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--saffron);
}
.nav-logo-text .english {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links a {
  display: block;
  padding: 7px 13px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 7px;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card-alt);
}
.nav-links .active > a {
  color: var(--saffron);
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}
.nav-dropdown > a {
  cursor: pointer;
}
.nav-dropdown > a::after {
  content: " ▾";
  font-size: 0.65rem;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
  z-index: 100;
}
.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-radius: 7px;
  transition: var(--transition);
}
.dropdown-menu a:hover {
  color: var(--saffron);
  background: var(--saffron-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Nav Buttons — unified look for light & dark backgrounds ── */
.nav-btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.nav-btn--filled {
  background: linear-gradient(145deg, var(--saffron), #c96e10);
  color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 10px rgba(232, 132, 26, 0.25);
}
.nav-btn--filled:hover {
  background: linear-gradient(145deg, #d6760f, #b06010);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 132, 26, 0.35);
}
.nav-btn--outline {
  background: rgba(232, 132, 26, 0.08);
  color: var(--saffron);
  border: 1.5px solid var(--saffron);
}
.nav-btn--outline:hover {
  background: var(--saffron);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 132, 26, 0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  width: 23px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══ HERO ══ */
/* ── Hero — Mars Explorer inspired layout ── */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  background: var(--bg-primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 60% at 85% 40%,
      rgba(232, 132, 26, 0.06) 0%,
      transparent 65%
    ),
    var(--bg-primary);
  transition: background 0.35s;
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(
      ellipse 60% 70% at 80% 40%,
      rgba(232, 132, 26, 0.1) 0%,
      transparent 70%
    ),
    linear-gradient(160deg, #0b1a2f 40%, #1e3557 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 24px 0;
}

/* ── Hero image block ── */
.hero-image-block {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  animation: fadeSlideUp 0.8s both;
}
.hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11, 26, 47, 0.15) 0%,
      rgba(11, 26, 47, 0.65) 100%
    ),
    linear-gradient(90deg, rgba(11, 26, 47, 0.55) 0%, transparent 60%);
}

/* ── Overlay text on image ── */
.hero-overlay-content {
  position: absolute;
  bottom: 80px;
  left: 48px;
  z-index: 3;
  animation: fadeSlideUp 0.9s 0.2s both;
}
.hero-tag-line {
  display: inline-block;
  background: rgba(232, 132, 26, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 132, 26, 0.3);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.hero-title .highlight {
  color: var(--saffron);
  position: relative;
}
.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), transparent);
  border-radius: 2px;
}

/* ── Floating glassmorphism stat cards — vertical strip ── */
.hero-float-strip {
  position: absolute;
  z-index: 4;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-float-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.hero-float-card:hover {
  transform: translateX(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .hero-float-card {
  background: rgba(21, 37, 64, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
}
.hero-float-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(232, 132, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float-card-text {
  display: flex;
  flex-direction: column;
}
.hero-float-card-text strong {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-float-card-text span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* ── Video Modal ── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.video-modal.active {
  opacity: 1;
  visibility: visible;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 1;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.video-modal-close:hover {
  color: var(--saffron);
}
.video-modal-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.video-modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ── Curved saffron separator ── */
.hero-curve {
  position: relative;
  z-index: 5;
  display: block;
  width: 100%;
  height: 82px;
  margin-top: -82px; /* overlap full height so curve starts from bottom corners */
  pointer-events: none;
}

/* ── Quote + CTA below image ── */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 24px 0 64px;
  animation: fadeSlideUp 0.9s 0.4s both;
}
.hero-quote {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
  font-style: normal;
}
.hero-quote strong {
  color: var(--text-primary);
  font-weight: 700;
}
[data-theme="dark"] .hero-quote {
  color: var(--text-muted);
}
[data-theme="dark"] .hero-quote strong {
  color: var(--gold-light);
}
.hero-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-shrink: 0;
  animation: fadeSlideUp 0.9s 0.5s both;
}
.hero-cta-main {
  font-size: 0.95rem;
  padding: 15px 36px;
}
.hero-cta-secondary {
  font-size: 0.92rem;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 132, 26, 0.08);
  color: var(--saffron);
  border: 1.5px solid var(--saffron);
}
.hero-cta-secondary:hover {
  background: var(--saffron);
  color: #fff;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile-only hero stats (hidden on desktop) ── */
.hero-mobile-stats {
  display: none;
}
.hero-mobile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.hero-mobile-stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
}
.hero-mobile-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 5px;
}

/* ══ TICKER ══ */
.ticker {
  background: linear-gradient(90deg, var(--saffron), #c97a12, var(--saffron));
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.ticker-inner {
  display: inline-flex;
  gap: 0;
  animation: marquee 32s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
}
.ticker-item::after {
  content: "◆";
  font-size: 0.45rem;
  opacity: 0.5;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ══ OUR STARS ══ */
.stars {
  background: var(--bg-primary);
  overflow: hidden;
}
.stars-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* Carousel */
.stars-carousel {
  position: relative;
  padding-bottom: 8px;
}
.stars-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 3;
  pointer-events: none;
}
.stars-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}
.stars-fade--right {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}
.stars-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: starsScroll 50s linear infinite;
}
.stars-track:hover {
  animation-play-state: paused;
}
@keyframes starsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Card */
.star-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  border-color: var(--border-accent);
  /* box-shadow: 0 2px 12px rgba(11,26,47,0.06); */
  box-shadow: 0 4px 20px rgba(232, 132, 26, 0.1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}
.star-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--border-accent);
}

/* Featured card (AIR 4) */
.star-card--featured {
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px rgba(232, 132, 26, 0.1);
}
.star-card--featured .star-card-photo {
  background: linear-gradient(135deg, #fef0dc, #fddcab);
  background-blend-mode: multiply, normal;
}
.star-card--featured .star-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(232, 132, 26, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.star-card--featured .star-card-rank {
  font-size: 1.5rem;
}

/* Photo area */
.star-card-photo {
  position: relative;
  width: 100%;
  height: 180px;
  background: radial-gradient(
    circle at center,
    rgba(232, 132, 26, 0.08) 0%,
    var(--bg-card-alt) 70%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 0 20px 0;
}
.star-card-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 3px solid var(--border-accent);
  box-shadow:
    0 0 0 6px rgba(232, 132, 26, 0.08),
    0 6px 20px rgba(11, 26, 47, 0.1);
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.star-card:hover .star-card-photo img {
  box-shadow:
    0 0 0 6px rgba(232, 132, 26, 0.15),
    0 8px 28px rgba(232, 132, 26, 0.12);
  transform: scale(1.05);
}

/* Exam badge at bottom of photo */
.star-card-exam {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  padding: 5px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Info area */
.star-card-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.star-card-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.star-card-course {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: auto;
}
.star-card-rank {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--saffron);
  margin-top: 12px;
  line-height: 1;
}

/* ══ ABOUT ══ */
.about {
  background: var(--bg-secondary);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 420px;
}
.img-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.img-item.tall {
  grid-row: span 2;
}
.img-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-item--award {
  background: transparent;
}
.img-item--award img {
  transform: scale(1.08);
  object-position: center center;
}

/* About page — v2 image grid */
.about-img-grid-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 160px 140px 160px;
  gap: 10px;
}
.img-cell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.reveal.visible .img-cell {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal.visible .img-cell-hero {
  transition-delay: 0s;
}
.reveal.visible .img-cell-top-right {
  transition-delay: 0.12s;
}
.reveal.visible .img-cell-mid {
  transition-delay: 0.24s;
}
.reveal.visible .img-cell-bottom-left {
  transition-delay: 0.36s;
}
.reveal.visible .img-cell-bottom-right {
  transition-delay: 0.48s;
}
.img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.img-cell:hover {
  box-shadow: var(--shadow);
  z-index: 2;
}
.img-cell:hover img {
  transform: scale(1.06);
}

.img-cell-hero {
  grid-row: 1 / 3;
  grid-column: 1;
}
.img-cell-top-right {
  grid-row: 1;
  grid-column: 2;
}
.img-cell-mid {
  grid-row: 2;
  grid-column: 2;
}
.img-cell-bottom-left {
  grid-row: 3;
  grid-column: 1;
}
.img-cell-bottom-right {
  grid-row: 3;
  grid-column: 2;
}

.about-award {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--saffron);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.award-icon {
  width: 44px;
  height: 44px;
  background: var(--saffron-light);
  border: 1px solid rgba(232, 132, 26, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.award-text strong {
  font-size: 1rem;
  font-family: var(--ff-display);
  color: var(--text-primary);
}
.award-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.about-content {
  padding: 20px 0;
}
.about-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 32px;
}
.about-point {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.about-point:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}
.point-icon {
  width: 38px;
  height: 38px;
  background: var(--saffron-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.point-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-family: var(--ff-body);
}
.point-text p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ══ STATS BANNER ══ */
.stats-banner {
  background: linear-gradient(135deg, #1a3a6d 0%, #2c5282 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats-banner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(232, 132, 26, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  background: rgba(13, 32, 64, 0.8);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(4px);
}
.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-num .plus {
  color: var(--saffron);
}
.stat-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8fa0b8;
  margin-top: 10px;
  font-weight: 500;
}

/* ══ WHY US ══ */
.why-us {
  background: var(--bg-primary);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
  box-shadow: var(--shadow-sm);
}
.why-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.why-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.why-card:hover::after {
  opacity: 1;
}
.why-card-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--ff-display);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  user-select: none;
}
.why-icon {
  width: 56px;
  height: 56px;
  background: var(--saffron-light);
  border: 1px solid rgba(232, 132, 26, 0.18);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  color: var(--saffron);
}
.why-card:hover .why-icon {
  background: var(--saffron);
  transform: scale(1.04);
  color: #fff;
}
.why-card:hover .why-icon svg {
  stroke: #fff;
}
.why-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: var(--ff-body);
  position: relative;
  z-index: 1;
}
.why-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ══ COURSES ══ */
.courses {
  background: var(--bg-secondary);
}
.courses-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 18px;
}
.courses-header .btn-outline {
  display: none;
}

/* ── Course Slider (homepage) ── */
.course-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.course-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0 16px;
  flex: 1;
}
.course-slider::-webkit-scrollbar {
  display: none;
}
.course-slide {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.course-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.course-slide:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.course-slide:hover::after {
  opacity: 1;
}
.course-slide-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--saffron);
  color: white;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  z-index: 2;
}
.course-slide-badge.popular {
  background: var(--gold);
  color: #0b1a2f;
}
.course-slide-img {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-secondary));
}
.course-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-slide-body {
  padding: 22px;
}
.course-slide-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--ff-body);
}
.course-slide-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-slide-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.course-slide-meta span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--saffron);
  background: rgba(232, 132, 26, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}
.slider-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.slider-arrow:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  box-shadow: var(--shadow);
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.slider-dot.active {
  background: var(--saffron);
  width: 24px;
  border-radius: 4px;
}
@media (max-width: 1024px) {
  .course-slide {
    flex: 0 0 calc(50% - 10px);
  }
}
@media (max-width: 768px) {
  .course-slide {
    flex: 0 0 calc(85%);
    min-width: 260px;
  }
  .slider-arrow {
    display: none;
  }
}

/* ── Course card (courses.html detail page, kept for backwards compat) ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.course-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.course-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.course-card:hover::after {
  opacity: 1;
}
.course-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.course-img {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-secondary));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.course-card.featured .course-img {
  width: 300px;
  height: auto;
}
.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--saffron);
  color: white;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  z-index: 2;
}
.course-badge.popular {
  background: var(--gold);
  color: #0b1a2f;
}
.course-body {
  padding: 26px;
  flex: 1;
}
.course-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--ff-body);
}
.course-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.course-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 22px;
}
.course-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.course-feature::before {
  content: "✓";
  width: 17px;
  height: 17px;
  background: rgba(30, 154, 94, 0.12);
  color: #1e9a5e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
}
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.course-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.course-duration strong {
  color: var(--text-primary);
}

/* ══ MENTORS ══ */
.mentors {
  background: var(--bg-primary);
}
.mentors-intro {
  max-width: 600px;
  margin-bottom: 56px;
}
.mentors-grid {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.mentor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: center;
  width: 340px;
}
.mentor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mentor-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.mentor-card:hover::before {
  opacity: 1;
}
.mentor-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-secondary));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  border: 3px solid var(--border-accent);
  box-shadow: 0 4px 16px rgba(232, 132, 26, 0.15);
}
.mentor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.mentor-img-overlay {
  display: none;
}
.mentor-badge {
  position: static;
  display: inline-block;
  background: rgba(232, 132, 26, 0.1);
  color: var(--saffron);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  margin-top: 14px;
  backdrop-filter: none;
}
.mentor-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  font-family: var(--ff-display);
  box-shadow: 0 4px 16px rgba(232, 132, 26, 0.3);
  position: relative;
  z-index: 1;
}
.mentor-body {
  padding: 10px 28px 28px;
}
.mentor-body h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--ff-body);
}
.mentor-body .role {
  font-size: 0.78rem;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 10px;
}
.mentor-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.mentor-socials {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}
.mentor-social {
  width: 30px;
  height: 30px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: var(--transition);
  color: var(--text-muted);
}
.mentor-social:hover {
  background: var(--saffron-light);
  border-color: var(--border-accent);
  color: var(--saffron);
}

.delhi-mentors {
  margin-top: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.delhi-mentors h3 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.delhi-mentors h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.delhi-mentor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mentor-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.mentor-chip:hover {
  border-color: var(--border-accent);
  color: var(--saffron);
}
.mentor-chip-dot {
  width: 7px;
  height: 7px;
  background: var(--saffron);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══ TESTIMONIALS ══ */
.testimonials {
  background: var(--bg-secondary);
  overflow: hidden;
}
.testi-header {
  text-align: center;
  margin-bottom: 56px;
}
.testi-header .section-tag {
  justify-content: center;
}
.testi-header .section-desc {
  margin: 0 auto;
}
.testi-track-wrap {
  overflow: hidden;
}
.testi-track {
  display: flex;
  gap: 20px;
  animation: testi-scroll 28s linear infinite;
}
.testi-track:hover {
  animation-play-state: paused;
}
@keyframes testi-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.testi-card {
  min-width: 300px;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.testi-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}
.testi-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}
.testi-stars span {
  color: var(--gold);
  font-size: 0.88rem;
}
.testi-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  font-style: italic;
}
.testi-text::before {
  content: "\201C";
  color: var(--saffron);
  font-size: 2.2rem;
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 4px;
  font-family: var(--ff-display);
  font-weight: 700;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 11px;
}
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border: 2px solid var(--border-accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  font-family: var(--ff-display);
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.testi-course {
  font-size: 0.75rem;
  color: var(--saffron);
  font-weight: 600;
}

/* ══ CTA SECTION (always dark) ══ */
.cta-section {
  background: linear-gradient(160deg, #0b1a2f 0%, #132d50 50%, #0b1a2f 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(232, 132, 26, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.cta-inner h2 span {
  color: var(--saffron);
}
.cta-inner p {
  font-size: 1.02rem;
  color: #8fa0b8;
  max-width: 480px;
  margin: 0 auto 34px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px 22px;
  margin-top: 36px;
  transition: var(--transition);
  color: #fff;
}
.cta-phone:hover {
  border-color: rgba(232, 132, 26, 0.4);
  background: rgba(232, 132, 26, 0.06);
}
.phone-icon {
  width: 38px;
  height: 38px;
  background: rgba(232, 132, 26, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.phone-text span {
  font-size: 0.72rem;
  color: #8fa0b8;
  display: block;
}
.phone-text strong {
  font-size: 1.05rem;
  color: #fff;
}

/* ══ CONTACT ══ */
.contact {
  background: var(--bg-primary);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
  margin-top: 56px;
}
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), transparent);
}
.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 26px;
  font-family: var(--ff-display);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  transition: var(--transition);
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--saffron);
  background: var(--saffron-light);
  box-shadow: 0 0 0 3px rgba(232, 132, 26, 0.1);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: rgba(232, 132, 26, 0.05);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7A8D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.location-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}
.location-card-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.location-flag {
  width: 42px;
  height: 42px;
  background: var(--saffron-light);
  border: 1px solid rgba(232, 132, 26, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.location-card-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-body);
}
.location-card-header span {
  font-size: 0.75rem;
  color: var(--saffron);
  font-weight: 600;
}
.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.location-detail-icon {
  color: var(--saffron);
  flex-shrink: 0;
  margin-top: 2px;
}
.hours-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.hours-row:last-child {
  border-bottom: none;
}
.hours-row strong {
  color: var(--text-primary);
}

/* ══ FOOTER ══ */
.footer {
  background: linear-gradient(180deg, #0d1f38, #0b1a2f);
  border-top: 3px solid var(--saffron);
  padding: 76px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 0.86rem;
  color: #8fa0b8;
  line-height: 1.7;
  margin: 14px 0 22px;
  max-width: 270px;
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #8fa0b8;
  transition: var(--transition);
}
a.footer-contact-item:hover {
  color: var(--saffron);
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa0b8;
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-social:hover {
  background: rgba(232, 132, 26, 0.12);
  border-color: rgba(232, 132, 26, 0.3);
  color: var(--saffron);
}
.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  font-size: 0.85rem;
  color: #8fa0b8;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--saffron);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: #8fa0b8;
}
.footer-bottom a {
  color: var(--saffron);
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a {
  font-size: 0.8rem;
  color: #8fa0b8;
  transition: var(--transition);
}
.footer-legal a:hover {
  color: #fff;
}

/* ══ ASHOKA WATERMARK ══ */
.hero-ashoka-watermark {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 420px;
  height: 420px;
  opacity: 0.025;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='95' fill='none' stroke='%23E8841A' stroke-width='2'/%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%23E8841A' stroke-width='1.5'/%3E%3Ccircle cx='100' cy='100' r='15' fill='none' stroke='%23E8841A' stroke-width='2'/%3E%3Cg stroke='%23E8841A' stroke-width='1.5'%3E%3Cline x1='100' y1='5' x2='100' y2='195'/%3E%3Cline x1='5' y1='100' x2='195' y2='100'/%3E%3Cline x1='26' y1='26' x2='174' y2='174'/%3E%3Cline x1='174' y1='26' x2='26' y2='174'/%3E%3Cline x1='100' y1='5' x2='100' y2='195' transform='rotate(22.5 100 100)'/%3E%3Cline x1='100' y1='5' x2='100' y2='195' transform='rotate(67.5 100 100)'/%3E%3Cline x1='100' y1='5' x2='100' y2='195' transform='rotate(112.5 100 100)'/%3E%3Cline x1='100' y1='5' x2='100' y2='195' transform='rotate(157.5 100 100)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
[data-theme="dark"] .hero-ashoka-watermark {
  opacity: 0.04;
}

/* ══ PROFESSIONAL SEPARATORS ══ */
.section-pad + .section-pad {
  border-top: 1px solid var(--border);
}
.page-hero + .section-pad {
  padding-top: 56px;
}

/* ══ REVEAL ANIMATIONS ══ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ══ MOBILE MENU ══ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-card);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 96px 32px 40px;
  transform: translateX(100%);
  transition: var(--transition);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu-links a {
  font-size: 1.15rem;
  font-family: var(--ff-body);
  font-weight: 600;
  color: var(--text-primary);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.mobile-menu-links a:hover {
  color: var(--saffron);
  padding-left: 8px;
}
.mobile-menu-cta {
  margin-top: 36px;
}

/* ══ PAGE HERO (inner pages) — see PAGE HERO VARIANTS below ══ */

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .hero-image {
    height: 420px;
  }
  .hero-float-strip {
    right: 20px;
    gap: 8px;
  }
  .hero-float-card {
    padding: 8px 12px;
  }
  .hero-float-card-text strong {
    font-size: 0.95rem;
  }
  .hero-float-card-text span {
    font-size: 0.6rem;
  }
  .hero-float-card-icon {
    width: 28px;
    height: 28px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img-grid {
    min-height: 360px;
  }
  .about-img-grid-v2 {
    grid-template-rows: 140px 120px 140px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
/* Old 768px block — consolidated into RESPONSIVE ADDITIONS below */
.theme-toggle-mobile {
  display: none;
}

/* ══════════════════════════════════════════
   SHARED COMPONENT ADDITIONS
   (Mobile overlay, close btn, mob-active,
    accordion, tabs, course detail pages,
    PYQ, brochure, legal pages, inquiry)
══════════════════════════════════════════ */

/* ── Mobile overlay ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.mobile-menu-close:hover {
  color: var(--saffron);
  border-color: var(--border-accent);
}

.mob-active {
  color: var(--saffron) !important;
}
.active-link {
  color: var(--saffron) !important;
  font-weight: 600;
}

/* ── Btn spinner ── */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ══ ACCORDION ══ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.accordion-item:hover {
  border-color: var(--border-accent);
}
.accordion-item.open {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}
.accordion-header h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--ff-body);
  line-height: 1.4;
  flex: 1;
}
.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  flex-shrink: 0;
  transition: var(--transition);
  font-weight: 700;
  font-size: 0;
}
.accordion-icon::before {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}
.accordion-item.open .accordion-icon {
  background: var(--saffron);
  color: #fff;
  transform: none;
}
.accordion-item.open .accordion-icon::before {
  content: "\2212";
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.open .accordion-body {
  max-height: 600px;
}
.accordion-content {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.25s ease 0.1s,
    transform 0.25s ease 0.1s;
}
.accordion-item.open .accordion-content {
  opacity: 1;
  transform: translateY(0);
}
.accordion-content p {
  margin-bottom: 12px;
}
.accordion-content p:last-child {
  margin-bottom: 0;
}
.accordion-content ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.accordion-content li {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ══ TABS ══ */
.tab-container {
  margin-top: 40px;
}
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-nav::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
  font-family: var(--ff-body);
  border-radius: 8px 8px 0 0;
}
.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-alt);
}
.tab-btn.active {
  color: var(--saffron);
  background: var(--bg-card-alt);
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--saffron);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.35s ease forwards;
}
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══ CURRICULUM TABLE ══ */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.curriculum-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.curriculum-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.curriculum-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-body);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.curriculum-card h4 .ch-icon {
  width: 28px;
  height: 28px;
  background: var(--saffron-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.curriculum-card ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.curriculum-card li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.curriculum-card li::before {
  content: "·";
  color: var(--saffron);
  font-size: 1.2rem;
  line-height: 1;
  margin-top: -1px;
}

/* ══ TIMELINE ══ */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--saffron), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--saffron);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--saffron);
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-body);
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.timeline-tag {
  display: inline-block;
  background: var(--saffron-light);
  color: var(--saffron);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

/* ══ INFO CARDS ══ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.program-difference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.info-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.info-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--ff-body);
}
.info-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.prelims-drop-grid .info-card h3 {
  cursor: pointer;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.prelims-drop-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.prelims-drop-grid .prelims-drop-copy,
.prelims-drop-grid .info-card > p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}
.prelims-drop-grid.open-all .prelims-drop-copy,
.prelims-drop-grid.open-all .info-card > p {
  max-height: 900px;
  opacity: 1;
  margin-top: 12px;
}
.prelims-drop-grid.open-all .prelims-drop-indicator {
  transform: rotate(45deg);
  background: var(--saffron);
  color: #fff;
}

/* GPSC premium roadmap block */
.gpsc-roadmap-premium {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.gpsc-roadmap-head {
  margin-bottom: 12px;
}
.gpsc-roadmap-title {
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.gpsc-roadmap-title span {
  color: var(--saffron);
}
.gpsc-roadmap-subtext {
  max-width: 850px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.gpsc-roadmap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.gpsc-roadmap-card {
  text-align: left;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-card) 85%, white 15%);
}
.gpsc-roadmap-card .accordion-header {
  padding: 18px 18px;
}
.gpsc-roadmap-card .accordion-header h3 {
  font-size: 0.92rem;
}
.gpsc-roadmap-card .accordion-content {
  padding: 14px 18px 18px;
}
.gpsc-proof-strip {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gpsc-proof-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.gpsc-proof-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.gpsc-proof-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.upsc-prelims-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.upsc-prelims-cta-center {
  justify-content: center;
  margin-top: 28px;
}
@media (max-width: 1200px) {
  .gpsc-roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .upsc-prelims-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gpsc-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .gpsc-roadmap-title {
    line-height: 1.28;
  }
  .gpsc-roadmap-grid,
  .gpsc-proof-strip {
    grid-template-columns: 1fr;
  }
  .upsc-prelims-grid-3 {
    grid-template-columns: 1fr;
  }
}
.prelims-drop-grid .info-card h3 {
  cursor: pointer;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.prelims-drop-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.prelims-drop-grid .prelims-drop-copy,
.prelims-drop-grid .info-card > p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}
.prelims-drop-grid.open-all .prelims-drop-copy,
.prelims-drop-grid.open-all .info-card > p {
  max-height: 900px;
  opacity: 1;
  margin-top: 12px;
}
.prelims-drop-grid.open-all .prelims-drop-indicator {
  transform: rotate(45deg);
  background: var(--saffron);
  color: #fff;
}

/* ══ BREADCRUMB ══ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--saffron);
  font-weight: 600;
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--text-primary);
}
.breadcrumb .sep {
  opacity: 0.4;
}

/* ══ PAGE HERO VARIANTS ══ */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  padding-top: 40px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.page-hero--bg {
  min-height: 48vh;
}
.page-hero--contact {
  min-height: 34vh;
}
/* Layered gradient background */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 70% at 85% 15%,
      rgba(232, 132, 26, 0.09) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 50% at 10% 80%,
      rgba(201, 168, 76, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(232, 132, 26, 0.02) 0%,
      transparent 50%
    );
}
/* Decorative accent line at bottom */
.page-hero .page-hero-inner::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
  margin-top: 28px;
}

.page-hero .page-hero-inner {
  padding-top: 50px;
}
/* Floating decorative orb */
.page-hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 132, 26, 0.06) 0%,
    transparent 70%
  );
  top: -60px;
  right: -40px;
  pointer-events: none;
  z-index: 0;
  animation: hero-orb-float 8s ease-in-out infinite;
}
.page-hero-orb-secondary {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.05) 0%,
    transparent 70%
  );
  bottom: -30px;
  left: 10%;
  pointer-events: none;
  z-index: 0;
  animation: hero-orb-float 10s ease-in-out infinite reverse;
}
@keyframes hero-orb-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.06);
  }
}
/* Decorative corner accent */
.page-hero-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}
.page-hero-corner svg {
  width: 100%;
  height: 100%;
}
.page-hero-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 180px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}
.page-hero-logo img {
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-title span {
  color: var(--saffron);
  position: relative;
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 580px;
  line-height: 1.7;
}
.page-hero-meta {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.page-hero-badge:hover {
  border-color: var(--saffron);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.page-hero-badge .badge-icon {
  display: flex;
  align-items: center;
  color: var(--saffron);
  flex-shrink: 0;
}
.page-hero-badge span {
  color: var(--saffron);
}
/* ── Course page hero with background image ── */
.page-hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero--bg::before {
  background:
    linear-gradient(
      180deg,
      rgba(11, 26, 47, 0.82) 0%,
      rgba(11, 26, 47, 0.7) 50%,
      rgba(11, 26, 47, 0.88) 100%
    ),
    radial-gradient(
      ellipse 50% 70% at 85% 15%,
      rgba(232, 132, 26, 0.12) 0%,
      transparent 70%
    ) !important;
}
.page-hero--bg .page-title {
  color: #f8f2e6;
}
.page-hero--bg .page-title span {
  color: var(--gold-light);
}
.page-hero--bg .page-subtitle {
  color: rgba(248, 242, 230, 0.75);
}
.page-hero--bg .breadcrumb {
  color: rgba(248, 242, 230, 0.55);
}
.page-hero--bg .breadcrumb a {
  color: var(--gold-light);
}
.page-hero--bg .page-hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(248, 242, 230, 0.85);
  backdrop-filter: blur(12px);
}
.page-hero--bg .page-hero-badge span {
  color: var(--gold-light);
}
.page-hero--bg .page-hero-badge .badge-icon {
  color: var(--gold-light);
}
.page-hero--bg .page-hero-inner::after {
  background: linear-gradient(90deg, var(--gold-light), var(--saffron));
}
.page-hero--bg .page-hero-orb {
  background: radial-gradient(
    circle,
    rgba(232, 132, 26, 0.1) 0%,
    transparent 70%
  );
}
.page-hero--bg .page-hero-orb-secondary {
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 70%
  );
}

/* Per-course backgrounds */
.page-hero--prelims {
  background-image: url("img/hero-prelims.webp");
}
.page-hero--gs-csat {
  background-image: url("img/hero-gs-csat.webp");
}
.page-hero--gpsc {
  background-image: url("img/hero-gpsc.webp");
}
.page-hero--ba-upsc {
  background-image: url("img/hero-ba-upsc.webp");
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 38vh;
    padding-bottom: 44px;
    padding-top: 84px;
  }
  .page-hero-orb {
    width: 160px;
    height: 160px;
  }
  .page-hero-corner {
    width: 120px;
    height: 120px;
  }
  .page-hero-logo {
    width: 120px;
  }
}

/* ══ TWO-COL LAYOUT (course pages) ══ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.sticky-sidebar {
  position: sticky;
  top: 100px;
}

/* ── Enrollment card ── */
.enroll-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.enroll-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
}
.enroll-card-body {
  padding: 28px;
}
.enroll-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--ff-display);
  margin-bottom: 4px;
}
.enroll-duration {
  font-size: 0.82rem;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 20px;
}
.enroll-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.enroll-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.enroll-feature-check {
  width: 20px;
  height: 20px;
  background: rgba(30, 154, 94, 0.12);
  color: #1e9a5e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.enroll-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.enroll-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-card-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.enroll-contact-icon {
  font-size: 1.2rem;
}
.enroll-contact p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.enroll-contact strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* ── Overview content ── */
.content-section {
  margin-bottom: 44px;
}
.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.content-section p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.content-section ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.content-section li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.content-section li::before {
  content: "→";
  color: var(--saffron);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Highlights strip ── */
.highlights-strip {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 44px 0;
  color: white;
}
.highlight-item {
  text-align: center;
}
.highlight-num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.highlight-label {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ══ TESTIMONIALS PAGE ══ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.testi-card-full:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* ══ PYQ PAGE ══ */
.pyq-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.pyq-filter-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--ff-body);
}
.pyq-filter-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}
.pyq-filter-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}
.pyq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pyq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pyq-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pyq-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--saffron-light);
  color: var(--saffron);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}
.pyq-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-body);
  line-height: 1.4;
}
.pyq-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.pyq-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pyq-card-footer span {
  font-size: 0.76rem;
  color: var(--text-subtle);
}

/* ══ BROCHURE PAGE ══ */
.brochure-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.brochure-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
}
.brochure-preview-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}
.brochure-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.brochure-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
  text-align: left;
}
.brochure-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card-alt);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.brochure-feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.brochure-feature h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--ff-body);
}
.brochure-feature p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══ LEGAL PAGES (Privacy, Terms) ══ */
.legal-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.legal-toc h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.legal-toc a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: 7px;
  transition: var(--transition);
  margin-bottom: 2px;
}
.legal-toc a:hover {
  color: var(--saffron);
  background: var(--saffron-light);
}
[data-theme="dark"] .legal-toc a:hover {
  background: rgba(232, 132, 26, 0.08);
}
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 14px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-content strong {
  color: var(--text-primary);
}
.legal-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron-light);
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

/* ══ BLOG PAGE ══ */
.page-hero--blog::before {
  background:
    radial-gradient(ellipse 55% 80% at 90% 10%, rgba(232, 132, 26, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 5% 90%, rgba(201, 168, 76, 0.1) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(232, 132, 26, 0.04) 0%, transparent 50%);
}

.blog-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
.blog-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(232, 132, 26, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201, 168, 76, 0.05) 0%, transparent 35%);
  opacity: 0.9;
}
.blog-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-toc-card,
.blog-stat-card,
.blog-sidebar-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.blog-toc-card {
  padding: 22px 20px;
}
.blog-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin: 0 0 14px;
}
.blog-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: blog-toc;
}
.blog-toc-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  counter-increment: blog-toc;
}
.blog-toc-list li::before {
  content: counter(blog-toc) ".";
  flex-shrink: 0;
  min-width: 1.35em;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: right;
}
.blog-toc-list a {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s ease;
}
.blog-toc-list a:hover {
  color: var(--saffron);
}
.blog-stat-card {
  padding: 22px 20px;
  text-align: center;
  background: linear-gradient(160deg, var(--saffron-light) 0%, var(--bg-card) 55%);
  border-color: rgba(232, 132, 26, 0.25);
}
.blog-stat-value {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--saffron), #c96e10);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.blog-stat-desc {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.blog-sidebar-cta {
  padding: 22px 20px;
  border-color: var(--border-accent);
}
.blog-sidebar-cta-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.blog-sidebar-cta-text {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.blog-sidebar-cta-btn {
  width: 100%;
  justify-content: center;
  display: flex;
  margin-top: 0;
}
.blog-sidebar-cta-btn + .blog-sidebar-cta-btn {
  margin-top: 10px;
}
.blog-main {
  min-width: 0;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 40px 44px;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
}
.blog-article {
  max-width: none;
  margin: 0;
}
.blog-article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.blog-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron);
}
.blog-topic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px var(--saffron-light);
}
.blog-article-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding: 0;
  border: none;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.blog-meta-item svg {
  color: var(--saffron);
  flex-shrink: 0;
}
.blog-figure {
  margin: 0 0 32px;
}
.blog-figure-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
}
.blog-figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}
.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.blog-figure figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}
.blog-lead {
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
  color: var(--text-secondary) !important;
  padding: 20px 22px;
  margin-bottom: 24px !important;
  background: var(--saffron-light);
  border-left: 4px solid var(--saffron);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.blog-callout {
  margin: 28px 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--saffron-light) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(232, 132, 26, 0.3);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--saffron);
}
.blog-callout p {
  margin: 0;
  font-size: 1rem !important;
  font-weight: 500;
  color: var(--text-primary) !important;
  line-height: 1.65 !important;
}
.blog-highlight {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 24px 0 28px;
  padding: 20px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
}
.blog-highlight-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--saffron), #c96e10);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(232, 132, 26, 0.35);
}
.blog-highlight-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.blog-highlight-body p {
  margin: 0;
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
}
.blog-mistakes-intro {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}
.blog-mistakes {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.blog-mistakes li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-mistakes li:hover {
  border-color: rgba(232, 132, 26, 0.35);
  box-shadow: var(--shadow-sm);
}
.blog-mistakes-num {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--saffron);
  background: var(--saffron-light);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.blog-cta {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.blog-cta-inner {
  padding: 32px 36px;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(232, 132, 26, 0.12) 0%, transparent 50%),
    var(--bg-secondary);
  border: 1px solid rgba(232, 132, 26, 0.25);
}
.blog-cta-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
}
.blog-cta-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  padding: 0;
  border: none;
}
.blog-cta-text {
  margin: 0 auto 22px;
  max-width: 520px;
  font-size: 0.92rem !important;
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
}
.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.blog-cta-actions .nav-btn--filled {
  color: #fff;
  text-decoration: none;
}
.blog-cta-actions .nav-btn--filled:hover {
  color: #fff;
}
.blog-article h2.blog-article-title {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.blog-article {
  counter-reset: blog-section;
}
.blog-article > h3[id] {
  counter-increment: blog-section;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 42px 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}
.blog-article > h3[id]::before {
  content: counter(blog-section, decimal-leading-zero);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--ff-body, inherit);
  color: #fff;
  background: linear-gradient(145deg, var(--saffron), #c96e10);
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(232, 132, 26, 0.32);
}
/* Non-section headings (e.g. CTA title) keep the simple accent box */
.blog-article h3:not([id]) {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 14px;
  scroll-margin-top: 100px;
}
.blog-article p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.blog-article a {
  color: var(--saffron);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article a:hover {
  color: #c96e10;
}

/* ── Reading progress bar ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  box-shadow: 0 0 8px rgba(232, 132, 26, 0.5);
  transition: width 0.08s linear;
}

/* ── TOC scroll-spy active state ── */
.blog-toc-list a {
  transition: color 0.2s ease, transform 0.2s ease;
}
.blog-toc-list a.active {
  color: var(--saffron);
  font-weight: 700;
  transform: translateX(2px);
}
.blog-toc-list li:has(a.active)::before {
  color: var(--saffron);
  font-weight: 700;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .blog-toc-card {
    grid-column: 1 / -1;
  }
  .blog-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
  }
}
@media (max-width: 640px) {
  .blog-card {
    padding: 24px 20px 32px;
  }
  .blog-sidebar {
    grid-template-columns: 1fr;
  }
  .blog-highlight {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .blog-cta-inner {
    padding: 24px 20px;
  }
  .blog-cta-actions {
    flex-direction: column;
  }
  .blog-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Blog listing grid ── */
.blog-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.blog-post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}
.blog-post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--saffron-light);
}
.blog-post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-post-card:hover .blog-post-card-media img {
  transform: scale(1.05);
}
.blog-post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}
.blog-post-card-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron);
}
.blog-post-card-title {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 700;
}
.blog-post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-post-card-title a:hover {
  color: var(--saffron);
}
.blog-post-card-excerpt {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.blog-post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-post-card-meta .dot {
  opacity: 0.5;
}
.blog-post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--saffron);
  text-decoration: none;
}
.blog-post-card-link svg {
  transition: transform 0.2s ease;
}
.blog-post-card:hover .blog-post-card-link svg {
  transform: translateX(3px);
}

/* ── Blog post: back link ── */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.blog-back-link:hover {
  color: var(--saffron);
  gap: 10px;
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ── Form consent checkbox ── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--border-accent);
  border-radius: 4px;
  background: var(--bg-card);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.form-consent input[type="checkbox"]:checked {
  background-color: var(--saffron);
  border-color: var(--saffron);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}
.form-consent a {
  color: var(--saffron);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent a:hover {
  color: #c96e10;
}

/* ══ INQUIRY PAGE ══ */
.inquiry-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.inquiry-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.inquiry-info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-family: var(--ff-body);
}
.inquiry-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inquiry-step {
  display: flex;
  gap: 14px;
}
.inquiry-step-num {
  width: 32px;
  height: 32px;
  background: var(--saffron);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}
.inquiry-step-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-family: var(--ff-body);
}
.inquiry-step-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-label-req::after {
  content: " *";
  color: var(--saffron);
}
.form-hint {
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-top: 5px;
}
.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin: 24px 0 16px;
}

/* ══ WHY US PAGE ══ */
.why-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 24px;
}
.why-full-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.why-full-icon {
  width: 56px;
  height: 56px;
  background: var(--saffron-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.why-full-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--ff-body);
}
.why-full-content p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══ FACULTY GRID & CARDS ══ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.faculty-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.faculty-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.faculty-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.faculty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.faculty-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.faculty-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-body);
}
.faculty-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.expertise-tag {
  display: inline-block;
  background: var(--saffron-light);
  color: var(--saffron);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
}
.faculty-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}
.detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* ══ RESPONSIVE ADDITIONS ══ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .sticky-sidebar {
    position: static;
  }
  .legal-wrap {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .inquiry-wrap {
    grid-template-columns: 1fr;
  }
  .highlights-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stars-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }
  .stars-fade {
    width: 60px;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Layout */
  .container {
    padding: 0 16px;
  }
  .section-pad {
    padding: 56px 0;
  }
  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 14px;
  }
  .section-desc {
    font-size: 0.92rem;
  }

  /* Navbar — top-bar is hidden, so navbar starts at top */
  .navbar {
    top: 0;
  }
  .nav-inner {
    height: 64px;
  }
  .nav-logo-img {
    width: 44px;
    height: 44px;
  }
  .nav-logo-img--wide {
    height: 48px;
  }
  .nav-logo-text .hindi {
    font-size: 0.8rem;
  }
  .nav-logo-text .english {
    font-size: 0.5rem;
  }
  .nav-links,
  .nav-cta .nav-btn--outline,
  .nav-cta .nav-btn--filled {
    display: none;
  }
  .mobile-menu-cta .theme-toggle {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* Hero section */
  .hero {
    padding-top: 64px;
  }
  .hero-inner {
    padding: 24px 16px 0;
  }
  .hero-image-block {
    border-radius: 16px;
  }
  .hero-image {
    height: 360px;
  }
  .hero-overlay-content {
    left: 16px;
    right: 16px;
    bottom: 100px;
  }
  .hero-tag-line {
    font-size: 0.65rem;
    padding: 4px 12px;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    line-height: 1.15;
  }
  .hero-title br {
    display: none;
  }
  .hero-float-strip {
    display: none;
  }
  .hero-mobile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px 0 8px;
  }
  .hero-bottom {
    padding: 16px 0 40px;
    gap: 20px;
  }
  .hero-quote {
    font-size: 0.85rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .hero-cta-main {
    font-size: 0.88rem;
    padding: 13px 28px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-cta-secondary {
    font-size: 0.85rem;
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
  }

  /* Ticker */
  .ticker {
    padding: 10px 0;
  }
  .ticker-item {
    font-size: 0.75rem;
    padding: 0 20px;
  }

  /* Stars */
  .stars-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }
  .star-card {
    width: 180px;
  }
  .star-card-photo {
    height: 150px;
    padding: 0 0 15px 0;
  }
  .star-card-photo img {
    width: 120px;
    height: 120px;
  }
  .star-card-info {
    padding: 12px 14px 14px;
  }
  .star-card-name {
    font-size: 0.9rem;
  }
  .star-card-rank {
    font-size: 1.15rem;
    margin-top: 10px;
  }
  .star-card--featured .star-card-rank {
    font-size: 1.3rem;
  }
  .stars-track {
    gap: 16px;
  }
  .stars-fade {
    width: 40px;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-img-grid {
    gap: 8px;
    min-height: 300px;
  }
  .about-img-grid-v2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 120px 100px 120px;
    gap: 8px;
  }
  .about-content {
    padding: 0;
  }
  .about-point {
    padding: 12px;
  }
  .point-text h4 {
    font-size: 0.88rem;
  }
  .point-text p {
    font-size: 0.8rem;
  }

  /* Why Us cards */
  .why-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .why-card {
    padding: 24px 20px;
  }
  .why-card-num {
    font-size: 3rem;
  }
  .why-full-grid {
    grid-template-columns: 1fr;
  }
  .why-full-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .faculty-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .faculty-image {
    height: 240px;
  }
  .faculty-content {
    padding: 16px;
    gap: 12px;
  }
  .faculty-content h3 {
    font-size: 1.05rem;
  }
  .expertise-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Course slider */
  .course-slide {
    flex: 0 0 85%;
    min-width: 260px;
  }
  .slider-arrow {
    display: none;
  }
  .course-slider-wrap {
    gap: 0;
  }

  /* Course cards (courses.html) */
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .course-card.featured {
    flex-direction: column;
  }
  .course-card.featured .course-img {
    width: 100%;
    height: 160px;
  }

  /* Mentors */
  .mentors-intro {
    margin-bottom: 32px;
  }
  .mentor-card {
    width: 300px;
  }
  .mentor-img {
    width: 130px;
    height: 130px;
    margin-top: 22px;
  }
  .delhi-mentors {
    padding: 20px;
  }

  /* Stats */
  .stats-banner {
    padding: 48px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    padding: 28px 16px;
  }
  .stat-num {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.68rem;
  }

  /* CTA */
  .cta-section {
    padding: 64px 0;
  }
  .cta-inner h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  .cta-inner p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-phone {
    padding: 12px 18px;
  }

  /* Contact & Forms */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-form-wrap {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  /* Inquiry */
  .inquiry-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .inquiry-info-card {
    padding: 24px;
  }

  /* Testimonials — snap-scroll on mobile */
  .testi-track-wrap {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testi-track-wrap::-webkit-scrollbar {
    display: none;
  }
  .testi-track {
    animation: none;
    gap: 16px;
    padding: 0 20px;
  }
  .testi-card {
    min-width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    scroll-snap-align: center;
    padding: 22px;
  }
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testi-header {
    margin-bottom: 32px;
  }

  /* PYQ */
  .pyq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Brochure */
  .brochure-hero-card {
    padding: 28px 20px;
  }
  .brochure-preview-icon {
    font-size: 3.5rem;
  }
  .brochure-features {
    grid-template-columns: 1fr;
  }

  /* Curriculum & Highlights */
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
  .highlights-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 20px;
    gap: 16px;
  }
  .highlight-num {
    font-size: 1.8rem;
  }

  /* Legal pages */
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-toc {
    position: static;
  }
  .legal-content h2 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    padding-top: 28px;
  }

  /* Info cards */
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tabs */
  .tab-btn {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  /* Page hero */
  .page-hero {
    min-height: 32vh;
    padding-bottom: 36px;
    padding-top: 40px;
  }
  .page-hero-orb {
    width: 140px;
    height: 140px;
  }
  .page-hero-corner {
    width: 100px;
    height: 100px;
  }
  .page-hero-logo {
    width: 90px;
    top: 12px;
    right: 12px;
  }
  .page-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }
  .page-subtitle {
    font-size: 0.92rem;
    margin-top: 10px;
  }
  .page-hero-badge {
    padding: 7px 14px;
    font-size: 0.76rem;
  }

  /* Footer */
  .footer {
    padding: 48px 0 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-legal {
    justify-content: center;
  }

  /* Accordion */
  .accordion-header {
    padding: 16px 18px;
  }
  .accordion-content {
    padding: 0 18px 16px;
    padding-top: 12px;
  }

  /* Timeline */
  .timeline {
    padding-left: 24px;
  }
  .timeline-dot {
    left: -20px;
    width: 14px;
    height: 14px;
  }
  .timeline-content {
    padding: 16px;
  }

  /* Enroll card */
  .enroll-card-body {
    padding: 22px;
  }

  /* Theme toggle — keep visible on mobile */

  /* Mobile menu */
  .mobile-menu {
    padding: 80px 24px 32px;
  }
  .mobile-menu-links a {
    font-size: 1.05rem;
  }

  /* Inline-style grid overrides (need !important to beat inline styles) */
  .featured-course-header {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 20px !important;
  }
  .featured-course-header > div:first-child {
    width: 56px !important;
    height: 56px !important;
  }
  .featured-course-header > div:last-child {
    text-align: left !important;
  }
  .featured-course-features {
    grid-template-columns: 1fr !important;
  }
  .courses-page-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .about-vision-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 36px !important;
  }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .section-pad {
    padding: 44px 0;
  }
  .hero-image {
    height: 260px;
  }
  .hero-overlay-content {
    left: 12px;
    right: 12px;
    bottom: 80px;
  }
  .hero-title {
    font-size: 1.3rem;
    line-height: 1.2;
  }
  .hero-tag-line {
    font-size: 0.6rem;
    padding: 4px 10px;
  }
  .hero-bottom {
    padding: 12px 0 28px;
  }
  .hero-mobile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 16px 0 8px;
  }
  .hero-mobile-stat strong {
    font-size: 1.4rem;
  }
  .hero-mobile-stat span {
    font-size: 0.65rem;
  }
  .hero-mobile-stat {
    padding: 12px 6px;
  }

  .about-img-grid-v2 {
    grid-template-rows: 100px 80px 100px;
  }

  .course-slide {
    flex: 0 0 92%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .stat-item {
    padding: 20px 12px;
  }
  .stat-num {
    font-size: 1.7rem;
  }

  .contact-form-wrap {
    padding: 20px 16px;
  }
  .brochure-hero-card {
    padding: 24px 16px;
  }

  .testi-track {
    padding: 0 14px;
  }
  .testi-card {
    min-width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
    padding: 20px;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .highlights-strip {
    grid-template-columns: 1fr;
  }
  .pyq-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .program-difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pyq-bundle-inner {
    flex-direction: column !important;
  }
  .mentor-chip {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .page-hero {
    padding-bottom: 28px;
    padding-top: 60px;
    min-height: 28vh;
  }

  .why-card {
    padding: 20px 16px;
  }
  .why-card-num {
    font-size: 2.5rem;
    top: 12px;
    right: 14px;
  }

  .cta-section {
    padding: 48px 0;
  }

  .footer-grid {
    gap: 24px;
  }

  /* Stars */
  .star-card {
    width: 155px;
  }
  .star-card-photo {
    padding: 18px 0 12px;
  }
  .star-card-photo img {
    width: 120px;
    height: 120px;
  }
  .star-card-exam {
    font-size: 0.6rem;
    padding: 4px 6px;
  }
  .star-card-info {
    padding: 10px 12px 12px;
  }
  .star-card-name {
    font-size: 0.82rem;
  }
  .star-card-course {
    font-size: 0.65rem;
  }
  .star-card-rank {
    font-size: 1.05rem;
    margin-top: 8px;
  }
  .star-card--featured .star-card-rank {
    font-size: 1.15rem;
  }
  .stars-track {
    gap: 12px;
  }
  .stars-fade {
    width: 24px;
  }
}

/* ══ SPLASH SCREEN ══ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.splash.hide {
  opacity: 0;
  visibility: hidden;
}
.splash-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation: splashPulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(232, 132, 26, 0.25));
}
.splash-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--saffron);
  border-right-color: var(--saffron);
  animation: splashSpin 1s linear infinite;
}
.splash-text {
  margin-top: 32px;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: splashFadeUp 0.6s ease 0.3s forwards;
}
.splash-text span {
  color: var(--saffron);
}
.splash-tagline {
  margin-top: 6px;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: splashFadeUp 0.6s ease 0.5s forwards;
}

/* ─── FAB contact menu ─── */
.fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
}
.fab-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: -1;
}
.fab-wrap.open .fab-overlay {
  opacity: 1;
  pointer-events: auto;
}
.fab-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  position: relative;
  z-index: 2;
}
.fab-trigger:hover {
  background: #d47615;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.22),
    0 8px 28px rgba(0, 0, 0, 0.12);
}
.fab-icon--close {
  display: none;
}
.fab-wrap.open .fab-icon--default {
  display: none;
}
.fab-wrap.open .fab-icon--close {
  display: block;
}
.fab-wrap.open .fab-trigger {
  transform: rotate(90deg);
}

.fab-actions {
  position: absolute;
  bottom: 64px;
  right: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.fab-wrap.open .fab-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.fab-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.fab-action:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.16),
    0 6px 20px rgba(0, 0, 0, 0.08);
}
.fab-action--wa {
  background: #25d366;
  color: #fff;
}
.fab-action--wa:hover {
  background: #1ebe5d;
}
.fab-action--call {
  background: #0b1a2f;
  color: #fff;
}
.fab-action--call:hover {
  background: #142d4f;
}
[data-theme="dark"] .fab-action--call {
  background: #f8f2e6;
  color: #0b1a2f;
}
[data-theme="dark"] .fab-action--call:hover {
  background: #e8dcc6;
}

/* ─── Back-to-top button ─── */
.floating-btn--top {
  position: fixed;
  right: 24px;
  bottom: 86px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, var(--saffron), #c96e10);
  color: #fff;
  box-shadow:
    0 2px 10px rgba(232, 132, 26, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.28s ease,
    bottom 0.28s ease;
  z-index: 899;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.floating-btn--top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-btn--top:hover {
  background: linear-gradient(145deg, #d6760f, #b06010);
  transform: translateY(-3px);
  box-shadow:
    0 6px 18px rgba(232, 132, 26, 0.38),
    0 8px 24px rgba(0, 0, 0, 0.12);
}
.floating-btn--top:active {
  transform: translateY(-1px);
}
.floating-btn--top:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}
body.ca-cal-open .floating-btn--top {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Slide up back-to-top when FAB menu is open */
#fabWrap.open ~ .floating-btn--top,
.floating-btn--top {
  z-index: 899;
}
#fabWrap.open ~ .floating-btn--top {
  bottom: 220px;
}

@media (max-width: 768px) {
  .fab-wrap {
    bottom: 16px;
    right: 16px;
  }
  .fab-trigger {
    width: 44px;
    height: 44px;
  }
  .fab-trigger svg {
    width: 18px;
    height: 18px;
  }
  .fab-actions {
    bottom: 54px;
  }
  .fab-action {
    width: 38px;
    height: 38px;
  }
  .fab-action svg {
    width: 18px;
    height: 18px;
  }
  .floating-btn--top {
    right: 16px;
    bottom: 70px;
    width: 44px;
    height: 44px;
  }
  .floating-btn--top svg {
    width: 20px;
    height: 20px;
  }
  /* Slide up back-to-top when FAB menu is open on mobile */
  #fabWrap.open ~ .floating-btn--top {
    bottom: 160px;
  }
}

@keyframes splashPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes splashSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes splashFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Reduced motion preference ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .page-hero-orb,
  .page-hero-orb-secondary {
    animation: none;
  }
  .floating-btn--top {
    transition: none;
  }
}

/* Books Section Styles */
.books-hero {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.books-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--saffron-light) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.books-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.books-hero-content {
  position: relative;
  z-index: 1;
}

.books-section {
  background: var(--bg-primary);
  padding: 80px 0;
}

/* Books Collection Grid */
.books-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-top: 60px;
}

/* Book Card */
.book-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  position: relative;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-card-alt) 100%
  );
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

/* Book cover error state — shows fallback when image fails */
.book-cover--error {
  background: linear-gradient(
    135deg,
    var(--saffron-light) 0%,
    var(--bg-card-alt) 100%
  );
}

.book-cover--error::before {
  content: "📚";
  position: absolute;
  font-size: 48px;
  opacity: 0.6;
  z-index: 2;
}

.book-cover--error::after {
  content: attr(data-book-title);
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  z-index: 3;
  word-break: break-word;
}

/* Fallback cover design if image is missing */
.book-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--saffron-light), var(--bg-card-alt));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--ff-display);
  text-align: center;
  padding: 20px;
}

.book-cover-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.book-cover-fallback-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Book Info */
.book-info {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
  background: var(--saffron-light);
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.book-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.book-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.book-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.book-cta {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.book-cta .btn {
  flex: 1;
}

/* Section with tabs/filters */
.books-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--ff-body);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--saffron);
  background: var(--saffron-light);
  color: var(--saffron);
}

/* Library Shelf Decoration */
.shelf-divider {
  text-align: center;
  margin: 80px 0 40px;
  position: relative;
}

.shelf-divider::before,
.shelf-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

.shelf-divider::before {
  left: 0;
}

.shelf-divider::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--border) 100%);
}

.shelf-label {
  display: inline-block;
  background: var(--bg-primary);
  padding: 0 24px;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .books-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
  }

  .book-card {
    box-shadow: var(--shadow-sm);
  }

  .books-section {
    padding: 60px 0;
  }

  .books-hero {
    padding: 80px 0 60px;
  }

  .book-title {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }
}

@media (max-width: 480px) {
  .books-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .book-info {
    padding: 20px 16px;
  }

  .books-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.82rem;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .book-cover-placeholder {
  background: linear-gradient(
    135deg,
    rgba(232, 132, 26, 0.15),
    var(--bg-card-alt)
  );
}

[data-theme="dark"] .shelf-divider .shelf-label {
  background: var(--bg-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.book-card:nth-child(1) {
  animation-delay: 0.1s;
}

.book-card:nth-child(2) {
  animation-delay: 0.2s;
}

.book-card:nth-child(3) {
  animation-delay: 0.3s;
}

.book-card:nth-child(n + 4) {
  animation-delay: 0.4s;
}

/* ══ PYQ FILTER & SEARCH SECTION ══ */
.pyq-filter-container {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.pyq-search-group {
  margin-bottom: 16px;
}

.pyq-search-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pyq-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-sizing: border-box;
  transition: var(--transition);
}

.pyq-search-input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 132, 26, 0.1);
}

.pyq-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pyq-filter-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.pyq-filter-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pyq-filter-btn {
  padding: 8px 16px;
  border: 2px solid var(--border-accent);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-family: var(--ff-body);
}

.pyq-filter-btn:hover {
  border-color: var(--saffron);
  background: rgba(232, 132, 26, 0.1);
}

.pyq-filter-btn.active {
  background: var(--saffron);
  color: white;
  border-color: var(--saffron);
}

@media (max-width: 768px) {
  .pyq-filter-container {
    padding: 16px;
    margin: 24px 0;
  }

  .pyq-search-input {
    font-size: 16px;
  }

  .pyq-filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .pyq-filter-buttons-wrapper {
    gap: 6px;
  }
}

/* ══ Daily Current Affairs (calendar + PDF) ══ */
.nav-btn--ca .nav-btn-ca-short {
  display: inline;
}
.nav-btn--ca .nav-btn-ca-full {
  display: none;
}
@media (min-width: 1180px) {
  .nav-btn--ca .nav-btn-ca-short {
    display: none;
  }
  .nav-btn--ca .nav-btn-ca-full {
    display: inline;
  }
}

.ca-alert {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.ca-alert code {
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
}

#ca-draft-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #7a1f1f;
  color: #fff;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  font: 600 14px/1.4 system-ui, sans-serif;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.ca-draft-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ca-draft-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}
.ca-draft-banner-text-short {
  display: none;
}
.ca-draft-banner-actions {
  flex: 0 0 auto;
}
.ca-approve-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  min-height: 44px;
  font: 600 14px/1.2 system-ui, sans-serif;
  cursor: pointer;
  background: #fff;
  color: #7a1f1f;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ca-approve-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ca-approve-cancel {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
  font: 600 14px/1.2 system-ui, sans-serif;
  cursor: pointer;
  background: transparent;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ca-approve-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.ca-approve-panel-handle {
  display: none;
}
.ca-approve-panel-title {
  display: none;
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}
.ca-approve-panel label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.95;
}
.ca-approve-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ca-approve-panel input {
  flex: 1 1 160px;
  min-width: 140px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font: 16px/1.2 system-ui, sans-serif; /* 16px avoids iOS input zoom */
  box-sizing: border-box;
}
.ca-approve-submit {
  background: #0b6e4f;
  color: #fff;
}
.ca-approve-submit--save,
.ca-save-btn {
  background: #1a4a7a;
  color: #fff;
}
.ca-draft-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* Preview-only edit controls */
body.ca-preview-mode .ca-editable {
  outline: 1px dashed rgba(122, 31, 31, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}
body.ca-preview-mode .ca-editable:focus {
  outline: 2px solid rgba(232, 132, 26, 0.85);
  background: rgba(255, 248, 230, 0.55);
}
.ca-edit-del {
  display: none;
}
body.ca-preview-mode .ca-edit-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 40px;
  font: 600 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
  background: rgba(122, 31, 31, 0.92);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
body.ca-preview-mode .ca-story-figure,
body.ca-preview-mode .ca-infographic {
  position: relative;
}
body.ca-preview-mode .ca-edit-del--infographic {
  top: 10px;
  right: 10px;
}

@media (max-width: 640px) {
  .ca-draft-banner-actions {
    flex-direction: column;
    align-items: stretch;
    width: auto;
    flex: 0 0 auto;
  }
  .ca-draft-banner-actions .ca-approve-btn {
    width: 100%;
    min-width: 0;
  }
  body.ca-preview-mode .ca-edit-del {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
}
.ca-approve-msg {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.95;
  word-break: break-word;
}
.ca-approve-backdrop {
  display: none;
}

@media (max-width: 640px) {
  #ca-draft-banner {
    padding: 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
  .ca-draft-banner-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }
  .ca-draft-banner-text-full {
    display: none;
  }
  .ca-draft-banner-text-short {
    display: inline;
    font-size: 13px;
  }
  .ca-approve-btn {
    min-width: 96px;
    padding: 10px 14px;
  }

  /* Bottom sheet for password entry — thumb-friendly on phones */
  .ca-approve-panel:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #5c1616;
    border-top: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
  }
  .ca-approve-panel-handle {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin: 2px auto 12px;
  }
  .ca-approve-panel-title {
    display: block;
    text-align: center;
  }
  .ca-approve-panel label {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .ca-approve-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .ca-approve-panel input,
  .ca-approve-btn,
  .ca-approve-cancel {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }
  .ca-approve-msg {
    font-size: 13px;
    line-height: 1.4;
  }
  .ca-approve-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10000;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(10, 12, 18, 0.45);
    -webkit-tap-highlight-color: transparent;
  }
  body.ca-approve-open {
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .ca-draft-banner-text-short {
    font-size: 12px;
  }
  .ca-approve-btn {
    min-width: 84px;
    font-size: 13px;
    padding: 10px 12px;
  }
}

.ca-hint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.ca-hint-card strong {
  color: var(--text-primary);
}
.ca-hint-card code {
  font-size: 0.85em;
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

.ca-recent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 8px;
}
.ca-recent-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ca-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ca-chip {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-accent);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ff-body);
  transition: var(--transition);
}
.ca-chip:hover {
  border-color: var(--saffron);
  background: rgba(232, 132, 26, 0.08);
}

.ca-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

/* ── Current Affairs: article-style reader ── */
.page-current-affairs .ca-page-body {
  padding-top: 0;
  padding-bottom: 64px;
  background: var(--bg-primary);
  overflow-x: clip;
}
body.ca-cal-open.page-current-affairs .ca-page-body,
body.ca-cal-open.page-current-affairs .ca-reader-shell,
body.ca-cal-open.page-current-affairs .ca-reader-controls {
  overflow: visible;
}
body.ca-cal-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
.page-current-affairs .page-hero {
  min-height: 34vh;
}
.ca-page-body {
  background: var(--bg-primary);
}

.ca-reader-shell {
  max-width: none;
  margin: 0;
}
.ca-reader--html .ca-reader-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  max-width: none;
}
.ca-reader--legacy .ca-reader-shell,
.ca-reader--empty .ca-reader-shell {
  max-width: var(--container-max, 1140px);
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ca-reader-controls {
  position: relative;
  z-index: 60;
  padding-top: 18px;
  padding-bottom: 0;
  border-bottom: none;
  overflow: visible;
}
.ca-toolbar {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.ca-toolbar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 140px);
  z-index: 1;
  overflow: visible;
}
.ca-toolbar-main {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 64px;
  padding: 4px 0;
  overflow: visible;
}
.ca-date-picker-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  position: relative;
}
.ca-date-picker-block:has(.ca-cal-popover:not([hidden])) {
  z-index: 1201;
}
.ca-toolbar-caption {
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  /* Out of flow so the prev/next arrows center on the date box itself,
     not on the date box + caption combined. */
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
}
/* Reserve room for the absolutely-positioned caption below the trigger */
.ca-toolbar:has(.ca-toolbar-caption:not([hidden])) {
  padding-bottom: 40px;
}
.ca-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.ca-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--ff-body);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.ca-action-btn--primary {
  border: 1.5px solid rgba(232, 132, 26, 0.45);
  background: rgba(232, 132, 26, 0.08);
  color: var(--saffron);
}
.ca-action-btn--primary:hover {
  border-color: var(--saffron);
  background: rgba(232, 132, 26, 0.14);
}
.ca-action-btn--ghost {
  border: 1.5px solid var(--border-accent);
  background: transparent;
  color: var(--text-secondary);
}
.ca-action-btn--ghost:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}
.ca-action-btn.ca-link-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.ca-toolbar-recent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  min-width: 0;
}
.ca-toolbar-recent-label {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ca-toolbar-recent .ca-chip-row {
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 6px;
  padding: 1px 0;
}
.ca-toolbar-recent .ca-chip-row::-webkit-scrollbar {
  display: none;
}
.ca-edition-container {
  padding-bottom: 8px;
}
.ca-reader--legacy .ca-reader-controls,
.ca-reader--empty .ca-reader-controls {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
}

.ca-date-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 0;
  border: none;
}
.ca-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}
.ca-edition-step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.ca-date-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(232, 132, 26, 0.38);
  background: rgba(232, 132, 26, 0.08);
  color: var(--text-primary);
  font-size: clamp(1.1rem, 2.4vw, 1.42rem);
  font-weight: 700;
  font-family: var(--ff-display);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(232, 132, 26, 0.08);
}
.ca-date-trigger svg:first-of-type {
  color: var(--saffron);
  flex-shrink: 0;
}
.ca-date-trigger:hover,
.ca-date-trigger--open {
  color: var(--saffron);
  border-color: var(--saffron);
  background: rgba(232, 132, 26, 0.14);
  box-shadow: 0 2px 10px rgba(232, 132, 26, 0.14);
}
.ca-date-trigger-chevron {
  opacity: 0.55;
  transition: transform 0.2s;
}
.ca-date-trigger--open .ca-date-trigger-chevron {
  transform: rotate(180deg);
}
.ca-date-bar-chips {
  flex: 1 1 160px;
  min-width: 0;
  overflow: hidden;
}
.ca-date-bar-chips .ca-chip-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
  gap: 6px;
}
.ca-date-bar-chips .ca-chip-row::-webkit-scrollbar {
  display: none;
}
.ca-chip--compact {
  padding: 4px 10px;
  font-size: 0.72rem;
  border-width: 1px;
  flex-shrink: 0;
}
.ca-chip--recent {
  border-color: var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
}
.ca-chip--recent:hover {
  border-color: rgba(232, 132, 26, 0.45);
  background: rgba(232, 132, 26, 0.05);
  color: var(--text-primary);
}

/* Calendar popover — anchored below date trigger */
.ca-cal-popover {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 10px;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: none;
}
.ca-cal-popover:not([hidden]) {
  pointer-events: auto;
}
.ca-cal-popover-inner {
  width: 318px;
  max-width: calc(100vw - 48px);
  margin: 0;
  padding: 16px 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  box-shadow:
    0 4px 6px rgba(11, 26, 47, 0.04),
    0 18px 40px rgba(11, 26, 47, 0.14);
  animation: ca-pop-in 0.18s ease-out;
}
.ca-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.ca-cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-accent);
  background: var(--bg-card-alt);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ca-cal-nav-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-light);
}
.ca-cal-popover-inner .ca-cal-month-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  min-width: 0;
  letter-spacing: -0.01em;
}
.ca-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 10px;
  padding: 0 2px;
}
.ca-cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}
.ca-cal-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1.5px solid transparent;
}
.ca-cal-legend-swatch--has {
  background: #fff8ef;
  border-color: rgba(232, 132, 26, 0.55);
}
.ca-cal-legend-swatch--active {
  background: var(--saffron);
  border-color: var(--saffron);
}
@keyframes ca-pop-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ca-cal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 47, 0.2);
  z-index: 1100;
  backdrop-filter: blur(1px);
}

.ca-picker {
  margin-bottom: 36px;
}
.ca-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.ca-picker-title {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-body);
}
.ca-picker-grid {
  display: flex;
  justify-content: center;
}
.ca-panel--calendar {
  width: 100%;
  max-width: 460px;
}
.ca-recent--inline {
  margin: 0;
  flex: 1 1 280px;
  min-width: 0;
  justify-content: flex-end;
}
.ca-chip--active {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}

.ca-reader {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  margin-top: 0;
}
.ca-reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 14px;
  background: transparent;
  border-top: 1px solid var(--border);
}
.ca-reader-toolbar[hidden] {
  display: none !important;
}
.ca-reader--html .ca-reader-toolbar {
  display: none !important;
}
.ca-reader-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-body);
}
.ca-download-pdf {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, var(--saffron), #c96e10) !important;
  color: #fff !important;
  box-shadow:
    0 2px 10px rgba(232, 132, 26, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.ca-download-pdf:hover {
  background: linear-gradient(145deg, #d6760f, #b06010) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 132, 26, 0.38);
}
.ca-download-pdf:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 132, 26, 0.28);
}
.ca-download-pdf:disabled,
.ca-download-pdf.is-busy {
  opacity: 0.82;
  cursor: wait;
  transform: none;
}
.ca-download-pdf svg {
  flex-shrink: 0;
}

.ca-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.ca-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ca-panel-head--viewer {
  align-items: center;
}
.ca-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  font-family: var(--ff-body);
}
.ca-month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ca-cal-month-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 112px;
  text-align: center;
}
.ca-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid rgba(232, 132, 26, 0.3);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.ca-date-nav .ca-icon-btn {
  align-self: center;
}
.ca-icon-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.ca-legend,
.ca-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.ca-legend span,
.ca-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ca-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--border-accent);
}
.ca-legend-dot--has {
  background: var(--saffron);
}
.ca-legend-dot--today {
  box-shadow: 0 0 0 2px var(--saffron);
  background: transparent;
}

.ca-cal-popover-inner .ca-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 0;
}
.ca-cal-popover-inner .ca-cal-dow {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ca-cal-popover-inner .ca-cal-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 36px;
  max-height: 36px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #b8b4ae;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  font-family: var(--ff-body);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  padding: 0;
  line-height: 1;
}
.ca-cal-popover-inner .ca-cal-cell--pad {
  visibility: hidden;
  pointer-events: none;
}
.ca-cal-popover-inner .ca-cal-cell--has {
  border-color: rgba(232, 132, 26, 0.5);
  background: #fff8ef;
  /* Cream chip stays light in both themes — keep ink dark for contrast */
  color: #1a2332;
  cursor: pointer;
  font-weight: 700;
}
.ca-cal-popover-inner .ca-cal-cell--has:hover {
  border-color: var(--saffron);
  background: #ffefd9;
  color: #1a2332;
  transform: scale(1.06);
}
.ca-cal-popover-inner .ca-cal-cell--draft {
  border-color: rgba(180, 40, 40, 0.55);
  background: #fff0f0;
  box-shadow: inset 0 0 0 1px rgba(180, 40, 40, 0.2);
}
.ca-cal-popover-inner .ca-cal-cell--empty {
  color: #d4d0ca;
  background: transparent;
  cursor: not-allowed;
  font-weight: 500;
}
.ca-cal-popover-inner .ca-cal-cell--today:not(.ca-cal-cell--active) {
  box-shadow: inset 0 0 0 1.5px var(--saffron);
}
.ca-cal-popover-inner .ca-cal-cell--active {
  background: var(--saffron) !important;
  color: #fff !important;
  border-color: var(--saffron) !important;
  box-shadow: 0 2px 8px rgba(232, 132, 26, 0.35);
  transform: scale(1.06);
}
.ca-cal-popover-inner .ca-cal-cell--future {
  color: #e0ddd8;
  cursor: not-allowed;
}

.ca-jump-row { display: none; }
.ca-jump-field {
  flex: 1;
  min-width: 160px;
}
.ca-jump-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.ca-jump-field input[type='date'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-sizing: border-box;
  font-family: var(--ff-body);
}
.ca-jump-field input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 132, 26, 0.1);
}
.ca-today-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.ca-viewer-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.ca-open-link {
  padding: 9px 16px !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
}
.ca-link-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.ca-viewer-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.ca-viewer-empty-hint {
  font-size: 0.86rem;
  margin-top: 8px;
}

.ca-iframe-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  background: var(--bg-primary);
  min-height: 520px;
}
.ca-pdf-frame {
  width: 100%;
  height: min(72vh, 820px);
  border: none;
  display: block;
}

.ca-automation-note {
  margin-top: 48px;
  padding: 22px 24px;
  background: rgba(232, 132, 26, 0.06);
  border: 1px solid rgba(232, 132, 26, 0.2);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.ca-note-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--ff-body);
}
.ca-automation-note code {
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

@media (max-width: 992px) {
  .ca-layout {
    grid-template-columns: 1fr;
  }
  .page-current-affairs .ca-page-body {
    padding-top: 0;
  }
  .ca-reader--html .ca-reader-shell {
    margin-left: 0;
    margin-right: 0;
  }
  .ca-iframe-wrap {
    min-height: 420px;
  }
  .ca-pdf-frame {
    height: min(68vh, 640px);
  }
  .ca-open-link {
    width: auto;
  }
}

@media (max-width: 640px) {
  .ca-toolbar-main {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 14px;
    padding-bottom: 4px;
  }
  .ca-toolbar-center {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    order: 1;
  }
  .ca-toolbar-actions {
    width: 100%;
    justify-content: center;
    order: 2;
  }
  .ca-date-nav {
    width: 100%;
    justify-content: center;
  }
  /* Mobile: caption returns to normal flow (the absolute version overlaps
     the stacked action buttons); arrows center on the trigger via alignment. */
  .ca-toolbar-caption {
    position: static;
    transform: none;
    white-space: normal;
    width: auto;
    max-width: 100%;
    margin-top: 5px;
  }
  .ca-toolbar:has(.ca-toolbar-caption:not([hidden])) {
    padding-bottom: 18px;
  }
  .ca-date-nav {
    align-items: flex-start;
  }
  .ca-date-nav .ca-edition-step {
    margin-top: 2px;
  }
  .ca-date-trigger {
    font-size: 1.05rem;
    padding: 9px 14px;
  }
}

@media (max-width: 768px) {
  .ca-cal-popover.ca-cal-popover--portaled {
    z-index: 1200;
    margin-top: 0;
    pointer-events: auto;
  }
  .ca-cal-popover.ca-cal-popover--portaled .ca-cal-popover-inner {
    width: min(318px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }
  .ca-cal-backdrop {
    z-index: 1100;
  }
}

/* ══ CURRENT AFFAIRS HTML EDITION (v2 reader) ══ */
.ca-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.ca-edition-root {
  margin: 0;
  max-height: none;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: 0;
}
.ca-edition-root[hidden] {
  display: none !important;
}
.ca-iframe-wrap[hidden] {
  display: none !important;
}
.ca-reader--legacy .ca-iframe-wrap {
  margin-top: 0;
  padding: 0 20px 22px;
  max-width: var(--container-max, 1140px);
  margin-left: auto;
  margin-right: auto;
}
.ca-reader--legacy .ca-iframe-wrap:not([hidden]) {
  display: block;
}
.ca-reader--empty .ca-viewer-empty {
  padding: 64px 24px;
  text-align: center;
  margin-top: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.ca-reader--html {
  margin-top: 0;
}
.ca-reader--html .ca-edition-root {
  width: 100%;
  min-height: 0;
}

/* ── Full-content edition reader (web) ── */
.ca-edition {
  color: var(--text-primary);
  font-family: var(--ff-body);
}
.ca-edition--web {
  background: transparent;
}

.ca-edition-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: none;
  margin: 0;
  padding: 0 0 8px;
  overflow: visible;
}

/* Topics nav — outside the white card */
.ca-edition-nav {
  flex: 0 0 252px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
  max-height: none;
  overflow: visible;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.ca-edition-nav-inner {
  padding: 16px 16px 14px;
}
.ca-nav-heading {
  margin: 0 0 12px;
  padding: 0 6px;
  font-family: var(--ff-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}
.ca-nav-topics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
  border-left: none;
}
.ca-nav-topics-scroll {
  min-width: 0;
}
.ca-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-left: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ca-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card-alt);
  border-color: rgba(232, 132, 26, 0.25);
  box-shadow: 0 3px 12px rgba(11, 26, 47, 0.05);
}
.ca-nav-link.is-active {
  color: var(--text-primary);
  font-weight: 700;
  background: rgba(232, 132, 26, 0.11);
  border-color: rgba(232, 132, 26, 0.42);
  box-shadow: inset 3px 0 0 var(--saffron);
}
.ca-nav-link-num {
  flex-shrink: 0;
  width: 24px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1.45;
  opacity: 1;
}
.ca-nav-link.is-active .ca-nav-link-num {
  color: var(--navy-mid);
}
[data-theme="dark"] .ca-nav-link.is-active .ca-nav-link-num {
  color: var(--saffron);
}
.ca-nav-link-text {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Main content card */
.ca-edition-panel {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(11, 26, 47, 0.04),
    0 8px 32px rgba(11, 26, 47, 0.07);
  background: var(--bg-card);
  overflow: hidden;
}

.ca-edition-main {
  min-width: 0;
  background: var(--bg-card);
}

.ca-edition-meta {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
}
.ca-edition-tagline {
  margin: 14px 0 0;
  font-family: var(--ff-display);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}
.ca-edition-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.88;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(11, 26, 47, 0.08));
}

.ca-section-title {
  margin: 0 0 18px;
  font-family: var(--ff-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ca-section-title::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--saffron), var(--gold));
}

.ca-must-section {
  padding: 28px 36px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.ca-must-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ca-must-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
}
.ca-must-card:hover {
  background: var(--bg-card);
  border-color: rgba(232, 132, 26, 0.45);
  box-shadow: 0 6px 20px rgba(232, 132, 26, 0.1);
  transform: translateY(-2px);
}
.ca-must-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
}
.ca-must-body {
  flex: 1;
  min-width: 0;
}
.ca-must-headline {
  margin: 6px 0 4px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
}
.ca-must-topic {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.ca-card-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--saffron);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}
.ca-must-card:hover .ca-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Topics — all content visible */
.ca-topics {
  padding: 4px 36px 28px;
}
.ca-topic {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}
.ca-topic:last-child {
  border-bottom: none;
  padding-bottom: 12px;
}
.ca-topic.ca-topic--flash {
  animation: ca-topic-flash 0.9s ease-out;
}
@keyframes ca-topic-flash {
  0%,
  100% {
    background: transparent;
  }
  35% {
    background: rgba(232, 132, 26, 0.08);
  }
}
.ca-topic-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.ca-topic-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
}
.ca-topic-head-text {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.ca-topic-title {
  margin: 8px 0 0;
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}
.ca-topic-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 56px;
}
.ca-topic-stories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ca-story {
  padding: 20px 22px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--saffron);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ca-story:hover {
  box-shadow: 0 4px 18px rgba(11, 26, 47, 0.07);
  border-color: rgba(232, 132, 26, 0.2);
}
.ca-story-figure {
  margin: 0 0 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.ca-story-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
}
/* ── Topic media: reference video cards (web only — hidden in print) ── */
.ca-video-card {
  margin: 4px 0 18px;
}
.ca-video-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy);
  line-height: 0;
  box-shadow: var(--shadow-sm);
}
.ca-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ca-video-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ca-video-caption svg {
  color: var(--saffron);
  flex-shrink: 0;
}

/* ── Topic media: revision infographic ── */
.ca-infographic--lead {
  margin-top: 0 !important;
}
.ca-infographic {
  margin: 18px 0;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.ca-infographic-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.ca-infographic-label strong {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.ca-infographic-label span {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.ca-infographic-link {
  display: block;
  line-height: 0;
}
.ca-infographic img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}
.ca-infographic-link:hover img {
  opacity: 0.94;
}

/* Direct browser printing of the web page: drop videos, let content reflow */
@media print {
  .ca-video-card {
    display: none !important;
  }
  .ca-infographic-label span {
    display: none;
  }
}

.ca-story-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.ca-story-num {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.ca-story-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
}
.ca-story-source-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ca-story-source-pill:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}
.ca-story-source-pill--static {
  cursor: default;
}
.ca-story-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ca-story-bullet {
  position: relative;
  padding-left: 16px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.ca-story-bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
}
.ca-story-bullet-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--saffron);
}

.ca-upsc-callout {
  margin: 0;
  padding: 18px 20px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-accent);
  border-radius: var(--radius);
}
.ca-upsc-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.ca-upsc-callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.ca-exam-corner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Prelims facts — compact card grid, no dead space */
.ca-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.ca-fact-card {
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Mains dimensions — similar-length cards tile side by side */
.ca-mains-intro {
  font-size: 0.9rem !important;
}
.ca-dims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.ca-dim-card {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ca-dim-card-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.ca-dim-card-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.ca-wayforward {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ca-wayforward strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.ca-wayforward p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.ca-insight {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.ca-insight--prelims,
.ca-insight--mains {
  border-top: 2px solid var(--border-accent);
}
.ca-insight-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.ca-insight-label {
  margin: 10px 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.ca-insight-p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.ca-insight-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.ca-insight-list li {
  margin-bottom: 6px;
}
.ca-insight-list li::marker {
  color: var(--saffron);
}

.ca-pyq-note {
  padding: 16px 20px;
  background: var(--bg-card-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy-mid);
  box-shadow: var(--shadow-sm);
}
.ca-pyq-note strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ca-pyq-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── MCQ Practice Block ─────────────────────────────────────── */
.ca-mcq-block {
  margin-top: 28px;
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}
.ca-mcq-header {
  padding: 22px 24px 18px;
  background:
    linear-gradient(135deg, rgba(254, 240, 220, 0.7) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-card-alt) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.ca-mcq-header::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron) 0%, rgba(232, 132, 26, 0.12) 60%, transparent 100%);
  opacity: 0.75;
}
.ca-mcq-header-main {
  position: relative;
  z-index: 1;
}
.ca-mcq-title {
  margin: 0 0 6px;
  padding-left: 14px;
  border-left: 4px solid var(--saffron);
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
  line-height: 1.35;
}
.ca-mcq-meta {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: normal;
}
.ca-mcq-body {
  background: var(--bg-card);
}
.ca-mcq-item {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.ca-mcq-topic-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ca-mcq-topic-cat {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #92400e;
  background: var(--saffron-light);
  border: 1px solid rgba(232, 132, 26, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
}
.ca-mcq-topic-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5b5b66;
}
.ca-mcq-story-ref {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-style: italic;
  color: #6f6f7a;
}
.ca-mcq-item:last-child {
  border-bottom: none;
}
.ca-mcq-q {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-primary);
}
.ca-mcq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8841a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
  vertical-align: middle;
}
.ca-mcq-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .ca-mcq-opts { grid-template-columns: 1fr; }
}
.ca-mcq-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid #e6d8c6;
  border-radius: 8px;
  background: #fffdfa;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.ca-mcq-opt:hover:not(:disabled) {
  border-color: #e8841a;
  background: #fff7ed;
}
.ca-mcq-opt:disabled { cursor: default; }
.ca-mcq-opt-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff2df;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ca-mcq-opt--correct {
  border-color: #1f8d52 !important;
  background: #ecfbf3 !important;
}
.ca-mcq-opt--correct .ca-mcq-opt-key {
  background: #1f8d52;
  color: #fff;
}
.ca-mcq-opt--wrong {
  border-color: #d14343 !important;
  background: #fff6f6 !important;
}
.ca-mcq-opt--wrong .ca-mcq-opt-key {
  background: #d14343;
  color: #fff;
}
.ca-mcq-explanation {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef9f3;
  border-left: 3px solid #1f8d52;
}
.ca-mcq-ans-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f8d52;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.ca-mcq-exp-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.ca-topic-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.ca-tag-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ca-tag-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.ca-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ca-chip-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.ca-edition-footer {
  text-align: center;
  padding: 26px 36px 34px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card-alt) 0%, var(--bg-card) 100%);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.ca-edition-footer p {
  margin: 0;
}
.ca-edition-footer strong {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  /* Keep the whole edition within the viewport so Topics can scroll inside it */
  .ca-reader--html .ca-edition-root,
  .ca-edition--web,
  .ca-edition-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .ca-edition-layout {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .ca-edition-panel {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .ca-edition-nav {
    position: static;
    flex: none;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    overflow: hidden;
    padding: 0;
    background: var(--bg-primary);
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border);
  }
  /* Scrollport lives here — must stay viewport-width while chips are wider */
  .ca-edition-nav-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 16px 10px;
    overflow: hidden;
  }
  .ca-nav-topics-scroll {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: thin;
    cursor: grab;
  }
  .ca-nav-topics-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
  }
  .ca-nav-topics-scroll.is-dragging .ca-nav-link {
    pointer-events: none;
  }
  .ca-nav-topics-scroll::-webkit-scrollbar {
    height: 4px;
  }
  .ca-nav-topics-scroll::-webkit-scrollbar-thumb {
    background: rgba(232, 132, 26, 0.45);
    border-radius: 999px;
  }
  .ca-nav-link {
    margin-left: 0;
    padding: 8px 12px;
    border-left: none;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }
  .ca-nav-link.is-active {
    background: rgba(232, 132, 26, 0.12);
  }
  .ca-nav-topics {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 0 4px;
    border-left: none;
    width: max-content;
    max-width: none;
    min-width: 0;
    overflow: visible;
  }
  .ca-nav-link {
    flex: 0 0 auto;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ca-nav-link-text {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ca-must-section,
  .ca-topics,
  .ca-edition-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ca-edition-logo {
    display: none;
  }
  .ca-topic-body {
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .ca-toolbar {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .ca-topic {
    padding: 22px 0;
  }
  .ca-story {
    padding: 14px 16px;
  }
}

/* Calm badges: one neutral pill, category identity via a small muted dot */
.ca-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.ca-cat-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-dot, #b3a98f);
  flex-shrink: 0;
}
.ca-cat--social { --cat-dot: #c9a227; }
.ca-cat--health { --cat-dot: #c97b4a; }
.ca-cat--polity { --cat-dot: #b3622e; }
.ca-cat--economy { --cat-dot: #4d8a63; }
.ca-cat--ir { --cat-dot: #4a6fa5; }
.ca-cat--env { --cat-dot: #3f8f74; }
.ca-cat--sci { --cat-dot: #7a68b0; }
.ca-cat--security { --cat-dot: #b05656; }
.ca-cat--default { --cat-dot: #b3a98f; }

/* Print layout — hidden on screen (PDF uses popup + current-affairs-print.css) */
.ca-edition--print {
  display: none;
}

/* Print / Download PDF — structured A4 edition */
@media print {
  .ca-mcq-block { display: none !important; }

  @page {
    size: A4 portrait;
    margin: 0;
  }

  body.ca-printing {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.ca-printing #site-nav,
  body.ca-printing #site-footer,
  body.ca-printing .page-hero,
  body.ca-printing .fab-wrap,
  body.ca-printing .floating-btn--top,
  body.ca-printing .ca-page-body > .container,
  body.ca-printing .ca-reader-controls,
  body.ca-printing .ca-reader-toolbar,
  body.ca-printing .ca-viewer-empty,
  body.ca-printing .ca-iframe-wrap,
  body.ca-printing .ca-edition--web {
    display: none !important;
  }

  body.ca-printing .ca-reader,
  body.ca-printing .ca-edition-root {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
    min-height: 0 !important;
  }

  body.ca-printing .ca-edition--print {
    display: block !important;
  }

  body.ca-printing .ca-print-page {
    position: relative;
    width: 210mm;
    min-height: 297mm;
    padding: 0;
    margin: 0;
    background: #fff;
    box-sizing: border-box;
    break-after: page;
    page-break-after: always;
  }

  body.ca-printing .ca-print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  /* Top bar */
  body.ca-printing .ca-print-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7mm 10mm;
    background: #1e2430 !important;
    color: #fff;
  }
  body.ca-printing .ca-print-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 7.5pt;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  body.ca-printing .ca-print-logo {
    height: 18px;
    width: auto;
  }
  body.ca-printing .ca-print-topbar-meta {
    font-size: 7pt;
    text-align: right;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
  }

  /* Footer + page numbers */
  body.ca-printing .ca-print-footer {
    position: absolute;
    left: 10mm;
    right: 10mm;
    bottom: 6mm;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3mm;
    border-top: 1px solid #ddd;
    font-size: 7pt;
    color: #666;
  }
  body.ca-printing .ca-print-page {
    counter-increment: ca-print-page;
  }
  body.ca-printing .ca-edition--print {
    counter-reset: ca-print-page;
  }
  body.ca-printing .ca-print-pagenum::before {
    content: 'Page ' counter(ca-print-page);
    font-weight: 700;
    color: #333;
  }

  /* Cover page */
  body.ca-printing .ca-print-page--cover .ca-print-cover-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(297mm - 28mm - 14mm);
    padding: 10mm 12mm 16mm;
  }
  body.ca-printing .ca-print-cover-seal {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 8mm;
  }
  body.ca-printing .ca-print-cover-kicker {
    margin: 0 0 4mm;
    font-size: 9pt;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #888;
  }
  body.ca-printing .ca-print-cover-date {
    margin: 0;
    font-size: 28pt;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
  }
  body.ca-printing .ca-print-cover-weekday {
    margin: 2mm 0 6mm;
    font-size: 11pt;
    color: #666;
  }
  body.ca-printing .ca-print-cover-edition {
    margin: 0 0 8mm;
    padding: 2mm 5mm;
    border: 1.5px solid #e8841a;
    border-radius: 999px;
    color: #e8841a;
    font-size: 9pt;
    font-weight: 700;
  }
  body.ca-printing .ca-print-cover-stats {
    display: flex;
    gap: 10mm;
    margin-bottom: 6mm;
  }
  body.ca-printing .ca-print-cover-stat {
    text-align: center;
  }
  body.ca-printing .ca-print-cover-stat strong {
    display: block;
    font-size: 20pt;
    font-weight: 800;
    color: #e8841a;
    line-height: 1;
  }
  body.ca-printing .ca-print-cover-stat span {
    font-size: 8pt;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  body.ca-printing .ca-print-cover-tagline {
    margin: 0;
    font-size: 9pt;
    font-style: italic;
    color: #777;
  }

  /* Overview page */
  body.ca-printing .ca-print-page-body {
    padding: 5mm 10mm 14mm;
    min-height: calc(297mm - 28mm - 14mm);
  }
  body.ca-printing .ca-print-section-bar {
    margin: 0 0 4mm;
    padding: 2.5mm 4mm;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
  }
  body.ca-printing .ca-print-section-bar--dark {
    background: #c96e10 !important;
    color: #fff;
  }
  body.ca-printing .ca-print-section-bar--light {
    background: #f4e4c8 !important;
    color: #8a4b0a;
    margin-top: 6mm;
  }
  body.ca-printing .ca-print-must-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  body.ca-printing .ca-print-must-item {
    display: flex;
    gap: 4mm;
    padding: 3mm 0;
    border-bottom: 0.5px solid #e8e4dc;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.ca-printing .ca-print-must-item:last-child {
    border-bottom: none;
  }
  body.ca-printing .ca-print-must-num {
    flex-shrink: 0;
    font-size: 16pt;
    font-weight: 800;
    color: #f0b56a;
    line-height: 1;
    min-width: 8mm;
  }
  body.ca-printing .ca-print-must-headline {
    margin: 1.5mm 0 1mm;
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
  }
  body.ca-printing .ca-print-must-sub {
    margin: 0;
    font-size: 7.5pt;
    font-style: italic;
    color: #888;
  }
  body.ca-printing .ca-print-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3mm;
  }
  body.ca-printing .ca-print-highlight-card {
    border: 0.5px solid #ddd;
    border-radius: 3px;
    padding: 3mm;
    background: #fffcf7;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.ca-printing .ca-print-highlight-num {
    font-size: 7pt;
    font-weight: 800;
    color: #e8841a;
  }
  body.ca-printing .ca-print-highlight-title {
    margin: 1.5mm 0 1mm;
    font-size: 8pt;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
  }
  body.ca-printing .ca-print-highlight-meta {
    margin: 0;
    font-size: 7pt;
    color: #888;
  }

  /* Topic pages */
  body.ca-printing .ca-print-topic-bar {
    display: flex;
    align-items: center;
    gap: 3mm;
    padding: 3mm 10mm 0;
    background: #faf3e4;
  }
  body.ca-printing .ca-print-topic-num {
    width: 7mm;
    height: 7mm;
    border-radius: 50%;
    background: #e8841a !important;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7pt;
    font-weight: 800;
  }
  body.ca-printing .ca-print-topic-title {
    margin: 0;
    padding: 2mm 10mm 4mm;
    font-size: 14pt;
    font-weight: 800;
    line-height: 1.25;
    color: #111;
    background: #faf3e4;
  }
  body.ca-printing .ca-print-topic-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 0;
    padding: 0 10mm 14mm;
    min-height: calc(297mm - 52mm - 14mm);
  }
  body.ca-printing .ca-print-topic-main {
    padding: 4mm 5mm 4mm 0;
    border-right: 0.5px solid #ddd;
  }
  body.ca-printing .ca-print-topic-aside {
    padding: 4mm 0 4mm 4mm;
  }
  body.ca-printing .ca-print-story {
    margin-bottom: 4mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.ca-printing .ca-print-story-meta {
    display: flex;
    align-items: center;
    gap: 2mm;
    margin-bottom: 1.5mm;
  }
  body.ca-printing .ca-print-story-index {
    font-size: 6.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
  }
  body.ca-printing .ca-print-source-badge {
    padding: 0.5mm 2mm;
    border-radius: 999px;
    background: #fef3c7 !important;
    color: #92400e;
    font-size: 6.5pt;
    font-weight: 700;
  }
  body.ca-printing .ca-print-story-title {
    margin: 0 0 2mm;
    font-size: 9.5pt;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
  }
  body.ca-printing .ca-print-bullets {
    margin: 0;
    padding-left: 4mm;
    font-size: 8pt;
    line-height: 1.45;
    color: #333;
  }
  body.ca-printing .ca-print-bullets li {
    margin-bottom: 1.5mm;
  }
  body.ca-printing .ca-print-bullets li::marker {
    color: #e8841a;
  }
  body.ca-printing .ca-print-bullet-label {
    color: #c96e10;
    font-size: 7pt;
    text-transform: uppercase;
  }
  body.ca-printing .ca-print-upsc-box {
    margin-top: 3mm;
    padding: 2.5mm 3mm;
    border-left: 3px solid #e8841a;
    background: #fff7ed !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.ca-printing .ca-print-upsc-box strong {
    display: block;
    margin-bottom: 1mm;
    font-size: 7pt;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  body.ca-printing .ca-print-upsc-box p {
    margin: 0;
    font-size: 8pt;
    line-height: 1.4;
    color: #333;
  }
  body.ca-printing .ca-print-side-block {
    margin-bottom: 3mm;
    padding: 2.5mm 3mm;
    background: #fffaf0 !important;
    border: 0.5px solid #f0e2c4;
    border-radius: 2px;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.ca-printing .ca-print-side-title {
    margin: 0 0 2mm;
    font-size: 7.5pt;
    font-weight: 800;
    color: #e8841a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  body.ca-printing .ca-print-side-label {
    margin: 1.5mm 0 1mm;
    font-size: 6.5pt;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
  }
  body.ca-printing .ca-print-side-p {
    margin: 0 0 1.5mm;
    font-size: 7.5pt;
    line-height: 1.4;
    color: #333;
  }
  body.ca-printing .ca-print-side-list {
    margin: 0;
    padding-left: 3.5mm;
    font-size: 7.5pt;
    line-height: 1.4;
    color: #333;
  }
  body.ca-printing .ca-print-side-list li {
    margin-bottom: 1mm;
  }
  body.ca-printing .ca-cat-badge {
    font-size: 6pt;
    padding: 0.5mm 1.5mm;
  }
  body.ca-printing .ca-chip-tag {
    font-size: 6pt;
    padding: 0.5mm 1.5mm;
    background: #fef3c7 !important;
  }

  /* Flowing print layout (current-affairs-print.css) — override legacy page rules */
  body.ca-printing #ca-edition-print-layout .ca-print-sheet:not(.ca-print-sheet--cover):not(.ca-print-sheet--must):not(.ca-print-sheet--index) {
    break-after: auto !important;
    page-break-after: auto !important;
    min-height: 0 !important;
  }
  body.ca-printing #ca-edition-print-layout .ca-print-sheet--must,
  body.ca-printing #ca-edition-print-layout .ca-print-sheet--index {
    break-after: page !important;
    page-break-after: always !important;
  }
  body.ca-printing #ca-edition-print-layout .ca-print-sheet--index {
    break-before: page !important;
    page-break-before: always !important;
  }
  body.ca-printing #ca-edition-print-layout .ca-print-topics {
    break-before: page !important;
    page-break-before: always !important;
  }
  body.ca-printing #ca-edition-print-layout .ca-print-topic {
    break-before: auto !important;
    page-break-before: auto !important;
    min-height: 0 !important;
  }
  body.ca-printing #ca-edition-print-layout .ca-print-story {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
  body.ca-printing #ca-edition-print-layout .ca-print-exam-row {
    display: block !important;
  }
  body.ca-printing #ca-edition-print-layout .ca-print-tag-group {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
}
