/* Public site chrome — AVX Labs white learning theme */

.top-utility {
  background: var(--navy);
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  min-height: var(--topbar-h);
  display: none;
}
@media (min-width: 900px) {
  .top-utility { display: block; }
}
.top-utility .inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--topbar-h);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.top-utility a { color: rgba(255,255,255,.9); }
.top-utility .socials { display: flex; gap: .75rem; align-items: center; }
.top-utility .socials a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
}

/* Product detail */
.pdp-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .pdp-grid { grid-template-columns: 1.2fr .8fr; align-items: start; }
}
.pdp-main-frame {
  overflow: hidden; min-height: 220px; background: var(--mint);
  aspect-ratio: 4/3; display: grid; place-items: center;
}
.pdp-main-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-fallback {
  width: 100%; height: 100%; min-height: 220px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #E7EFFF, #103B8F);
  color: #fff; font-size: 3rem; font-weight: 800;
}
.pdp-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.pdp-thumb {
  padding: 0; border: 2px solid transparent; border-radius: 12px;
  overflow: hidden; cursor: pointer; background: var(--surface);
}
.pdp-thumb.is-active, .pdp-thumb:hover { border-color: var(--brand); }
.pdp-thumb img { width: 88px; height: 66px; object-fit: cover; display: block; }
.pdp-buy { height: fit-content; }
@media (min-width: 860px) {
  .pdp-buy { position: sticky; top: 5rem; }
}
@media (max-width: 859px) {
  .pdp-section { padding-bottom: calc(5.5rem + var(--safe-bottom)); }
  .pdp-buy {
    position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
    z-index: 35; border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(16, 42, 86, .12);
    max-height: 42vh; overflow: auto;
  }
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .65rem;
}
.site-header .nav-toggle { grid-column: 1; z-index: 3; justify-self: start; }
.site-header .brand-lockup { grid-column: 2; min-width: 0; max-width: 100%; justify-self: start; }
.site-header .nav-desktop { display: none; }
.site-header .header-actions {
  grid-column: 3; justify-self: end;
  position: relative; z-index: 4;
  background: var(--surface);
  padding-left: .35rem;
}
.brand-lockup {
  display: inline-flex; flex-direction: row; flex-wrap: nowrap;
  align-items: center; gap: .55rem;
  color: var(--navy); font-weight: 800; font-size: 1.05rem;
  white-space: nowrap; min-width: 0;
  text-decoration: none; overflow: hidden;
}
.brand-lockup:hover { color: var(--brand); text-decoration: none; }
.brand-lockup img {
  width: auto; height: 40px; max-width: 140px; object-fit: contain; border-radius: 10px;
  flex-shrink: 0;
}
.brand-lockup .mark {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: #F5C518;
  color: #103B8F; display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; line-height: 1;
}
.brand-lockup .brand-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.15; font-size: 1.05rem; font-weight: 800;
  color: inherit; min-width: 0;
}

.nav-desktop {
  display: none; align-items: center; gap: .1rem;
  justify-content: flex-start; flex-wrap: nowrap;
  min-width: 0; max-width: 100%;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-desktop::-webkit-scrollbar { display: none; }
@media (min-width: 980px) {
  .site-header .inner {
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto;
    column-gap: 1rem;
  }
  .site-header .nav-toggle { display: none; }
  .site-header .brand-lockup {
    grid-column: 1;
    max-width: 170px;
  }
  .site-header .nav-desktop {
    display: flex;
    grid-column: 2;
    border-left: 1px solid var(--border);
    padding-left: .75rem;
    padding-right: .35rem;
  }
  .site-header .header-actions {
    grid-column: 3;
    gap: .35rem;
    border-left: 1px solid var(--border);
    padding-left: .75rem;
    margin-left: 0;
  }
}
.nav-desktop a, .nav-desktop .nav-drop > summary {
  color: var(--ink); font-weight: 650; font-size: .74rem;
  padding: .35rem .4rem; border-radius: 10px; list-style: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: .01em;
  white-space: nowrap; flex: 0 0 auto;
}
.nav-desktop .nav-ico { display: none !important; }
@media (min-width: 1280px) {
  .site-header .inner { grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; }
  .site-header .brand-lockup { max-width: 190px; }
  .nav-desktop a, .nav-desktop .nav-drop > summary {
    font-size: .8rem; padding: .4rem .5rem;
  }
}
.nav-desktop a:hover, .nav-desktop .nav-drop > summary:hover {
  background: var(--brand-soft); color: var(--brand); text-decoration: none;
}
.nav-drop { position: relative; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop .dropdown {
  position: absolute; top: calc(100% + .35rem); left: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: .4rem;
  display: grid;
}
.nav-drop .dropdown a { display: block; padding: .55rem .7rem; border-radius: 10px; text-transform: none; }

.header-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.header-search-desktop { display: none; }
@media (min-width: 1100px) { .header-search-desktop { display: grid; } }
.header-auth-group {
  display: inline-flex; align-items: center; gap: .35rem; flex-wrap: nowrap;
}
.header-actions .header-auth {
  white-space: nowrap;
  padding: .32rem .65rem;
  min-height: 32px;
  font-size: .78rem;
  border-radius: 999px;
}
@media (max-width: 1199px) {
  .header-actions .header-auth-group .btn-outline { display: none; }
}
.header-actions .btn-icon {
  position: relative;
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
}
.header-actions .cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: .65rem; font-weight: 700; display: grid; place-items: center;
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: .2rem;
  font-weight: 750; font-size: .78rem; text-decoration: none;
  padding: .35rem .65rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); white-space: nowrap; flex-shrink: 0;
}
.lang-toggle .lang-sep { opacity: .45; }
.lang-toggle .is-active { color: var(--brand); }
.lang-toggle:hover { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.lang-toggle:hover .is-active { color: var(--brand); }
.nav-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--brand);
}
@media (max-width: 979px) {
  .header-auth-group { display: none; }
  .header-actions .header-auth { display: none; }
}

.mobile-drawer {
  display: none; position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 39, 64, .45);
}
.mobile-drawer.open { display: block; }
.mobile-drawer .panel {
  width: min(340px, 92vw); height: 100%;
  background: var(--surface); padding: 1rem 1.1rem 1.5rem;
  box-shadow: var(--shadow); overflow-y: auto;
  display: flex; flex-direction: column; gap: .35rem;
}
.drawer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  margin: -.15rem 0 .85rem;
  padding: .15rem 0 .85rem;
  border-bottom: 1px solid var(--border);
}
.drawer-brand { min-width: 0; max-width: 100%; }
.drawer-brand .brand-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(14rem, 58vw);
}
.drawer-close {
  justify-self: end;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--navy); display: grid; place-items: center; flex-shrink: 0;
}
.drawer-close .ui-ico-close { width: 20px; height: 20px; }
.drawer-close:hover { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.drawer-nav, .drawer-account {
  display: flex; flex-direction: column; gap: 0;
}
.drawer-nav a, .drawer-account a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: .85rem;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink); font-weight: 650; text-decoration: none;
  text-align: left;
}
.drawer-nav a.is-active, .drawer-account a.is-active { color: var(--brand); }
.drawer-nav .nav-ico, .drawer-account .nav-ico,
.nav-desktop .nav-ico {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; line-height: 1; opacity: .95;
  color: inherit;
}
.nav-desktop .nav-ico .ui-ico { width: 16px; height: 16px; }
.drawer-nav .nav-label, .drawer-account .nav-label {
  min-width: 0; line-height: 1.25;
}
.ui-ico { display: block; flex-shrink: 0; }
.header-cart .ui-ico, .header-actions .ui-ico { width: 18px; height: 18px; }
.bottom-nav .ico .ui-ico { width: 22px; height: 22px; margin: 0 auto; }
.drawer-langs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .85rem; padding: .25rem 0; }
.drawer-langs .lang-toggle--drawer {
  display: inline-flex; grid-template-columns: none;
  padding: .45rem .9rem; font-size: .85rem;
}
@media (max-width: 979px) {
  .header-profile { display: none !important; }
}
body.drawer-open { overflow: hidden; }
.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;
}
.brand-lockup--spacer { min-width: 2.5rem; }
.nav-desktop a {
  display: inline-flex; align-items: center; gap: .4rem;
}
@media (max-width: 979px) {
  .site-header .inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: .45rem;
  }
  .site-header .nav-toggle { grid-column: 1; }
  .site-header .brand-lockup { grid-column: 2; max-width: 100%; }
  .site-header .header-actions {
    grid-column: 3; gap: .25rem; border-left: 0; padding-left: .2rem;
  }
  .header-auth-group, .header-actions .header-auth { display: none !important; }
  .header-search-desktop { display: none !important; }
  .header-cart, .header-profile { display: grid; }
  .brand-logo-desktop { display: none; }
  .site-header .lang-toggle { display: none !important; }
  .site-header .brand-lockup .mark { width: 32px; height: 32px; font-size: 1rem; }
  .site-header .header-actions .btn-icon { width: 34px; height: 34px; }
  .site-header .brand-lockup { overflow: visible; }
  .site-header .brand-lockup .brand-text {
    font-size: clamp(.82rem, 3.6vw, 1.02rem);
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
}
@media (min-width: 980px) {
  .brand-logo-mobile { display: none; }
  .brand-logo-desktop { display: block; }
  .header-profile { display: none; }
}

.site-main {
  min-height: 50vh;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
}
@media (min-width: 900px) {
  .site-main { padding-bottom: 2rem; }
}

/* Footer blog category tiles — compact single row */
.footer-blog-band {
  background: var(--bg-primary);
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-blog-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 220px);
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .15rem .15rem .35rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.footer-blog-rail::-webkit-scrollbar { display: none; }
@media (min-width: 980px) {
  .footer-blog-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    gap: 1.25rem;
    overflow: visible;
  }
}
.footer-blog-card {
  position: relative;
  display: block;
  min-height: 210px;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-sm);
  background: #102A56;
}
.footer-blog-card:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
.footer-blog-card-bg,
.footer-blog-card-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.footer-blog-card-fallback {
  background: linear-gradient(145deg, #103B8F, #175CD3);
}
.footer-blog-card-count {
  position: absolute; top: .55rem; left: .55rem; z-index: 2;
  padding: .22rem .55rem; border-radius: 999px;
  background: rgba(15, 23, 42, .55); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1.2;
  backdrop-filter: blur(4px);
}
.footer-blog-card-shade {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 62%;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 31, 68, .88) 72%, rgba(11, 31, 68, .96) 100%);
  pointer-events: none;
}
.footer-blog-card-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: .85rem .8rem 1rem;
  display: grid; gap: .3rem;
}
.footer-blog-card-title {
  display: block;
  padding-left: .55rem;
  border-left: 3px solid #6BA3FF;
  font-size: .92rem; font-weight: 800; line-height: 1.2;
  color: #fff;
}
.footer-blog-card-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  padding-left: .55rem;
  font-size: .72rem; line-height: 1.35; font-weight: 500;
  color: rgba(255,255,255,.88);
}
@media (max-width: 899px) {
  .footer-blog-band {
    padding: 1.15rem 0 calc(1.15rem + var(--bottom-nav-h) + var(--safe-bottom));
  }
  .footer-blog-rail {
    grid-auto-columns: minmax(210px, 78vw);
    gap: 1.15rem;
    padding-left: .15rem;
    padding-right: 1rem;
  }
  .footer-blog-card { min-height: 200px; min-width: 0; margin-right: 0; }
}

.site-footer {
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding: 3rem 0 calc(2rem + var(--bottom-nav-h) + var(--safe-bottom));
}
@media (min-width: 900px) {
  .site-footer { padding-bottom: 2.5rem; }
}
.site-footer a { color: var(--brand); }
.site-footer .grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.site-footer h4 { color: var(--navy); margin: 0 0 .75rem; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .copy {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--muted); text-align: center;
}
.site-footer-bar {
  background: var(--navy); color: rgba(255,255,255,.85);
  padding: .85rem 1rem; font-size: .85rem; text-align: center;
  margin-top: 0;
}

/* Mobile bottom nav — app style */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  padding: .4rem .35rem calc(.45rem + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 -10px 28px rgba(16, 42, 86, 0.08);
}
@media (min-width: 900px) {
  .bottom-nav { display: none; }
}
.bottom-nav a {
  display: grid; justify-items: center; gap: .12rem;
  padding: .45rem .15rem; color: var(--muted); font-size: .65rem; font-weight: 650;
  position: relative; text-decoration: none; min-height: 48px; align-content: center;
}
.bottom-nav a .ico { font-size: 1.2rem; line-height: 1; }
.bottom-nav a.active { color: var(--brand); font-weight: 750; }
.bottom-nav a.active::before {
  content: "";
  position: absolute; top: 0; width: 22px; height: 3px;
  border-radius: 0 0 6px 6px; background: var(--brand);
}
[data-theme="dark"] .bottom-nav {
  background: var(--surface);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
}

/* Hero — image-only banner carousel (full-bleed, no split column) */
.hero {
  padding: 1rem 0 1.25rem;
  background: var(--mint);
}
.hero--banner-only .hero-stage { position: relative; width: 100%; }
.hero-slide {
  background: #103B8F;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
  min-height: 0;
}
.hero-slide--media {
  display: block;
  width: 100%;
  min-height: 0;
}
.hero-slide[hidden] { display: none !important; }
.hero-slide .media {
  background: linear-gradient(135deg, #103B8F, #175CD3 55%, #0B1F44);
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero--banner-only .hero-slide .media {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
}
.hero-slide .media.hero-fallback::after {
  content: var(--site-brand-name, "");
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.92); font-weight: 800; font-size: clamp(1.5rem, 5vw, 2.75rem);
  letter-spacing: -.03em;
  text-align: center;
  padding: 1rem;
}
.hero-slide .media picture,
.hero-slide .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border: 0;
}
.hero-controls {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-top: .75rem;
}
.hero--banner-only .hero-controls {
  position: absolute; inset: 0; margin: 0; z-index: 5;
  display: block; pointer-events: none;
}
.hero--banner-only .hero-nav-prev { left: .55rem; }
.hero--banner-only .hero-nav-next { right: .55rem; }
.hero--banner-only .hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6; pointer-events: auto;
}
.hero--banner-only .hero-dots {
  position: absolute; left: 0; right: 0; bottom: .55rem;
  pointer-events: auto; z-index: 6;
}
.hero-nav {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--brand);
  cursor: pointer; font-size: 1.25rem; line-height: 1;
  display: grid; place-items: center;
}
.hero-nav:hover { background: var(--brand-soft); }
.hero-dots { display: flex; gap: .4rem; justify-content: center; }
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: var(--mint-deep); cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--brand); width: 22px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Trusted by learners — normal document flow, no absolute overlap */
.home-trust-section { overflow: visible; }
.home-trust {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .home-trust { grid-template-columns: 1.2fr .8fr; gap: 1.75rem; align-items: center; }
}
.home-trust-copy h2 {
  margin: 0 0 .65rem; color: var(--navy); font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25; position: relative; z-index: 1;
}
.home-trust-copy .lead { margin: 0; max-width: 36rem; }
.home-trust-ctas { margin-top: 1rem; flex-wrap: wrap; gap: .65rem; }
.home-trust-stats {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .home-trust-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .home-trust-stats { grid-template-columns: 1fr; }
}
.trust-stat {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
  display: grid; gap: .25rem; min-height: 0;
}
.trust-stat strong { color: var(--navy); font-size: 1.05rem; }

/* CA programme cards */
.ca-category-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ca-category-grid { grid-template-columns: 1fr 1fr; }
}
.ca-category-card {
  display: grid; gap: 0;
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  min-height: 0;
}
.ca-category-media {
  min-height: 140px;
  background: linear-gradient(135deg, #103B8F, #175CD3);
  display: grid; place-items: center;
}
.ca-category-mark {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.95); color: #103B8F;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.ca-category-body { padding: 1.15rem 1.2rem 1.25rem; display: grid; gap: .65rem; align-content: start; }
.ca-category-body h3 { margin: 0; color: var(--navy); font-size: 1.2rem; line-height: 1.3; }
.ca-category-desc {
  margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45; min-height: 0;
}

/* YouTube stories carousel (Topper-style) */
.yt-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.15rem; flex-wrap: wrap;
}
.yt-section-head h2 { margin: .55rem 0 .35rem; color: var(--navy); }
.yt-section-head .muted {
  display: inline-block;
  margin-top: .45rem;
  padding: .4rem .75rem;
  border-radius: 10px;
  background: var(--subhead-bg);
  color: var(--subhead-fg);
  transition: var(--theme-transition);
}
.yt-nav-btns { display: flex; gap: .45rem; }
.yt-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yt-rail::-webkit-scrollbar { display: none; }
.yt-card {
  scroll-snap-align: start;
  flex: 0 0 min(280px, 78vw);
  width: min(280px, 78vw);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-height: 0;
}
.yt-thumb {
  position: relative; display: block; aspect-ratio: 16/10; background: #102A56;
  overflow: hidden; border-radius: 16px 16px 0 0;
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-thumb-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #103B8F, #175CD3);
}
.yt-air {
  position: absolute; top: .7rem; left: .7rem; z-index: 1;
  min-width: 3.1rem; min-height: 3.1rem; padding: .35rem .4rem;
  border-radius: 50%;
  background: #103B8F; color: #fff;
  font-size: .62rem; font-weight: 800; line-height: 1.15;
  letter-spacing: .02em; text-align: center;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(16, 59, 143, .35);
  white-space: pre-line;
}
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: #ef4444; color: #fff; font-size: 1rem;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(239, 68, 68, .35);
  padding-left: 3px;
}
.yt-body { padding: .9rem 1rem 1.1rem; display: grid; gap: .4rem; flex: 1; align-content: start; }
.yt-meta-row {
  display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start;
}
.yt-meta-row strong {
  color: var(--navy); font-size: 1rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-tag {
  flex-shrink: 0; background: #fee2e2; color: #b91c1c;
  font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px;
}
.yt-course {
  color: var(--brand); font-size: .85rem; font-weight: 650;
}
.yt-quote {
  margin: .15rem 0 0; color: var(--muted); font-size: .9rem; font-style: italic; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* section-sub / page-hero backgrounds live in design-system (theme tokens) */

/* Blog cards — single column stack (screenshot layout) */
.blog-listing-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.blog-listing-head h1,
.blog-listing-head h2 {
  margin: 0; color: var(--navy); font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.blog-listing-count {
  margin: 0; color: var(--muted); font-size: .92rem; font-weight: 600; text-decoration: none;
}
.blog-listing-tools {
  display: grid; gap: 1rem; margin-bottom: 1.25rem;
}
.blog-search { max-width: 420px; }
.blog-card-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 720px;
}
.blog-card-stack--home { max-width: 720px; }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 42, 86, .06);
  display: flex; flex-direction: column;
}
.blog-card-media {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: #102A56; overflow: hidden; text-decoration: none;
}
.blog-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.blog-card-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #103B8F, #175CD3);
}
.blog-card-date {
  position: absolute; left: .85rem; bottom: .85rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .4rem;
  background: #16a34a; color: #fff;
  padding: .4rem .7rem; border-radius: 8px;
  font-size: .78rem; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 14px rgba(22, 163, 74, .28);
}
.blog-card-body {
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex; flex-direction: column; gap: .55rem; flex: 1;
}
.blog-card-title {
  margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 800; color: var(--ink);
}
.blog-card-title a {
  color: inherit; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-title a:hover { color: var(--brand); }
.blog-card-excerpt {
  margin: 0; color: #6b7280; font-size: .92rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-foot {
  margin-top: auto; padding-top: .85rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.blog-card-meta {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #9ca3af; font-size: .8rem; font-weight: 600;
}
.blog-card-meta-item {
  display: inline-flex; align-items: center; gap: .3rem;
}
.blog-card-sep { opacity: .55; }
.blog-card-more {
  color: #16a34a; font-size: .78rem; font-weight: 800;
  letter-spacing: .04em; text-decoration: none; white-space: nowrap;
}
.blog-card-more:hover { text-decoration: underline; }

.home-courses-section .course-card,
.home-tests-section .course-card {
  display: flex; flex-direction: column; min-height: 0; height: 100%;
}
.home-courses-section .course-card .body,
.home-tests-section .course-card .body {
  display: flex; flex-direction: column; gap: .45rem; flex: 1; min-height: 0;
}
.home-courses-section .course-card h3,
.home-tests-section .course-card h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35; margin: 0;
}
.course-card .card-desc {
  margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; font-size: .9rem;
}
.course-card .card-actions { margin-top: auto; padding-top: .35rem; }
.announce-banner { background: var(--brand-soft); border: 0; gap: 1rem; flex-wrap: wrap; }
.cat-rail {
  display: none; gap: .75rem; overflow-x: auto; padding-bottom: .35rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.cat-rail .cat-card {
  scroll-snap-align: start; min-width: 108px; flex: 0 0 auto;
  text-decoration: none;
}
.cat-pills-desktop { display: flex; }
.resource-home-grid {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 800px) {
  .resource-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.resource-home-grid a { text-decoration: none; color: inherit; }
.resource-home-grid a:hover { border-color: var(--brand); }

/* Why choose — two column */
.why-split {
  display: grid; gap: 1.5rem;
}
@media (min-width: 900px) {
  .why-split { grid-template-columns: 1.15fr .85fr; align-items: center; }
}
.why-list { display: grid; gap: 0; }
.why-item {
  display: grid; grid-template-columns: 48px 1fr; gap: .85rem; align-items: start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.why-item:last-child { border-bottom: 0; }
.why-item .ico {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--brand); color: var(--brand);
  display: grid; place-items: center; background: var(--surface);
}
.why-video-card {
  background: linear-gradient(160deg, var(--brand-soft), var(--surface));
  border: 1px solid var(--border); border-radius: 22px;
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.why-video-card .thumb {
  aspect-ratio: 16/10; border-radius: 14px; margin: 1rem 0;
  background: linear-gradient(145deg, #0b3d91, #3b82f6);
  display: grid; place-items: center; color: #fff; position: relative;
}
.why-video-card .thumb .play {
  width: 54px; height: 54px; border-radius: 50%; background: var(--surface); color: var(--brand);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 800;
}

/* Batch cards */
.batch-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.batch-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.35rem 1.15rem; text-align: center; box-shadow: var(--shadow-sm);
}
.batch-card .ico {
  width: 52px; height: 52px; margin: 0 auto .75rem; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.25rem;
}
.batch-card .status { color: var(--brand); font-weight: 700; font-size: .88rem; margin-bottom: .35rem; }
.batch-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.15rem 1.25rem; margin-top: 1.25rem;
}
@media (min-width: 800px) {
  .batch-features { grid-template-columns: repeat(4, 1fr); }
}
.batch-features article strong { display: block; color: var(--navy); font-size: .92rem; }
.batch-features article span { color: var(--muted); font-size: .8rem; }

/* Topper stories carousel */
.topper-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px);
  gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory;
}
.topper-card {
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.topper-card .thumb {
  aspect-ratio: 16/10; background: #0f2740; position: relative;
  display: grid; place-items: center; color: #fff;
}
.topper-card .air {
  position: absolute; top: .65rem; left: .65rem;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.55);
  display: grid; place-items: center; font-size: .68rem; font-weight: 800;
}
.topper-card .play {
  width: 48px; height: 48px; border-radius: 50%; background: #ef4444;
  display: grid; place-items: center; font-size: 1rem;
}
.topper-card .body { padding: .9rem 1rem 1.1rem; }
.topper-card .meta-row { display: flex; justify-content: space-between; gap: .5rem; align-items: start; }
.topper-card .tag { background: #fee2e2; color: #b91c1c; font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; }

/* Auth pages — beautiful white cards */
.auth-page {
  min-height: calc(100vh - var(--header-h) - 4rem);
  display: grid; place-items: center;
  padding: 2rem 1rem 3rem;
  background:
    radial-gradient(ellipse at 10% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 45%),
    radial-gradient(ellipse at 90% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 40%),
    var(--mint);
}
.auth-shell-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.auth-shell-card .auth-brand {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.auth-shell-card .auth-brand .mark {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand);
  color: #fff; font-weight: 800; display: grid; place-items: center;
}
.auth-shell-card h1, .auth-shell-card h2 { margin: 0 0 1rem; color: var(--navy); font-size: 1.45rem; }
.auth-shell-card .lead { margin: 0 0 1.25rem; color: var(--muted); }
.auth-shell-card label { display: grid; gap: .4rem; margin-bottom: .9rem; }
.auth-shell-card .auth-input,
.auth-shell-card input[type="text"],
.auth-shell-card input[type="email"],
.auth-shell-card input[type="password"] {
  width: 100%;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  padding: 0 1rem;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.2;
}
.auth-shell-card .btn-primary { width: 100%; border-radius: 12px; min-height: 52px; }
.auth-shell-card .link-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.15rem; font-size: .9rem; }

/* Category filter pills (Ekatvam style) */
.cat-pills {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-top: 1rem;
}
.cat-pills a {
  border: 1px solid var(--border); background: var(--surface); color: var(--navy);
  border-radius: 10px; padding: .65rem 1.1rem; font-weight: 700; font-size: .88rem;
}
.cat-pills a:hover, .cat-pills a.active {
  background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none;
}

/* Profile shell */
.profile-shell { padding: 1rem 0 2rem; }
.profile-topbar { margin-bottom: 1rem; align-items: center; }
.profile-title { font-size: 1.25rem; margin: 0; color: var(--navy); }
.profile-card {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.15rem 1.25rem; margin-bottom: 1.25rem;
}
.profile-card .avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 1.35rem;
}
.profile-name { display: block; color: var(--navy); font-size: 1.1rem; }
.menu-card { padding-top: .35rem; padding-bottom: .35rem; }
.menu-row-lang .lang-inline { display: inline-flex; gap: .35rem; }
.menu-row-lang .lang-inline a {
  font-size: .75rem; font-weight: 700; color: var(--brand);
  padding: .2rem .45rem; border-radius: 8px; background: var(--brand-soft);
}
.profile-logout { margin-top: 1.25rem; }
.profile-logout .btn-danger {
  border-radius: 14px; min-height: 48px;
  background: #FEECEC; color: #B42318; border: 0;
}

/* Mobile app feel — tighten cards on small screens */
@media (max-width: 899px) {
  .site-footer { display: none; }
  .site-footer-bar {
    display: block;
    margin-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  }
  .top-utility { display: none !important; }
  .hero { padding: .85rem 0 1.1rem; }
  .section { padding: 1.5rem 0; }
  .cat-rail { display: flex; }
  .cat-pills-desktop { display: none; }
  .hero--banner-only .hero-nav { display: grid; }
  .yt-nav-btns .hero-nav { display: grid; }
}
@media (max-width: 400px) {
  .site-header .brand-lockup .brand-text,
  .brand-lockup span:last-child {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
  .course-grid { gap: .75rem; }
}

/* Compact catalogue layout */
.catalog-hero { padding-bottom: .5rem; }
.catalog-search-row {
  display: flex; gap: .55rem; align-items: center; margin-top: .85rem; flex-wrap: nowrap;
}
.catalog-search { flex: 1; min-width: 0; margin: 0; }
.catalog-search--compact {
  padding: .2rem .25rem .2rem .85rem;
  max-width: 100%;
}
.catalog-search--compact input {
  min-height: 34px;
  font-size: .92rem;
}
.catalog-search--compact .search-submit {
  width: 34px; height: 34px; font-size: .9rem;
}
@media (max-width: 899px) {
  .catalog-search-row { flex-wrap: nowrap; }
  .catalog-filter-toggle { flex-shrink: 0; padding: .4rem .7rem; font-size: .82rem; }
}
.catalog-layout {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .catalog-filter-toggle { display: none !important; }
  .catalog-filters-close { display: none !important; }
  .catalog-filters-backdrop { display: none !important; }
}
.catalog-filters {
  position: relative;
}
.catalog-filters-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem;
}
.catalog-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.catalog-filter-actions { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.catalog-results-meta { margin-bottom: .85rem; font-size: .88rem; }
.catalog-card .body { display: grid; gap: .35rem; }
.catalog-card-desc { margin: 0; font-size: .82rem; line-height: 1.35; min-height: 2.2em; }
.catalog-card .btn { margin-top: .25rem; width: 100%; }
@media (max-width: 899px) {
  .catalog-filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    max-height: 78vh; overflow: auto; border-radius: 18px 18px 0 0;
    transform: translateY(110%); transition: transform .25s ease;
    margin: 0; box-shadow: 0 -12px 32px rgba(16,42,86,.18);
  }
  .catalog-filters.is-open { transform: none; }
  .catalog-filters-backdrop {
    position: fixed; inset: 0; z-index: 54; background: rgba(16,42,86,.4);
  }
  .catalog-filters-backdrop[hidden] { display: none; }
}

/* Locked test series */
.ts-locked {
  text-align: center; padding: 2.5rem 1.25rem; max-width: 28rem; margin: 0 auto;
}
.ts-locked .lock-ico {
  width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.75rem;
}
.ts-meet-card {
  display: grid; gap: .5rem; padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.ts-meet-card:last-child { border-bottom: 0; }

/* Book detail — stack on phones, full-width action buttons */
.book-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.book-buy {
  display: grid;
  gap: .75rem;
  height: fit-content;
}
.book-buy-price { font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.book-buy-actions { display: grid; gap: .65rem; }
.book-buy-actions form { margin: 0; }
.book-buy-actions .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  padding: .75rem 1rem;
}
@media (min-width: 860px) {
  .book-layout { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); }
  .book-buy { position: sticky; top: 5rem; }
}
