/**
 * IASLadder Blog — Educational theme
 * Navy / slate + logo orange accent, Fraunces + Plus Jakarta Sans.
 */

:root {
  --blog-navy: #0f2744;
  --blog-slate: #1e3a5f;
  --blog-accent: #2c5282;
  /* Matches iasladder.com/home's header/footer background exactly (sampled from
     the reference screenshot). Scoped to nav/footer backgrounds only — --blog-navy
     stays as-is since it also drives heading/body text color, buttons, badges,
     etc. sitewide and swapping it would have a much wider blast radius than
     "match the header/footer background color" asked for. */
  --blog-brand-blue: #15547f;
  --blog-orange: #f07a1a;
  --blog-accent-soft: #e8eef5;
  --blog-bg: #f2f5f9;
  --blog-surface: #ffffff;
  --blog-text: #152033;
  --blog-muted: #5a6577;
  --blog-border: #d7dee8;
  --blog-radius: 0.75rem;
  --blog-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --blog-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --blog-shadow: 0 0.65rem 1.6rem rgba(15, 39, 68, 0.08);
  --reveal-delay: 0ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.blog-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--blog-sans);
  color: var(--blog-text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(240, 122, 26, 0.07), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(44, 82, 130, 0.08), transparent 50%),
    var(--blog-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.page-load-fade {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.page-load-fade.is-loaded {
  opacity: 1;
  transform: none;
}

.blog-main {
  flex: 1 0 auto;
}

/* —— Motion —— */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.55s ease var(--reveal-delay),
    transform 0.55s ease var(--reveal-delay);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.page-load-fade,
  .reveal-on-scroll,
  .blog-card,
  .pill,
  .social-link,
  .app-badge {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Typography —— */
h1, h2, h3, h4, .card-title, .post-title, .hero-title, .section-heading {
  font-family: var(--blog-serif);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--blog-navy);
}

.section-heading {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.letter-space {
  letter-spacing: 0.08em;
}

/* —— Article prose (plain HTML tags from CMS, no classes) —— */
.blog-prose {
  font-family: var(--blog-sans);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.125rem);
  line-height: 1.85;
  color: var(--blog-text);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.blog-prose > *:first-child { margin-top: 0; }
.blog-prose > *:last-child { margin-bottom: 0; }

.blog-prose h2,
.blog-prose h3,
.blog-prose h4,
.blog-prose h5,
.blog-prose h6 {
  font-family: var(--blog-serif);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--blog-navy);
  line-height: 1.3;
  scroll-margin-top: 5.5rem;
}

.blog-prose h2 {
  font-size: clamp(1.4rem, 1.2vw + 1.15rem, 1.7rem);
  margin: 2.1rem 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--blog-border);
}

.blog-prose h3 {
  font-size: clamp(1.2rem, 0.8vw + 1.05rem, 1.4rem);
  margin: 1.75rem 0 0.7rem;
}

.blog-prose h4 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.55rem;
}

.blog-prose h5,
.blog-prose h6 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
}

.blog-prose p {
  margin: 0 0 1.15rem;
  max-width: 68ch;
}

.blog-prose a {
  color: var(--blog-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  font-weight: 500;
}

.blog-prose a:hover { color: var(--blog-orange); }

.blog-prose strong,
.blog-prose b {
  font-weight: 700;
  color: var(--blog-navy);
}

.blog-prose em,
.blog-prose i { font-style: italic; }

.blog-prose mark {
  background: rgba(240, 122, 26, 0.18);
  padding: 0.05em 0.2em;
  border-radius: 0.2em;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  max-width: 68ch;
}

.blog-prose li {
  margin: 0.4rem 0;
  padding-left: 0.2rem;
}

.blog-prose li::marker {
  color: var(--blog-orange);
  font-weight: 600;
}

.blog-prose ul ul,
.blog-prose ol ol,
.blog-prose ul ol,
.blog-prose ol ul {
  margin: 0.35rem 0 0.55rem;
}

.blog-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--blog-orange);
  background: linear-gradient(90deg, rgba(240, 122, 26, 0.08), transparent 70%);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--blog-slate);
  font-size: 1.05em;
}

.blog-prose blockquote p:last-child { margin-bottom: 0; }

.blog-prose hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--blog-border), transparent);
}

.blog-prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--blog-radius);
}

.blog-prose figure {
  margin: 1.5rem 0;
}

.blog-prose figure img { margin: 0 auto; }

.blog-prose figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--blog-muted);
  text-align: center;
  line-height: 1.5;
}

.blog-prose table {
  width: auto;
  max-width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.98rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
}

.blog-prose thead { background: var(--blog-accent-soft); }

.blog-prose th,
.blog-prose td {
  border: 1px solid var(--blog-border);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.blog-prose th {
  font-weight: 700;
  color: var(--blog-navy);
  white-space: nowrap;
}

.blog-prose tbody tr:nth-child(even) {
  background: rgba(232, 238, 245, 0.45);
}

.blog-prose code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  background: var(--blog-accent-soft);
  color: var(--blog-navy);
  padding: 0.12em 0.4em;
  border-radius: 0.3em;
}

.blog-prose pre {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  background: #12233a;
  color: #e8eef5;
  border-radius: var(--blog-radius);
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.6;
}

.blog-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.blog-prose dl { margin: 0 0 1.25rem; }
.blog-prose dt {
  font-weight: 700;
  color: var(--blog-navy);
  margin-top: 0.75rem;
}
.blog-prose dd {
  margin: 0.25rem 0 0.5rem 1rem;
  color: var(--blog-muted);
}

.blog-prose iframe,
.blog-prose video {
  max-width: 100%;
  display: block;
  margin: 1.5rem auto;
  border: 0;
  border-radius: var(--blog-radius);
}

.blog-prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 12rem;
}

.blog-prose sup,
.blog-prose sub {
  font-size: 0.75em;
  line-height: 0;
}

.blog-prose abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* —— Header / Nav —— */
.blog-navbar {
  background: var(--blog-brand-blue);
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.15);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  backdrop-filter: blur(8px);
}

.navbar-brand {
  letter-spacing: -0.02em;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.blog-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.blog-logo-nav {
  width: auto;
  height: 30px;
}

.blog-logo-footer {
  width: auto;
  height: 72px;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
  font-family: var(--blog-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 0.65rem;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .blog-logo-nav {
    height: 44px;
  }
}

.lang-toggle .btn {
  min-width: 3rem;
  font-weight: 600;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1080;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

/* —— Hero —— */
.blog-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--blog-border);
  padding: 3rem 0 2.35rem;
  background:
    linear-gradient(180deg, rgba(233, 238, 245, 0.92) 0%, rgba(242, 245, 249, 0.4) 100%);
}

.blog-hero-compact {
  padding: 2.25rem 0 1.85rem;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(240, 122, 26, 0.16), transparent 42%),
    radial-gradient(circle at 70% 30%, rgba(44, 82, 130, 0.18), transparent 45%);
  pointer-events: none;
  animation: heroFloat 12s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.04); }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-orange);
}

.hero-title {
  font-size: clamp(1.85rem, 4.4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--blog-muted);
  max-width: 38rem;
  margin-inline: auto;
}

.blog-search {
  max-width: 36rem;
}

.blog-search .form-control {
  border-color: var(--blog-border);
  padding: 0.75rem 1rem;
  font-family: var(--blog-sans);
}

.blog-search .form-control:focus {
  border-color: var(--blog-accent);
  box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.18);
}

.blog-search .btn-primary {
  background: var(--blog-navy);
  border-color: var(--blog-navy);
  padding-inline: 1.25rem;
  font-weight: 600;
}

.blog-search .btn-primary:hover {
  background: var(--blog-slate);
  border-color: var(--blog-slate);
}

/* —— Category pills —— */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-pills .pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--blog-border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--blog-slate);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.category-pills .pill:hover,
.category-pills .pill.active {
  background: var(--blog-navy);
  border-color: var(--blog-navy);
  color: #fff;
  transform: translateY(-1px);
}

.category-pills .pill-parent {
  background: var(--blog-navy);
  border-color: var(--blog-navy);
  color: #fff;
}

.category-pills .pill-parent:hover,
.category-pills .pill-parent.active {
  background: var(--blog-slate);
  border-color: var(--blog-slate);
  color: #fff;
}

.category-pills .pill-child {
  font-weight: 500;
}

.cat-trail {
  gap: 0.15rem 0.25rem;
  position: relative;
  z-index: 2;
}

.cat-trail-sep {
  color: var(--blog-muted);
  font-weight: 600;
}

.cat-trail-text .cat-trail-link {
  color: var(--blog-accent);
  text-decoration: none;
  font-weight: 600;
}

.cat-trail-text .cat-trail-link:hover {
  text-decoration: underline;
}

.dropdown-menu-categories {
  min-width: 16rem;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
}

.dropdown-item-child {
  padding-left: 1.75rem !important;
  font-size: 0.92rem;
  color: #445;
}

.footer-link-child {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* —— Cards —— */
.archive-section {
  position: relative;
}

.blog-card {
  background: var(--blog-surface);
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(15, 39, 68, 0.12);
}

.blog-card .card-title {
  font-size: 1.12rem;
  line-height: 1.35;
}

.blog-card-img-link {
  display: block;
  background: var(--blog-accent-soft);
  overflow: hidden;
}

.blog-card-img-link img {
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-img-link img {
  transform: scale(1.04);
}

.blog-card-img-link img,
.blog-card-placeholder {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.blog-card-placeholder {
  color: var(--blog-accent);
  background: linear-gradient(135deg, #d9e4f0, #eef2f7);
}

/* Card buttons sit above the title's stretched-link so they stay clickable. */
.blog-card-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--blog-border);
}

.blog-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.blog-card-btn-read {
  border: 1.5px solid var(--blog-brand-blue);
  color: var(--blog-brand-blue);
  background: transparent;
}

.blog-card-btn-read:hover,
.blog-card-btn-read:focus-visible {
  background: var(--blog-brand-blue);
  color: #fff;
}

.blog-card-btn-mcq {
  border: 1.5px solid var(--blog-orange);
  background: var(--blog-orange);
  color: var(--blog-navy);
}

.blog-card-btn-mcq:hover,
.blog-card-btn-mcq:focus-visible {
  background: #fff;
  color: var(--blog-navy);
}

.blog-card-btn-count {
  min-width: 1.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--blog-navy);
  color: #fff;
  font-size: 0.72rem;
  text-align: center;
}

@media print {
  .blog-card-actions {
    display: none;
  }
}

.blog-badge {
  background: var(--blog-accent-soft) !important;
  color: var(--blog-slate) !important;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
}

.object-fit-cover {
  object-fit: cover;
}

/* —— Single post —— */
.post-hero-meta {
  color: var(--blog-muted);
  font-size: 0.95rem;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--blog-muted);
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--blog-accent);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--blog-muted);
}

.post-featured {
  border-radius: var(--blog-radius);
  overflow: hidden;
  background: var(--blog-accent-soft);
}

.post-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.author-card {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  padding: 1.25rem;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blog-accent-soft);
}

.tag-cloud a {
  display: inline-block;
  margin: 0 0.35rem 0.5rem 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--blog-accent-soft);
  color: var(--blog-slate);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.tag-cloud a:hover {
  background: var(--blog-navy);
  color: #fff;
}

.faq-section .accordion-button {
  font-family: var(--blog-serif);
  font-weight: 600;
  color: var(--blog-navy);
  background: var(--blog-surface);
}

.faq-section .accordion-button:not(.collapsed) {
  background: var(--blog-accent-soft);
  color: var(--blog-navy);
  box-shadow: none;
}

.faq-section .accordion-item {
  border-color: var(--blog-border);
}

.video-wrap {
  border-radius: var(--blog-radius);
  overflow: hidden;
  background: #000;
}

/* —— Pagination —— */
.blog-pagination .page-link {
  color: var(--blog-slate);
  border-color: var(--blog-border);
  border-radius: 0.55rem !important;
  min-width: 2.5rem;
  text-align: center;
  font-weight: 600;
  margin: 0 0.1rem;
}

.blog-pagination .page-item.active .page-link {
  background: var(--blog-navy);
  border-color: var(--blog-navy);
}

.blog-pagination .page-link:hover {
  background: var(--blog-accent-soft);
  color: var(--blog-navy);
}

/* —— Footer —— */
.blog-footer {
  background: var(--blog-brand-blue);
  color: rgba(255, 255, 255, 0.85);
}

.blog-footer .footer-brand {
  color: #fff;
}

.blog-footer .footer-brand:hover {
  opacity: 0.92;
}

.blog-footer .text-secondary {
  /* 0.72 (not 0.65) — the new, lighter brand-blue background needs a bit more
     opacity to keep this at a safe WCAG AA contrast (~5:1) for body text. */
  color: rgba(255, 255, 255, 0.72) !important;
}

.blog-footer .letter-spacing {
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-rule {
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* —— Social links —— */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  color: #fff !important;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.social-link:hover {
  color: #fff !important;
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.28);
}

.social-telegram { background: #26A5E4; }
.social-x { background: #111111; }
.social-whatsapp { background: #25D366; }
.social-facebook { background: #1877F2; }
.social-youtube { background: #FF0000; }
.social-instagram { background: #E1306C; }
.social-linkedin { background: #0077B5; }

/* —— App store badges —— */
.app-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 11.5rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-badge:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
}

.app-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.app-badge-android .app-badge-icon {
  background: linear-gradient(145deg, #34a853, #0f9d58);
  color: #fff;
}

.app-badge-ios .app-badge-icon {
  background: linear-gradient(145deg, #f5f5f7, #d2d2d7);
  color: #111;
}

.app-badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.app-badge-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 500;
}

.app-badge-name {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* —— Single post layout —— */
.post-layout {
  overflow: clip;
}

.post-hero {
  position: relative;
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--blog-border);
  background: linear-gradient(180deg, rgba(233, 238, 245, 0.95) 0%, rgba(242, 245, 249, 0.35) 100%);
}

.post-deck {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--blog-muted);
  max-width: 40rem;
}

.post-meta-bar {
  color: var(--blog-muted);
  font-size: 0.95rem;
}

.post-meta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blog-accent-soft);
  color: var(--blog-slate);
}

.post-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--blog-border);
  font-weight: 600;
  font-size: 0.85rem;
}

.post-featured {
  border-radius: calc(var(--blog-radius) + 0.15rem);
  overflow: hidden;
  background: var(--blog-accent-soft);
  box-shadow: var(--blog-shadow);
}

.post-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.post-featured-caption {
  font-size: 0.85rem;
  color: var(--blog-muted);
  padding: 0.65rem 1rem;
  margin: 0;
  background: var(--blog-surface);
  border-top: 1px solid var(--blog-border);
}

.post-prose {
  box-shadow: var(--blog-shadow);
}

.post-prose > *:first-child {
  margin-top: 0;
}

.shadow-soft {
  box-shadow: var(--blog-shadow);
  border-radius: var(--blog-radius);
  overflow: hidden;
}

.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.share-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.65rem;
  color: #fff !important;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--blog-sans);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.share-btn i {
  font-size: 1.05rem;
  line-height: 1;
}

.share-btn .share-btn-text {
  display: none;
}

@media (min-width: 576px) {
  .share-btn .share-btn-text {
    display: inline;
  }
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.4rem 0.9rem rgba(15, 39, 68, 0.2);
  color: #fff !important;
  opacity: 0.95;
}

.share-btn.is-copied {
  background: #198754 !important;
}

.share-facebook { background: #1877F2; }
.share-x { background: #111; }
.share-wa { background: #25D366; }
.share-tg { background: #26A5E4; }
.share-li { background: #0077B5; }
.share-reddit { background: #FF4500; }
.share-pinterest { background: #E60023; }
.share-threads { background: #000; }
.share-email { background: #5a6577; }
.share-copy { background: var(--blog-navy); }

.post-back-btn {
  border-color: var(--blog-border);
  color: var(--blog-navy);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
}

.post-back-btn:hover {
  background: var(--blog-navy);
  border-color: var(--blog-navy);
  color: #fff;
}

.author-card {
  box-shadow: var(--blog-shadow);
}

/* —— Utilities —— */
.surface-card {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
}

@media (max-width: 575.98px) {
  .blog-hero {
    padding-top: 2rem;
  }

  .post-hero {
    padding-top: 1.5rem;
  }
}
/* -------------------------------------------------------------
   External Resource Link with Modern Micro-Indicator
   ------------------------------------------------------------- */
   .blog-body a.external-link {
    color: #0369a1;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px dotted #38bdf8;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  
  /* Upward-right indicator (↗) */
  .blog-body a.external-link::after {
    content: "↗";
    display: inline-block;
    font-size: 0.75em;
    margin-left: 3px;
    color: #94a3b8;
    transform: translateY(-2px);
    transition: transform 0.15s ease, color 0.15s ease;
  }
  
  /* Hover state */
  .blog-body a.external-link:hover {
    color: #0284c7;
    border-bottom-style: solid;
    border-bottom-color: #0284c7;
  }
  
  .blog-body a.external-link:hover::after {
    color: #0284c7;
    transform: translate(2px, -3px);
  }
  /* =============================================================
   Header & Navbar Clean Visual Polish
   ============================================================= */

/* 1. Navbar Container & Alignment */
.blog-navbar {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.blog-navbar .navbar-nav {
  gap: 0.1rem;
  flex-wrap: nowrap;
}

/* 2. Sleek Menu Links — rounded pill items with icon + label, matching the main
      iasladder.com header's menu style. Compact: this nav has 8 items (the
      reference site's has 4), so it needs tighter chrome to fit on one line
      without each multi-word label wrapping onto two lines. */
.blog-navbar .nav-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0.28rem;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  padding: 0.4rem 0.55rem !important;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease-in-out;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.blog-navbar .nav-link i {
  font-size: 0.82rem;
  line-height: 1;
}

.blog-navbar .nav-link:hover,
.blog-navbar .nav-item.show .nav-link {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Current-page pill (Home, when on the blog's home/archive) — white pill with
   dark text and a small accent underline, matching the main site's active-item
   treatment. */
.blog-navbar .nav-link.is-active {
  background: #ffffff !important;
  color: var(--blog-navy) !important;
  font-weight: 700 !important;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.blog-navbar .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.3rem;
  width: 45%;
  height: 2px;
  background: var(--blog-orange);
  border-radius: 2px;
  transform: translateX(-50%);
}

/* 3. Highlighted Test Series CTA Button */
.blog-navbar .nav-item:last-child .nav-link,
.blog-navbar .nav-link-cta {
  background: var(--blog-orange) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
  box-shadow: 0 2px 10px rgba(240, 122, 26, 0.35);
}

.blog-navbar .nav-item:last-child .nav-link:hover,
.blog-navbar .nav-link-cta:hover {
  background: #d86910 !important;
  transform: translateY(-1px);
}

/* 4. Fix Hindi / English Language Toggle Visibility */
.lang-switch-container {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.32) !important;
  border: 1.5px solid var(--blog-orange) !important;
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 0 0 3px rgba(240, 122, 26, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lang-switch-container .lang-switch-icon {
  color: var(--blog-orange);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 0.3rem 0 0.4rem;
}

.lang-switch-container .lang-pill {
  display: inline-block;
  padding: 0.32rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 999px;
  color: #ffffff !important;
  transition: all 0.18s ease;
}

.lang-switch-container .lang-pill:hover:not(.active),
.lang-switch-container .lang-pill:focus-visible:not(.active) {
  background: rgba(240, 122, 26, 0.25);
}

/* Active language button (brand-orange pill) */
.lang-switch-container .lang-pill.active {
  background: var(--blog-orange) !important;
  color: var(--blog-navy) !important; /* navy on orange keeps AA contrast */
  box-shadow: 0 2px 8px rgba(240, 122, 26, 0.45);
  font-weight: 800;
}

/* 5. Dropdown Menus Clean Elevation */
.blog-navbar .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid var(--blog-border) !important;
  border-radius: 0.65rem !important;
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.2) !important;
  padding: 0.5rem;
  margin-top: 0.5rem !important;
}

.blog-navbar .dropdown-item {
  color: var(--blog-slate) !important;
  border-radius: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.blog-navbar .dropdown-item:hover {
  background: var(--blog-accent-soft) !important;
  color: var(--blog-navy) !important;
}

/* =============================================================
   Modern Article Redesign — reading progress, TOC, hero/meta,
   editorial typography, card accents, footer legal links.
   Evolves the existing navy/orange/Fraunces identity; no new
   palette, no structural sidebar — see __docs/enhance.txt.
   ============================================================= */

/* —— Sticky header gains depth once the page scrolls —— */
.blog-header {
  transition: box-shadow 0.25s ease;
}

.blog-header.is-scrolled {
  box-shadow: 0 0.75rem 1.75rem rgba(15, 39, 68, 0.22);
}

/* —— Reading progress bar (post pages only) —— */
.reading-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blog-orange), #ffb066);
}

@media (prefers-reduced-motion: no-preference) {
  .reading-progress-bar {
    transition: width 0.12s linear;
  }
}

/* —— Surface card accent stripe (article prose card, TOC card, static pages) —— */
.surface-card {
  position: relative;
  overflow: hidden;
}

.surface-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blog-orange), var(--blog-accent));
}

/* —— Post title: slightly larger ceiling than the shared archive hero title —— */
.post-title {
  font-size: clamp(1.6rem, 1.6vw + 1.2rem, 2.25rem);
}

/* —— Byline / meta strip polish —— */
.post-meta-bar {
  padding-bottom: 0.15rem;
}

.post-meta-bar time.post-meta-chip {
  background: rgba(255, 255, 255, 0.8);
}

/* —— Editorial lead-in: the article's opening paragraph reads larger —— */
.post-prose > p:first-of-type {
  font-size: 1.18em;
  line-height: 1.75;
  color: var(--blog-slate);
}

/* —— Table of Contents widget —— */
.toc-widget ul li {
  border-left: 2px solid var(--blog-border);
  padding-left: 0.85rem;
  transition: border-color 0.18s ease;
}

.toc-widget ul li a {
  color: var(--blog-slate);
  transition: color 0.18s ease;
}

.toc-widget ul li a:hover {
  color: var(--blog-orange);
}

.toc-widget ul li a.is-active {
  color: var(--blog-navy);
  font-weight: 700;
}

.toc-widget ul li:has(a.is-active) {
  border-left-color: var(--blog-orange);
}

/* —— Footer legal links —— */
.footer-legal-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .blog-header,
  .reading-progress-bar {
    transition: none !important;
  }
}

/* —— In-article CTA block (app + community) —— */
.post-cta-block {
  border-radius: calc(var(--blog-radius) + 0.15rem);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
}

.post-cta-panel {
  padding: 1.5rem 1.35rem;
  background: linear-gradient(155deg, var(--blog-navy) 0%, var(--blog-slate) 100%);
  color: rgba(255, 255, 255, 0.92);
}

.post-cta-panel-community {
  background: linear-gradient(155deg, var(--blog-slate) 0%, var(--blog-accent) 100%);
}

.post-cta-heading {
  font-family: var(--blog-serif);
  font-weight: 650;
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}

.post-cta-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.post-cta-btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.1rem rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.post-cta-btn-telegram { background: #26A5E4; }
.post-cta-btn-whatsapp { background: #25D366; }

@media (max-width: 767.98px) {
  .post-cta-panel-community {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* —— Back-to-top button (fixed bottom-right, shown after scrolling) —— */
.scroll-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--blog-navy);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: var(--blog-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
  background: var(--blog-orange);
  box-shadow: 0 0.6rem 1.4rem rgba(15, 39, 68, 0.3);
  transform: translateY(-2px) scale(1);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .scroll-top-btn {
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn {
    transition: opacity 0.15s ease, visibility 0s linear 0.15s !important;
    transform: none !important;
  }
  .scroll-top-btn.is-visible {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
}

/* —— Post MCQ practice: right-edge tab (beside the scrollbar) + quiz popup —— */
/* Brand blue (header colour) with an orange accent edge. Contrast: white on
   #15547f ≈ 8:1, navy on orange ≈ 5.4:1 (both pass WCAG AA for small text). */
.mcq-launch-btn {
  --mcq-tab-bg: var(--blog-brand-blue);
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 2.85rem; /* ≥ 44px touch target across the tab */
  padding: 0.7rem 0.55rem;
  /* The tab is rotated 180°, so its pre-rotation right edge faces the page:
     orange accent and rounded corners go there. */
  border: 0;
  border-right: 4px solid var(--blog-orange);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--mcq-tab-bg);
  color: #fff;
  font-family: var(--blog-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  /* Vertical side tab reading bottom-to-top. */
  writing-mode: vertical-rl;
  transform: translate(110%, -50%) rotate(180deg);
  box-shadow: -0.35rem 0 1.4rem rgba(15, 39, 68, 0.28);
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2),
    padding 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.mcq-launch-btn.is-ready {
  transform: translate(0, -50%) rotate(180deg);
}

/* Hidden (and out of the tab order) while the in-article MCQ card is visible. */
.mcq-launch-btn.is-tucked {
  transform: translate(110%, -50%) rotate(180deg);
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0s linear 0.3s;
}

/* Icon and count are laid out horizontally and counter-rotated, so they stand
   upright inside the rotated vertical tab. */
.mcq-launch-icon,
.mcq-launch-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
}

.mcq-launch-icon {
  width: 1.85rem;
  height: 1.85rem;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
}

.mcq-launch-count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--blog-orange);
  color: var(--blog-navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.mcq-launch-btn:hover,
.mcq-launch-btn:focus-visible {
  --mcq-tab-bg: var(--blog-orange);
  color: var(--blog-navy);
  box-shadow: -0.45rem 0 1.6rem rgba(15, 39, 68, 0.38);
}

.mcq-launch-btn:hover .mcq-launch-icon,
.mcq-launch-btn:focus-visible .mcq-launch-icon {
  background: rgba(15, 39, 68, 0.12);
}

.mcq-launch-btn:hover .mcq-launch-count,
.mcq-launch-btn:focus-visible .mcq-launch-count {
  background: var(--blog-navy);
  color: #fff;
}

.mcq-launch-btn:hover {
  padding-right: 0.8rem; /* rotated: the tab grows out towards the page */
}

/* Navy ring + white gap: visible on light content and on the tab itself. */
.mcq-launch-btn:focus-visible {
  outline: 3px solid var(--blog-navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, -0.45rem 0 1.6rem rgba(15, 39, 68, 0.38);
}

/* Phones: no side tab (it covers article text); the in-article MCQ card after
   the FAQs is the entry point there. */
@media (max-width: 767.98px) {
  .mcq-launch-btn {
    display: none;
  }
}

@media (forced-colors: active) {
  .mcq-launch-btn {
    border: 2px solid ButtonText;
  }
  .mcq-option.is-correct,
  .mcq-option.is-wrong {
    border-width: 3px;
  }
}

@media print {
  .mcq-launch-btn,
  .mcq-modal {
    display: none !important;
  }
}

/* In-article "Practice MCQs on {title}" call-to-action (after the FAQs).
   Contrast: white on brand blue ≈ 8:1; navy on orange ≈ 5.4:1. */
.mcq-cta {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: var(--blog-radius);
  border-left: 6px solid var(--blog-orange);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(240, 122, 26, 0.28), transparent 70%),
    linear-gradient(135deg, var(--blog-brand-blue) 0%, var(--blog-navy) 100%);
  color: #fff;
  box-shadow: 0 1rem 2.2rem rgba(15, 39, 68, 0.22);
  overflow: hidden;
}

.mcq-cta-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: var(--blog-orange);
  color: var(--blog-navy);
  font-size: 1.6rem;
  box-shadow: 0 0.5rem 1.2rem rgba(240, 122, 26, 0.35);
}

.mcq-cta-body {
  min-width: 0;
}

.mcq-cta-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd2ab; /* light orange: ≈ 9:1 on the blue */
}

.mcq-cta-heading {
  margin: 0 0 0.6rem;
  font-family: var(--blog-serif);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.mcq-cta-text {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.mcq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.9rem; /* ≥ 44px touch target */
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--blog-orange);
  color: var(--blog-navy);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: 0 0.55rem 1.3rem rgba(240, 122, 26, 0.4);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mcq-cta-btn .bi-arrow-right {
  transition: transform 0.18s ease;
}

.mcq-cta-btn:hover {
  background: #fff;
  color: var(--blog-navy);
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.6rem rgba(0, 0, 0, 0.28);
}

.mcq-cta-btn:hover .bi-arrow-right {
  transform: translateX(3px);
}

.mcq-cta-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .mcq-cta {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.35rem 1.15rem;
  }
  .mcq-cta-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.35rem;
  }
  .mcq-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (forced-colors: active) {
  .mcq-cta {
    border: 2px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcq-cta-btn,
  .mcq-cta-btn .bi-arrow-right {
    transition: none;
  }
  .mcq-cta-btn:hover,
  .mcq-cta-btn:hover .bi-arrow-right {
    transform: none;
  }
}

@media print {
  .mcq-cta-btn {
    display: none;
  }
}

/* Post page CTA: secondary link to the standalone /mcq/{slug} page */
.mcq-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0 0.25rem;
  color: #ffd2ab;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mcq-cta-link:hover,
.mcq-cta-link:focus-visible {
  color: #fff;
}

@media (min-width: 576px) {
  .mcq-cta-link {
    margin-left: 1rem;
  }
}

/* —— Home page "MCQ of the day" (index.php + initDailyMcq in blog.js) —— */
.daily-mcq-section {
  padding: 2rem 0 0.5rem;
}

.daily-mcq {
  position: relative;
  max-width: 54rem;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid var(--blog-border);
  border-left: 6px solid var(--blog-orange);
  border-radius: var(--blog-radius);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(240, 122, 26, 0.09), transparent 70%),
    var(--blog-surface);
  box-shadow: var(--blog-shadow);
}

@media (min-width: 768px) {
  .daily-mcq {
    padding: 1.75rem 2rem;
  }
}

/* Collapsible card: <details> + <summary> header row */
.daily-mcq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  cursor: pointer;
  list-style: none;
  border-radius: 0.5rem;
}

.daily-mcq-head::-webkit-details-marker {
  display: none;
}

.daily-mcq-head:focus-visible {
  outline: 3px solid rgba(240, 122, 26, 0.55);
  outline-offset: 6px;
}

.daily-mcq[open] > .daily-mcq-head {
  margin-bottom: 1rem;
}

.daily-mcq-hint {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blog-brand-blue);
}

.daily-mcq-hint.is-answered {
  color: #146c43;
}

.daily-mcq[open] .daily-mcq-hint:not(.is-answered) {
  visibility: hidden; /* the question is already showing */
}

.daily-mcq-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--blog-accent-soft);
  color: var(--blog-navy);
  transition: transform 0.2s ease, background 0.2s ease;
}

.daily-mcq-head:hover .daily-mcq-chevron {
  background: rgba(240, 122, 26, 0.2);
}

.daily-mcq[open] .daily-mcq-chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .daily-mcq-chevron {
    transition: none;
  }
}

.daily-mcq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--blog-orange);
  color: var(--blog-navy);
  font-family: var(--blog-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.daily-mcq-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blog-muted);
}

.daily-mcq-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.daily-mcq-section {
  padding-bottom: 0;
}

.daily-mcq:not([open]) {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.daily-mcq-streak,
.daily-mcq-score {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--blog-accent-soft);
  color: var(--blog-navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.daily-mcq-question {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--blog-navy);
  white-space: pre-line; /* statement-style questions keep their line breaks */
}

.daily-mcq-options {
  margin-bottom: 1rem;
}

.daily-mcq-feedback .mcq-explanation-text {
  white-space: pre-line;
}

.daily-mcq-tomorrow {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blog-muted);
}

.daily-mcq-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--blog-border);
  font-size: 0.9rem;
  color: var(--blog-muted);
}

.daily-mcq-source a {
  color: var(--blog-brand-blue);
  font-weight: 600;
}

.daily-mcq-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--blog-navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease;
}

.daily-mcq-more:hover,
.daily-mcq-more:focus-visible {
  background: var(--blog-brand-blue);
  color: #fff;
}

@media (max-width: 575.98px) {
  /* Row 1: badge · date · chevron; row 2: hint + streak/score */
  .daily-mcq-chevron {
    order: 3;
    margin-left: auto;
  }
  .daily-mcq-head::after { /* line break after the chevron */
    content: "";
    order: 3;
    flex-basis: 100%;
    height: 0;
  }
  .daily-mcq-hint {
    order: 4;
  }
  .daily-mcq-stats {
    order: 5;
    margin-left: 0;
  }
  .daily-mcq-more {
    width: 100%;
    justify-content: center;
  }
}

/* —— Practice-MCQ page (/mcq/{slug}) —— */
.brand-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 2.75rem;
  color: #fff;
  background:
    radial-gradient(640px 360px at 88% -10%, rgba(240, 122, 26, 0.38), transparent 70%),
    radial-gradient(520px 320px at -5% 110%, rgba(56, 132, 214, 0.35), transparent 70%),
    linear-gradient(135deg, var(--blog-brand-blue) 0%, var(--blog-navy) 70%);
}

/* Faint dot grid for texture */
.brand-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

@media (min-width: 992px) {
  .brand-hero {
    padding: 2.5rem 0 3.5rem;
  }
}

.brand-hero .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
}

.brand-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.brand-hero .breadcrumb-item a:hover,
.brand-hero .breadcrumb-item a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.brand-hero .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}

.brand-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.brand-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.brand-hero-tag-accent {
  border-color: transparent;
  background: rgba(240, 122, 26, 0.2);
  color: #ffd2ab; /* ≈ 9:1 on the navy */
}

.brand-hero-title {
  margin: 0 0 1rem;
  font-family: var(--blog-serif);
  font-size: clamp(1.75rem, 2.4vw + 1.1rem, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.brand-hero-lead {
  max-width: 42rem;
  margin: 0 0 1.75rem;
  font-size: 1.075rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.brand-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.brand-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem; /* ≥ 44px touch target */
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-hero-btn-primary {
  border: 0;
  background: var(--blog-orange);
  color: var(--blog-navy);
  box-shadow: 0 0.6rem 1.4rem rgba(240, 122, 26, 0.45);
}

.brand-hero-btn-primary:hover,
.brand-hero-btn-primary:focus-visible {
  background: #fff;
  color: var(--blog-navy);
  transform: translateY(-2px);
}

.brand-hero-btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.brand-hero-btn-ghost:hover,
.brand-hero-btn-ghost:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.brand-hero-btn:focus-visible {
  outline: 3px solid #ffd2ab;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .brand-hero-btn {
    flex: 1 1 100%;
  }
}

.brand-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.brand-hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-hero-stats i {
  color: #ffb877;
}

/* —— Post page variant of the brand hero —— */
.post-hero-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.post-hero-byline .post-meta-avatar {
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.post-hero-byline .post-meta-avatar-fallback {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.post-hero-author,
.post-hero-dates {
  display: block;
  line-height: 1.45;
}

.post-hero-author strong {
  color: #fff;
}

.post-hero-dates {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
}

/* Glass "at a glance" strip */
.post-hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.post-hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.post-hero-stats li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.post-hero-stats i {
  color: #ffb877;
}

@media (max-width: 575.98px) {
  .post-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .post-hero-stats li + li {
    border-left: 0;
  }
  .post-hero-stats li:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }
  .post-hero-stats li:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .post-hero-stats li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

a.brand-hero-tag {
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

a.brand-hero-tag:hover,
a.brand-hero-tag:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* "Answers revealed" ring — glass card on the hero */
.mcq-progress-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 1rem 2.5rem rgba(5, 15, 30, 0.25);
}

@media (min-width: 992px) {
  .mcq-progress-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.5rem;
  }
}

.mcq-ring {
  --mcq-pct: 0;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--blog-navy) 78%, transparent 80% 100%),
    conic-gradient(var(--blog-orange) calc(var(--mcq-pct) * 1%), rgba(255, 255, 255, 0.16) 0);
  transition: background 0.3s ease;
}

@media (min-width: 992px) {
  .mcq-ring {
    width: 7.5rem;
    height: 7.5rem;
  }
}

.mcq-ring-value {
  font-family: var(--blog-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.mcq-ring-value small {
  font-size: 0.55em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.mcq-progress-label {
  font-weight: 700;
  color: #fff;
}

.mcq-progress-tip {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero-btn,
  .mcq-ring {
    transition: none;
  }
  .brand-hero-btn-primary:hover {
    transform: none;
  }
}

@media print {
  .brand-hero {
    color: #000;
    background: none;
  }
  .brand-hero-title,
  .brand-hero-lead {
    color: #000;
  }
  .brand-hero-actions,
  .mcq-progress-card,
  .brand-hero-pattern {
    display: none;
  }
}

.mcq-set {
  display: grid;
  gap: 1rem;
}

.mcq-set-item {
  padding: 1.25rem;
  scroll-margin-top: 6rem;
}

@media (min-width: 768px) {
  .mcq-set-item {
    padding: 1.5rem 1.75rem;
  }
}

.mcq-set-q {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--blog-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--blog-navy);
}

.mcq-set-num {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(240, 122, 26, 0.14);
  color: #b85600; /* AA on the tinted chip */
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Answered questions get a quiet "done" edge */
.mcq-set-item:has(.mcq-set-answer[open]) {
  border-color: rgba(25, 135, 84, 0.35);
}

.mcq-set-q-text,
.mcq-set-expl {
  white-space: pre-line; /* statement-style questions keep their line breaks */
}

.mcq-set-options {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.mcq-set-options li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--blog-border);
  border-radius: 0.6rem;
  line-height: 1.5;
}

.mcq-set-answer summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--blog-brand-blue);
  border-radius: 999px;
  color: var(--blog-brand-blue);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.mcq-set-answer summary::-webkit-details-marker {
  display: none;
}

.mcq-set-answer summary:hover,
.mcq-set-answer summary:focus-visible {
  background: var(--blog-brand-blue);
  color: #fff;
}

.mcq-set-answer[open] summary {
  background: var(--blog-accent-soft);
  border-color: var(--blog-accent-soft);
  color: var(--blog-navy);
}

.mcq-set-answer-body {
  margin-top: 0.85rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #198754;
  border-radius: 0 0.6rem 0.6rem 0;
  background: #eef8f2;
}

.mcq-set-correct {
  margin: 0 0 0.5rem;
  color: #146c43;
}

.mcq-set-expl-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.mcq-set-expl {
  color: var(--blog-text);
  line-height: 1.65;
}

.mcq-source {
  padding: 1.25rem 1.5rem;
}

.mcq-source-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.mcq-source-title {
  font-family: var(--blog-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.mcq-source-title a {
  color: var(--blog-navy);
}

/* MCQ-set link cards (hub + "more sets") */
.mcq-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .mcq-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mcq-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  background: var(--blog-surface);
  color: var(--blog-text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mcq-hub-card:hover,
.mcq-hub-card:focus-visible {
  border-color: rgba(240, 122, 26, 0.55);
  box-shadow: var(--blog-shadow);
  transform: translateY(-2px);
}

.mcq-hub-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(240, 122, 26, 0.14);
  color: #b85600;
  font-size: 1.15rem;
}

.mcq-hub-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex-grow: 1;
}

.mcq-hub-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.mcq-hub-title {
  font-weight: 700;
  line-height: 1.4;
  color: var(--blog-navy);
}

.mcq-hub-meta {
  font-size: 0.85rem;
  color: var(--blog-muted);
}

.mcq-hub-arrow {
  align-self: center;
  color: var(--blog-orange);
  transition: transform 0.2s ease;
}

.mcq-hub-card:hover .mcq-hub-arrow,
.mcq-hub-card:focus-visible .mcq-hub-arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .mcq-hub-card,
  .mcq-hub-arrow {
    transition: none;
  }
  .mcq-hub-card:hover,
  .mcq-hub-card:hover .mcq-hub-arrow {
    transform: none;
  }
}

@media print {
  .mcq-set-answer-body {
    display: block;
  }
}

.mcq-modal .modal-content {
  border: 0;
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(15, 39, 68, 0.25);
}

.mcq-modal .modal-header {
  border-bottom: 0;
  padding-bottom: 0.75rem;
}

.mcq-modal .modal-title {
  font-family: var(--blog-serif);
  color: var(--blog-navy);
}

.mcq-counter {
  color: var(--blog-muted);
  font-weight: 600;
}

.mcq-progress {
  height: 4px;
  background: var(--blog-accent-soft);
}

.mcq-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blog-orange);
  transition: width 0.3s ease;
}

.mcq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blog-text);
  white-space: pre-line;
  margin-bottom: 1.25rem;
}

.mcq-options {
  display: grid;
  gap: 0.65rem;
}

.mcq-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--blog-border);
  border-radius: 0.6rem;
  background: var(--blog-surface);
  color: var(--blog-text);
  text-align: left;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mcq-option:not([aria-disabled="true"]):hover {
  border-color: var(--blog-accent);
  background: var(--blog-accent-soft);
}

.mcq-option:focus-visible {
  outline: 3px solid var(--blog-navy);
  outline-offset: 2px;
}

.mcq-option[aria-disabled="true"] {
  cursor: default;
}

.mcq-option-status {
  flex: 0 0 auto;
  margin-left: auto;
  padding-top: 0.15rem;
  font-size: 1.15rem;
}

.mcq-option.is-correct .mcq-option-status { color: #146c43; }
.mcq-option.is-wrong .mcq-option-status { color: #b02a37; }

/* Focus lands here programmatically (for screen readers); no ring needed. */
.mcq-question:focus {
  outline: none;
}

.mcq-kbd-hint {
  font-size: 0.8rem;
  color: var(--blog-muted);
}

@media (hover: none), (max-width: 575.98px) {
  .mcq-kbd-hint {
    display: none;
  }
}

.mcq-option-letter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--blog-accent-soft);
  color: var(--blog-navy);
  font-weight: 700;
  font-size: 0.85rem;
}

.mcq-option-text {
  padding-top: 0.1rem;
}

.mcq-option.is-correct {
  border-color: #198754;
  background: #e9f7ef;
}

.mcq-option.is-correct .mcq-option-letter {
  background: #198754;
  color: #fff;
}

.mcq-option.is-wrong {
  border-color: #dc3545;
  background: #fdecee;
}

.mcq-option.is-wrong .mcq-option-letter {
  background: #dc3545;
  color: #fff;
}

.mcq-feedback {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border-left: 4px solid var(--blog-border);
  background: var(--blog-bg);
}

.mcq-feedback.is-correct { border-left-color: #198754; }
.mcq-feedback.is-wrong { border-left-color: #dc3545; }

.mcq-verdict {
  font-weight: 700;
}

.mcq-feedback.is-correct .mcq-verdict { color: #146c43; }
.mcq-feedback.is-wrong .mcq-verdict { color: #b02a37; }

.mcq-explanation {
  margin-top: 0.6rem;
  color: var(--blog-text);
}

.mcq-explanation-text {
  white-space: pre-line;
}

.mcq-kbd-hint[hidden] {
  display: none;
}

.mcq-explanation-label {
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blog-muted);
}

.mcq-result {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.mcq-result-icon {
  font-size: 3rem;
  color: var(--blog-orange);
}

.mcq-result-score {
  margin: 0.75rem 0 0;
  font-family: var(--blog-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blog-navy);
}

.mcq-modal .modal-footer {
  border-top: 1px solid var(--blog-border);
}

.mcq-next-btn {
  background: var(--blog-navy);
  border-color: var(--blog-navy);
  color: #fff;
  font-weight: 600;
}

.mcq-next-btn:hover,
.mcq-next-btn:focus-visible {
  background: var(--blog-orange);
  border-color: var(--blog-orange);
  color: #fff;
}

.mcq-next-btn:disabled {
  background: var(--blog-navy);
  border-color: var(--blog-navy);
  color: #fff;
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .mcq-launch-btn,
  .mcq-progress > span,
  .mcq-option {
    transition: none;
  }
  /* No slide-in: show the tab in place straight away. */
  .mcq-launch-btn {
    transform: translate(0, -50%) rotate(180deg);
  }
}
  
/* =============================================================
   Post page — SEO layout additions (2026-10-02):
   updated/language chips, YouTube facade, prev/next, "More in" list
   ============================================================= */

.post-meta-updated time {
  font-weight: 600;
}

a.post-lang-link {
  color: var(--blog-brand-blue);
  text-decoration: none;
}

a.post-lang-link:hover,
a.post-lang-link:focus-visible {
  color: var(--blog-orange);
  border-color: var(--blog-orange);
}

/* —— YouTube facade (thumbnail until clicked) —— */
.video-facade {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--blog-radius);
  background: #000;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.video-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: #ff0033;
  color: #fff;
  font-size: 2rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.video-facade:hover img,
.video-facade:focus-visible img {
  opacity: 1;
}

.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-wrap iframe {
  border: 0;
  border-radius: var(--blog-radius);
}

/* —— Previous / next article —— */
.post-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-adjacent-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  background: var(--blog-surface);
  box-shadow: var(--blog-shadow);
  color: var(--blog-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-adjacent-next {
  text-align: right;
}

.post-adjacent-link:hover,
.post-adjacent-link:focus-visible {
  border-color: var(--blog-orange);
  transform: translateY(-2px);
}

.post-adjacent-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-orange);
}

.post-adjacent-title {
  font-weight: 600;
  line-height: 1.4;
  color: var(--blog-navy);
}

@media (max-width: 575.98px) {
  .post-adjacent {
    grid-template-columns: 1fr;
  }

  .post-adjacent-spacer {
    display: none;
  }

  .post-adjacent-next {
    text-align: left;
  }
}

/* —— "More in {category}": numbered link cards, 2 columns from md —— */
.more-in-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.more-in-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blog-orange);
}

.more-in-viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  background: var(--blog-surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blog-navy);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.more-in-viewall i {
  transition: transform 0.2s ease;
}

.more-in-viewall:hover,
.more-in-viewall:focus-visible {
  border-color: var(--blog-orange);
  color: var(--blog-orange);
}

.more-in-viewall:hover i,
.more-in-viewall:focus-visible i {
  transform: translateX(3px);
}

.more-in-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .more-in-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.more-in-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  height: 100%;
  padding: 1rem 2.4rem 1rem 1rem;
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  background: var(--blog-surface);
  color: var(--blog-text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Accent bar that grows in on hover */
.more-in-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blog-orange);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.more-in-card:hover,
.more-in-card:focus-visible {
  border-color: rgba(240, 122, 26, 0.45);
  box-shadow: var(--blog-shadow);
  transform: translateY(-2px);
}

.more-in-card:hover::before,
.more-in-card:focus-visible::before {
  transform: scaleY(1);
}

.more-in-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: var(--blog-accent-soft);
  font-family: var(--blog-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blog-brand-blue);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.more-in-card:hover .more-in-num,
.more-in-card:focus-visible .more-in-num {
  background: var(--blog-orange);
  color: #fff;
}

.more-in-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.more-in-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-orange);
}

.more-in-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 650;
  line-height: 1.4;
  color: var(--blog-navy);
}

.more-in-card:hover .more-in-title,
.more-in-card:focus-visible .more-in-title {
  color: var(--blog-accent);
}

.more-in-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--blog-muted);
}

.more-in-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.95rem;
  color: var(--blog-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.more-in-card:hover .more-in-arrow,
.more-in-card:focus-visible .more-in-arrow {
  color: var(--blog-orange);
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .post-adjacent-link,
  .video-facade-play,
  .more-in-card,
  .more-in-card::before,
  .more-in-num,
  .more-in-arrow,
  .more-in-viewall i {
    transition: none !important;
  }

  .more-in-card:hover,
  .more-in-card:focus-visible {
    transform: none;
  }
}
