:root {
  --navy: #06285f;
  --navy-2: #0a3d88;
  --ink: #10213f;
  --muted: #61708b;
  --teal: #11bdb9;
  --teal-soft: #dff9f7;
  --sky: #eaf2ff;
  --yellow: #ffd64d;
  --red: #d94343;
  --paper: #ffffff;
  --page: #f5f8fc;
  --line: #dce4f0;
  --shadow: 0 18px 50px rgba(6, 40, 95, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .7rem 1rem; background: #fff; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,228,240,.8);
  backdrop-filter: blur(18px);
}
.header-inner { width: min(1180px, calc(100% - 2rem)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); font-weight: 850; font-size: 1.18rem; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: .4rem; }
.main-nav a { padding: .65rem .95rem; border-radius: 999px; color: #40506b; text-decoration: none; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 12px; padding: .55rem .8rem; font-weight: 750; }

main { min-height: calc(100vh - 180px); }
.page-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.2rem 0 4.5rem; }
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2rem;
  align-items: center;
  min-height: 360px;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #fff;
  background: linear-gradient(135deg, #052458 0%, #0a4495 58%, #096d91 100%);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -220px; border: 70px solid rgba(25,215,209,.17); border-radius: 50%; }
.eyebrow { display: inline-flex; width: fit-content; align-items: center; gap: .5rem; margin: 0 0 .8rem; color: #087974; background: var(--teal-soft); border-radius: 999px; padding: .38rem .72rem; font-size: .82rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.hero .eyebrow { color: #bffcf9; background: rgba(17,189,185,.2); }
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -.035em; }
h1 { max-width: 760px; font-size: clamp(2.35rem, 6vw, 5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
.hero-copy > p { max-width: 650px; margin: 1.1rem 0 1.7rem; color: #d7e7ff; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 48px; padding: .72rem 1.1rem; border: 0; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button-primary { background: var(--yellow); color: #3c3000; }
.button-secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.button-teal { background: var(--teal); color: #032f35; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.hero-panel { position: relative; z-index: 1; display: grid; gap: .85rem; padding: 1.2rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 26px; backdrop-filter: blur(8px); }
.hero-stat { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: rgba(3,24,63,.36); border-radius: 16px; }
.hero-stat strong { font-size: 1.45rem; }
.hero-stat span { color: #cbdcf7; font-size: .9rem; }
.progress-track { height: 10px; overflow: hidden; background: rgba(255,255,255,.2); border-radius: 999px; }
.progress-fill { height: 100%; background: var(--yellow); border-radius: inherit; transition: width .35s ease; }

.section { margin-top: 3.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-head p { margin: .35rem 0 0; color: var(--muted); }
.text-link { color: var(--navy-2); font-weight: 800; text-decoration: none; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.category-card { position: relative; overflow: hidden; min-height: 205px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; padding: 1.35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 26px rgba(13,54,112,.05); text-decoration: none; }
.category-card:hover { border-color: #9ab8e9; transform: translateY(-3px); box-shadow: var(--shadow); }
.category-number { display: grid; place-items: center; width: 42px; height: 42px; color: var(--navy); background: var(--sky); border-radius: 14px; font-weight: 900; }
.category-card.guide .category-number { color: #0a726d; background: var(--teal-soft); }
.category-card p { margin: .55rem 0 0; color: var(--muted); }
.card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 700; }

.feature-strip { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.feature-card { padding: 1.8rem; border-radius: 26px; background: var(--teal-soft); }
.feature-card.dark { color: #fff; background: var(--navy); }
.feature-card p { color: #316d6b; }
.feature-card.dark p { color: #cbdcf7; }
.feature-card .button { margin-top: .5rem; }

.page-heading { display: grid; gap: .65rem; margin: 1rem 0 2rem; }
.page-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; font-weight: 650; }
.breadcrumbs a { color: var(--navy-2); text-decoration: none; }
.lesson-list { display: grid; gap: .8rem; }
.lesson-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; }
.lesson-row:hover { border-color: #99b7e8; box-shadow: 0 10px 32px rgba(6,40,95,.08); }
.lesson-index { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--navy-2); border-radius: 14px; font-weight: 850; }
.lesson-row.done .lesson-index { background: var(--teal); color: #032f35; }
.lesson-row p { margin: .25rem 0 0; color: var(--muted); }
.status-chip { padding: .35rem .65rem; border-radius: 999px; color: #53617a; background: #eef2f7; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.status-chip.done { color: #06645f; background: var(--teal-soft); }

.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.3rem; align-items: start; }
.lesson-article { padding: clamp(1.4rem, 4vw, 3.2rem); background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 12px 40px rgba(6,40,95,.06); }
.lesson-article h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 3.4rem); }
.lesson-content { margin-top: 2rem; color: #263754; }
.lesson-content h2 { margin: 2.2rem 0 .8rem; color: var(--navy); font-size: 1.6rem; }
.lesson-content h3 { margin: 1.7rem 0 .6rem; color: var(--navy); }
.lesson-content p { margin: .8rem 0; }
.lesson-content ul, .lesson-content ol { padding-left: 1.25rem; }
.lesson-content blockquote { margin: 1.4rem 0; padding: 1rem 1.2rem; background: var(--sky); border-left: 4px solid var(--navy-2); border-radius: 0 14px 14px 0; }
.lesson-aside { position: sticky; top: 96px; display: grid; gap: .85rem; padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.lesson-aside p { margin: 0; color: var(--muted); font-size: .93rem; }
.lesson-aside .button { width: 100%; }

.quiz-shell { max-width: 820px; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-weight: 750; }
.quiz-card { padding: clamp(1.3rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.quiz-card h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.answer-list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.answer { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: 1rem; text-align: left; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; }
.answer:hover { border-color: #8eafe3; }
.answer.selected { border-color: var(--navy-2); background: var(--sky); }
.answer.correct { border-color: var(--teal); background: var(--teal-soft); }
.answer.wrong { border-color: #ec8585; background: #fff0f0; }
.answer-letter { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; color: var(--navy); background: #eef3fb; border-radius: 10px; font-weight: 850; }
.quiz-feedback { margin-top: 1rem; padding: 1rem; border-radius: 16px; background: var(--sky); }
.quiz-actions { display: flex; justify-content: flex-end; margin-top: 1.2rem; }
.result-card { text-align: center; }
.result-score { display: grid; place-items: center; width: 150px; height: 150px; margin: 1.5rem auto; color: var(--navy); background: var(--teal-soft); border: 12px solid #baf2ee; border-radius: 50%; font-size: 2rem; font-weight: 900; }

.sign-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 1rem; margin: 1.4rem 0; }
.search-field { width: 100%; min-height: 50px; padding: .7rem 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; outline: none; }
.search-field:focus { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(10,61,136,.1); }
.sign-filters { display: flex; gap: .55rem; overflow-x: auto; padding: .1rem 0 .7rem; scrollbar-width: thin; }
.filter-button { flex: 0 0 auto; padding: .6rem .9rem; color: #465675; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 750; text-decoration: none; }
.filter-button span { margin-left: .2rem; color: var(--muted); font-size: .78rem; }
.filter-button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.filter-button.active span { color: #d9e7ff; }
.sign-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
.sign-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.sign-image { flex: 0 0 180px; height: 180px; display: grid; place-items: center; padding: 1rem; background: linear-gradient(145deg, #f8fbff, #eef4fb); }
.sign-image img { width: 100%; height: 100%; object-fit: contain; }
.sign-copy { padding: 1rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.sign-code { display: inline-flex; margin-bottom: .45rem; padding: .2rem .5rem; color: var(--navy); background: var(--sky); border-radius: 7px; font-size: .78rem; font-weight: 900; }
.sign-copy h3 { font-size: 1.02rem; margin: 0.35rem 0 0.15rem; }
.sign-copy p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }
.sign-copy .translation-box { flex: 0 0 auto !important; height: auto !important; margin-top: 0.35rem !important; margin-bottom: 0.45rem !important; font-size: 0.8rem !important; padding: 0.45rem 0.65rem !important; }
.empty-state { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #b7c6db; border-radius: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.result-line { margin: .4rem 0 1rem; color: var(--muted); }
.lesson-summary { color: var(--muted); font-size: 1.08rem; }
.quiz-wide { max-width: 900px; }
.test-heading { margin-top: 1rem; }
.quiz-form { display: grid; gap: 1rem; }
.quiz-question { min-width: 0; text-align: left; }
.quiz-question legend { padding: 0 .35rem; color: var(--navy-2); font-size: .88rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.answer input[type="radio"], .answer input { display: none !important; }
.question-correct { border-color: #87dcd5; }
.question-wrong { border-color: #efaaaa; }
.result-summary { margin-bottom: 1.2rem; }
.quiz-submit { position: sticky; bottom: 1rem; display: flex; justify-content: center; padding: .8rem; background: rgba(245,248,252,.9); backdrop-filter: blur(10px); border-radius: 18px; }
.quiz-submit .button { min-width: 220px; }

.loading-state { min-height: 60vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.loading-mark { width: 44px; height: 44px; border: 5px solid #dce9f9; border-top-color: var(--teal); border-radius: 50%; animation: spin .75s linear infinite; }
.error-state { width: min(680px, calc(100% - 2rem)); margin: 5rem auto; padding: 2rem; background: #fff; border: 1px solid #f0b5b5; border-radius: 20px; text-align: center; }

footer { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 1.5rem; display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem; color: #65738c; border-top: 1px solid var(--line); font-size: .9rem; }
footer div { display: flex; gap: .65rem; }
footer p { margin: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .sign-grid { grid-template-columns: repeat(3, 1fr); }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-aside { position: static; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 66px; }
  .brand img { width: 38px; height: 38px; }
  .menu-button { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 60px; flex-direction: column; align-items: stretch; padding: .65rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .hero { min-height: 0; padding: 2rem 1.25rem; border-radius: 24px; }
  h1 { font-size: 2.35rem; }
  .category-grid, .feature-strip, .sign-grid { grid-template-columns: 1fr; }
  .sign-toolbar { grid-template-columns: 1fr; }
  .sign-card { grid-template-rows: 200px 1fr; }
  .section-head, footer { align-items: flex-start; flex-direction: column; }
  .lesson-row { grid-template-columns: auto 1fr; }
  .lesson-row .status-chip { grid-column: 2; justify-self: start; }
  footer div { flex-direction: column; gap: .1rem; }
}

/* Webornek visual direction: editorial Portuguese driving-school interface */
:root { --forest: #075c48; --forest-2: #0c765a; --red-accent: #f42a31; --dark-text: #102b36; --soft-green: #e8f4ef; --mist: #f6faf9; }
body { color: var(--dark-text); background: #fff; font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif; }
.site-header { position: relative; background: rgba(255,255,255,.94); border-bottom: 1px solid #edf1f0; box-shadow: 0 4px 18px rgba(11,55,48,.04); }
.header-inner { width: min(1320px, calc(100% - 2rem)); min-height: 64px; }
.brand { color: var(--forest); gap: .55rem; }
.brand img { width: 48px; height: 48px; padding: 0; background: transparent; border-radius: 13px; }
.brand-copy strong { color: var(--forest); font-size: 1.45rem; letter-spacing: -.065em; }
.brand-copy strong span, .footer-brand strong span { color: var(--red-accent); }
.brand-copy small { color: #54616d; font-size: .69rem; letter-spacing: 0; }
.main-nav { gap: .15rem; }
.main-nav a { padding: .75rem .8rem; color: #304653; border-radius: 0; font-size: .87rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--forest); background: transparent; box-shadow: inset 0 -3px 0 var(--forest); }
.header-cta { min-height: 38px; padding: .55rem 1.15rem; color: #fff; background: var(--forest); border-radius: 10px; font-size: .82rem; }
.header-cta:hover { background: var(--forest-2); }

main { min-height: 0; }
.page-shell { width: min(1320px, calc(100% - 2rem)); padding: 1.5rem 0 3.5rem; }
.hero.home-hero { position: relative; grid-template-columns: .82fr 1.18fr; align-items: center; min-height: 510px; overflow: hidden; padding: 2.4rem 3.3rem; color: var(--dark-text); background: linear-gradient(96deg, #fff 0%, #fff 34%, rgba(255,255,255,.84) 48%, rgba(235,246,245,.2) 100%), linear-gradient(135deg, #eaf4f3, #fff); border: 0; border-radius: 0; box-shadow: none; }
.hero.home-hero::before { content: ""; position: absolute; inset: 0 0 0 42%; z-index: 0; background: linear-gradient(140deg, rgba(20,106,88,.2), rgba(242,250,248,.1)), repeating-linear-gradient(155deg, transparent 0 38px, rgba(7,92,72,.12) 39px 42px, transparent 43px 82px); opacity: .7; }
.hero.home-hero::after { width: 400px; height: 400px; right: -150px; top: -200px; border: 70px solid rgba(7,92,72,.08); }
.home-hero .hero-copy, .hero-device { position: relative; z-index: 1; }
.home-hero .eyebrow, .page-heading .eyebrow { position: relative; color: #667b8b; background: transparent; padding: 0; font-size: .68rem; letter-spacing: .24em; }
.home-hero .eyebrow::after, .page-heading .eyebrow::after, .section-kicker::after { content: ""; display: block; width: 54px; height: 3px; margin-top: .65rem; background: linear-gradient(90deg, var(--forest) 0 52%, var(--red-accent) 52%); }
.home-hero h1 { max-width: 580px; color: #0e2b35; font-size: clamp(2.45rem, 4.2vw, 4.15rem); line-height: 1.05; }
.home-hero h1 span { color: var(--forest); }
.home-hero .hero-copy > p:not(.eyebrow) { max-width: 570px; margin: 1rem 0 1.5rem; color: #586b78; font-size: 1.05rem; }
.home-hero .button-primary { color: #fff; background: var(--forest); }
.home-hero .button-secondary { color: #213642; border-color: #d5e0dc; }
.play-icon { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--forest); border-radius: 50%; font-size: .55rem; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.55rem; }
.hero-benefits span { display: grid; grid-template-columns: auto 1fr; column-gap: .4rem; color: var(--forest); font-size: 1.25rem; }
.hero-benefits b, .hero-benefits small { grid-column: 2; color: #3d5663; font-size: .72rem; line-height: 1.15; }
.hero-benefits b { grid-row: 1; }
.hero-benefits small { grid-row: 2; color: #75848e; }
.hero-device { min-height: 410px; display: flex; align-items: center; justify-content: center; }
.device-window { width: min(550px, 86%); padding: 1.1rem; background: #fff; border: 1px solid #dce9e5; border-radius: 15px; box-shadow: 0 24px 55px rgba(25,71,62,.17); transform: rotate(-1deg); }
.device-top { display: flex; justify-content: space-between; margin-bottom: .75rem; color: #5d6e78; font-size: .73rem; }
.device-logo { color: var(--forest); font-weight: 900; }
.device-logo span { color: var(--red-accent); }
.device-progress { display: grid; gap: .3rem; padding: 1.1rem; background: linear-gradient(120deg, #e8f4ef, #f8fbfa); border-radius: 10px; }
.device-progress small { color: #688078; }.device-progress strong { color: #173d37; }.device-progress i { display: block; height: 6px; background: #d2e5df; border-radius: 999px; }.device-progress i b { display: block; width: 48%; height: 100%; background: var(--forest); border-radius: inherit; }
.device-mini-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .55rem; margin-top: .75rem; }
.device-mini-grid span { display: grid; gap: .22rem; padding: .8rem .45rem; color: var(--forest); background: #fff; border: 1px solid #edf1ef; border-radius: 9px; text-align: center; font-size: 1.1rem; }.device-mini-grid b { color: #203e48; font-size: .66rem; }.device-mini-grid small { color: #81909a; font-size: .55rem; }
.device-phone { position: absolute; right: 1%; bottom: 1.8rem; width: 120px; display: grid; gap: .8rem; padding: .75rem; color: #16433a; background: #fff; border: 4px solid #102e35; border-radius: 19px; box-shadow: 0 18px 35px rgba(15,51,48,.22); transform: rotate(5deg); font-size: .7rem; }.device-phone .device-logo { font-size: .7rem; }.device-phone strong { font-size: .69rem; line-height: 1.2; }.device-phone div:last-child { padding: .65rem; background: #e9f4ef; border-radius: 8px; text-align: center; }
.hero-stats { display: none; }

.quick-links { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; margin: -1.8rem 2.2rem 0; position: relative; z-index: 2; }
.quick-links a { display: flex; align-items: center; gap: .8rem; min-height: 80px; padding: .85rem 1rem; color: #173a42; background: #fff; border: 1px solid #e2ece8; border-radius: 11px; text-decoration: none; box-shadow: 0 8px 26px rgba(24,69,60,.06); }.quick-links a > strong { color: var(--forest); font-size: 1.65rem; }.quick-links b, .quick-links small { display: block; }.quick-links b { font-size: .82rem; }.quick-links small { margin-top: .18rem; color: #75858c; font-size: .68rem; line-height: 1.2; }
.section { margin-top: 4rem; }.section-head { align-items: end; }.section-head h2 { color: #0f2e3a; font-size: 2rem; }.section-head p:not(.section-kicker) { color: #677984; }.section-kicker { color: #778997; font-size: .68rem; letter-spacing: .22em; }.section-kicker::after { width: 38px; height: 3px; margin-top: .45rem; }
.category-grid { gap: .85rem; }.category-card.visual-card { grid-template-rows: 128px 1fr; border-color: #e0eae7; border-radius: 12px; box-shadow: 0 6px 18px rgba(20,65,55,.04); }.category-visual { background: linear-gradient(145deg,#e6f3ef,#cce5dc); }.visual-card-2 .category-visual { background: linear-gradient(145deg,#e9f2fa,#d5e5f4); }.visual-card-3 .category-visual { background: linear-gradient(145deg,#f7edeb,#f4d9d4); }.visual-card-4 .category-visual { background: linear-gradient(145deg,#f2f3e9,#e3e5c9); }.visual-card-5 .category-visual { background: linear-gradient(145deg,#eeeaf5,#dfd4ee); }.visual-number { color: var(--forest); font-size: 3rem; }.visual-label { color: var(--forest); background: rgba(255,255,255,.55); border-color: rgba(7,92,72,.14); }.road-line { background: repeating-linear-gradient(to bottom, rgba(7,92,72,.4) 0 18px, transparent 18px 34px); }.category-card-body { padding: 1rem; }.category-card-body h3 { color: #14333e; font-size: 1.05rem; }.category-card-body p { color: #71818a; font-size: .8rem; }.category-card-body .card-meta { margin-top: .8rem; padding-top: .6rem; font-size: .72rem; }.card-action { color: var(--forest); }
.steps-strip { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; gap: .9rem; align-items: start; margin-top: 2rem; padding: 1.45rem; background: #fbfcfc; border: 1px solid #edf1ef; border-radius: 12px; }.step-number { color: var(--red-accent); font-size: 1.7rem; font-weight: 900; }.steps-strip h3 { font-size: 1rem; }.steps-strip p { margin: .35rem 0 .55rem; color: #71818a; font-size: .82rem; }.steps-strip a { color: var(--forest); font-size: .8rem; font-weight: 800; text-decoration: none; }
.road-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.4rem 2rem; color: #fff; background: linear-gradient(90deg, rgba(3,76,57,.95), rgba(4,96,72,.86)), repeating-linear-gradient(145deg, transparent 0 38px, rgba(255,255,255,.12) 39px 42px); border-radius: 11px; }.road-cta h2 { font-size: 1.5rem; }.road-cta p { margin: .2rem 0 0; color: #d1e8df; }.road-cta .button { color: var(--forest); background: #fff; }

.page-heading.catalog-heading, .page-heading.scenic-heading, .category-heading, .lesson-hero { padding: 2rem 0 2.3rem; background: linear-gradient(100deg,#fff 0%,#fff 45%,#eef7f3 100%); border: 0; border-radius: 0; box-shadow: none; }.page-heading h1, .category-heading h1, .lesson-hero h1 { max-width: 720px; color: #102d38; font-size: clamp(2.1rem,4.3vw,3.6rem); }.page-heading p:not(.eyebrow), .category-heading p, .lesson-hero p:not(.eyebrow) { color: #637782; }.breadcrumbs { color: #71818b; }.breadcrumbs a { color: var(--forest); }.category-heading-grid { grid-template-columns: minmax(0,1fr) 320px; }.module-summary { background: var(--forest); }.module-summary strong { color: #fff; }.content-section-head { margin-top: 2.5rem; }.lesson-row { border: 1px solid #e2ebe8; border-left: 3px solid var(--forest); border-radius: 10px; box-shadow: none; }.lesson-index { color: var(--forest); background: var(--soft-green); }.lesson-row-copy p { color: #788891; font-size: .84rem; }.lesson-meta span { background: #f0f5f3; }.lesson-action { color: var(--forest); background: #e7f2ed; }
.lesson-hero { background: linear-gradient(100deg,#fff,#eff8f4); }.lesson-hero-meta span { color: var(--forest); background: var(--soft-green); }.lesson-article { border: 0; box-shadow: none; padding-left: 0; }.article-label { color: var(--forest); }.lesson-content { color: #3c5360; }.lesson-content h2, .lesson-content h3 { color: #112f3a; }.lesson-study-card { background: var(--soft-green); color: #173b37; border: 1px solid #d5e8e0; box-shadow: none; }.lesson-study-card p { color: #68817a; }.lesson-study-card .button-primary { color: #fff; background: var(--forest); }.lesson-study-card .button-secondary { color: var(--forest); }

.quiz-hero { background: linear-gradient(100deg,#fff,#eef8f3); color: #14313a; border-radius: 14px; }.quiz-hero .eyebrow { color: #657b85; background: transparent; }.quiz-hero h1 { color: #102d38; }.quiz-hero p:not(.eyebrow) { color: #667983; }.quiz-hero-stats { background: var(--forest); }.quiz-card { border: 1px solid #e1ebe8; box-shadow: 0 8px 24px rgba(18,63,54,.05); }.quiz-question legend { color: var(--forest); }.answer:has(input:checked) { color: var(--forest); background: var(--soft-green); border-color: #68aa96; }.answer:has(input:checked) .answer-letter { background: var(--forest); }.quiz-wizard-bar { border-color: #deebe5; }.quiz-progress-track i { background: var(--forest); }.quiz-nav .button { background: var(--forest); }.quiz-nav .button-secondary { color: var(--forest); background: #fff; }.result-score { color: var(--forest); background: var(--soft-green); border-color: #c5e2d6; }

.signs-heading { min-height: 255px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(100deg,#fff 0%,#fff 38%,rgba(224,241,236,.5)), repeating-linear-gradient(155deg, transparent 0 38px, rgba(7,92,72,.08) 39px 42px, transparent 43px 82px) !important; }.signs-heading h1 { max-width: 660px; }.sign-page-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 1.2rem; }.sign-sidebar { align-self: start; padding: 1rem; border: 1px solid #e0eae7; border-radius: 11px; }.sign-sidebar h3 { padding: .4rem .2rem .65rem; font-size: .9rem; }.sign-sidebar hr { margin: .8rem 0; border: 0; border-top: 1px solid #e8efed; }.sidebar-filter { display: flex; align-items: center; gap: .6rem; padding: .65rem .45rem; color: #61737d; border-radius: 7px; font-size: .76rem; text-decoration: none; }.sidebar-filter span { flex: 1; }.sidebar-filter b { color: #93a29e; }.sidebar-filter.active { color: var(--forest); background: var(--soft-green); font-weight: 800; }.check-filter { display: flex; gap: .45rem; margin: .45rem 0; color: #667780; font-size: .75rem; }.check-filter input { accent-color: var(--forest); }.sign-toolbar { margin-top: 0; }.search-field { min-height: 44px; border-radius: 8px; }.sign-toolbar .button { min-height: 44px; background: var(--forest); }.sign-filters { margin-bottom: .8rem; }.filter-button { padding: .5rem .75rem; border-radius: 8px; font-size: .78rem; }.filter-button.active { background: var(--forest); border-color: var(--forest); }.sign-grid { grid-template-columns: repeat(4,1fr); gap: .6rem; }.sign-card { grid-template-rows: 145px 1fr; border-radius: 10px; box-shadow: none; }.sign-image { background: #fff; border-bottom: 1px solid #edf1ef; }.sign-copy { padding: .75rem; }.sign-copy h3 { font-size: .78rem; }.sign-copy p { font-size: .68rem; }.sign-code { color: var(--forest); background: var(--soft-green); font-size: .66rem; }
.site-footer { width: min(1320px, calc(100% - 2rem)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; margin: 0 auto; padding: 1.4rem 0 1rem; color: #687a83; border-top: 1px solid #e6eeeb; font-size: .75rem; }.footer-brand strong { display: block; color: var(--forest); font-size: 1.25rem; }.footer-brand small, .footer-brand p { display: block; margin: .15rem 0 0; }.site-footer nav { display: flex; gap: 1.2rem; }.site-footer nav a { color: #405b64; text-decoration: none; }.footer-note { display: grid; justify-items: end; color: var(--forest); }.footer-note span { color: #6a7c83; }

@media (max-width: 900px) { .hero.home-hero { grid-template-columns: 1fr; padding: 2.4rem 2rem; }.hero-device { min-height: 330px; }.quick-links { grid-template-columns: repeat(2,1fr); margin: -1.2rem 0 0; }.sign-page-layout { grid-template-columns: 1fr; }.sign-sidebar { display: none; }.sign-grid { grid-template-columns: repeat(3,1fr); }.site-footer { grid-template-columns: 1fr 1fr; }.site-footer nav { grid-row: 2; margin-top: 1rem; }.footer-note { align-self: center; } }
@media (max-width: 680px) { .brand-copy strong { font-size: 1.2rem; }.main-nav { top: 64px; background: #fff; border-color: #e0eae7; }.main-nav a { box-shadow: none !important; }.hero.home-hero { padding: 2rem 1.2rem 1.6rem; }.home-hero h1 { font-size: 2.45rem; }.hero-device { min-height: 260px; margin-top: 1rem; }.device-window { width: 100%; }.device-phone { right: -1rem; bottom: .2rem; transform: scale(.78) rotate(5deg); }.device-mini-grid { grid-template-columns: repeat(2,1fr); }.quick-links { grid-template-columns: 1fr; margin-top: .7rem; }.steps-strip { grid-template-columns: auto 1fr; }.steps-strip .step-number:nth-of-type(2), .steps-strip .step-number:nth-of-type(3) { margin-top: 1rem; }.road-cta { align-items: flex-start; flex-direction: column; padding: 1.2rem; }.category-heading-grid { grid-template-columns: 1fr; }.sign-grid { grid-template-columns: repeat(2,1fr); }.sign-card { grid-template-rows: 130px 1fr; }.site-footer { grid-template-columns: 1fr; gap: 1rem; }.site-footer nav { grid-row: auto; flex-wrap: wrap; }.footer-note { justify-items: start; }.quiz-hero { padding: 1.4rem; }.quiz-hero-stats { grid-template-columns: repeat(3,1fr); }.quiz-wizard-bar { position: static; } }

/* 2026 visual system — inspired by modern European driving-study platforms */
body { background: #f4f6fa; }
.site-header { background: rgba(7, 18, 42, .97); border-color: rgba(255,255,255,.08); }
.header-inner { min-height: 70px; }
.brand { color: #fff; }
.brand img { width: 40px; height: 40px; padding: 3px; background: #fff; border-radius: 12px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1.02rem; }
.brand-copy small { margin-top: .28rem; color: #8fa7ca; font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.main-nav a { color: #bdc9db; font-size: .91rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(56, 123, 255, .18); }
.header-cta { display: inline-flex; align-items: center; min-height: 40px; padding: .55rem 1rem; color: #07152f; background: #ffdd57; border-radius: 11px; font-weight: 850; text-decoration: none; }
.menu-button { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

.page-shell { padding-top: 1.6rem; }
.home-hero { grid-template-columns: minmax(0, 1.18fr) minmax(280px, .72fr); min-height: 0; padding: clamp(2rem, 5vw, 4.25rem); color: var(--ink); background: radial-gradient(circle at 90% 10%, #e4f4ff 0, transparent 29%), linear-gradient(145deg, #fff 0%, #f7faff 100%); border: 1px solid #dce5f2; border-radius: 26px; box-shadow: 0 20px 60px rgba(16, 39, 76, .08); }
.home-hero::after { width: 340px; height: 340px; right: -190px; top: -190px; border: 55px solid rgba(39, 111, 239, .08); }
.home-hero .eyebrow { color: #1c5ab5; background: #e8f1ff; }
.home-hero h1 { max-width: 720px; color: #101d38; font-size: clamp(2.8rem, 6vw, 5.25rem); }
.home-hero h1 span { display: block; color: #2567d5; }
.home-hero .hero-copy > p { color: #5e6c84; font-size: 1.12rem; }
.home-hero .button-primary { color: #fff; background: #2468d8; }
.hero-focus-card { position: relative; z-index: 1; padding: 1.5rem; color: #fff; background: linear-gradient(150deg, #0b1935, #102d5d); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; box-shadow: 0 24px 55px rgba(7, 22, 51, .22); }
.focus-card-top { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; margin-bottom: 1rem; color: #b9c8df; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .86rem; font-weight: 800; }
.focus-card-top img { flex: 0 0 auto; width: 44px; height: 44px; padding: 4px; object-fit: contain; background: #fff; border-radius: 12px; }
.hero-focus-card > strong { display: block; font-size: 1.28rem; }
.hero-focus-card > p { margin: .5rem 0 1.2rem; color: #aebed7; }
.focus-route { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: .5rem; color: #d7e2f2; font-size: .76rem; font-weight: 800; }
.focus-route i { height: 2px; background: linear-gradient(90deg, #4c82d5, #ffdc57); }
.route-list { display: grid; gap: .85rem; margin-top: 1.1rem; }
.route-item { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: .8rem; color: #aebbd0; }
.route-item i { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: #1e4e97; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; font-style: normal; font-size: .8rem; font-weight: 900; }
.route-item.active { color: #fff; font-weight: 800; }
.route-item.active i { color: #15203b; background: #ffdd57; }
.hero-stats { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .4rem; padding-top: 1.5rem; border-top: 1px solid #dfe6f0; }
.hero-stats .hero-stat { display: grid; grid-template-columns: 1fr; justify-content: center; gap: 0; padding: .1rem 1.4rem; color: #6a778d; background: transparent; border-radius: 0; font-size: .83rem; font-weight: 750; text-align: center; }
.hero-stats .hero-stat + .hero-stat { border-left: 1px solid #dfe6f0; }
.hero-stats .hero-stat strong { grid-row: 1; color: #152341; font-size: 1.7rem; line-height: 1.15; }
.hero-stats .hero-stat span { grid-row: 2; }
.hero-stats .hero-stat small { grid-row: 3; color: #8591a4; font-size: .72rem; font-weight: 650; }

.section-kicker { display: block; margin-bottom: .25rem; color: #2b65bd; font-size: .76rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.category-grid { gap: 1.1rem; }
.category-card.visual-card { min-height: 0; display: grid; grid-template-rows: 158px 1fr; padding: 0; background: #fff; border-radius: 20px; }
.category-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; padding: 1.2rem; color: #fff; background: linear-gradient(145deg, #113064, #2671d8); }
.visual-card-2 .category-visual { background: linear-gradient(145deg, #0d4a56, #18a6a0); }
.visual-card-3 .category-visual { background: linear-gradient(145deg, #4b2c75, #9568d8); }
.visual-card-4 .category-visual { background: linear-gradient(145deg, #723f20, #df8d3c); }
.visual-card-5 .category-visual { background: linear-gradient(145deg, #203651, #59728f); }
.category-visual::before { content: ""; position: absolute; width: 180px; height: 180px; right: -35px; bottom: -110px; border: 24px solid rgba(255,255,255,.12); border-radius: 50%; }
.visual-number { position: relative; z-index: 1; font-size: 3.6rem; font-weight: 950; line-height: .85; letter-spacing: -.08em; opacity: .95; }
.visual-label { position: relative; z-index: 1; padding: .35rem .6rem; background: rgba(4,17,39,.28); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .72rem; font-weight: 850; }
.road-line { position: absolute; left: 51%; top: -15px; width: 5px; height: 120%; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.72) 0 18px, transparent 18px 34px); transform: rotate(23deg); opacity: .5; }
.category-card-body { display: flex; flex-direction: column; padding: 1.25rem; }
.category-card-body h3 { color: #13213d; font-size: 1.24rem; }
.category-card-body p { flex: 1; }
.category-card-body .card-meta { margin-top: 1.2rem; padding-top: .85rem; border-top: 1px solid #edf0f5; }
.card-action { color: #2567c9; }
.feature-card { border: 1px solid #dce6f0; }
.signs-feature { background: linear-gradient(140deg, #e6fbf8, #f8fffe); }
.test-feature { background: linear-gradient(145deg, #07172f, #12366a); }

.page-heading.catalog-heading, .category-heading, .lesson-hero { padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(145deg, #fff, #f7faff); border: 1px solid #dce4ef; border-radius: 24px; box-shadow: 0 15px 45px rgba(19,45,84,.06); }
.page-heading h1, .category-heading h1, .lesson-hero h1 { color: #11203c; font-size: clamp(2.25rem, 5vw, 4rem); }
.category-heading-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.48fr); align-items: end; gap: 2rem; }
.module-summary { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: #0b1b38; border-radius: 16px; }
.module-summary span { display: grid; padding: 1rem .5rem; color: #96a9c8; font-size: .72rem; text-align: center; }
.module-summary span + span { border-left: 1px solid rgba(255,255,255,.1); }
.module-summary strong { color: #fff; font-size: 1.25rem; }
.content-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.count-badge { padding: .42rem .72rem; color: #285fae; background: #e8f1ff; border-radius: 999px; font-size: .8rem; font-weight: 850; }
.lesson-list { gap: .65rem; }
.lesson-row { grid-template-columns: 54px minmax(0,1fr) auto; padding: 1rem 1.2rem; border-radius: 14px; border-left: 4px solid #2c70db; box-shadow: 0 5px 18px rgba(17,42,80,.035); }
.lesson-index { width: 42px; height: 42px; color: #225eb8; background: #e8f1ff; border-radius: 11px; }
.lesson-row-copy h3 { font-size: 1.08rem; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .35rem; color: #7a879a; font-size: .8rem; font-weight: 700; }
.lesson-meta span { padding: .16rem .45rem; background: #f0f3f7; border-radius: 6px; }
.lesson-action { min-width: 94px; padding: .5rem .75rem; color: #40516b; background: #f0f3f7; border-radius: 9px; font-size: .79rem; font-weight: 850; text-align: center; }

.lesson-hero { margin-bottom: 1.2rem; }
.lesson-hero p:not(.eyebrow) { max-width: 760px; color: #64728a; }
.lesson-hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.lesson-hero-meta span { padding: .42rem .65rem; color: #3f5f8c; background: #eaf2ff; border-radius: 8px; font-size: .78rem; font-weight: 800; }
.lesson-layout { grid-template-columns: minmax(0,1fr) 300px; }
.lesson-article { padding: clamp(1.5rem,4vw,3rem); border-radius: 20px; box-shadow: 0 8px 30px rgba(15,42,81,.05); }
.article-label { display: block; margin-bottom: 1.4rem; color: #2c66be; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lesson-content { max-width: 74ch; margin: 0; }
.lesson-study-card { color: #fff; background: linear-gradient(150deg, #081832, #133769); border: 0; box-shadow: 0 18px 40px rgba(8,29,65,.18); }
.lesson-study-card p { color: #b7c6dd; }
.aside-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #15223d; background: #ffdc57; border-radius: 13px; font-size: 1.25rem; }
.lesson-study-card .button-primary { color: #14203b; background: #ffdc57; }

.quiz-shell { max-width: 960px; }
.quiz-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 2rem; margin: .7rem 0 1.2rem; padding: clamp(1.5rem,4vw,3rem); color: #fff; background: radial-gradient(circle at 92% 0, rgba(55,123,241,.35), transparent 35%), linear-gradient(145deg,#07162f,#102f60); border-radius: 24px; }
.quiz-hero .eyebrow { color: #c8dcff; background: rgba(65,130,236,.2); }
.quiz-hero h1 { font-size: clamp(2rem,4.5vw,3.8rem); }
.quiz-hero p:not(.eyebrow) { max-width: 650px; margin-bottom: 0; color: #b8c7dd; }
.quiz-hero-stats { display: grid; grid-template-columns: repeat(3, 88px); overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.quiz-hero-stats span { display: grid; padding: .8rem .5rem; color: #9eb0ca; font-size: .7rem; text-align: center; }
.quiz-hero-stats span + span { border-left: 1px solid rgba(255,255,255,.1); }
.quiz-hero-stats strong { color: #fff; font-size: 1.15rem; }
.quiz-card { border-radius: 18px; box-shadow: 0 9px 30px rgba(13,39,77,.06); }
.quiz-question { scroll-margin-top: 95px; }
.answer { border-width: 1px; border-radius: 12px; }
.answer:has(input:checked) { color: #164d9f; background: #eef5ff; border-color: #3977d3; }
.answer:has(input:checked) .answer-letter { color: #fff; background: #286bd0; }
.quiz-question.needs-answer { border-color: #df6767; box-shadow: 0 0 0 4px rgba(217,67,67,.1); }
.quiz-question.needs-answer::after { content: "Escolhe uma resposta para continuar."; display: block; margin-top: 1rem; color: #b83232; font-weight: 750; }
.quiz-wizard-bar { position: sticky; bottom: 1rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: rgba(255,255,255,.94); border: 1px solid #dce4ef; border-radius: 16px; box-shadow: 0 16px 45px rgba(8,30,65,.15); backdrop-filter: blur(12px); }
.quiz-progress-copy { min-width: 210px; color: #44536b; font-size: .82rem; font-weight: 800; }
.quiz-progress-track { overflow: hidden; height: 7px; margin-top: .45rem; background: #e6ebf2; border-radius: 999px; }
.quiz-progress-track i { display: block; height: 100%; background: #2b70d8; border-radius: inherit; transition: width .25s ease; }
.quiz-nav { display: flex; gap: .55rem; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .home-hero, .category-heading-grid, .quiz-hero { grid-template-columns: 1fr; }
  .hero-stats { grid-column: 1; }
  .quiz-hero-stats { width: 100%; grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 680px) {
  .header-cta { display: none; }
  .main-nav { top: 62px; background: #0b1b38; border-color: rgba(255,255,255,.12); }
  .home-hero { padding: 1.6rem 1.2rem; }
  .home-hero h1 { font-size: 2.55rem; }
  .hero-stats span { padding: .2rem .5rem; }
  .hero-stats strong { font-size: 1.3rem; }
  .category-card.visual-card { grid-template-rows: 138px 1fr; }
  .category-heading-grid { gap: 1.2rem; }
  .lesson-row { grid-template-columns: 44px 1fr; padding: .9rem; }
  .lesson-action { grid-column: 2; justify-self: start; }
  .lesson-layout { grid-template-columns: 1fr; }
  .quiz-wizard-bar { align-items: stretch; flex-direction: column; }
  .quiz-nav { display: grid; grid-template-columns: repeat(2,1fr); }
  .quiz-nav .button:last-child { grid-column: 1 / -1; }
}

/* Final cascade for the webornek direction */
.site-header { background: rgba(255,255,255,.94); border-color: #edf1f0; }
.brand { color: #075c48; }.brand-copy strong { color: #075c48; }.brand-copy strong span { color: #f42a31; }.brand-copy small { color: #54616d; }
.main-nav a { color: #304653; }.main-nav a:hover, .main-nav a[aria-current="page"] { color: #075c48; background: transparent; box-shadow: inset 0 -3px 0 #075c48; }.header-cta { color: #fff; background: #075c48; }
.home-hero { color: #102b36; background: linear-gradient(96deg,#fff 0%,#fff 34%,rgba(255,255,255,.84) 48%,rgba(235,246,245,.2) 100%), linear-gradient(135deg,#eaf4f3,#fff); border: 0; border-radius: 0; box-shadow: none; }
.home-hero::before { content: ""; position: absolute; inset: 0 0 0 42%; z-index: 0; background: repeating-linear-gradient(155deg,transparent 0 38px,rgba(7,92,72,.12) 39px 42px,transparent 43px 82px); opacity: .7; }
.home-hero::after { border-color: rgba(7,92,72,.08); }.home-hero .hero-copy, .home-hero .hero-device { position: relative; z-index: 1; }.home-hero h1 { color: #0e2b35; }.home-hero .hero-copy > p:not(.eyebrow) { color: #586b78; }.home-hero .button-primary { color: #fff; background: #075c48; }.home-hero .eyebrow { color: #667b8b; background: transparent; }.home-hero .eyebrow::after { content: ""; display: block; width: 54px; height: 3px; margin-top: .65rem; background: linear-gradient(90deg,#075c48 0 52%,#f42a31 52%); }
.hero-stats { display: none; }.home-hero .hero-device { min-height: 410px; }.device-window { background: #fff; border-color: #dce9e5; }.device-logo { color: #075c48; }.device-logo span { color: #f42a31; }.device-progress { background: #e8f4ef; }.device-progress i b { background: #075c48; }.device-mini-grid span { color: #075c48; }.device-phone { color: #16433a; }
.quick-links { display: grid; }.quick-links a > strong { color: #075c48; }.quick-links a { color: #173a42; }
.category-card.visual-card { grid-template-rows: 128px 1fr; border-color: #e0eae7; border-radius: 12px; box-shadow: 0 6px 18px rgba(20,65,55,.04); }.category-visual { background: linear-gradient(145deg,#e6f3ef,#cce5dc); }.visual-card-2 .category-visual { background: linear-gradient(145deg,#e9f2fa,#d5e5f4); }.visual-card-3 .category-visual { background: linear-gradient(145deg,#f7edeb,#f4d9d4); }.visual-card-4 .category-visual { background: linear-gradient(145deg,#f2f3e9,#e3e5c9); }.visual-card-5 .category-visual { background: linear-gradient(145deg,#eeeaf5,#dfd4ee); }.visual-number { color: #075c48; }.visual-label { color: #075c48; background: rgba(255,255,255,.55); }.road-line { background: repeating-linear-gradient(to bottom,rgba(7,92,72,.4) 0 18px,transparent 18px 34px); }.category-card-body h3 { color: #14333e; }.category-card-body p { color: #71818a; }.card-action { color: #075c48; }
.steps-strip { background: #fbfcfc; border-color: #edf1ef; }.step-number { color: #f42a31; }.steps-strip a { color: #075c48; }.road-cta { background: linear-gradient(90deg,rgba(3,76,57,.95),rgba(4,96,72,.86)); }
.page-heading.catalog-heading, .page-heading.scenic-heading, .category-heading, .lesson-hero { background: linear-gradient(100deg,#fff 0%,#fff 45%,#eef7f3 100%); border: 0; border-radius: 0; box-shadow: none; }.page-heading h1, .category-heading h1, .lesson-hero h1 { color: #102d38; }.module-summary { background: #075c48; }.lesson-row { border-color: #e2ebe8; border-left-color: #075c48; }.lesson-index { color: #075c48; background: #e8f4ef; }.lesson-action { color: #075c48; background: #e7f2ed; }
.lesson-study-card { color: #173b37; background: #e8f4ef; border-color: #d5e8e0; box-shadow: none; }.lesson-study-card p { color: #68817a; }.lesson-study-card .button-primary { color: #fff; background: #075c48; }
.quiz-hero { color: #14313a; background: linear-gradient(100deg,#fff,#eef8f3); }.quiz-hero .eyebrow { color: #657b85; background: transparent; }.quiz-hero h1 { color: #102d38; }.quiz-hero p:not(.eyebrow) { color: #667983; }.quiz-hero-stats { background: #075c48; }.quiz-question legend { color: #075c48; }.answer:has(input:checked) { color: #075c48; background: #e8f4ef; border-color: #68aa96; }.answer:has(input:checked) .answer-letter { background: #075c48; }.quiz-progress-track i, .quiz-nav .button { background: #075c48; }
.signs-heading { background: linear-gradient(100deg,#fff 0%,#fff 38%,rgba(224,241,236,.5)), repeating-linear-gradient(155deg,transparent 0 38px,rgba(7,92,72,.08) 39px 42px,transparent 43px 82px) !important; }.sign-page-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); }.sign-sidebar { border-color: #e0eae7; }.sidebar-filter.active, .filter-button.active { color: #075c48; background: #e8f4ef; border-color: #e8f4ef; }.sign-grid { grid-template-columns: repeat(4,1fr); }.sign-card { border-color: #e0eae7; }.sign-code { color: #075c48; background: #e8f4ef; }
.site-footer { width: min(1320px,calc(100% - 2rem)); color: #687a83; border-color: #e6eeeb; }.footer-brand strong { color: #075c48; }.footer-brand strong span { color: #f42a31; }
@media (max-width:900px) { .home-hero { grid-template-columns: 1fr; }.sign-page-layout { grid-template-columns: 1fr; }.sign-sidebar { display:none; }.sign-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width:680px) { .home-hero { padding: 2rem 1.2rem 1.6rem; }.home-hero h1 { font-size: 2.45rem; }.home-hero .hero-device { min-height:260px; }.quick-links { grid-template-columns:1fr; }.steps-strip { grid-template-columns:auto 1fr; }.sign-grid { grid-template-columns:repeat(2,1fr); }.sign-card { grid-template-rows:130px 1fr; }.site-footer { grid-template-columns:1fr; } }

/* Header controls copied from the CDL reference: app, language and theme tools */
.header-inner { position: relative; }
.header-tools { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.play-store-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; padding: .35rem .55rem; color: #fff; background: #075c48; border-radius: 8px; text-decoration: none; box-shadow: 0 2px 5px rgba(7,92,72,.16); }
.play-store-link:hover { background: #064c3d; }
.play-store-icon { display: grid; place-items: center; width: 19px; height: 19px; color: #075c48; background: #fbd34d; border-radius: 5px; font-size: .58rem; }
.play-store-copy { display: grid; line-height: 1; }.play-store-copy b { font-size: .68rem; }.play-store-copy small { margin-top: .2rem; color: #c3e3d7; font-size: .56rem; }
.language-control { position: relative; z-index: 30; }.language-button { display: inline-flex; align-items: center; gap: .35rem; min-width: 78px; min-height: 34px; padding: .35rem .55rem; color: #3f505a; background: #fff; border: 1px solid #dfe7e5; border-radius: 7px; font-size: .7rem; font-weight: 800; }.language-button:hover { background: #f4f8f6; }.language-flag { font-size: 1rem; }.language-chevron { color: #8b999d; font-size: .75rem; }
.language-menu { position: absolute; right: 0; top: calc(100% + .45rem); display: none; width: 174px; padding: .35rem; background: #fff; border: 1px solid #dfe7e5; border-radius: 9px; box-shadow: 0 12px 30px rgba(18,53,47,.16); }.language-menu.open { display: grid; }.language-menu button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .6rem; color: #3f505a; background: transparent; border: 0; border-radius: 6px; text-align: left; font-size: .75rem; cursor: pointer; }.language-menu button:hover { color: #075c48; background: #e8f4ef; }.language-menu button span { margin-left: auto; }
.theme-toggle { display: inline-flex; position: relative; align-items: center; justify-content: space-between; width: 50px; height: 26px; padding: 0 5px; color: #66757c; background: #e5ecea; border: 1px solid #d3dfda; border-radius: 999px; font-size: .7rem; cursor: pointer; }.theme-toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(12,36,34,.2); transition: transform .2s ease; }.theme-toggle[aria-checked="true"] { color: #d7e5ff; background: #233759; border-color: #35547f; }.theme-toggle[aria-checked="true"] i { background: #10213d; transform: translateX(24px); }
.menu-button { align-items: center; gap: .35rem; }
.mobile-nav-panel[hidden] { display: none; }

html[data-theme="dark"], html.dark { color-scheme: dark; }
html[data-theme="dark"] body, html.dark body { color: #e7eef4; background: #0c1720; }
html[data-theme="dark"] .site-header, html.dark .site-header { background: rgba(13,27,36,.96); border-color: #263b45; }
html[data-theme="dark"] .brand, html.dark .brand, html[data-theme="dark"] .brand-copy strong, html.dark .brand-copy strong { color: #d9f3e8; }
html[data-theme="dark"] .brand-copy small, html.dark .brand-copy small, html[data-theme="dark"] .main-nav a, html.dark .main-nav a { color: #a9bbc4; }
html[data-theme="dark"] .main-nav a:hover, html[data-theme="dark"] .main-nav a[aria-current="page"], html.dark .main-nav a:hover, html.dark .main-nav a[aria-current="page"] { color: #8ee0bf; background: rgba(47,145,112,.12); box-shadow: inset 0 -3px 0 #60c69f; }
html[data-theme="dark"] .language-button, html.dark .language-button { color: #d8e4e9; background: #152733; border-color: #344c58; }.dark .language-menu { background:#152733; border-color:#344c58; }.dark .language-menu button { color:#d8e4e9; }.dark .language-menu button:hover { background:#204638; }
html[data-theme="dark"] .page-shell, html.dark .page-shell { background: transparent; }
html[data-theme="dark"] .page-heading, html[data-theme="dark"] .category-heading, html[data-theme="dark"] .lesson-hero, html.dark .page-heading, html.dark .category-heading, html.dark .lesson-hero { color: #e7eef4; background: linear-gradient(100deg,#101f2a,#132d2b); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html.dark h1, html.dark h2, html.dark h3 { color: #eef7f5; }
html[data-theme="dark"] .category-card, html[data-theme="dark"] .lesson-row, html[data-theme="dark"] .lesson-article, html[data-theme="dark"] .quiz-card, html[data-theme="dark"] .sign-card, html.dark .category-card, html.dark .lesson-row, html.dark .lesson-article, html.dark .quiz-card, html.dark .sign-card { color: #e7eef4; background: #12232d; border-color: #29434c; }
html[data-theme="dark"] .category-card-body p, html[data-theme="dark"] .lesson-row p, html[data-theme="dark"] .lesson-content, html[data-theme="dark"] .sign-copy p, html.dark .category-card-body p, html.dark .lesson-row p, html.dark .lesson-content, html.dark .sign-copy p { color: #a7bac2; }
html[data-theme="dark"] .quick-links a, html[data-theme="dark"] .steps-strip, html.dark .quick-links a, html.dark .steps-strip { color: #e7eef4; background: #12232d; border-color: #29434c; }
html[data-theme="dark"] .quick-links small, html[data-theme="dark"] .steps-strip p, html.dark .quick-links small, html.dark .steps-strip p { color: #9fb2ba; }
html[data-theme="dark"] .site-footer, html.dark .site-footer { color: #a7bac2; border-color: #29434c; }
html[data-theme="dark"] .main-nav.open { background: #12232d; }

@media (max-width: 1100px) { .play-store-link { display: none; } }
@media (max-width: 680px) { .header-inner { min-height: 64px; }.header-tools { gap: .35rem; }.header-tools .header-cta { display: none; }.language-button { min-width: 38px; padding: .35rem .45rem; }.language-button #languageName, .language-chevron { display: none; }.theme-toggle { width: 46px; }.play-store-link { display: none; }.menu-button { display: inline-flex; order: 3; }.main-nav { top: 64px; left: .7rem; right: .7rem; padding: .55rem; background: #fff; border: 1px solid #dfe7e5; box-shadow: 0 12px 30px rgba(18,53,47,.13); }.main-nav a { text-align: left; border-radius: 7px; }.main-nav.open { display: flex; } }

/* Header-only reset: ReadyToPermit / DMV-style navigation */
.site-header { position: relative; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(15,23,42,.04); backdrop-filter: blur(14px); }
.header-inner { width: min(1180px, calc(100% - 2rem)); min-height: 64px; gap: 1rem; }
.brand { flex: 0 0 auto; gap: .55rem; color: #0f172a; }.brand img { width: 40px; height: 40px; border: 1px solid #dbe3ee; border-radius: 10px; }.brand-copy strong { color: #0f172a; font-size: 1.1rem; letter-spacing: -.04em; }.brand-copy strong span { color: #2563eb; }.brand-copy small { color: #64748b; font-size: .63rem; letter-spacing: 0; }
.main-nav { position: absolute; left: 50%; display: flex; align-items: center; gap: .1rem; transform: translateX(-50%); }.main-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: .45rem .7rem; color: #475569; border-radius: 8px; font-size: .73rem; font-weight: 800; white-space: nowrap; }.main-nav a:hover, .main-nav a[aria-current="page"] { color: #2563eb; background: #eff6ff; box-shadow: none; }
.header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }.play-store-link { display: inline-flex; min-height: 32px; padding: .35rem .55rem; color: #fff; background: #2563eb; border-radius: 8px; }.play-store-link:hover { background: #1d4ed8; }.play-store-icon { color: #1d4ed8; }.play-store-copy b { font-size: .62rem; }.play-store-copy small { color: #dbeafe; font-size: .52rem; }
.language-button { min-height: 32px; min-width: 76px; color: #475569; background: #fff; border-color: #cbd5e1; border-radius: 7px; }.language-menu { border-color: #cbd5e1; box-shadow: 0 12px 28px rgba(15,23,42,.16); }.language-menu button:hover { color: #2563eb; background: #eff6ff; }.theme-toggle { width: 50px; height: 26px; background: #cbd5e1; border-color: #cbd5e1; }
.header-cta { min-height: 36px; padding: .5rem .85rem; color: #fff; background: #059669; border-radius: 8px; font-size: .72rem; }.header-cta:hover { background: #047857; }.menu-button { display: none; }

html[data-theme="dark"] .site-header, html.dark .site-header { background: rgba(15,23,42,.96); border-color: #263652; }.dark .brand, .dark .brand-copy strong { color: #f8fafc; }.dark .brand-copy small, .dark .main-nav a { color: #a8b5c8; }.dark .main-nav a:hover, .dark .main-nav a[aria-current="page"] { color: #93c5fd; background: rgba(37,99,235,.18); }.dark .language-button { color: #e2e8f0; background: #1e293b; border-color: #475569; }.dark .theme-toggle { background: #334155; border-color: #475569; }
@media (max-width: 1050px) { .main-nav { gap: 0; }.main-nav a { padding-inline: .46rem; } }
@media (max-width: 850px) { .play-store-copy { display: none; }.play-store-link { padding-inline: .5rem; } }
@media (max-width: 820px) { .main-nav { display: none; }.menu-button { display: inline-flex; order: 4; min-height: 34px; padding: .45rem .65rem; color: #334155; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .72rem; font-weight: 800; }.main-nav.open { position: absolute; top: calc(100% + .5rem); left: .75rem; right: .75rem; display: flex; align-items: stretch; flex-direction: column; gap: .15rem; padding: .45rem; transform: none; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.14); }.main-nav.open a { justify-content: flex-start; }.header-cta { display: none; }.play-store-link { display: none; } }
@media (max-width: 520px) { .header-inner { width: calc(100% - 1rem); gap: .35rem; }.brand-copy small { display: none; }.brand-copy strong { font-size: .95rem; }.brand img { width: 36px; height: 36px; }.language-button { min-width: 34px; padding-inline: .4rem; }.theme-toggle { width: 44px; }.menu-button { padding-inline: .5rem; }.menu-button span:last-child { display: none; } }

/* Final header details */
.brand img { width: 42px; height: 42px; display: block; padding: 0; background: transparent; border: 0; border-radius: 0; object-fit: contain; }
.brand-copy strong em { color: #64748b; font-size: .7em; font-style: normal; font-weight: 700; letter-spacing: -.02em; }
.language-flag-img { display: block; width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.language-menu button img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.language-menu button span { margin-left: .1rem; }
html[data-theme="dark"] .brand-copy strong em, html.dark .brand-copy strong em { color: #94a3b8; }

/* Exact CDLsite language / theme control geometry */
#header1 { position: relative; z-index: 40; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(226,232,240,.8); backdrop-filter: blur(14px); }
#header1 .header-inner { position: relative; width: min(1152px,calc(100% - 2rem)); height: 64px; min-height: 64px; margin: 0 auto; padding: 0 .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
#header1 .brand { flex-shrink: 0; gap: .5rem; }.brand img { width: 42px; height: 42px; padding: 0; background: transparent; border: 0; border-radius: 0; }.brand-copy strong { font-size: 1.05rem; }.brand-copy strong em { font-size: .72rem; }.brand-copy small { font-size: .58rem; }
#header1 .main-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .2rem; color: #334155; }.main-nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .5rem .7rem; color: #334155; border-radius: 8px; font-size: .72rem; font-weight: 800; text-decoration: none; white-space: nowrap; }.main-nav a:hover, .main-nav a[aria-current="page"] { color: #2563eb; background: #eff6ff; box-shadow: none; }.nav-icon { display: grid; place-items: center; width: 22px; height: 22px; color: #2563eb; background: #eff6ff; border-radius: 6px; font-size: .75rem; }
#header1 .header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }.play-store-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: .35rem .6rem; color: #fff; background: #2563eb; border-radius: 8px; text-decoration: none; }.play-store-icon { color: #2563eb; background: #fcd34d; }.play-store-copy { display: grid; line-height: 1; }.play-store-copy b { font-size: .61rem; }.play-store-copy small { margin-top: .18rem; color: #dbeafe; font-size: .5rem; }
#header2 { position: absolute; top: 0; right: 0; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: .65rem; padding: 0 .9rem; pointer-events: auto; background: rgba(255,255,255,.95); }.lang-selector-wrapper { position: relative; pointer-events: auto; }.lang-select-btn { display: inline-flex; align-items: center; gap: .4rem; min-width: 112px; justify-content: space-between; padding: .38rem .65rem; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; font-size: .68rem; font-weight: 700; cursor: pointer; }.lang-select-btn:hover { background: #f8fafc; border-color: #cbd5e1; }.lang-caret { color: #94a3b8; font-size: .5rem; }.flag-icon-img { display: inline-block; width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.15); vertical-align: middle; }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; width: 260px; display: none; flex-direction: column; z-index: 1100; overflow: hidden; pointer-events: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 16px 35px rgba(15,23,42,.16); }.lang-dropdown.active { display: flex; }.lang-search-box { padding: .5rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }.lang-search-input { width: 100%; padding: .42rem .65rem; color: #334155; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; font-size: .76rem; outline: none; }.lang-list { max-height: 280px; overflow-y: auto; padding: .25rem 0; }.lang-option-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .48rem .85rem; color: #334155; background: transparent; border: 0; cursor: pointer; font-size: .76rem; text-align: left; }.lang-option-btn:hover, .lang-option-btn.active { color: #2563eb; background: #eff6ff; }.lang-option-content { display: flex; align-items: center; gap: .65rem; flex: 1; }.lang-option-btn small { margin-left: auto; color: #94a3b8; font-family: monospace; font-size: .68rem; }.lang-option-btn b { margin-left: .4rem; color: #2563eb; }
#themeSwipeToggle { position: relative; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; width: 50px; height: 26px; padding: 2px; color: inherit; background: #cbd5e1; border: 0; border-radius: 26px; cursor: pointer; }.theme-swipe-toggle .knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .25s ease; z-index: 2; }.theme-swipe-toggle[aria-checked="true"] { background: #334155; }.theme-swipe-toggle[aria-checked="true"] .knob { transform: translateX(24px); background: #1e293b; }
html[data-theme="dark"] #header1, html.dark #header1, html[data-theme="dark"] #header2, html.dark #header2 { background: rgba(15,23,42,.95); border-color: #263652; }html[data-theme="dark"] #header1 .main-nav a, html.dark #header1 .main-nav a { color: #cbd5e1; }html[data-theme="dark"] #header1 .main-nav a:hover, html.dark #header1 .main-nav a[aria-current="page"] { color: #93c5fd; background: rgba(37,99,235,.18); }html[data-theme="dark"] .lang-select-btn, html.dark .lang-select-btn { color: #e2e8f0; background: #1e293b; border-color: #475569; }html[data-theme="dark"] .lang-dropdown, html.dark .lang-dropdown { background: #1e293b; border-color: #475569; }html[data-theme="dark"] .lang-search-box, html.dark .lang-search-box { background: #172033; border-color: #334155; }html[data-theme="dark"] .lang-search-input, html.dark .lang-search-input { color: #e2e8f0; background: #0f172a; border-color: #475569; }html[data-theme="dark"] .lang-option-btn, html.dark .lang-option-btn { color: #e2e8f0; }html[data-theme="dark"] .lang-option-btn:hover, html.dark .lang-option-btn.active { background: rgba(37,99,235,.2); }
@media (max-width: 1180px) { #header1 .main-nav { margin-right: 210px; }.play-store-copy { display: none; } }
@media (max-width: 820px) { #header1 .main-nav { display: none; }.menu-button { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .45rem .65rem; color: #334155; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .72rem; font-weight: 800; }.main-nav.open { position: absolute !important; top: calc(100% + .5rem); left: .75rem !important; right: .75rem; display: flex !important; align-items: stretch; flex-direction: column; gap: .15rem; margin: 0 !important; padding: .45rem; transform: none !important; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.14); }.main-nav.open a { justify-content: flex-start; }.play-store-link { display: none; } #header2 { gap: .4rem; padding: 0 .55rem; }.lang-select-btn { min-width: 54px; justify-content: center; padding: .38rem .5rem; }.lang-name { display: none; } }

/* Final app button and footer treatment */
#header1 .play-store-link { min-height: 40px; gap: .55rem; padding: .42rem .72rem; background: linear-gradient(135deg,#2563eb,#1d4ed8); border: 1px solid rgba(37,99,235,.28); border-radius: 10px; box-shadow: 0 5px 14px rgba(37,99,235,.2); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
#header1 .play-store-link { width: 154px; height: 40px; flex: 0 0 154px; }
#header1 .play-store-link:hover { background: linear-gradient(135deg,#1d4ed8,#1e40af); box-shadow: 0 8px 18px rgba(37,99,235,.28); transform: translateY(-1px); }
#header1 .play-store-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #fff; background: linear-gradient(145deg,#34d399,#059669); border-radius: 7px; font-size: .76rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
#header1 .play-triangle { transform: translateX(1px); }
#header1 .play-store-copy b { font-size: .7rem; letter-spacing: .01em; }.play-store-copy small { margin-top: .22rem; font-size: .55rem; }.play-store-arrow { color: #bfdbfe; font-size: .9rem; line-height: 1; }
#header1 .brand-copy strong { font-size: 1.22rem; }.brand-copy strong em { font-size: .74em; }.brand-copy small { font-size: .6rem; }

.site-footer-updated { width: min(1152px,calc(100% - 2rem)); display: block; margin: 2.4rem auto 0; padding: 0 0 1.25rem; color: #64748b; border-top: 0; }
.footer-topline { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; padding: 1.45rem 1.65rem; color: #fff; background: linear-gradient(105deg,#075c48,#0d8062); border-radius: 16px; box-shadow: 0 14px 30px rgba(7,92,72,.14); }
.footer-kicker { display: block; margin-bottom: .35rem; color: #b8e4d5; font-size: .67rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }.footer-topline h2 { margin: 0 0 .25rem; color: #fff; font-size: clamp(1.2rem,2.2vw,1.65rem); letter-spacing: -.03em; }.footer-topline p:not(.footer-kicker) { margin: 0; color: #d7eee7; font-size: .78rem; }
.footer-start-button { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; padding: .72rem 1rem; color: #075c48; background: #fff; border-radius: 9px; font-size: .75rem; font-weight: 900; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.12); }.footer-start-button span { font-size: 1.1rem; transition: transform .2s ease; }.footer-start-button:hover { color: #064c3d; }.footer-start-button:hover span { transform: translateX(3px); }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 2rem; padding: 0 0 1.55rem; }.footer-brand-mark { display: inline-block; color: #075c48; font-size: 1.35rem; font-weight: 950; letter-spacing: -.055em; text-decoration: none; }.footer-brand-mark span { color: #f42a31; }.footer-brand-mark em { color: #64748b; font-size: .7em; font-style: normal; letter-spacing: -.03em; }.footer-brand-updated p { max-width: 270px; margin: .5rem 0 .85rem; color: #71818a; font-size: .75rem; line-height: 1.55; }.footer-brand-updated small { color: #94a3ad; font-size: .67rem; }
.footer-column { display: grid; align-content: start; gap: .45rem; }.footer-column h3 { margin: .1rem 0 .3rem; color: #173642; font-size: .78rem; }.footer-column a { color: #71818a; font-size: .75rem; text-decoration: none; }.footer-column a:hover { color: #075c48; }.footer-note-updated p { margin: 0; color: #71818a; font-size: .75rem; line-height: 1.65; }.footer-note-updated p strong { color: #173642; }.footer-socials { display: flex; gap: .45rem; margin-top: .7rem; }.footer-socials span { display: grid; place-items: center; width: 28px; height: 28px; color: #075c48; background: #e8f4ef; border-radius: 50%; font-size: .72rem; font-weight: 900; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; color: #94a3ad; border-top: 1px solid #e6eeeb; font-size: .67rem; }.dark .site-footer-updated, html[data-theme="dark"] .site-footer-updated { color: #a7bac2; }.dark .footer-topline, html[data-theme="dark"] .footer-topline { background: linear-gradient(105deg,#064637,#086047); }.dark .footer-brand-mark { color: #a8e4ca; }.dark .footer-brand-mark em { color: #94a3b8; }.dark .footer-column h3, .dark .footer-note-updated p strong { color: #e2f1ed; }.dark .footer-brand-updated p, .dark .footer-brand-updated small, .dark .footer-column a, .dark .footer-note-updated p { color: #a7bac2; }.dark .footer-bottom { border-color: #29434c; }
@media (max-width: 680px) { .footer-topline { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.25rem; }.footer-start-button { width: 100%; justify-content: center; }.footer-main { grid-template-columns: repeat(2,1fr); gap: 1.45rem 1rem; }.footer-brand-updated { grid-column: 1 / -1; }.footer-bottom { flex-direction: column; gap: .35rem; }.play-store-arrow { display: none; } }

/* Keep the Play Store action visible beside the fixed language tools */
#header1 .play-store-link { display: inline-flex; }
#header1 .header-tools { margin-right: 154px; }
@media (min-width: 821px) and (max-width: 1180px) { #header1 .main-nav { left: 43%; } }
@media (min-width: 851px) and (max-width: 1180px) { #header1 .play-store-copy { display: grid; } }
@media (max-width: 820px) { #header1 .header-tools { margin-right: 0; } #header1 .play-store-link { display: none; } }
@media (min-width: 821px) and (max-width: 980px) {
  #header1 .play-store-link { width: 40px; min-width: 40px; flex-basis: 40px; justify-content: center; padding-inline: .42rem; }
  #header1 .play-store-copy, #header1 .play-store-arrow { display: none; }
  #header1 .play-store-icon { margin: 0; }
}

/* CDLsite structure: header1 has its own right-side app action; header2 remains a separate overlay. */
@media (min-width: 821px) {
  #header1 .header-inner { padding-right: 0; }
  #header1 .header-tools { position: static; margin-left: auto; margin-right: 190px; }
  #header2 { right: 0; background: rgba(255,255,255,.95); }
}
@media (min-width: 821px) and (max-width: 980px) {
  #header1 .main-nav { left: 39%; }
  #header1 .header-tools { margin-right: 154px; }
}

/* DMV / ReadyToPermit final layout: one shared shell and a slate footer */
:root { --dmv-navy: #07152f; --dmv-blue: #2563eb; --dmv-slate: #94a3b8; --dmv-line: #263652; }
#header1 .header-inner, .page-shell, .site-footer-updated { width: min(1152px,calc(100% - 2rem)); }
#header1 .header-inner { border-left: none; border-right: none; box-sizing: border-box; }
.page-shell { padding-top: 1.6rem; }
.home-hero { background: linear-gradient(100deg,#fff 0%,#fff 42%,#eef4ff 100%); }
.home-hero::before { background: repeating-linear-gradient(155deg,transparent 0 38px,rgba(37,99,235,.1) 39px 42px,transparent 43px 82px); }.home-hero h1 { color: #07152f; }.home-hero .button-primary { background: #2563eb; }.home-hero .eyebrow::after { background: linear-gradient(90deg,#2563eb 0 52%,#ef4444 52%); }
.quick-links a > strong, .quick-links a b, .text-link, .card-action, .steps-strip a { color: #2563eb; }.quick-links a { border-color: #e2e8f0; }.category-card.visual-card { border-color: #e2e8f0; }.category-visual { background: linear-gradient(145deg,#e5edff,#cbdcff); }.visual-card-2 .category-visual { background: linear-gradient(145deg,#e6f0ff,#d6e4fb); }.visual-card-3 .category-visual { background: linear-gradient(145deg,#edf1fa,#dbe3f2); }.visual-card-4 .category-visual { background: linear-gradient(145deg,#e9effc,#d8e5ff); }.visual-card-5 .category-visual { background: linear-gradient(145deg,#eef2f7,#dce5ef); }.visual-number, .visual-label { color: #2563eb; }.road-line { background: repeating-linear-gradient(to bottom,rgba(37,99,235,.4) 0 18px,transparent 18px 34px); }.module-summary { background: #07152f; }.lesson-row { border-left-color: #2563eb; }.lesson-index { color: #2563eb; background: #dbeafe; }.lesson-action { color: #2563eb; background: #eff6ff; }.steps-strip { border-color: #e2e8f0; }.step-number { color: #2563eb; }.road-cta { background: linear-gradient(105deg,#07152f,#172554); }.signs-heading { background: linear-gradient(100deg,#fff 0%,#fff 38%,#eef4ff 100%) !important; }.sign-code { color: #2563eb; background: #dbeafe; }.quiz-progress-track i, .quiz-nav .button { background: #2563eb; }
.road-cta .button-secondary { color: #2563eb; }

.site-footer-updated { display: block; width: 100%; margin: 2rem 0 0; padding: 0; color: #94a3b8; background: #020817; border: 0; border-radius: 0; }
.site-footer-updated .footer-brand-updated { display: block; }
.site-footer-updated::before { content: ""; display: block; height: 1px; background: #263652; }.site-footer-updated .footer-main, .site-footer-updated .footer-bottom { width: min(1152px,calc(100% - 2rem)); margin: 0 auto; }.site-footer-updated .footer-main { display: grid; grid-template-columns: 1.65fr repeat(3,1fr); gap: 2.5rem; padding: 3.5rem 0 3.2rem; }.site-footer-updated .footer-brand-mark { display: inline-block; color: #e2e8f0; font-size: 1.35rem; font-weight: 950; letter-spacing: -.05em; text-decoration: none; }.site-footer-updated .footer-brand-mark span { color: #2563eb; }.site-footer-updated .footer-brand-mark b { color: #e2e8f0; }.site-footer-updated .footer-brand-mark em { color: #64748b; font-size: .7em; font-style: normal; font-weight: 600; }.site-footer-updated .footer-brand-updated p { max-width: 290px; margin: 1rem 0 0; color: #94a3b8; font-size: .8rem; line-height: 1.65; }.site-footer-updated .footer-brand-updated .footer-slogan { margin-top: .8rem; color: #64748b; font-size: .72rem; }.site-footer-updated .footer-column { display: grid; align-content: start; gap: .7rem; }.site-footer-updated .footer-column h2, .site-footer-updated .footer-mobile-apps h2 { margin: 0 0 .35rem; color: #f8fafc; font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.site-footer-updated .footer-column a { color: #94a3b8; font-size: .78rem; text-decoration: none; }.site-footer-updated .footer-column a:hover { color: #fff; }.site-footer-updated .footer-column p { margin: 0; color: #94a3b8; font-size: .8rem; line-height: 1.7; }.site-footer-updated .footer-mobile-apps { display: block; margin-top: 1.7rem; }.site-footer-updated .footer-app-button { display: inline-flex; align-items: center; gap: .7rem; margin-top: .7rem; padding: .65rem .8rem; color: #fff; background: #0f172a; border: 1px solid #334155; border-radius: 10px; text-decoration: none; transition: border-color .2s ease,background .2s ease; }.site-footer-updated .footer-app-button:hover { background: #172554; border-color: #2563eb; }.footer-app-icon { display: grid; place-items: center; width: 25px; height: 25px; color: #60a5fa; font-size: .8rem; }.footer-app-button span:last-child { display: grid; line-height: 1.1; }.footer-app-button small { color: #64748b; font-size: .55rem; }.footer-app-button strong { color: #fff; font-size: .72rem; }.site-footer-updated .footer-socials { display: flex; gap: .45rem; margin-top: .85rem; }.site-footer-updated .footer-socials span { display: grid; place-items: center; width: 29px; height: 29px; color: #bfdbfe; background: #172554; border-radius: 50%; font-size: .72rem; font-weight: 900; }.site-footer-updated .footer-bottom { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; color: #64748b; border-top: 1px solid #263652; font-size: .67rem; line-height: 1.5; }.site-footer-updated .footer-bottom span:last-child { max-width: 560px; text-align: right; }
@media (max-width: 900px) { .site-footer-updated .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }.site-footer-updated .footer-brand-updated { grid-column: 1 / -1; } }
@media (max-width: 680px) { .page-shell { width: calc(100% - 1rem); }.site-footer-updated { width: calc(100% - 1rem); }.site-footer-updated .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; padding: 2.4rem 1.1rem; }.site-footer-updated .footer-brand-updated { grid-column: 1 / -1; }.site-footer-updated .footer-bottom { flex-direction: column; padding: 1.2rem 1.1rem; }.site-footer-updated .footer-bottom span:last-child { text-align: left; } }

/* Final structural override: header1 and header2 use separate horizontal slots. */
@media (min-width: 821px) {
  #header1 .header-inner { display: grid; grid-template-columns: auto minmax(0,1fr) 154px 190px; align-items: center; justify-content: initial; gap: .75rem; padding: 0 .75rem; }
  #header1 .brand { grid-column: 1; }
  #header1 .main-nav { position: static; grid-column: 2; justify-self: center; transform: none; margin: 0; }
  #header1 .header-tools { position: static; grid-column: 3; justify-self: end; width: 154px; margin: 0; }
  #header1 .play-store-link { width: 154px; flex-basis: 154px; }
}
@media (min-width: 821px) and (max-width: 980px) {
  #header1 .header-inner { grid-template-columns: auto minmax(0,1fr) 40px 154px; }
  #header1 .header-tools, #header1 .play-store-link { width: 40px; }
  #header1 .play-store-link { flex-basis: 40px; }
}
@media (max-width: 820px) {
  #header1 .header-inner { display: flex; padding: 0 .75rem; }
  #header1 .header-tools { position: static; width: auto; margin: 0 0 0 auto; }
}

/* Final RumoCarta footer palette and column balance. */
.site-footer-updated .footer-main { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2rem; }
.site-footer-updated .footer-brand-updated { grid-column: span 2; }
.site-footer-updated .footer-independent { margin-top: .8rem !important; color: #64748b !important; font-size: .72rem !important; }
.site-footer-updated .footer-column a:hover { color: #60a5fa; }
.site-footer-updated .footer-app-icon { color: #34d399; }
@media (max-width: 900px) {
  .site-footer-updated .footer-main { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .site-footer-updated .footer-brand-updated { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .site-footer-updated .footer-main { grid-template-columns: 1fr 1fr; }
}

/* Mobile polish: keep the menu separate from the language/theme controls. */
@media (max-width: 820px) {
  #header1 .header-tools { position: absolute; right: 6.7rem; margin: 0; }
  #header1 .header-inner { padding-right: .75rem; }
  #header2 { right: 0; }
}

@media (max-width: 680px) {
  .home-blog-slider { border-radius: 16px; touch-action: pan-y; }
  .home-slide { padding: 1.5rem 1.2rem 3.2rem; }
  .home-category-grid { gap: .8rem; }
  .simple-category-card { border-radius: 14px; }
  .simple-category-image { height: 122px; }
  .simple-category-copy { padding: .9rem; }
  .site-footer-updated .footer-main { gap: 1.5rem 1rem; padding-top: 2rem; padding-bottom: 2rem; }
  .site-footer-updated .footer-column a, .site-footer-updated .footer-column p { font-size: .72rem; }
}

.mobile-app-cta, .mobile-app-cta-spacer { display: none; }
@media (max-width: 680px) {
  .mobile-app-cta-spacer { display: block; height: 4.25rem; }
  .mobile-app-cta { position: fixed; left: 50%; bottom: calc(.55rem + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: .6rem; width: min(340px, calc(100% - 1.25rem)); min-height: 2.75rem; padding: .35rem .65rem; color: #fff; background: linear-gradient(135deg,#2f6ff0 0%,#2563eb 100%); border: 1px solid rgba(147,197,253,.5); border-radius: 999px; box-shadow: 0 8px 20px rgba(15,35,75,.25), 0 2px 5px rgba(15,35,75,.12); text-decoration: none; transform: translateX(-50%); }
  .mobile-app-cta::before { content: ''; position: absolute; inset: 1px; border: 1px solid rgba(255,255,255,.13); border-radius: inherit; pointer-events: none; }
  .mobile-app-cta-icon { position: relative; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: 0 0 1.9rem; color: #ffdf5b; background: transparent; border: 0; border-radius: 0; box-shadow: none; font-size: 1.28rem; line-height: 1; }
  .mobile-app-cta-copy { position: relative; display: grid; flex: 1; line-height: 1.1; }
  .mobile-app-cta-copy b { font-size: .72rem; font-weight: 850; }
  .mobile-app-cta-copy small { margin-top: .08rem; color: #dbeafe; font-size: .56rem; font-weight: 650; }
  .mobile-app-cta-arrow { position: relative; color: #dbeafe; font-size: 1rem; margin-left: auto; }
}

.mobile-menu-settings { display: none; }
@media (max-width: 820px) {
  #header2 { display: none; }
  #header1 .header-tools { right: .75rem; }
  .mobile-menu-settings { display: flex; align-items: stretch; gap: .45rem; margin-top: .35rem; padding: .65rem .45rem .25rem; border-top: 1px solid #e2e8f0; }
  .mobile-menu-settings-label { display: none; }
  .mobile-menu-settings .lang-selector-wrapper { position: relative; flex: 1 1 auto; min-width: 0; }
  .mobile-menu-settings .lang-select-btn { width: 100%; min-width: 0; min-height: 38px; justify-content: flex-start; padding: .42rem .55rem; }
  .mobile-menu-settings .lang-name { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-menu-settings .lang-dropdown { position: fixed; top: auto; left: .75rem; right: .75rem; width: auto; max-width: none; max-height: min(60vh, 380px); }
  .mobile-menu-settings #themeSwipeToggle { flex: 0 0 50px; align-self: center; }
  .site-footer-updated { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; overflow: hidden; box-sizing: border-box; }
  .site-footer-updated .footer-main, .site-footer-updated .footer-bottom { width: calc(100% - 2rem); max-width: calc(100% - 2rem); box-sizing: border-box; }
}

html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 680px) {
  .mobile-app-cta-copy { min-width: 0; white-space: nowrap; }
  .mobile-app-cta-copy b { font-size: .68rem; }
  .mobile-app-cta-arrow { flex: 0 0 auto; }
}

/* Homepage redesign: focused DMV-style navy and blue system. */
.homepage-hero-new { grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); min-height: 470px; padding: clamp(2rem,5vw,4rem); color: #0f172a; background: linear-gradient(120deg,#ffffff 0%,#f8fbff 52%,#eaf2ff 100%); border: 1px solid #dbe5f2; border-radius: 24px; box-shadow: 0 18px 55px rgba(15,35,75,.08); }
.homepage-hero-new::before { content: ""; position: absolute; inset: 0 0 0 45%; opacity: .8; background: radial-gradient(circle at 70% 30%,rgba(37,99,235,.14),transparent 35%), repeating-linear-gradient(145deg,transparent 0 46px,rgba(37,99,235,.08) 47px 49px,transparent 50px 96px); }
.homepage-hero-new::after { width: 390px; height: 390px; right: -190px; top: -205px; border: 58px solid rgba(37,99,235,.08); }
.homepage-hero-new .hero-copy { position: relative; z-index: 1; }.homepage-hero-new .eyebrow { padding: 0; color: #2563eb; background: transparent; font-size: .7rem; letter-spacing: .16em; }.homepage-hero-new .eyebrow::after { content: ""; display: block; width: 48px; height: 3px; margin-top: .7rem; background: #2563eb; }.homepage-hero-new h1 { max-width: 650px; margin-top: 1.1rem; color: #07152f; font-size: clamp(2.6rem,5.1vw,4.8rem); line-height: 1.02; }.homepage-hero-new .hero-copy > p:not(.eyebrow) { max-width: 570px; color: #64748b; font-size: 1rem; line-height: 1.7; }.homepage-hero-new .button-primary { color: #fff; background: #2563eb; box-shadow: 0 8px 18px rgba(37,99,235,.2); }.homepage-hero-new .button-secondary { color: #0f172a; border-color: #d5dfed; }.homepage-hero-new .hero-benefits { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }.homepage-hero-new .hero-benefits span { display: grid; gap: .1rem; color: #2563eb; }.homepage-hero-new .hero-benefits b { font-size: 1.35rem; line-height: 1; }.homepage-hero-new .hero-benefits small { color: #64748b; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.hero-study-panel { position: relative; z-index: 1; max-width: 470px; justify-self: end; padding: 1.4rem; color: #e2e8f0; background: #07152f; border: 1px solid #1e3a68; border-radius: 20px; box-shadow: 0 25px 55px rgba(7,21,47,.22); }.hero-study-top { display: flex; align-items: center; justify-content: space-between; color: #93c5fd; font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.hero-panel-dot { color: #60a5fa; font-size: .75rem; }.hero-study-panel h2 { margin: 1.45rem 0 .4rem; color: #fff; font-size: 2rem; }.hero-study-panel > p { margin: 0 0 1.2rem; color: #a8b6cf; font-size: .82rem; line-height: 1.6; }.hero-study-list { display: grid; gap: .55rem; }.hero-study-list a { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: .7rem; padding: .72rem; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(147,197,253,.14); border-radius: 11px; text-decoration: none; }.hero-study-list a:hover { background: rgba(37,99,235,.22); border-color: rgba(147,197,253,.35); }.hero-study-icon { display: grid; place-items: center; width: 31px; height: 31px; color: #bfdbfe; background: #1d4ed8; border-radius: 8px; font-size: .68rem; font-weight: 900; }.hero-study-list b, .hero-study-list small { display: block; }.hero-study-list b { font-size: .78rem; }.hero-study-list small { margin-top: .16rem; color: #94a3b8; font-size: .67rem; }.hero-study-list strong { color: #60a5fa; }
.homepage-hero-new + .quick-links { grid-template-columns: repeat(3,1fr); margin: -1.35rem 2.2rem 0; }.homepage-hero-new + .quick-links a { min-height: 74px; border-color: #dbe5f2; box-shadow: 0 10px 25px rgba(15,35,75,.08); }.homepage-hero-new + .quick-links a > strong { display: grid; place-items: center; width: 31px; height: 31px; color: #fff; background: #2563eb; border-radius: 9px; font-size: .67rem; }.homepage-hero-new + .quick-links b { color: #0f172a; }.homepage-hero-new + .quick-links small { color: #64748b; }
.homepage-guides { margin-top: 3.8rem; }.homepage-guides .section-head { margin-bottom: 1.2rem; }.homepage-guides .section-kicker { color: #2563eb; }.homepage-guides .section-head h2 { color: #07152f; }.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }.guide-card { position: relative; min-height: 235px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.35rem; border: 1px solid #dbe5f2; border-radius: 16px; text-decoration: none; overflow: hidden; }.guide-card::after { content: ""; position: absolute; right: -35px; bottom: -55px; width: 150px; height: 150px; border: 20px solid rgba(37,99,235,.12); border-radius: 50%; }.guide-card-number { color: #2563eb; font-size: 2.4rem; font-weight: 950; letter-spacing: -.08em; line-height: 1; }.guide-card-type { margin-top: .75rem; color: #2563eb; font-size: .66rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }.guide-card h3 { max-width: 270px; margin: .55rem 0 .35rem; color: #0f172a; font-size: 1.12rem; }.guide-card p { max-width: 290px; margin: 0; color: #64748b; font-size: .77rem; line-height: 1.55; }.guide-card strong { margin-top: auto; padding-top: 1rem; color: #2563eb; font-size: .76rem; }.guide-card-blue { background: #eff6ff; }.guide-card-slate { background: #f1f5f9; }.guide-card-light { background: #fff; }.guide-card-slate .guide-card-number, .guide-card-slate .guide-card-type, .guide-card-slate strong { color: #475569; }.guide-card-light .guide-card-number { color: #0f172a; }.guide-card:hover { border-color: #93c5fd; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,35,75,.08); }
@media (max-width: 900px) { .homepage-hero-new { grid-template-columns: 1fr; }.hero-study-panel { justify-self: stretch; max-width: none; }.guide-grid { grid-template-columns: 1fr 1fr; }.guide-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .homepage-hero-new { grid-template-columns: 1fr; padding: 1.6rem 1.15rem; }.homepage-hero-new h1 { font-size: 2.55rem; }.homepage-hero-new + .quick-links { grid-template-columns: 1fr; margin: .75rem 0 0; }.homepage-hero-new .hero-benefits { gap: 1rem; }.hero-study-panel { padding: 1rem; }.guide-grid { grid-template-columns: 1fr; }.guide-card:last-child { grid-column: auto; }.homepage-guides .section-head { align-items: flex-start; flex-direction: column; } }

/* RumoCarta brand pattern: navy + blue only. Remove the old green/gray accents. */
#header1 .brand-copy strong { color: #0f172a; }
#header1 .brand-copy strong span { color: #2563eb; }
#header1 .brand-copy strong em { color: #2563eb; }
.site-footer-updated .footer-brand-mark span { color: #e2e8f0; }
.site-footer-updated .footer-brand-mark b { color: #2563eb; }
.site-footer-updated .footer-brand-mark em { color: #60a5fa; }
.site-footer-updated .footer-app-icon { color: #60a5fa; }

/* Requested header1 alignment */
@media (min-width: 821px) {
  #header1 .header-tools { right: 2px; position: absolute; margin: 0; }
}

/* Center the header1 category navigation against the full header shell. */
@media (min-width: 821px) {
  #header1 .main-nav { position: absolute; left: 50%; transform: translateX(-50%); grid-column: auto; justify-self: auto; }
}

/* Simple homepage: article slider, ad space and image-led category cards. */
.homepage-simple { padding-top: 2rem; }
.home-top-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(220px,1fr); gap: 1.15rem; align-items: stretch; }
.home-blog-slider { position: relative; min-height: 360px; overflow: hidden; background: #07152f; border-radius: 14px; }
.home-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(180px,.9fr); align-items: center; gap: 1rem; padding: 2.2rem; color: #fff; opacity: 0; transform: translateX(16px); transition: opacity .35s ease,transform .35s ease; pointer-events: none; }
.home-slide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.home-slide { isolation: isolate; cursor: pointer; }
.home-slide::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg,rgba(7,21,47,.96) 0%,rgba(7,21,47,.86) 34%,rgba(7,21,47,.42) 64%,rgba(7,21,47,.14) 100%); }
.slide-content { position: relative; z-index: 2; max-width: 480px; }.slide-kicker { color: #93c5fd; font-size: .65rem; font-weight: 900; letter-spacing: .14em; }.slide-content h1,.slide-content h2 { max-width: 470px; margin: .8rem 0 .7rem; color: #fff; font-size: clamp(1.85rem,3.2vw,3rem); line-height: 1.05; letter-spacing: -.045em; }.slide-content p { max-width: 390px; margin: 0 0 1.25rem; color: #e2e8f0; font-size: .86rem; line-height: 1.6; }.slide-link { display: inline-flex; gap: .5rem; align-items: center; color: #dbeafe; font-size: .78rem; font-weight: 850; text-decoration: none; }.slide-link span { transition: transform .2s; }.slide-link:hover span { transform: translateX(4px); }
.slide-art { position: relative; justify-self: end; width: min(250px,100%); aspect-ratio: 1/1; border-radius: 50%; background: radial-gradient(circle,#2563eb 0 34%,transparent 35%),linear-gradient(145deg,#172554,#0f3b83); box-shadow: 0 15px 40px rgba(0,0,0,.22); }.slide-art::before,.slide-art::after { content: ''; position: absolute; border: 1px solid rgba(147,197,253,.3); border-radius: 50%; }.slide-art::before { inset: 12%; }.slide-art::after { inset: 25%; }.slide-art span { position: absolute; top: 14%; left: 17%; color: #bfdbfe; font-size: 1.5rem; font-weight: 900; }.slide-art i { position: absolute; left: 18%; right: 18%; bottom: 23%; height: 8px; background: #bfdbfe; border-radius: 10px; transform: rotate(-24deg); }.slide-art-sign { background: radial-gradient(circle,#f8fafc 0 26%,transparent 27%),linear-gradient(145deg,#334155,#0f172a); }.slide-art-sign b,.slide-art-test b { position: absolute; inset: 0; display: grid; place-items: center; color: #ef4444; font-size: 3.5rem; z-index: 1; }.slide-art-sign i { background: #ef4444; transform: rotate(45deg); }.slide-art-test { background: radial-gradient(circle,#34d399 0 26%,transparent 27%),linear-gradient(145deg,#164e63,#0f172a); }.slide-art-test b { color: #fff; font-size: 3rem; }.slide-art-test i { background: #34d399; transform: rotate(18deg); }
.slider-controls { position: absolute; right: 1.3rem; bottom: 1.1rem; z-index: 4; display: flex; align-items: center; gap: .55rem; color: #94a3b8; font-size: .66rem; }.slider-controls b { color: #fff; }.slider-controls button { width: 28px; height: 28px; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 7px; cursor: pointer; }.slider-controls button:hover { background: #2563eb; }
.home-ad-box { display: grid; place-items: center; min-height: 310px; color: #94a3b8; background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 14px; font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 3rem 0 1.1rem; }.home-section-head h2 { margin: .35rem 0 0; color: #07152f; font-size: 2rem; letter-spacing: -.045em; }.home-section-head .section-kicker { color: #2563eb; font-size: .63rem; font-weight: 900; letter-spacing: .14em; }.home-section-head .text-link { color: #2563eb; font-size: .75rem; font-weight: 850; text-decoration: none; }
.home-category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }.simple-category-card { overflow: hidden; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; box-shadow: 0 5px 18px rgba(15,35,75,.045); transition: transform .2s,box-shadow .2s,border-color .2s; }.simple-category-card:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: 0 12px 26px rgba(15,35,75,.09); }.simple-category-image { position: relative; height: 135px; overflow: hidden; background: linear-gradient(135deg,#dbeafe,#eff6ff); }.simple-category-image::before { content: ''; position: absolute; width: 230px; height: 230px; right: -55px; bottom: -145px; border: 34px solid rgba(37,99,235,.22); border-radius: 50%; }.simple-category-image::after { content: ''; position: absolute; left: 0; right: 0; bottom: 24px; height: 2px; background: rgba(37,99,235,.23); transform: rotate(-7deg); }.simple-category-image span { position: absolute; top: .85rem; left: 1rem; color: #2563eb; font-size: 2rem; font-weight: 950; letter-spacing: -.08em; }.simple-category-image b { position: absolute; right: 1rem; top: 1rem; padding: .3rem .45rem; color: #1d4ed8; background: rgba(255,255,255,.64); border-radius: 5px; font-size: .58rem; letter-spacing: .08em; }.simple-category-image i { position: absolute; z-index: 2; right: 24%; bottom: 25px; width: 48px; height: 22px; background: #07152f; border-radius: 7px 9px 4px 4px; box-shadow: 15px 0 0 -7px #07152f; }.simple-category-image-2 { background: linear-gradient(135deg,#e0e7ff,#eef2ff); }.simple-category-image-2 i { background: #4f46e5; box-shadow: 15px 0 0 -7px #4f46e5; }.simple-category-image-3 { background: linear-gradient(135deg,#e0f2fe,#f0f9ff); }.simple-category-image-3 i { background: #0891b2; box-shadow: 15px 0 0 -7px #0891b2; }.simple-category-image-4 { background: linear-gradient(135deg,#dbeafe,#f0fdf4); }.simple-category-image-4 i { background: #059669; box-shadow: 15px 0 0 -7px #059669; }.simple-category-image-5 { background: linear-gradient(135deg,#f1f5f9,#e0f2fe); }.simple-category-image-5 i { background: #475569; box-shadow: 15px 0 0 -7px #475569; }.simple-category-image-6 { background: linear-gradient(135deg,#ede9fe,#eff6ff); }.simple-category-image-6 i { background: #7c3aed; box-shadow: 15px 0 0 -7px #7c3aed; }.simple-category-copy { padding: 1rem; }.simple-category-copy h3 { margin: 0; color: #0f172a; font-size: .96rem; line-height: 1.3; }.simple-category-copy p { display: -webkit-box; overflow: hidden; min-height: 2.45rem; margin: .45rem 0 .85rem; color: #64748b; font-size: .72rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.simple-category-copy > span { display: flex; justify-content: space-between; color: #64748b; font-size: .68rem; font-weight: 750; }.simple-category-copy strong { color: #2563eb; font-size: 1rem; }
.home-stats { display: grid; grid-template-columns: repeat(3,auto) 1fr; align-items: center; gap: 1.2rem; margin-top: 2rem; padding: 1rem 1.2rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 11px; }.home-stats div { display: flex; align-items: baseline; gap: .35rem; }.home-stats strong { color: #07152f; font-size: 1.15rem; }.home-stats span { color: #64748b; font-size: .68rem; }.home-stats a { justify-self: end; color: #2563eb; font-size: .75rem; font-weight: 850; text-decoration: none; }.home-stats a span { margin-left: .35rem; color: #2563eb; }
.site-footer-updated .footer-email { display: inline-block; margin-top: .4rem; color: #60a5fa !important; font-size: .75rem !important; }
@media (max-width: 900px) { .home-top-grid { grid-template-columns: 1fr; }.home-ad-box { min-height: 90px; }.home-category-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px) { .homepage-simple { padding-top: 1rem; }.home-slide { grid-template-columns: 1fr; padding: 1.35rem; }.slide-art { position: absolute; right: -55px; bottom: -50px; width: 200px; opacity: .55; }.slide-content { max-width: 82%; }.slide-content h1,.slide-content h2 { font-size: 1.8rem; }.home-blog-slider { min-height: 340px; }.home-section-head { align-items: flex-start; flex-direction: column; margin-top: 2rem; }.home-category-grid { grid-template-columns: 1fr; }.home-stats { grid-template-columns: repeat(3,1fr); gap: .45rem; }.home-stats a { grid-column: 1 / -1; justify-self: start; } }

/* Keep the footer note readable on the dark footer surface. */
.site-footer-updated .footer-note-updated p { color: #94a3b8; }
.site-footer-updated .footer-note-updated p strong { color: #f8fafc; }
.site-footer-updated .footer-note-updated .footer-independent { color: #94a3b8 !important; }

/* Give longer category summaries one extra line without changing card alignment. */
.simple-category-copy p { -webkit-line-clamp: 3; min-height: 3.1rem; }

.slide-photo { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; min-width: 100%; min-height: 100%; border-radius: 0; background-position: center; background-size: cover; }
.home-topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.home-topic-card { display: grid; grid-template-columns: 45px 1fr; gap: .8rem; min-height: 126px; padding: 1rem; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; box-shadow: 0 5px 18px rgba(15,35,75,.045); transition: transform .2s,box-shadow .2s,border-color .2s; }
.home-topic-card:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: 0 12px 26px rgba(15,35,75,.09); }
.topic-number { color: #2563eb; font-size: 1.6rem; font-weight: 950; letter-spacing: -.08em; }
.home-topic-card h3 { margin: 0; color: #0f172a; font-size: .9rem; line-height: 1.25; }
.home-topic-card p { margin: .4rem 0 .7rem; color: #64748b; font-size: .72rem; line-height: 1.45; }
.home-topic-card div > span { display: flex; justify-content: space-between; color: #64748b; font-size: .68rem; font-weight: 750; }.home-topic-card strong { color: #2563eb; font-size: 1rem; }
.home-ad-box > div { display: grid; justify-items: center; gap: .55rem; padding: 1.2rem; text-align: center; }.home-ad-box strong { color: #334155; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }.home-ad-box span { max-width: 210px; color: #64748b; font-size: .72rem; line-height: 1.45; }.ad-button { display: inline-flex; padding: .6rem .8rem; color: #fff; background: #2563eb; border-radius: 7px; font-size: .7rem; font-weight: 850; text-decoration: none; }.ad-button:hover { background: #1d4ed8; }.ad-email { color: #2563eb; font-size: .7rem; font-weight: 750; text-decoration: none; }
.blog-shell .page-heading { margin-bottom: 1.2rem; }.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }.blog-card { overflow: hidden; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; text-decoration: none; box-shadow: 0 5px 18px rgba(15,35,75,.045); }.blog-card img { display: block; width: 100%; height: 170px; object-fit: cover; }.blog-card > div { padding: 1rem; }.blog-card h2 { margin: .4rem 0 .5rem; color: #0f172a; font-size: 1rem; line-height: 1.25; }.blog-card > div > p:not(.eyebrow) { color: #64748b; font-size: .75rem; line-height: 1.5; }.blog-card strong { color: #2563eb; font-size: .72rem; }.blog-article { max-width: 840px; margin: 0 auto; padding-bottom: 2rem; }.blog-hero-image { display: block; width: 100%; max-height: 430px; object-fit: cover; border-radius: 16px; margin-bottom: 1.5rem; }.blog-article h1 { max-width: 760px; margin: .5rem 0 .8rem; color: #07152f; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.05; }.blog-lead { max-width: 700px; color: #64748b; font-size: 1.05rem; line-height: 1.65; }
@media (max-width: 900px) { .home-topic-grid, .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .home-slide { grid-template-columns: 1fr; padding: 1.5rem; }.home-blog-slider { min-height: 340px; }.home-slide::after { background: linear-gradient(90deg,rgba(7,21,47,.94) 0%,rgba(7,21,47,.7) 58%,rgba(7,21,47,.22) 100%); }.slide-photo { position: absolute; inset: 0; width: auto; height: auto; opacity: 1; }.home-topic-grid, .blog-grid { grid-template-columns: 1fr; }.home-topic-card { min-height: 112px; }.blog-card img { height: 150px; } }

@media (prefers-reduced-motion: reduce) {
  .home-slide { transition: none; }
  .simple-category-card, .slide-link span { transition: none; }
}

/* Homepage category photography */
.simple-category-image { background-position: center; background-size: cover; }
.simple-category-image::before { inset: 0; width: auto; height: auto; right: auto; bottom: auto; border: 0; border-radius: 0; background: transparent; }
.simple-category-image span { z-index: 1; color: #fff; text-shadow: 0 2px 12px rgba(7,21,47,.5); }
.simple-category-image b { z-index: 1; color: #fff; background: rgba(7,21,47,.54); }
.simple-category-image i { display: none; }
.ad-email { font-size: .58rem; font-weight: 650; }

/* Reusable sponsored driving-school placement. */
.homepage-simple .home-section-head { margin-top: .35rem; }
.school-ad-module,
.test-school-wrap,
.lesson-school-ad-wrap,
.school-directory-promo {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.school-ad-module { min-height: 0; margin-top: 1.5rem; padding: 1.2rem; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 12px 30px rgba(15,35,75,.055); }
.school-ad-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.school-ad-kicker { color: #2563eb; font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.school-ad-heading h2 { margin: .35rem 0 .25rem; color: #07152f; font-size: 1.25rem; letter-spacing: -.03em; }
.school-ad-heading p { margin: 0; color: #64748b; font-size: .76rem; }
.school-ad-badge { flex-shrink: 0; padding: .35rem .55rem; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; font-size: .62rem; font-weight: 800; }
.school-ad-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 1rem; }
.school-ad-layout { align-items: stretch; }
.school-ad-card { min-height: 0; }
.school-ad-reserved { min-height: 0; }
.school-ad-card { overflow: hidden; border: 1px solid #dbe4ef; border-radius: 13px; background: #fff; }
.school-ad-card-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .9rem; color: #065f46; background: #ecfdf5; border-left: 4px solid #10b981; font-size: .64rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.school-ad-card-top b { color: #64748b; font-size: .58rem; font-weight: 750; letter-spacing: .02em; }
.school-ad-card-body { padding: 1rem; }
.school-ad-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.school-ad-card h3 { margin: 0; color: #0f172a; font-size: 1.05rem; }
.school-ad-location { margin: .25rem 0 0; color: #64748b; font-size: .7rem; }
.school-ad-verified { padding: .25rem .4rem; color: #047857; background: #ecfdf5; border-radius: 5px; font-size: .58rem; font-weight: 800; white-space: nowrap; }
.school-ad-rating { display: flex; align-items: center; gap: .45rem; margin-top: .85rem; font-size: .72rem; }.school-ad-rating span { color: #f59e0b; letter-spacing: .08em; }.school-ad-rating strong { color: #0f172a; }.school-ad-rating small { color: #94a3b8; }
.school-ad-copy { margin: .75rem 0; color: #64748b; font-size: .72rem; line-height: 1.55; }
.school-ad-tags { display: flex; flex-wrap: wrap; gap: .35rem; }.school-ad-tags span { padding: .25rem .4rem; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; font-size: .6rem; }
.school-ad-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #edf0f5; }
.school-ad-contact { display: inline-flex; flex: 1 1 220px; align-items: center; gap: .55rem; padding: .6rem .7rem; color: #fff; background: #059669; border-radius: 9px; text-decoration: none; }.school-ad-contact > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; background: rgba(255,255,255,.14); border-radius: 7px; }.school-ad-contact small,.school-ad-contact strong { display: block; }.school-ad-contact small { color: #d1fae5; font-size: .56rem; }.school-ad-contact strong { margin-top: .1rem; font-size: .72rem; }
.school-ad-directory { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: .6rem .75rem; color: #fff; background: #0f172a; border-radius: 9px; font-size: .68rem; font-weight: 800; text-decoration: none; }.school-ad-directory:hover { background: #2563eb; }
.school-ad-reserved { display: grid; place-items: center; min-height: 360px; padding: 1.5rem; text-align: center; background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 13px; }.school-ad-reserved > div { max-width: 250px; }.school-ad-megaphone { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto; color: #2563eb; background: #dbeafe; border-radius: 12px; font-size: 1.15rem; }.school-ad-reserved h3 { margin: .65rem 0 .3rem; color: #475569; font-size: .95rem; }.school-ad-reserved p { margin: 0; color: #64748b; font-size: .7rem; line-height: 1.5; }.school-ad-reserved a { display: inline-flex; align-items: center; gap: .3rem; margin-top: .85rem; padding: .55rem .75rem; color: #fff; background: #2563eb; border-radius: 7px; font-size: .67rem; font-weight: 800; text-decoration: none; }.school-ad-reserved small { display: block; margin-top: .55rem; color: #64748b; font-size: .59rem; }
@media (max-width: 760px) { .school-ad-layout { grid-template-columns: 1fr; }.school-ad-card { min-height: 0; }.school-ad-reserved { min-height: 190px; } }
@media (max-width: 520px) { .school-ad-module { padding: 1rem; }.school-ad-heading { flex-direction: column; }.school-ad-card-title-row { flex-direction: column; }.school-ad-actions { flex-direction: column; }.school-ad-contact,.school-ad-directory { width: 100%; justify-content: center; } }

/* Source layout: three-column sponsor row, school 1 column + ad space 2 columns. */
.school-ad-card-title-row h3 { margin: 0; color: #0f172a; font-size: 1.05rem; }
.school-ad-card-title-row h3 a { color: inherit; text-decoration: none; }
.school-ad-example { flex-shrink: 0; padding: .25rem .45rem; color: #64748b; background: #f1f5f9; border-radius: 4px; font-size: .58rem; }
.school-ad-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.school-ad-meta span { padding: .25rem .42rem; color: #475569; background: #f1f5f9; border-radius: 999px; font-size: .6rem; }
.school-ad-meta span:first-child { color: #047857; background: #ecfdf5; }
.school-ad-address { margin-top: .75rem; color: #475569; font-size: .7rem; }
.school-ad-email { margin-top: .55rem; color: #64748b; font-size: .62rem; font-weight: 700; }
.school-ad-card-top { min-height: 42px; }

/* Horizontal school-directory promo from the DMV home-page composition. */
.school-directory-promo { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; min-height: 168px; margin-top: 1.6rem; padding: 2rem 2.5rem; overflow: hidden; color: #fff; background: #07152f; border: 1px solid #263652; border-radius: 2rem; box-shadow: 0 18px 36px rgba(7,21,47,.14); }
.school-directory-promo-ring { position: absolute; right: -4rem; top: -6rem; width: 18rem; height: 18rem; border: 28px solid rgba(251,191,36,.1); border-radius: 50%; pointer-events: none; }
.school-directory-promo-copy { position: relative; display: flex; align-items: flex-start; gap: 1.25rem; }
.school-directory-promo-icon { display: grid; place-items: center; width: 4rem; height: 4rem; flex-shrink: 0; color: #fcd34d; background: rgba(251,191,36,.15); border: 1px solid rgba(252,211,77,.2); border-radius: 1rem; font-size: 1.8rem; box-shadow: 0 5px 14px rgba(0,0,0,.12); }
.school-directory-promo-title { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }.school-directory-promo-title h2 { margin: 0; color: #fff; font-size: clamp(1.35rem,2.4vw,2rem); letter-spacing: -.04em; }.school-directory-promo-title span { padding: .3rem .55rem; color: #fde68a; background: rgba(251,191,36,.15); border: 1px solid rgba(252,211,77,.2); border-radius: 999px; font-size: .58rem; font-weight: 850; letter-spacing: .1em; }
.school-directory-promo-copy p { max-width: 40rem; margin: .45rem 0 0; color: rgba(255,255,255,.9); font-size: .8rem; line-height: 1.5; }
.school-directory-promo-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex-shrink: 0; padding: .85rem 1.5rem; color: #0f172a; background: #fbbf24; border-radius: .75rem; font-size: .76rem; font-weight: 900; text-decoration: none; box-shadow: 0 5px 14px rgba(0,0,0,.14); }.school-directory-promo-button:hover { background: #fcd34d; }
@media (max-width: 760px) { .school-directory-promo { align-items: flex-start; flex-direction: column; padding: 1.5rem; border-radius: 1.4rem; }.school-directory-promo-button { width: 100%; } }
.homepage-simple { padding-bottom: 0; }
body:has(.homepage-simple) .site-footer-updated { margin-top: 50px; }
.category-page .content-section-head { margin-top: 1.25rem; margin-bottom: .75rem; }
.category-page .lesson-list { gap: .55rem; }
.category-page .lesson-row { padding: .78rem 1rem; }
.category-page .lesson-row-copy h3 { font-size: 1rem; }
.category-page .lesson-row-copy p { margin-top: .2rem; font-size: .78rem; line-height: 1.4; }
.category-page .lesson-meta { margin-top: .28rem; font-size: .72rem; }
.category-page .lesson-index { width: 38px; height: 38px; border-radius: 10px; }
.category-page .school-ad-module { min-height: 0; }

/* Modern category hero */
.category-hero-modern { position: relative; left: 50%; width: 100vw; max-width: 100vw; margin-top: -1.6rem; margin-left: -50vw; overflow: hidden; padding: 1.4rem max(1.25rem, calc((100vw - 1152px) / 2 + 1.25rem)) 2.2rem; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(37,99,235,.34), transparent 32%), linear-gradient(125deg,#07152f 0%,#0f244b 64%,#12376d 100%); border-radius: 0; box-shadow: 0 18px 45px rgba(7,21,47,.16); }
.category-hero-modern::after { content: ''; position: absolute; right: -90px; bottom: -130px; width: 300px; height: 300px; border: 42px solid rgba(96,165,250,.12); border-radius: 50%; pointer-events: none; }
.category-hero-breadcrumbs { position: relative; z-index: 1; }.category-back-row { display: flex; align-items: center; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.14); }.back-circle-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; border-radius: 50%; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .2s cubic-bezier(.4,0,.2,1); }.back-circle-btn:hover { color: #fff; background: #2563eb; border-color: #2563eb; transform: translateX(-3px); box-shadow: 0 4px 12px rgba(37,99,235,.25); }.back-circle-btn svg { width: 20px; height: 20px; stroke-width: 2.5; }.category-hero-breadcrumbs .breadcrumbs { color: #a9bad5; font-size: .72rem; }.category-hero-breadcrumbs .breadcrumbs a { color: #dbeafe; }.category-hero-breadcrumbs .breadcrumbs span[aria-current="page"] { color: #fff; }
.category-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); align-items: end; gap: 2.5rem; margin-top: 2.8rem; }
.category-hero-eyebrow { display: inline-flex; align-items: center; margin: 0 0 .75rem; padding: .35rem .6rem; color: #bfdbfe; background: rgba(96,165,250,.15); border: 1px solid rgba(147,197,253,.25); border-radius: 999px; font-size: .62rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }.category-hero-eyebrow::before { content: ''; width: 6px; height: 6px; margin-right: .45rem; background: #60a5fa; border-radius: 50%; }
.category-hero-copy h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2.6rem,5vw,4.7rem); line-height: .98; letter-spacing: -.065em; }.category-hero-description { max-width: 700px; margin: 1rem 0 0; color: #c8d6eb; font-size: .96rem; line-height: 1.65; }
.category-hero-stats { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 0; backdrop-filter: blur(10px); }.category-hero-stats div { display: grid; justify-items: center; gap: .35rem; padding: 1.1rem .55rem; }.category-hero-stats div + div { border-left: 1px solid rgba(255,255,255,.14); }.category-hero-stats strong { color: #fff; font-size: 1.45rem; letter-spacing: -.04em; }.category-hero-stats span { color: #b4c6df; font-size: .65rem; font-weight: 750; }
@media (max-width: 760px) { .category-hero-modern { border-radius: 0; padding-right: 1rem; padding-left: 1rem; }.category-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }.category-hero-copy h1 { font-size: clamp(2.35rem,12vw,3.5rem); }.category-hero-description { font-size: .85rem; }.category-hero-stats { max-width: 420px; } }

/* Keep only the Google Play title on one line without changing the header layout. */
#header1 .play-store-link { width: 154px; flex-basis: 154px; }
#header1 .play-store-copy { display: grid; min-width: 0; }
#header1 .play-store-copy b { white-space: nowrap; }

/* Prevent the full-bleed category hero from creating a horizontal page scrollbar. */
html, body { overflow-x: hidden; }

/* School sponsor module — dark theme. */
html[data-theme="dark"] .school-ad-module, html.dark .school-ad-module { color: #e2e8f0; background: #0f172a; border-color: #263852; box-shadow: 0 14px 34px rgba(0,0,0,.24); }

/* DMV lesson reader layout copied from the reference lesson template. */
.lesson-page-shell { max-width: 1152px; margin: 0 auto; padding: 1.5rem 1rem 3.5rem; }
.lesson-top-navigation { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.lesson-breadcrumbs { font-size: .875rem; color: #64748b; }
.lesson-breadcrumbs a { color: #2563eb; text-decoration: none; font-weight: 700; }
.lesson-breadcrumbs span:last-child { font-weight: 600; color: #0f172a; }
.lesson-page-title { margin: 0 0 1.5rem; color: #0f172a; font-size: clamp(.62rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.045em; white-space: nowrap; overflow: visible; text-overflow: clip; }
.lesson-video-section { margin: 0 0 1.5rem; }
.lesson-video-player { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #030712; }
.lesson-video-element { display: block; width: 100%; height: 100%; object-fit: contain; background: #030712; }
.lesson-content-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(260px, 2fr); gap: 1.5rem; align-items: start; }
.lesson-main-column { min-width: 0; display: grid; gap: 1.5rem; }
.lesson-study-slides { min-width: 0; }
.slide-viewer-heading { margin-bottom: .75rem; }
.slide-viewer-kicker { margin: 0; color: #0f172a; font-size: 1.05rem; font-weight: 800; }
.lesson-slide-accessible-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lesson-editorial-card { padding: 1.5rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; box-shadow: 0 8px 30px rgba(15,42,81,.05); color: #1e293b; }
.lesson-editorial-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid #f1f5f9; color: #64748b; font-size: .75rem; }
.lesson-editorial-meta span:first-child { padding: .25rem .625rem; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; font-weight: 800; }
.lesson-editorial-summary { margin: 1rem 0; padding: 1rem 1.25rem; color: #0f172a; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 1rem; font-weight: 700; line-height: 1.65; }
.lesson-editorial-card .lesson-content { max-width: none; margin: 0; }
.lesson-editorial-card .lesson-content h2 { margin-top: 2rem; }
.lesson-editorial-card .lesson-content h3 { margin-top: 1.5rem; }
.lesson-practice-card { position: static; margin-top: 1rem; }
.lesson-school-ad-wrap { width: 100%; }

.lesson-practice-card {
  position: static !important;
  display: block;
  z-index: 0;
  box-sizing: border-box;
  margin: 1rem 0 1.25rem;
  height: auto;
  min-height: 0;
  padding: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(96, 165, 250, .22), transparent 36%),
    linear-gradient(135deg, #07152f 0%, #0f2b55 100%);
  border: 1px solid #294d72;
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(7, 21, 47, .14);
  color: #fff;
}

.lesson-practice-card::after {
  content: '✓';
  position: absolute;
  top: .6rem;
  right: 1rem;
  color: rgba(255, 255, 255, .08);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.lesson-practice-card .aside-icon {
  position: relative;
  z-index: 1;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: .75rem;
  color: #07152f;
  background: #facc15;
  border-radius: .7rem;
  font-size: 1rem;
  font-weight: 900;
}

.lesson-practice-card h3,
.lesson-practice-card p,
.lesson-practice-card .button-primary {
  position: relative;
  z-index: 1;
}

.lesson-practice-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.lesson-practice-card p {
  max-width: 42rem;
  margin: .45rem 0 1rem;
  color: #c8d8ee;
  line-height: 1.6;
}

.lesson-practice-card .button-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  color: #07152f;
  background: #facc15;
  border-color: #facc15;
  border-radius: .65rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(250, 204, 21, .2);
}

.lesson-practice-card .button-primary::after { content: '→'; }
.lesson-school-ad-wrap {
  position: static;
  z-index: 0;
  clear: both;
  display: block;
  width: 100%;
  margin-top: .9rem;
}
.lesson-school-ad-wrap .school-ad-module { margin-top: 0; }
.lesson-sidebar-ad { position: sticky; top: 80px; min-height: 260px; display: grid; place-items: center; padding: 1rem; text-align: center; background: rgba(248,250,252,.8); border: 1px dashed #cbd5e1; border-radius: 1rem; }
.lesson-sidebar-ad-inner { max-width: 230px; color: #94a3b8; }
.lesson-sidebar-ad-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto; color: #cbd5e1; font-size: 1.45rem; }
.lesson-sidebar-ad-label { margin-top: .45rem; color: #94a3b8; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lesson-sidebar-ad p { margin: .7rem 0 0; color: #64748b; font-size: .7rem; line-height: 1.55; }
.lesson-sidebar-ad p strong { color: #475569; }
.lesson-sidebar-ad-email { margin-top: .65rem; color: #64748b; font-size: .68rem; font-weight: 800; overflow-wrap: anywhere; }
.lesson-sidebar-ad a { display: inline-flex; align-items: center; gap: .35rem; margin-top: .85rem; padding: .55rem .75rem; color: #64748b; background: #fff; border: 1px solid #cbd5e1; border-radius: .55rem; font-size: .68rem; font-weight: 800; text-decoration: none; }
.lesson-sidebar-ad a:hover { color: #334155; border-color: #64748b; }
.lesson-content-grid > .lesson-sidebar-ad { margin-top: 1.85rem; }
.lesson-summary-card { padding: 1rem 1.25rem; color: #0f172a; background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid #2563eb; border-radius: .75rem; box-shadow: 0 6px 18px rgba(37,99,235,.06); }
.lesson-summary-card-label { display: block; margin-bottom: .35rem; color: #1d4ed8; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lesson-summary-card p { margin: 0; font-weight: 700; line-height: 1.6; }
.lesson-editorial-card { padding: clamp(1rem, 2.4vw, 1.75rem); border-radius: .85rem; }
.lesson-editorial-meta { padding-bottom: .8rem; }
.lesson-editorial-summary { margin: .85rem 0 1.2rem; border-radius: .65rem; }
.lesson-editorial-card .lesson-content { position: relative; padding-left: 0; border-left: 0; counter-reset: lesson-section; }
.lesson-editorial-card .lesson-content h2,
.lesson-editorial-card .lesson-content h3 { position: relative; margin: 1.5rem 0 .55rem; padding: .55rem .75rem; color: #0f172a; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .65rem; font-size: 1.05rem; line-height: 1.35; }
.lesson-editorial-card .lesson-content h2[id], .lesson-editorial-card .lesson-content h3[id] { scroll-margin-top: 5rem; }
.lesson-editorial-card .lesson-content p { margin: 0; padding: .55rem .2rem .65rem; color: #334155; line-height: 1.7; border-bottom: 1px solid #eef2f7; }
.lesson-editorial-card .lesson-content ul,
.lesson-editorial-card .lesson-content ol { margin: .25rem 0 .35rem; padding: .15rem 0 .15rem 1.3rem; color: #334155; border-bottom: 1px solid #eef2f7; }
.lesson-editorial-card .lesson-content li { padding: .3rem 0; line-height: 1.55; }
.lesson-editorial-card .lesson-content blockquote { margin: .8rem 0; padding: .8rem 1rem; border-left: 3px solid #2563eb; border-radius: 0 .55rem .55rem 0; background: #eff6ff; }
html[data-theme="dark"] .lesson-breadcrumbs span:last-child, html.dark .lesson-breadcrumbs span:last-child { color: #e2e8f0; }
html[data-theme="dark"] .lesson-page-title, html.dark .lesson-page-title { color: #e7eef4; }
html[data-theme="dark"] .lesson-editorial-card, html.dark .lesson-editorial-card { color: #e2e8f0; background: #12232d; border-color: #29434c; }
html[data-theme="dark"] .lesson-editorial-meta, html.dark .lesson-editorial-meta { border-color: #29434c; color: #a7bac2; }
html[data-theme="dark"] .lesson-editorial-summary, html.dark .lesson-editorial-summary { color: #e2e8f0; background: #172d45; border-color: #294d72; }
@media (max-width: 820px) { .lesson-content-grid { grid-template-columns: 1fr; }.lesson-study-card { position: static; }.lesson-page-shell { padding-left: .75rem; padding-right: .75rem; } }
@media (max-width: 820px) { .lesson-sidebar-ad { position: static; min-height: 190px; } }
html[data-theme="dark"] .lesson-sidebar-ad, html.dark .lesson-sidebar-ad { background: rgba(15,23,42,.72); border-color: #475569; }
html[data-theme="dark"] .lesson-sidebar-ad p, html.dark .lesson-sidebar-ad p, html[data-theme="dark"] .lesson-sidebar-ad-email, html.dark .lesson-sidebar-ad-email { color: #94a3b8; }
html[data-theme="dark"] .lesson-sidebar-ad p strong, html.dark .lesson-sidebar-ad p strong { color: #cbd5e1; }
html[data-theme="dark"] .lesson-sidebar-ad a, html.dark .lesson-sidebar-ad a { color: #cbd5e1; background: #1e293b; border-color: #475569; }
html[data-theme="dark"] .lesson-summary-card, html.dark .lesson-summary-card { color: #e2e8f0; background: #172d45; border-color: #294d72; border-left-color: #60a5fa; }
html[data-theme="dark"] .lesson-summary-card-label, html.dark .lesson-summary-card-label { color: #93c5fd; }
html[data-theme="dark"] .lesson-editorial-card .lesson-content h2, html.dark .lesson-editorial-card .lesson-content h2,
html[data-theme="dark"] .lesson-editorial-card .lesson-content h3, html.dark .lesson-editorial-card .lesson-content h3 { color: #e2e8f0; background: #172d45; border-color: #294d72; }
html[data-theme="dark"] .lesson-editorial-card .lesson-content p, html.dark .lesson-editorial-card .lesson-content p,
html[data-theme="dark"] .lesson-editorial-card .lesson-content ul, html.dark .lesson-editorial-card .lesson-content ul,
html[data-theme="dark"] .lesson-editorial-card .lesson-content ol, html.dark .lesson-editorial-card .lesson-content ol { color: #cbd5e1; border-color: #29434c; }
@media (max-width: 820px) { .lesson-content-grid > .lesson-sidebar-ad { margin-top: 0; } }
@media (max-width: 820px) { .lesson-practice-card, .lesson-school-ad-wrap { width: auto; max-width: none; } }
html[data-theme="dark"] .school-ad-heading h2, html.dark .school-ad-heading h2, html[data-theme="dark"] .school-ad-card h3, html.dark .school-ad-card h3 { color: #f8fafc; }
html[data-theme="dark"] .school-ad-heading p, html.dark .school-ad-heading p, html[data-theme="dark"] .school-ad-copy, html.dark .school-ad-copy, html[data-theme="dark"] .school-ad-address, html.dark .school-ad-address { color: #94a3b8; }
html[data-theme="dark"] .school-ad-badge, html.dark .school-ad-badge { color: #93c5fd; background: #172554; border-color: #1e40af; }
html[data-theme="dark"] .school-ad-card, html.dark .school-ad-card { background: #111c31; border-color: #334155; }
html[data-theme="dark"] .school-ad-card-top, html.dark .school-ad-card-top { color: #a7f3d0; background: #073b35; border-left-color: #10b981; }
html[data-theme="dark"] .school-ad-card-title-row h3 a, html.dark .school-ad-card-title-row h3 a { color: #f8fafc; }
html[data-theme="dark"] .school-ad-example, html.dark .school-ad-example, html[data-theme="dark"] .school-ad-meta span, html.dark .school-ad-meta span, html[data-theme="dark"] .school-ad-tags span, html.dark .school-ad-tags span { color: #cbd5e1; background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .school-ad-meta span:first-child, html.dark .school-ad-meta span:first-child { color: #a7f3d0; background: #064e3b; border-color: #047857; }
html[data-theme="dark"] .school-ad-actions, html.dark .school-ad-actions { border-top-color: #263852; }
html[data-theme="dark"] .school-ad-reserved, html.dark .school-ad-reserved { background: #111c31; border-color: #475569; }
html[data-theme="dark"] .school-ad-reserved h3, html.dark .school-ad-reserved h3 { color: #cbd5e1; }
html[data-theme="dark"] .school-ad-reserved p, html.dark .school-ad-reserved p, html[data-theme="dark"] .school-ad-email, html.dark .school-ad-email { color: #94a3b8; }

/* Test page polish. Keep the hero compact and make the full-page flow easier to scan. */
.quiz-shell .quiz-hero {
  min-height: 250px;
  margin: .5rem 0 1rem;
  padding: clamp(1.5rem, 3.2vw, 2.35rem);
  gap: 1.5rem;
}
.quiz-shell .quiz-hero h1 {
  max-width: 680px;
  font-size: clamp(1.85rem, 3.7vw, 3.15rem);
  line-height: 1.04;
}
.quiz-shell .quiz-hero p:not(.eyebrow) { max-width: 590px; line-height: 1.6; }
.quiz-shell .quiz-hero-stats { align-self: center; }
.quiz-question { padding: clamp(1.25rem, 3vw, 2rem); }
.quiz-question legend {
  margin-left: .2rem;
  padding: .25rem .55rem;
  background: #f8fbfa;
  border-radius: 999px;
  font-size: .76rem;
  letter-spacing: .08em;
}
.quiz-question h2 { margin-top: .35rem; line-height: 1.24; }
.quiz-submit {
  margin-top: .35rem;
  padding: .85rem;
  border: 1px solid #dcebe5;
  box-shadow: 0 10px 26px rgba(18, 63, 54, .08);
}
.quiz-submit .button {
  width: min(100%, 420px);
  min-height: 52px;
  border-radius: 12px;
  font-weight: 850;
}
html[data-theme="dark"] .quiz-question legend, html.dark .quiz-question legend { color: #a7f3d0; background: #172d2b; }
html[data-theme="dark"] .quiz-submit, html.dark .quiz-submit { background: rgba(15, 23, 42, .92); border-color: #29434c; }
@media (max-width: 680px) {
  .quiz-shell .quiz-hero { min-height: 0; padding: 1.35rem; }
  .quiz-shell .quiz-hero h1 { font-size: clamp(1.75rem, 8vw, 2.45rem); }
  .quiz-shell .quiz-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quiz-shell .quiz-hero-stats span { padding: .7rem .35rem; }
  .quiz-question { padding: 1rem; }
  .quiz-question h2 { font-size: 1.2rem; }
}

/* DMV practice-test composition: sponsor slot, 9/3 reader grid and progress rail. */
.test-top-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
}
.test-ad-copy { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.test-ad-copy > div { display: grid; gap: .2rem; }
.test-ad-copy strong, .test-sidebar-ad strong { color: #64748b; font-size: .65rem; letter-spacing: .1em; }
.test-ad-copy span:not(.test-ad-icon) { color: #64748b; font-size: .75rem; }
.test-ad-copy small, .test-sidebar-ad small { color: #64748b; font-size: .68rem; font-weight: 800; }
.test-ad-icon, .test-sidebar-icon { display: grid; place-items: center; flex: 0 0 auto; width: 2.25rem; height: 2.25rem; color: #94a3b8; background: #f1f5f9; border-radius: .7rem; }
.test-ad-link, .test-sidebar-ad a { display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; padding: .6rem .8rem; color: #64748b; background: #fff; border: 1px solid #cbd5e1; border-radius: .55rem; font-size: .7rem; font-weight: 800; text-decoration: none; }
.test-ad-link:hover, .test-sidebar-ad a:hover { color: #2563eb; border-color: #93c5fd; }
.test-content-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 1.5rem; align-items: start; }
.test-main-column { min-width: 0; display: grid; gap: .75rem; }
.test-progress-card { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 5px 16px rgba(15, 23, 42, .04); }
.test-progress-number { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: #fff; background: #2563eb; border-radius: .7rem; font-weight: 900; }
.test-progress-card > div:nth-child(2) { display: grid; gap: .2rem; min-width: 0; }
.test-progress-card strong { color: #0f172a; font-size: .75rem; }
.test-progress-card span { color: #64748b; font-size: .68rem; }
.test-progress-card > b { margin-left: auto; padding: .35rem .55rem; color: #2563eb; background: #eff6ff; border-radius: .5rem; font-size: .68rem; white-space: nowrap; }
.test-progress-track { height: .5rem; overflow: hidden; background: #e2e8f0; border-radius: 999px; }
.test-progress-track i { display: block; height: 100%; background: #2563eb; border-radius: inherit; }
.test-question-card { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.25rem; box-shadow: 0 5px 18px rgba(15, 23, 42, .04); }
.test-question-card legend { display: inline-flex; align-items: center; gap: .35rem; margin-left: .1rem; color: #2563eb; background: #eff6ff; }
.test-question-card legend::before { content: '✦'; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; color: #2563eb; background: #dbeafe; border-radius: .45rem; font-size: .7rem; }
.test-sidebar-ad { position: sticky; top: 5rem; min-height: 250px; display: grid; place-items: center; padding: 1.5rem; text-align: center; background: rgba(248, 250, 252, .72); border: 1px dashed #cbd5e1; border-radius: 1rem; }
.test-sidebar-ad > div { display: grid; justify-items: center; gap: .4rem; max-width: 220px; }
.test-sidebar-ad strong { color: #94a3b8; }
.test-sidebar-ad p { margin: 0; color: #64748b; font-size: .72rem; line-height: 1.5; }
.test-sidebar-ad a { margin-top: .35rem; }
.test-school-wrap { margin-top: 1.5rem; }
.quiz-shell.quiz-wide {
  width: min(1152px, calc(100% - 2rem));
  max-width: 1152px;
}
html[data-theme="dark"] .test-top-ad, html.dark .test-top-ad, html[data-theme="dark"] .test-progress-card, html.dark .test-progress-card { background: #111c31; border-color: #334155; }
html[data-theme="dark"] .test-ad-copy strong, html.dark .test-ad-copy strong, html[data-theme="dark"] .test-ad-copy span:not(.test-ad-icon), html.dark .test-ad-copy span:not(.test-ad-icon), html[data-theme="dark"] .test-ad-copy small, html.dark .test-ad-copy small, html[data-theme="dark"] .test-sidebar-ad p, html.dark .test-sidebar-ad p { color: #94a3b8; }
html[data-theme="dark"] .test-progress-card strong, html.dark .test-progress-card strong { color: #f8fafc; }
html[data-theme="dark"] .test-sidebar-ad, html.dark .test-sidebar-ad { background: rgba(15, 23, 42, .72); border-color: #475569; }
@media (max-width: 820px) {
  .test-content-grid { grid-template-columns: 1fr; }
  .test-sidebar-ad { position: static; min-height: 190px; }
}
@media (max-width: 600px) {
  .test-top-ad { align-items: flex-start; flex-direction: column; padding: .9rem 1rem; }
  .test-ad-link { margin-left: 3rem; }
  .test-progress-card { align-items: flex-start; flex-wrap: wrap; }
  .test-progress-card > b { margin-left: 3.25rem; }
}

/* Full-width test header and compact question flow. */
.quiz-shell.quiz-wide { width: min(1152px, calc(100% - 2rem)); max-width: 1152px; }
.quiz-shell .quiz-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -1.6rem;
  margin-bottom: 1.5rem;
  border-radius: 0;
  padding: clamp(2.25rem, 5vw, 4rem) max(1rem, calc((100vw - min(1152px, calc(100% - 2rem))) / 2));
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.test-back-button {
  position: absolute;
  top: 1rem;
  left: max(1rem, calc((100vw - min(1152px, calc(100% - 2rem))) / 2));
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #07152f;
  background: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(0,0,0,.18);
  transition: transform .2s ease, background .2s ease;
}
.test-back-button:hover { color: #07152f; background: #ffdc57; transform: translateX(-2px); }
.quiz-hero-copy { min-width: 0; }
.quiz-hero-copy h1 { max-width: none; font-size: clamp(1.8rem, 3.5vw, 3.2rem); }
.quiz-hero-actions { display: grid; justify-items: end; gap: .75rem; }
.test-hero-submit { min-height: 44px; padding: .7rem 1.1rem; border: 0; border-radius: 10px; font-size: .8rem; font-weight: 850; cursor: pointer; }
.test-question-card { font-size: .92rem; }
.test-question-card h2 { font-size: clamp(1rem, 1.45vw, 1.2rem); }
.test-question-card .answer { min-height: 48px; padding: .75rem .9rem; font-size: .9rem; }
.test-question-card .answer input { width: 18px; height: 18px; }
.test-question-card.question-correct { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.test-question-card.question-wrong { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.test-question-card .answer.correct { color: #166534; background: #f0fdf4; border-color: #22c55e; }
.test-question-card .answer.correct .answer-letter { color: #fff; background: #16a34a; }
.test-question-card .answer.wrong { color: #991b1b; background: #fef2f2; border-color: #ef4444; }
.test-question-card .answer.wrong .answer-letter { color: #fff; background: #dc2626; }
.test-question-card .answer.is-correct { color: #166534; background: #f0fdf4; border-color: #22c55e; }
.test-question-card .answer.is-correct .answer-letter { color: #fff; background: #16a34a; }
.test-question-card .answer.is-wrong { color: #991b1b; background: #fef2f2; border-color: #ef4444; }
.test-question-card .answer.is-wrong .answer-letter { color: #fff; background: #dc2626; }
.test-question-card .quiz-feedback { margin-top: .9rem; padding: .75rem .9rem; font-size: .82rem; line-height: 1.55; }
.test-question-card .quiz-feedback strong { font-size: .82rem; }
.test-sidebar-ad { margin-top: 0; }

html[data-theme="dark"] .test-back-button, html.dark .test-back-button { color: #07152f; background: #f8fafc; }
html[data-theme="dark"] .test-question-card .answer.correct, html.dark .test-question-card .answer.correct { color: #bbf7d0; background: #052e1b; border-color: #22c55e; }
html[data-theme="dark"] .test-question-card .answer.wrong, html.dark .test-question-card .answer.wrong,
html[data-theme="dark"] .test-question-card .answer.is-wrong, html.dark .test-question-card .answer.is-wrong { color: #fecaca; background: #450a0a; border-color: #ef4444; }
html[data-theme="dark"] .test-question-card .answer.is-correct, html.dark .test-question-card .answer.is-correct { color: #bbf7d0; background: #052e1b; border-color: #22c55e; }

@media (max-width: 820px) {
  .quiz-shell .quiz-hero { margin-top: 0; padding: 1.25rem 1rem 1.5rem; grid-template-columns: 1fr; }
  .test-back-button { left: 1rem; }
  .quiz-hero-actions { justify-items: stretch; }
  .quiz-hero-stats { width: 100%; }
  .test-hero-submit { width: 100%; }
}

/* Keep the header navigation intact when the language/theme controls take space. */
/* Desktop header navigation layout */
@media (min-width: 821px) {
  #header1 .main-nav {
    display: flex !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    align-items: center;
    gap: .2rem;
  }
  #header1 .menu-button { display: none !important; }
}


/* Live status bar for interactive tests */
.test-live-status-bar {
  position: sticky;
  top: 10px;
  z-index: 100;
  overflow: hidden;
  margin: 0.2rem 0 1.2rem;
  padding: .85rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
}
.live-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(16, 185, 129, 0.15);
  transition: width .25s ease-out;
  pointer-events: none;
}
.live-status-info {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: .88rem;
  font-weight: 600;
  color: #1e293b;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.live-status-info::-webkit-scrollbar {
  display: none;
}
.live-status-info span {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #475569;
}
.live-status-info strong {
  color: #0f172a;
}
.pass-tag {
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 800;
}
.tag-pending { color: #475569; background: #f1f5f9; border: 1px solid #cbd5e1; }
.tag-pass { color: #047857; background: #d1fae5; border: 1px solid #10b981; }
.tag-fail { color: #b91c1c; background: #fee2e2; border: 1px solid #ef4444; }

/* Single attempt question state */
.question-answered .answer {
  cursor: default;
}
.question-answered .answer:not(.is-correct):not(.is-wrong) {
  opacity: 0.55;
}

/* Interactive test option states */
.answer.is-correct {
  color: #047857 !important;
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
}
.answer.is-correct .answer-letter {
  color: #ffffff !important;
  background: #059669 !important;
}
.answer.is-wrong {
  color: #b91c1c !important;
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
}
.answer.is-wrong .answer-letter {
  color: #ffffff !important;
  background: #dc2626 !important;
}

/* Header brand logo in Dark Mode */
html[data-theme="dark"] #header1 .brand-copy strong,
html.dark #header1 .brand-copy strong {
  color: #f8fafc !important;
}
html[data-theme="dark"] #header1 .brand-copy strong span,
html.dark #header1 .brand-copy strong span {
  color: #3b82f6 !important;
}
html[data-theme="dark"] #header1 .brand-copy strong em,
html.dark #header1 .brand-copy strong em {
  color: #60a5fa !important;
}

/* Comprehensive Test & Quiz Dark Mode Styles */
html[data-theme="dark"] .quiz-shell,
html.dark .quiz-shell {
  color: #e2e8f0;
}
html[data-theme="dark"] .quiz-hero,
html.dark .quiz-hero {
  background: radial-gradient(circle at 92% 0, rgba(37,99,235,.25), transparent 40%), linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid #334155;
  color: #f8fafc;
}
html[data-theme="dark"] .quiz-hero h1,
html.dark .quiz-hero h1 {
  color: #f8fafc;
}
html[data-theme="dark"] .quiz-hero p:not(.eyebrow),
html.dark .quiz-hero p:not(.eyebrow) {
  color: #94a3b8;
}
html[data-theme="dark"] .quiz-hero-stats,
html.dark .quiz-hero-stats {
  background: rgba(15, 23, 42, 0.6);
  border-color: #334155;
}
html[data-theme="dark"] .quiz-hero-stats span,
html.dark .quiz-hero-stats span {
  color: #94a3b8;
}
html[data-theme="dark"] .quiz-hero-stats strong,
html.dark .quiz-hero-stats strong {
  color: #f8fafc;
}
html[data-theme="dark"] .quiz-card,
html.dark .quiz-card {
  background: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
html[data-theme="dark"] .quiz-card h2,
html.dark .quiz-card h2 {
  color: #f8fafc;
}
html[data-theme="dark"] .quiz-question legend,
html.dark .quiz-question legend {
  color: #34d399;
  background: #064e3b;
}
html[data-theme="dark"] .answer,
html.dark .answer {
  color: #e2e8f0;
  background: #1e293b;
  border-color: #334155;
}
html[data-theme="dark"] .answer:hover,
html.dark .answer:hover {
  background: #263652;
  border-color: #60a5fa;
}
html[data-theme="dark"] .answer-letter,
html.dark .answer-letter {
  color: #93c5fd;
  background: #0f172a;
}
html[data-theme="dark"] .answer:has(input:checked),
html.dark .answer:has(input:checked) {
  color: #ecfdf5;
  background: #064e3b;
  border-color: #10b981;
}
html[data-theme="dark"] .answer:has(input:checked) .answer-letter,
html.dark .answer:has(input:checked) .answer-letter {
  color: #ffffff;
  background: #047857;
}
html[data-theme="dark"] .answer.is-correct,
html.dark .answer.is-correct,
html[data-theme="dark"] .answer.correct,
html.dark .answer.correct {
  color: #6ee7b7 !important;
  background: #064e3b !important;
  border-color: #10b981 !important;
}
html[data-theme="dark"] .answer.is-correct .answer-letter,
html.dark .answer.is-correct .answer-letter,
html[data-theme="dark"] .answer.correct .answer-letter,
html.dark .answer.correct .answer-letter {
  color: #ffffff !important;
  background: #047857 !important;
}
html[data-theme="dark"] .answer.is-wrong,
html.dark .answer.is-wrong,
html[data-theme="dark"] .answer.wrong,
html.dark .answer.wrong {
  color: #fca5a5 !important;
  background: #450a0a !important;
  border-color: #ef4444 !important;
}
html[data-theme="dark"] .answer.is-wrong .answer-letter,
html.dark .answer.is-wrong .answer-letter,
html[data-theme="dark"] .answer.wrong .answer-letter,
html.dark .answer.wrong .answer-letter {
  color: #ffffff !important;
  background: #b91c1c !important;
}
html[data-theme="dark"] .quiz-feedback,
html.dark .quiz-feedback {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
}
html[data-theme="dark"] .quiz-feedback strong,
html.dark .quiz-feedback strong {
  color: #f8fafc;
}
html[data-theme="dark"] .test-live-status-bar,
html.dark .test-live-status-bar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .live-progress-fill,
html.dark .live-progress-fill {
  background: rgba(16, 185, 129, 0.22);
}
html[data-theme="dark"] .live-status-info,
html.dark .live-status-info {
  color: #f8fafc;
}
html[data-theme="dark"] .live-status-info span,
html.dark .live-status-info span {
  color: #94a3b8;
}
html[data-theme="dark"] .live-status-info strong,
html.dark .live-status-info strong {
  color: #f8fafc;
}
html[data-theme="dark"] .tag-pending,
html.dark .tag-pending { color: #cbd5e1; background: #1e293b; border-color: #475569; }
html[data-theme="dark"] .tag-pass,
html.dark .tag-pass { color: #6ee7b7; background: #064e3b; border-color: #10b981; }
html[data-theme="dark"] .tag-fail,
html.dark .tag-fail { color: #fca5a5; background: #450a0a; border-color: #ef4444; }
html[data-theme="dark"] .result-card,
html.dark .result-card {
  background: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
}
html[data-theme="dark"] .result-score,
html.dark .result-score {
  color: #34d399;
  background: #064e3b;
  border-color: #047857;
}

/* Fix header layering so main-nav is 100% visible and never covered by header2 background overlay */
#header2 {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  pointer-events: none !important;
}
#header2 .lang-selector-wrapper,
#header2 .theme-swipe-toggle {
  pointer-events: auto !important;
}

@media (min-width: 821px) {
  #header1 .main-nav {
    display: flex !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    align-items: center;
    gap: .3rem;
    z-index: 60 !important;
    pointer-events: auto !important;
  }
}

/* Unified Quiz Hero Banner with Top Breadcrumbs */
.page-shell.quiz-shell {
  padding-top: 0;
}
.quiz-hero {
  display: block;
  margin: -0.75rem 0 1.2rem;
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1.2rem, 3vw, 2.2rem);
  color: #ffffff !important;
  background: radial-gradient(circle at 92% 0, rgba(55,123,241,.35), transparent 40%), linear-gradient(145deg, #07162f, #102f60) !important;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(7,22,47,.25);
}
.quiz-hero .eyebrow {
  color: #c8dcff !important;
  background: rgba(65,130,236,.2) !important;
}
.quiz-hero h1 {
  color: #ffffff !important;
}
.quiz-hero p:not(.eyebrow) {
  color: #b8c7dd !important;
}
.quiz-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-top: 0.75rem;
}
@media (max-width: 820px) {
  .quiz-hero-main {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}
.hero-top-nav-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .85rem;
}
.hero-top-nav-row .back-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  text-decoration: none;
  transition: all .2s ease;
}
.hero-top-nav-row .back-circle-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.hero-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 750;
  color: #ffffff;
}
.hero-breadcrumbs a {
  color: #60a5fa !important;
  text-decoration: none;
  font-weight: 800;
}
.hero-breadcrumbs a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}
.hero-breadcrumbs span {
  color: #93c5fd;
}
.hero-breadcrumbs span:last-child {
  color: #ffffff !important;
  font-weight: 900;
}

.test-scroll-top-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.test-scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,.14);
}

/* Premium Blog & Article Redesign */
.blog-hero-full-bleed {
  width: 100%;
  margin-top: -1px;
  padding: 0;
  color: #ffffff !important;
  background: #07162f !important;
  border: none !important;
  box-shadow: none !important;
}
.blog-hero-inner {
  width: min(1152px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem .75rem 100px;
  box-sizing: border-box;
}
.blog-hero-inner.blog-hero-card-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
}
.blog-shell {
  width: min(1152px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.8rem .75rem 3.5rem;
}
.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 2.2rem;
  margin-top: .5rem;
}
.blog-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  height: 210px;
}
.blog-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 820px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .blog-hero-media {
    height: 200px;
  }
}
.blog-hero-nav {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 750;
  color: #ffffff;
}
.blog-breadcrumbs a {
  color: #60a5fa !important;
  text-decoration: none;
  font-weight: 800;
}
.blog-breadcrumbs a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}
.blog-breadcrumbs span {
  color: #93c5fd;
}
.blog-breadcrumbs span:last-child {
  color: #ffffff !important;
  font-weight: 900;
}
.blog-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  font-size: .82rem;
  font-weight: 750;
}
.blog-badge {
  padding: .35rem .75rem;
  color: #c8dcff !important;
  background: rgba(65,130,236,.25) !important;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.blog-date, .blog-reading-time {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #b8c7dd;
}
.blog-single-title {
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: .3rem 0 .75rem;
}
.blog-single-lead {
  max-width: 820px;
  margin: 0;
  color: #cbdcf7 !important;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  font-weight: 500;
}

/* Standalone Video Player & Top Grid */
.blog-video-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.8rem;
  align-items: stretch;
  margin-bottom: 1.8rem;
}
.blog-video-standalone {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  border-radius: 16px;
}
.blog-video-standalone video,
.blog-video-element {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: none;
  background: #000000;
  border-radius: 16px;
  object-fit: cover;
}
.blog-video-ad-side {
  display: flex;
  flex-direction: column;
}
.blog-video-ad-side .lesson-sidebar-ad {
  position: static;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .blog-video-top-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.blog-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.8rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.blog-article-card {
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.blog-hero-image-wrap {
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.blog-hero-image {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}
.blog-body-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}
.blog-body-content h2 {
  margin: 2.2rem 0 .9rem;
  color: #0f172a;
  font-size: 1.65rem;
  letter-spacing: -.025em;
}
.blog-body-content h3 {
  margin: 1.8rem 0 .7rem;
  color: #1e293b;
  font-size: 1.3rem;
}
.blog-body-content p {
  margin: 1rem 0;
}
.blog-body-content ul, .blog-body-content ol {
  margin: 1rem 0;
  padding-left: 1.4rem;
}
.blog-body-content li {
  margin: .45rem 0;
}
.blog-body-content blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 14px 14px 0;
  color: #1e3a8a;
  font-style: italic;
}

.blog-article-footer {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blog-share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: .88rem;
  font-weight: 700;
  color: #334155;
}
.blog-share-buttons {
  display: flex;
  gap: .5rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  padding: .45rem .95rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff !important;
}
.share-whatsapp { background: #16a34a; }
.share-whatsapp:hover { background: #15803d; }
.share-facebook { background: #2563eb; }
.share-facebook:hover { background: #1d4ed8; }
.blog-back-all-btn {
  align-self: flex-start;
}

/* Sidebar Widgets */
.blog-sidebar {
  display: grid;
  gap: 1.2rem;
}
.sidebar-widget {
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(15,23,42,.04);
}
.sidebar-widget h3 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  color: #0f172a;
}
.sidebar-widget p {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.5;
}
.widget-btn {
  width: 100%;
  min-height: 44px;
}
.widget-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.sidebar-ad-box {
  padding: 1.35rem;
  background: linear-gradient(145deg, #07162f, #112d5b);
  border-radius: 20px;
  color: #ffffff;
}
.sidebar-ad-box .ad-tag {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .2rem .5rem;
  background: rgba(255,221,87,.2);
  color: #ffdd57;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
}
.sidebar-ad-box strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: .35rem;
}
.sidebar-ad-box p {
  margin: 0 0 1rem;
  color: #b8c7dd;
  font-size: .88rem;
}
.ad-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .65rem 1rem;
  color: #07162f !important;
  background: #ffdd57;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
  font-size: .88rem;
}
.ad-link-btn:hover {
  background: #ffe375;
}

/* Blog Index / Listing Page */
.blog-index-hero {
  margin: -0.75rem 0 1.8rem;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background: radial-gradient(circle at 92% 0, rgba(37,99,235,.28), transparent 40%), linear-gradient(145deg, #07162f, #102f60);
  border-radius: 24px;
  color: #ffffff;
}
.blog-index-hero .eyebrow {
  color: #93c5fd;
  background: rgba(37,99,235,.25);
}
.blog-index-hero h1 {
  color: #ffffff !important;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin: .4rem 0 .8rem;
}
.blog-index-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #b8c7dd;
  font-size: 1.1rem;
}

/* Featured Article Card */
.blog-featured-section {
  margin-bottom: 2.5rem;
}
.blog-card-featured {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  border-color: #93c5fd;
}
.featured-image {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}
.featured-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: .35rem .85rem;
  background: #2563eb;
  color: #ffffff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .82rem;
  font-weight: 700;
  color: #64748b;
}
.featured-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 .85rem;
}
.featured-content p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.card-link {
  color: #2563eb;
  font-weight: 850;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* Blog Grid */
.blog-grid-section .section-title {
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: 1.2rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(15,23,42,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(15,23,42,.1);
  border-color: #93c5fd;
}
.blog-card-thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}
.blog-card-body h3 {
  font-size: 1.18rem;
  color: #0f172a;
  line-height: 1.3;
  margin: .3rem 0 .6rem;
}
.blog-card-body p {
  flex: 1;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.blog-card-btn {
  color: #2563eb;
  font-weight: 800;
  font-size: .88rem;
}

/* Dark Mode for Blog Pages */
html[data-theme="dark"] .blog-article-card,
html.dark .blog-article-card,
html[data-theme="dark"] .sidebar-widget,
html.dark .sidebar-widget,
html[data-theme="dark"] .blog-card-featured,
html.dark .blog-card-featured,
html[data-theme="dark"] .blog-card,
html.dark .blog-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .blog-body-content,
html.dark .blog-body-content,
html[data-theme="dark"] .featured-content p,
html.dark .featured-content p,
html[data-theme="dark"] .blog-card-body p,
html.dark .blog-card-body p {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .blog-body-content h2,
html.dark .blog-body-content h2,
html[data-theme="dark"] .blog-body-content h3,
html.dark .blog-body-content h3,
html[data-theme="dark"] .featured-content h2,
html.dark .featured-content h2,
html[data-theme="dark"] .blog-card-body h3,
html.dark .blog-card-body h3,
html[data-theme="dark"] .sidebar-widget h3,
html.dark .sidebar-widget h3,
html[data-theme="dark"] .section-title,
html.dark .section-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] .blog-share-box,
html.dark .blog-share-box {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .blog-card-meta,
html.dark .blog-card-meta,
html[data-theme="dark"] .sidebar-widget p,
html.dark .sidebar-widget p {
  color: #94a3b8 !important;
}

@media (max-width: 900px) {
  .blog-single-layout {
    grid-template-columns: 1fr;
  }
  .blog-card-featured {
    grid-template-columns: 1fr;
  }
  .featured-image {
    min-height: 220px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Modern Signs Catalog Page Redesign */
.signs-hero-full-bleed {
  width: 100%;
  margin-top: -1px;
  padding: 0;
  color: #ffffff !important;
  background: radial-gradient(circle at 92% 0, rgba(37,99,235,.28), transparent 40%), linear-gradient(145deg, #07162f, #102f60) !important;
  border: none !important;
  box-shadow: none !important;
}
.signs-hero-inner {
  width: min(1152px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem .75rem clamp(1.5rem, 3.2vw, 2.5rem);
  box-sizing: border-box;
}
.signs-hero-nav {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}
.signs-hero-copy .eyebrow {
  color: #93c5fd !important;
  background: rgba(37,99,235,.25) !important;
}
.signs-hero-copy h1 {
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: .4rem 0 .6rem;
  line-height: 1.1;
}
.signs-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #b8c7dd !important;
  font-size: 1rem;
  line-height: 1.6;
}

.sign-page-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.sign-sidebar {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(15,23,42,.04);
}
.sign-sidebar h3 {
  margin: .2rem 0 .7rem;
  font-size: .82rem;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sidebar-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .8rem;
  color: #475569;
  background: transparent;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}
.sidebar-filter:hover {
  color: #2563eb;
  background: #eff6ff;
}
.sidebar-filter.active {
  color: #2563eb;
  background: #eff6ff;
  font-weight: 850;
}
.sidebar-filter .filter-count {
  font-size: .72rem;
  font-weight: 750;
  color: #94a3b8;
  padding: .15rem .45rem;
  background: #f1f5f9;
  border-radius: 999px;
}
.sidebar-filter.active .filter-count {
  color: #2563eb;
  background: #dbeafe;
}
.sign-sidebar hr {
  margin: 1.1rem 0 .8rem;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.sign-toolbar {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.2rem;
}
.sign-toolbar .button,
.sign-toolbar .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.4rem;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border: 1px solid rgba(37,99,235,.2) !important;
  border-radius: 14px !important;
  font-size: .92rem;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(37,99,235,.22);
  transition: all .2s ease;
  cursor: pointer;
}
.sign-toolbar .button:hover,
.sign-toolbar .button-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  box-shadow: 0 6px 16px rgba(37,99,235,.32);
  transform: translateY(-1px);
}
.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 1rem;
  font-size: 1rem;
  color: #94a3b8;
  pointer-events: none;
}
.search-input-wrap .search-field {
  width: 100%;
  min-height: 48px;
  padding: .65rem 2.5rem .65rem 2.6rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input-wrap .search-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.search-clear {
  position: absolute;
  right: .85rem;
  color: #94a3b8;
  font-size: .9rem;
  text-decoration: none;
  padding: .2rem .4rem;
}
.search-clear:hover {
  color: #ef4444;
}

@media (min-width: 901px) {
  .sign-filters {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .sign-page-layout {
    grid-template-columns: 1fr;
  }
  .sign-sidebar {
    display: none !important;
  }
  .sign-filters {
    display: flex !important;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .6rem;
    margin-bottom: 1rem;
  }
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: .88rem;
  color: #64748b;
}
.reset-filter-link {
  color: #ef4444;
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}
.reset-filter-link:hover {
  text-decoration: underline;
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.sign-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(15,23,42,.035);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sign-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15,23,42,.08);
  border-color: #93c5fd;
}
.sign-image {
  display: grid;
  place-items: center;
  height: 160px;
  padding: 1.2rem;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}
.sign-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.sign-card:hover .sign-image img {
  transform: scale(1.06);
}
.sign-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}
.sign-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.sign-code {
  display: inline-flex;
  padding: .2rem .55rem;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 850;
}
.sign-cat-badge {
  color: #94a3b8;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.sign-copy h3 {
  margin: 0 0 .35rem;
  color: #0f172a;
  font-size: .95rem;
  line-height: 1.3;
}
.sign-copy p {
  margin: 0;
  color: #64748b;
  font-size: .8rem;
  line-height: 1.5;
}

html[data-theme="dark"] .sign-sidebar,
html.dark .sign-sidebar,
html[data-theme="dark"] .sign-card,
html.dark .sign-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .sign-image,
html.dark .sign-image {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .search-field,
html.dark .search-field {
  color: #e2e8f0 !important;
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .sidebar-filter,
html.dark .sidebar-filter {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .sidebar-filter:hover,
html[data-theme="dark"] .sidebar-filter.active,
html.dark .sidebar-filter:hover,
html.dark .sidebar-filter.active {
  color: #93c5fd !important;
  background: rgba(37,99,235,.2) !important;
}

/* Horizontal Top Ad Banner between Header/Hero and Content */
.top-horizontal-ad-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 1.25rem 0 1.75rem;
  padding: .85rem 1.25rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15,23,42,.03);
  box-sizing: border-box;
}
.top-ad-content {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.top-ad-badge {
  flex-shrink: 0;
  padding: .25rem .55rem;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.top-ad-content p {
  margin: 0;
  color: #475569;
  font-size: .85rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-ad-button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
  padding: .45rem .85rem;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  transition: all .2s ease;
}
.top-ad-button:hover {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
}
html[data-theme="dark"] .top-horizontal-ad-banner,
html.dark .top-horizontal-ad-banner {
  background: #0f172a !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .top-ad-content p,
html.dark .top-ad-content p {
  color: #cbd5e1 !important;
}
@media (max-width: 680px) {
  .top-horizontal-ad-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
    padding: 1rem;
  }
  .top-ad-content p {
    white-space: normal;
  }
  .top-ad-button {
    width: 100%;
    justify-content: center;
  }
}
html[data-theme="dark"] .sign-code,
html.dark .sign-code {
  color: #93c5fd !important;
  background: rgba(37,99,235,.25) !important;
}

@media (max-width: 1050px) {
  .sign-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 680px) {
  .sign-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 440px) {
  .sign-grid {
    grid-template-columns: 1fr;
  }
}

/* Traffic Signs Extra Details (Placement & Exam Tips) */
.sign-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .45rem;
}
.sign-cat-badge {
  font-size: .68rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: .15rem .45rem;
  border-radius: 6px;
}
.sign-extra-info {
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .78rem;
}
.sign-placement {
  color: #475569;
  background: #f8fafc;
  padding: .35rem .55rem;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}
.sign-placement small {
  display: block;
  font-weight: 750;
  color: #1e40af;
  margin-bottom: .1rem;
}
.sign-placement span {
  display: block;
  color: #334155;
  line-height: 1.35;
}
.sign-exam-note {
  color: #854d0e;
  background: #fefce8;
  padding: .45rem .6rem;
  border-radius: 6px;
  border-left: 3px solid #eab308;
}
.sign-exam-note small {
  display: block;
  font-weight: 800;
  color: #a16207;
  margin-bottom: .15rem;
}
.sign-exam-note p {
  margin: 0;
  color: #713f12;
  line-height: 1.4;
  font-size: .76rem;
}

/* Sign Quiz / Practice Test Styles */
.sign-test-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .03);
}
.sign-test-filters .filter-label {
  font-size: .88rem;
  font-weight: 800;
  color: #475569;
  margin-right: .25rem;
}
.sign-quiz-question {
  display: block;
  margin: 0 0 1.5rem 0;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
  transition: all .2s ease;
}
.sign-quiz-question legend {
  padding: .35rem .75rem;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 850;
  margin-bottom: 1rem;
}
.sign-question-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.sign-question-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.sign-question-img-wrap img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.sign-question-code-badge {
  margin-top: .65rem;
  padding: .2rem .55rem;
  font-size: .75rem;
  font-weight: 900;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 6px;
}
.sign-question-content h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 1.25rem;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.quiz-options .answer {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s ease;
}
.quiz-options .answer:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}
.quiz-options .answer.is-correct,
.quiz-options .answer.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}
.quiz-options .answer.is-correct .answer-letter,
.quiz-options .answer.correct .answer-letter {
  background: #10b981 !important;
  color: #ffffff !important;
}
.quiz-options .answer.is-wrong,
.quiz-options .answer.wrong {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}
.quiz-options .answer.is-wrong .answer-letter,
.quiz-options .answer.wrong .answer-letter {
  background: #ef4444 !important;
  color: #ffffff !important;
}
.quiz-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1e40af;
  font-size: .9rem;
  line-height: 1.5;
}
.quiz-feedback .feedback-badge {
  font-weight: 850;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #2563eb;
  margin-bottom: .35rem;
}

@media (max-width: 680px) {
  .sign-question-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .sign-question-img-wrap {
    max-width: 180px;
    margin: 0 auto;
  }
}

html[data-theme="dark"] .sign-extra-info,
html.dark .sign-extra-info {
  border-top-color: #334155 !important;
}
html[data-theme="dark"] .sign-placement,
html.dark .sign-placement {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-left-color: #60a5fa !important;
}
html[data-theme="dark"] .sign-placement small,
html.dark .sign-placement small {
  color: #93c5fd !important;
}
html[data-theme="dark"] .sign-exam-note,
html.dark .sign-exam-note {
  background: #422006 !important;
  color: #fef08a !important;
  border-left-color: #facc15 !important;
}
html[data-theme="dark"] .sign-exam-note small,
html.dark .sign-exam-note small {
  color: #fde047 !important;
}
html[data-theme="dark"] .sign-exam-note p,
html.dark .sign-exam-note p {
  color: #fef9c3 !important;
}

/* Sign Detail Page Styles */
.sign-detail-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.sign-detail-wrapper .blog-breadcrumbs {
  color: #64748b;
}
.sign-detail-wrapper .blog-breadcrumbs a {
  color: #2563eb !important;
  font-weight: 750;
}
.sign-detail-wrapper .blog-breadcrumbs a:hover {
  color: #1d4ed8 !important;
}
.sign-detail-wrapper .blog-breadcrumbs span {
  color: #94a3b8;
}
.sign-detail-wrapper .blog-breadcrumbs span:last-child {
  color: #0f172a !important;
  font-weight: 850;
  background: #eff6ff;
  padding: .15rem .5rem;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}
html[data-theme="dark"] .sign-detail-wrapper .blog-breadcrumbs a,
html.dark .sign-detail-wrapper .blog-breadcrumbs a {
  color: #60a5fa !important;
}
html[data-theme="dark"] .sign-detail-wrapper .blog-breadcrumbs span:last-child,
html.dark .sign-detail-wrapper .blog-breadcrumbs span:last-child {
  color: #93c5fd !important;
  background: #1e293b !important;
  border-color: #334155 !important;
}
.sign-detail-header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}
.sign-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  min-height: 38px;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 750;
  text-decoration: none;
}
.sign-detail-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}
.sign-detail-sidebar {
  position: sticky;
  top: 90px;
}
.sign-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
  margin-bottom: 0.75rem;
}
.sign-nav-btn {
  min-width: 120px;
}
.sign-nav-center {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sign-nav-counter {
  font-size: .88rem;
  color: #64748b;
  font-weight: 700;
}
.autoplay-toggle-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.autoplay-progress-container {
  height: 4px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.autoplay-progress-bar {
  height: 100%;
  width: 0%;
  background: #2563eb;
  transition: width 0.05s linear;
}

.sign-detail-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.sign-detail-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  max-height: 340px;
}
.sign-detail-media img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.sign-detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.sign-code-large {
  font-size: .95rem;
  font-weight: 900;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: .3rem .7rem;
  border-radius: 8px;
}
.sign-cat-badge-large {
  font-size: .85rem;
  font-weight: 750;
  color: #0f172a;
  background: #f1f5f9;
  padding: .3rem .7rem;
  border-radius: 8px;
  text-decoration: none;
}
.sign-shape-badge {
  font-size: .8rem;
  font-weight: 650;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: .3rem .6rem;
  border-radius: 8px;
}
.sign-detail-info h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #0f172a;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}
.sign-detail-section {
  margin-bottom: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
}
.sign-detail-section h3 {
  font-size: .95rem;
  margin-bottom: .4rem;
}
.sign-detail-section p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
}
.sign-meaning-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.sign-placement-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  color: #1e3a8a;
}
.sign-placement-box h3 {
  color: #1e40af;
}
.sign-exam-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-left: 4px solid #eab308;
  color: #713f12;
}
.sign-exam-box h3 {
  color: #a16207;
}
.sign-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

html[data-theme="dark"] .sign-detail-nav,
html.dark .sign-detail-nav,
html[data-theme="dark"] .sign-detail-card,
html.dark .sign-detail-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .sign-detail-media,
html.dark .sign-detail-media {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .sign-detail-info h1,
html.dark .sign-detail-info h1 {
  color: #f8fafc !important;
}
html[data-theme="dark"] .sign-meaning-box,
html.dark .sign-meaning-box {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

@media (max-width: 960px) {
  .sign-detail-layout-grid {
    grid-template-columns: 1fr;
  }
  .sign-detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .sign-detail-card {
    grid-template-columns: 1fr;
  }
  .sign-detail-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .sign-nav-center {
    order: -1;
    width: 100%;
    justify-content: space-between;
  }
}

/* Sign Test 2-Column Layout Grid */
.sign-test-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}
.sign-test-sidebar {
  position: sticky;
  top: 90px;
}
@media (max-width: 960px) {
  .sign-test-layout-grid {
    grid-template-columns: 1fr;
  }
  .sign-test-sidebar {
    position: static;
  }
}

/* Translation Box / Card (CDLSite style translation notes) */
.trans-box.translation-box,
.translation-box {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  clear: both;
  margin-top: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.95rem;
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid #2563eb;
  border-radius: 0.5rem;
  color: #1d4ed8;
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 500;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .trans-box.translation-box,
html[data-theme="dark"] .translation-box,
html.dark .trans-box.translation-box,
html.dark .translation-box {
  background: rgba(30, 58, 138, 0.3) !important;
  border-left-color: #60a5fa !important;
  color: #93c5fd !important;
}

.answer .translation-box,
.quiz-options .translation-box,
.answer-list .translation-box {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 0.45rem;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  display: block;
}

.signs-hero-full-bleed .translation-box,
.signs-hero-copy .translation-box,
.quiz-hero .translation-box,
.category-hero-modern .translation-box {
  background: rgba(255, 255, 255, 0.16) !important;
  border-left: 3px solid #60a5fa !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  padding: 0.35rem 0.65rem !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0.45rem !important;
  max-width: 680px;
  display: block !important;
  border-radius: 0.4rem !important;
}

/* Mobile navigation and app action */
@media (max-width: 820px) {
  #header2 { display: none !important; }
  #header1 .header-inner { width: 100%; min-width: 0; padding: 0 1rem; }
  #header1 .brand { min-width: 0; }
  #header1 .header-tools { position: static; width: auto; margin: 0 0 0 auto; }
  #header1 .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 42px;
    min-height: 42px;
    padding: .55rem .75rem;
    color: #172554;
    background: #f1f5ff;
    border: 1px solid #dbe5fb;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: none;
  }
  #header1 .menu-button[aria-expanded="true"] { color: #fff; background: #2563eb; border-color: #2563eb; }
  #header1 .menu-icon { font-size: 1.05rem; line-height: 1; }
  #header1 .main-nav.open {
    position: absolute !important;
    top: calc(100% + 8px);
    left: 12px !important;
    right: 12px;
    z-index: 80;
    display: flex !important;
    align-items: stretch;
    flex-direction: column;
    gap: .25rem;
    width: auto;
    max-height: calc(100dvh - 90px);
    margin: 0;
    padding: .65rem;
    overflow-x: hidden;
    overflow-y: auto;
    color: #0f172a;
    background: #fff;
    border: 1px solid #dbe4f2;
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(15, 35, 75, .18);
    transform: none !important;
  }
  #header1 .main-nav.open > a {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 46px;
    padding: .65rem .75rem;
    color: #24344f;
    background: transparent;
    border-radius: 11px;
    font-size: .82rem;
    font-weight: 750;
    box-shadow: none;
  }
  #header1 .main-nav.open > a:hover,
  #header1 .main-nav.open > a[aria-current="page"] { color: #1d4ed8; background: #eff6ff; }
  #header1 .main-nav.open .nav-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; }
  #header1 .mobile-menu-settings { display: grid; gap: .15rem; margin: .45rem 0 0; padding: .55rem 0 0; border-top: 1px solid #e5eaf3; }
  #header1 .mobile-menu-setting-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 48px; padding: .45rem .75rem; border-radius: 11px; }
  #header1 .mobile-menu-setting-name { flex: 1 1 auto; color: #34435c; font-size: .8rem; font-weight: 750; }
  #header1 .mobile-menu-language-control { position: relative; flex: 0 1 145px; min-width: 0; }
  #header1 .mobile-menu-language-control .lang-select-btn { justify-content: space-between; gap: .35rem; width: 100%; min-height: 36px; padding: .4rem .55rem; color: #1e3a8a; background: #f3f7ff; border: 1px solid #dbe5fb; border-radius: 9px; font-size: .72rem; }
  #header1 .mobile-menu-language-control .lang-name { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #header1 .mobile-menu-setting-row:has(.lang-dropdown.active) { flex-wrap: wrap; }
  #header1 .mobile-menu-language-control:has(.lang-dropdown.active) { flex: 0 0 100%; order: 2; }
  #header1 .mobile-menu-language-control .lang-dropdown.active {
    position: static;
    width: 100%;
    max-height: min(290px, calc(100dvh - 220px));
    margin-top: .4rem;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: none;
  }
  #header1 .mobile-menu-language-control .lang-list { max-height: min(220px, calc(100dvh - 285px)); }
  #header1 .mobile-menu-theme-control { display: flex; align-items: center; flex: 0 0 auto; }
  #header1 .mobile-menu-theme-control #themeSwipeToggle { flex: 0 0 50px; }
  html[data-theme="dark"] #header1 .main-nav.open,
  html.dark #header1 .main-nav.open { color: #e2e8f0; background: #111d32; border-color: #2b3c58; }
  html[data-theme="dark"] #header1 .main-nav.open > a,
  html.dark #header1 .main-nav.open > a,
  html[data-theme="dark"] #header1 .mobile-menu-setting-name,
  html.dark #header1 .mobile-menu-setting-name { color: #d5e1f3; }
  html[data-theme="dark"] #header1 .mobile-menu-settings,
  html.dark #header1 .mobile-menu-settings { border-color: #2b3c58; }
}

@media (max-width: 680px) {
  .mobile-app-cta-spacer { height: 4.6rem; }
  .mobile-app-cta {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: min(360px, calc(100% - 24px));
    min-height: 52px;
    padding: .45rem .75rem;
    background: linear-gradient(100deg, #1d4ed8, #2563eb);
    border: 1px solid rgba(147, 197, 253, .55);
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(21, 61, 147, .28);
  }
  .mobile-app-cta::before { display: none; }
  .mobile-app-cta-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.19); border-radius: 9px; }
  .mobile-app-cta-icon svg { display: block; width: 18px; height: 18px; fill: currentColor; }
  .mobile-app-cta-copy { display: block; flex: 1 1 auto; min-width: 0; color: #fff; font-size: .86rem; font-weight: 850; line-height: 1; white-space: nowrap; }
  .mobile-app-cta-store { flex: 0 0 auto; padding: .35rem .5rem; color: #dbeafe; background: rgba(255,255,255,.13); border-radius: 7px; font-size: .66rem; font-weight: 800; line-height: 1; white-space: nowrap; }
  .mobile-app-cta-arrow { flex: 0 0 auto; margin-left: 0; color: #fff; font-size: .95rem; }
  body:has(#main-nav.open) .mobile-app-cta { opacity: 0; pointer-events: none; }
}

/* Blog article mobile layout: give the video a true edge-to-edge treatment
   while keeping the article card comfortably inset. */
@media (max-width: 680px) {
  .blog-single-shell {
    width: calc(100% - .25rem);
  }

  .blog-single-shell .blog-video-top-grid {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
  }

  .blog-single-shell .blog-video-standalone,
  .blog-single-shell .blog-video-standalone video,
  .blog-single-shell .blog-video-element {
    border-radius: 0;
  }

  .blog-single-shell .blog-single-layout {
    width: calc(100% + .5rem);
    margin-left: -.25rem;
    margin-right: -.25rem;
  }

  .blog-single-shell .blog-article-card {
    padding: 1rem .8rem;
  }
}


/* Lesson pages: keep the mobile reading area wide without removing the card's
   internal breathing room.  This block intentionally comes last so it wins
   over the older lesson/page-shell overrides above. */
@media (max-width: 680px) {
  .lesson-page-shell {
    width: 100%;
    max-width: none;
    padding-left: .5rem;
    padding-right: .5rem;
  }

  .lesson-top-navigation {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: .55rem;
  }

  .lesson-top-navigation .back-circle-btn {
    flex: 0 0 auto;
  }

  .lesson-breadcrumbs {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .lesson-page-title {
    margin-left: .15rem;
    margin-right: .15rem;
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lesson-content-grid {
    gap: 1rem;
  }

  .lesson-editorial-card {
    padding: 1rem .8rem;
    border-radius: .85rem;
  }

  .lesson-video-section.lesson-video-top {
    width: calc(100% + 1rem);
    max-width: none;
    margin-left: -.5rem;
    margin-right: -.5rem;
  }

  .lesson-editorial-card {
    width: calc(100% + 1rem);
    margin-left: -.5rem;
    margin-right: -.5rem;
  }

  .lesson-video-section,
  .lesson-video-player,
  .lesson-slide-deck,
  .lesson-summary-card,
  .lesson-practice-card,
  .lesson-school-ad-wrap {
    width: 100%;
    max-width: none;
  }
}

/* Performance and mobile safety pass: keep long catalogs cheap to paint and
   reserve the safe-area space for the fixed app CTA. */
.sign-card {
  content-visibility: auto;
  contain-intrinsic-size: 240px;
}
.sign-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: .75rem;
  font-weight: 750;
}
.sign-pagination .button { min-height: 38px; padding: .55rem .8rem; }
@media (max-width: 680px) {
  .mobile-app-cta-spacer { height: calc(4.25rem + env(safe-area-inset-bottom)); }
  .mobile-app-cta { bottom: calc(.7rem + env(safe-area-inset-bottom)); width: min(360px, calc(100% - 1rem)); min-height: 3rem; }
  .sign-page-layout { gap: 1rem; }
  .sign-results { min-width: 0; }
  .sign-pagination { margin-bottom: .5rem; }
}




