:root{
  /* Palette (from provided image) */
  --rose: #ca9aa8;
  --peach: #e8b3a1;
  --cream: #edcfc4;
  --soft-gold: #e1b876;
  --denim: #96b2ca;
  --navy: #5e718f;

  /* Roles */
  --ink: #2f3a4a;
  --muted: #5b677a;
  --bg: #fff;

  --primary: var(--navy);
  --primary-dark: #4a5c77;

  --accent: var(--rose);
  --accent-2: var(--soft-gold);

  --card-border: rgba(94,113,143,.18);

  --hero-top: var(--denim);
  --hero-bottom: var(--cream);

  --community: #4a5c77;
  --footer: #4a5c77;
  --footer-bottom: #3a485f;

  --radius: 18px;
  --shadow: 0 12px 34px rgba(47,58,74,.12);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body.page-index{ --bg: #fffaf8; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-rounded, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{ width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
}
.skip-link:focus{ left: 12px; z-index: 9999; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 900;
  letter-spacing: .1px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none !important;
  transition: transform .08s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{ background: var(--primary); color: #fff; }
.btn--primary:hover{ background: var(--primary-dark); }

.btn--teal{ background: var(--accent-2); color: #3b2b16; }
.btn--teal:hover{ background: #cda463; color: #2d2112; }

.btn--muted{
  background: rgba(150,178,202,.22);
  color: var(--ink);
  border-color: rgba(94,113,143,.20);
}
.btn--muted:hover{ background: rgba(150,178,202,.32); }

.btn--chip{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(94,113,143,.22);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.btn--chip:hover{ background: rgba(202,154,168,.14); }
.btn--chip.is-active{
  border-color: rgba(94,113,143,.40);
  box-shadow: 0 0 0 4px rgba(202,154,168,.18);
}

.link{
  font-weight: 900;
  color: #2c3e67;
  padding: 8px 10px;
  border-radius: 10px;
}
.link:hover{ background: rgba(202,154,168,.20); text-decoration: none; }

/* Header */
.site-header{
  border-bottom: 1px solid rgba(94,113,143,.15);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.header-row{
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.header-row--simple{
  grid-template-columns: 1fr auto;
}

.admin-login-page{
  .header-row{
    display: flex;
    justify-content: space-between;
  }
  .header-actions{
    display: flex;
    flex-direction: row-reverse;
  }
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  font-weight: 1000;
}
.brand-mark{

  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rose), var(--denim), var(--navy));
  box-shadow: 0 10px 22px rgba(94,113,143,.28);
}
.brand-logo{
  height: 34px;
  width: auto;
  display: block;
}
.brand-name{ font-size: 18px; }
.badge{
  margin-left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 1000;
  background: rgba(225,184,118,.28);
  color: #4c3a1f;
  border: 1px solid rgba(225,184,118,.45);
  font-size: 12px;
  white-space: nowrap;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 900;
  color: #2d3f69;
}
.nav a,
.nav summary{
  padding: 8px 8px;
  border-radius: 10px;
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-mobile-auth{ display: none; }
.nav a:hover,
.nav summary:hover{ background: rgba(202,154,168,.20); }

/* Dropdown (Subjects) */
.nav-dd{ position: relative; }
.nav-dd summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-dd summary::-webkit-details-marker{ display: none; }
.nav-dd summary::after{ content: "▾"; font-weight: 1000; opacity: .75; }

.nav-dd-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(94,113,143,.18);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 60;
}

/* Account dropdown (header right) */
.account-dd{ position: relative; }
.account-dd__summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(94,113,143,.20);
  background: #fff;
  font-weight: 1000;
}
.account-dd__summary::-webkit-details-marker{ display:none; }
.account-dd__summary::after{ content:"▾"; opacity:.75; font-weight:1000; }
.account-dd__icon{ width: 22px; height: 22px; display:grid; place-items:center; }
.account-dd__menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(94,113,143,.18);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 6px;
}
.account-dd__menu a,
.account-dd__menu button{
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  color: #2d3f69;
}
.account-dd__menu a:hover,
.account-dd__menu button:hover{ background: rgba(202,154,168,.18); }

/* Curriculum page (matches provided reference layout) */
.curr-hero{
  padding: 36px 0 0;
}
.curr-hero__inner{ padding-bottom: 18px; }
.curr-title{
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: .2px;
}
.curr-sub{
  margin: 10px 0 18px;
  color: var(--muted);
  max-width: 900px;
  font-weight: 700;
}

.curr-tabs{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 0.5px solid rgba(150,178,202,.65);
  font-weight: 600;
}
.curr-tabs-select{
  display: none;
  width: 100%;
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(94,113,143,.22);
  background: #fff;
  color: #2d3f69;
  font: inherit;
  font-weight: 900;
  height: 42px;
}

.curr-tab{
  appearance: none;
  /* Unselected tabs: no borders */
  border: none;
  background: transparent;
  padding: 12px 18px;
  border-radius: 0;
  font-weight: 700;
  color: #2d3f69;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
}
.curr-tab:active{ transform: translateY(1px); }
.curr-tab:hover{ background: rgba(202,154,168,.12); }
.curr-tab.is-active{
  /* Selected tab: card-like with top/side borders, and a seamless bottom edge */
  background: #fff;
  border: 1px solid rgba(94,113,143,.25);
  border-bottom: 0.5px solid #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 18px rgba(47,58,74,.08);
  margin-bottom: -0.5px; /* overlap the tablist bottom line */
}

.curr-body{ padding: 0 0 46px; }
.curr-module{ padding: 28px 0 6px; }
.curr-module__title{
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: .3px;
}

.curr-topics{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.curr-topic{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: #2f3a4a;
  font-weight: 600;
}
.curr-topic__arrow{ opacity: .85; transform: translateY(1px); }
.curr-topic__text{ line-height: 1.45; }

@media (max-width: 980px){
  .curr-tabs{ display: none; }
  .curr-tabs-select{ display: block; }
}

@media (max-width: 720px){
  .curr-tab{ padding: 10px 14px; }
}
.nav-dd-menu a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 900;
  color: #2d3f69;
}
.nav-dd-menu a:hover{ background: rgba(202,154,168,.20); }

.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu,
.nav-dd[open] .nav-dd-menu{ display: block; }

.header-actions{ display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }

.header-strip{
  background: rgba(232,179,161,.35);
  border-top: 1px solid rgba(202,154,168,.35);
}
.strip-row{
  padding: 8px 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  font-weight: 600;
  color: #4c3a1f;
  text-align: center;
  flex-wrap: wrap;
}

/* Mobile nav */
.nav-toggle{ display: none; }
.nav-hamburger{
  display: none;
  justify-self: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(94,113,143,.18);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}
.nav-hamburger span{
  display: block;
  height: 3px;
  margin: 0 0 4px 0;
  background: #2d3f69;
  border-radius: 10px;
  transform-origin: center;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-hamburger span:last-child{ margin: 0; }
.nav-toggle:checked ~ .nav-hamburger{
  background: rgba(202,154,168,.12);
  border-color: rgba(94,113,143,.32);
}
.nav-toggle:checked ~ .nav-hamburger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-hamburger span:nth-child(2){ opacity: 0; transform: scaleX(.6); }
.nav-toggle:checked ~ .nav-hamburger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Animations */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in{ opacity: 1; transform: translateY(0); }

@keyframes pageEnter{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
.page-enter{ animation: pageEnter .28s ease both; }

.card, .topic-card{ transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .topic-card:hover{ transform: translateY(-2px); box-shadow: 0 16px 40px rgba(47,58,74,.14); }

@keyframes popIn{
  from{ opacity: 0; transform: translateY(8px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.topic-card.is-pop{ animation: popIn .35s ease both; }

/* Hero */
.hero{ background: linear-gradient(180deg, var(--hero-top), #fff); padding: 44px 0 18px; overflow: hidden; }
.hero-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero-copy h1{ margin: 0 0 12px; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -.3px; }
.lead{ margin: 0 0 16px; font-size: 16px; line-height: 1.6; max-width: 64ch; color: rgba(47,58,74,.82); }
.hero-free{ font-weight: 1000; }
.hero-points{ margin: 0 0 18px; padding-left: 18px; color: rgba(47,58,74,.78); line-height: 1.7; font-weight: 700; }
.hero-actions{ display: flex; gap: 10px; flex-wrap: wrap; }

.hero-art{ border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.45); background: #fff; }
.hero-art svg{ display:block; width:100%; height:auto; }

/* Sections */
.section{ padding: 54px 0 56px; background: transparent; }
.section-head{ text-align: center; margin-bottom: 22px; }
.section-head h2{ margin: 0 0 8px; font-size: 28px; }
.section-head p{ margin: 0 auto 0; color: var(--muted); max-width: 80ch; line-height: 1.6; }

.card{
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(47,58,74,.08);
}
.card-top{ display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card h3{ margin: 0; font-size: 18px; }
.card p{ margin: 10px 0 0; color: var(--muted); line-height: 1.6; }

.icon{
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(150,178,202,.24);
  color: var(--primary);
  flex: 0 0 auto;
}
.icon svg{ width: 22px; height: 22px; }

/* Grids */
.features-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.how-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.step-num{
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 1000;
  background: rgba(202,154,168,.24);
  color: #3a485f;
  border: 1px solid rgba(94,113,143,.18);
}
.subject-cards{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.subject-card small{ display:block; color: var(--muted); margin-top: 6px; }
.subject-card .go{ margin-top: 12px; display:inline-flex; }

.free{ background: rgba(232,179,161,.28); padding: 46px 0 54px; }
.free-grid{ margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.sample{ background: var(--community); padding: 54px 0 58px; color: #fff; }
.sample h2{ text-align: center; margin: 0 0 22px; font-size: 28px; }
.sample-wrap{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.sample-card{ background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px; box-shadow: 0 14px 28px rgba(0,0,0,.12); }
.sample-card p{ color: rgba(255,255,255,.95); line-height: 1.55; margin: 0 0 12px; }
.choice{ display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); margin-bottom: 10px; }
.choice strong{ min-width: 18px; }
.sample-card details{ margin-top: 8px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 10px; }
.sample-card summary{ cursor: pointer; font-weight: 1000; user-select: none; }
.sample-card summary:hover{ text-decoration: underline; }
.stat-grid{ display: grid; grid-template-columns: 1fr; gap: 12px; }
.stat{ background: rgba(15,27,58,.20); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px; }
.stat h3{ margin: 0 0 6px; font-size: 16px; }
.stat p{ margin: 0; color: rgba(255,255,255,.9); line-height: 1.5; }

.about{ background: transparent; padding: 46px 0 20px; }
.about-box{ text-align: center; padding: 28px 18px; border: 1px solid var(--card-border); border-radius: 18px; box-shadow: 0 10px 24px rgba(47,58,74,.08); background:#fff; }
.about-box h2{ margin: 0 0 10px; font-size: 26px; }
.about-box p{ margin: 0 auto; max-width: 86ch; color: var(--muted); line-height: 1.6; }

.contact{ background: transparent; padding: 26px 0 54px; }
.contact-box{ padding: 28px 18px; border: 1px solid var(--card-border); border-radius: 18px; box-shadow: 0 10px 24px rgba(47,58,74,.08); background:#fff; }
.contact-box h2{ margin: 0 0 10px; font-size: 26px; text-align:center; }
.contact-box p{ margin: 0 auto 16px; max-width: 86ch; color: var(--muted); line-height: 1.6; text-align:center; }

.form{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.form label{ display: grid; gap: 6px; }
.form label span{ font-weight: 900; color: #2d3f69; font-size: 14px; }
.form input, .form textarea, .form select{
  width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid rgba(94,113,143,.22);
  outline: none; font: inherit; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus{
  border-color: rgba(202,154,168,.65);
  box-shadow: 0 0 0 4px rgba(202,154,168,.22);
}
.form .full{ grid-column: 1 / -1; }

/* Auth pages */
.auth{ min-height: calc(100vh - 120px); background: linear-gradient(180deg, var(--denim), var(--bg)); padding: 28px 0 54px; }
.auth-shell{ width: min(520px, 100%); margin: 0 auto; padding: 18px; }
.auth-card{ border-radius: 18px; background: #fff; border: 1px solid var(--card-border); box-shadow: var(--shadow); padding: 18px; }
.auth-card h1{ margin: 0 0 6px; font-size: 26px; }
.auth-card p{ margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.auth-actions{ display:flex; gap:10px; align-items:center; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; }
.small{ font-size: 13px; color: var(--muted); }
.inline-row{ display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.check{ display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #2d3f69; font-size: 14px; }

/* SUBJECT PAGE */
.subject-hero{
  padding: 22px 0 10px;
}
.subject-layout{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 14px 0 54px;
}
.sidebar{
  /* Original behavior: sticky sidebar within the subject layout */
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  align-self: start;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 24px rgba(47,58,74,.08);
  /* overflow:auto clips to rounded corners */
}
.side-section{ padding: 14px 14px 12px; border-bottom: 1px solid rgba(94,113,143,.14); }
.side-section:last-child{ border-bottom: 0; }
.side-title{
  font-weight: 1000;
  color: #2d3f69;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 12px;
  margin: 0 0 10px;
}
.side-list{ display: grid; gap: 8px; }
.side-select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(94,113,143,.18);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  color: #2d3f69;
  height: 40px;
}
.side-select--subjects{ display: none; }
.side-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(94,113,143,.18);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  color: #2d3f69;
  text-align: left;
  width: 100%;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.side-item:hover{ background: rgba(202,154,168,.16); transform: translateY(-1px); }
.side-item.is-active{
  border-color: rgba(202,154,168,.55);
  background: rgba(202,154,168,.18);
  box-shadow: 0 0 0 4px rgba(202,154,168,.14);
}
.pill{
  font-size: 12px;
  font-weight: 1000;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94,113,143,.18);
  background: rgba(150,178,202,.18);
  color: #2c3e67;
  white-space: nowrap;
}
.subject-main{ min-width: 0; }
.subject-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.crumbs{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.crumbs a{ color: #2c3e67; }
.subject-title{ margin: 4px 0 0; font-size: 28px; letter-spacing: -.2px; }
.toolbar{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.search{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(94,113,143,.20);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  min-width: min(360px, 100%);
}
.search input{ border: 0; outline: none; width: 100%; font: inherit; }

.topics-grid{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.topic-card{
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(47,58,74,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 130px;
}
.topic-top{
  padding: 12px 12px 10px;
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.topic-top h3{ margin: 0; font-size: 15px; }
.topic-top small{ display:block; color: var(--muted); margin-top: 6px; font-weight: 800; }
.topic-actions{
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
  align-items: center;
}

/* Make the Start button span most of the card width */
.topic-actions a, .topic-actions button{ width: 100%; }

/* Make the Start button on topic cards wider/longer */
.topic-actions a[data-topic-start]{
  text-align: center;
  /* Keep the Start/Assign button aligned with the questions dropdown */
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

/* On very small screens, keep action button full-width */
@media (max-width: 520px){
  .topic-actions{ grid-template-columns: 1fr; }
  .topic-qty{ justify-content: space-between; }
}

/* Questions-per-quiz dropdown on Study topic cards */
.topic-qty{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topic-qty-label{
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  opacity: .8;
  white-space: nowrap;
}
.topic-qty-select{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  height: 36px;
}

/* Smaller button variant (used on topic cards) */
.btn--sm{
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
}

.meta-row{
  padding: 10px 12px;
  border-top: 1px solid rgba(94,113,143,.14);
  background: rgba(150,178,202,.12);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  color: #2c3e67;
  font-weight: 900;
  font-size: 13px;
}
.empty{
  border-radius: 16px;
  border: 1px dashed rgba(94,113,143,.30);
  background: rgba(232,179,161,.18);
  padding: 16px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 800;
}

/* Footer */
.footer{ background: var(--footer); color: rgba(255,255,255,.9); }
.footer-grid{ padding: 34px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.footer h4{ margin: 0 0 10px; color: #fff; font-size: 14px; letter-spacing: .3px; text-transform: uppercase; }
.footer a{ display: block; padding: 6px 0; color: rgba(255,255,255,.85); text-decoration: none !important; }
.footer a:hover{ text-decoration: underline !important; }

.footer-bottom{ background: var(--footer-bottom); border-top: 1px solid rgba(255,255,255,.12); }
.bottom-row{ padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.social{ display: inline-flex; gap: 8px; }
.social a{ width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.12); font-weight: 1000; }
.fineprint{ margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }

/* Responsive */
@media (max-width: 1000px){
  .header-row{ grid-template-columns: 220px 1fr 44px; }
  .nav-hamburger{ display: inline-block; justify-self: end; }
  .nav{
    position: absolute;
    inset: 74px 16px auto 16px;
    background: #fff;
    border: 1px solid rgba(94,113,143,.18);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity .24s ease, transform .24s ease, max-height .28s ease, visibility 0s linear .24s;
  }
  .nav a{ width: 100%; }
  .nav-toggle:checked ~ .nav{
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
    max-height: 80vh;
    transition: opacity .24s ease, transform .24s ease, max-height .28s ease, visibility 0s linear 0s;
  }

  .nav-dd-menu{ position: static; min-width: 0; box-shadow: none; border: 0; padding: 6px 0 0; background: transparent; }
  .nav-dd-menu a{ width: 100%; }

  .hero-grid{ grid-template-columns: 1fr; }
  .hero-copy{ text-align: center; }
  .hero .lead{ text-align: center; margin-inline: auto; }
  .hero-points{ padding-left: 0; list-style-position: inside; text-align: center; }
  .hero-actions{ justify-content: center; }
  .hero-art{ margin-inline: auto; }
  .features-grid{ grid-template-columns: auto auto; }
  .how-grid{ grid-template-columns: auto auto; }
  .subject-cards{ grid-template-columns: auto auto; }
  .free-grid{ grid-template-columns: 1fr; }
  .sample-wrap{ grid-template-columns: 1fr; }
  /* footer-grid{ grid-template-columns: repeat(2, 1fr); } */

  .subject-layout{ grid-template-columns: 280px auto auto; }
  .sidebar{
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-height: none;
    overflow: visible;
  }
  .topics-grid{ grid-template-columns: auto auto; }
  .search{ min-width: 100%; }
}

@media (max-width: 800px){
  .section .features-grid,
  .section .subject-cards,
  .section .how-grid{
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .section .features-grid .card,
  .section .subject-cards .subject-card,
  .section .how-grid .card{
    width: min(420px, 100%);
    text-align: center;
  }
  .section .features-grid .card-top{
    justify-content: center;
  }
  .section .how-grid .card-top{
    justify-content: center;
  }
  .section .subject-cards .subject-card .go{
    margin-inline: auto;
  }
  .subject-head{
    flex-direction: column;
  }
  .toolbar{
    justify-content: flex-start
  }
}

/* ---------------------------------------------
   Dashboard redesign (Happy Numbers-inspired)
   Keep existing content/JS, only layout + styling.
---------------------------------------------- */

.dash-shell{ padding: 18px 0 0; background: transparent; }

.dash-topnav{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 0;
}
.dash-topnav__item{
  display:inline-flex;
  align-items:center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(36, 49, 79, 0.12);
  color: #2c3e67;
  font-weight: 900;
  text-decoration:none;
  background: #fff;
}
.dash-topnav__item:hover{ border-color: rgba(36,49,79,0.22); }
.dash-topnav__item.is-active{ background: rgba(44, 62, 103, 0.08); }
.dash-topnav__spacer{ flex: 1; }
.dash-topnav__pill{
  display:inline-flex;
  align-items:center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(36, 49, 79, 0.12);
  color: #2c3e67;
  font-weight: 900;
  text-decoration:none;
  background: #fff;
}

.dash-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(246, 200, 70, 0.55);
  background: rgba(246, 200, 70, 0.22);
  margin: 10px 0 12px;
}
.dash-banner__text{ display:flex; flex-wrap:wrap; gap: 8px; align-items:center; color:#2c3e67; font-weight: 900; }
.dash-banner__text span{ font-weight: 800; opacity: 0.9; }
.dash-banner__btn{ white-space: nowrap; }

.dash-subnav{
  display:flex;
  align-items:flex-end;
  gap: 18px;
  padding: 10px 0 0;
  border-bottom: 1px solid rgba(36, 49, 79, 0.12);
  overflow:auto;
}
.dash-subnav__item{
  display:inline-flex;
  padding: 10px 2px 12px;
  color:#2c3e67;
  text-decoration:none;
  font-weight: 900;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.dash-subnav__item:hover{ opacity: 0.85; }
.dash-subnav__item.is-active{ border-bottom-color: #2c3e67; }

.dash-shell .dash-section{ padding: 18px 0 0; }
.dash-shell .dash-head{ display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; }
.dash-shell .dash-title{ margin: 0; font-size: 28px; letter-spacing: -0.3px; color: #1f2a44; font-weight: 1000; }
.dash-shell .dash-subtitle{ margin: 6px 0 0; color: rgba(44, 62, 103, 0.8); font-weight: 800; }
.dash-shell .dash-date{ height: 42px; padding: 0 16px; border-radius: 12px; }

.dash-shell .dash-kpis{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; margin-top: 14px; }
.dash-shell .dash-card{
  border-radius: 16px;
  border: 1px solid rgba(36, 49, 79, 0.12);
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 28, 45, 0.06);
  padding: 14px;
}
.dash-shell .dash-card__head{ display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-bottom: 10px; }
.dash-shell .dash-card__title{ margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.9px; color: rgba(44,62,103,0.75); font-weight: 1000; }
.dash-shell .dash-card__meta{ color: rgba(44,62,103,0.55); font-weight: 900; font-size: 12px; }

.dash-shell .dash-actions-row{ display:flex; align-items:center; justify-content:space-between; gap: 12px; flex-wrap: wrap; }

.dash-shell .dash-bars{ display:grid; gap: 12px; }
.dash-shell .dash-bar__top{ display:flex; align-items:center; justify-content:space-between; font-weight: 1000; color:#1f2a44; }
.dash-shell .dash-bar__top span{ font-weight: 900; color: rgba(44,62,103,0.8); }
.dash-shell .dash-bar__track{ height: 10px; border-radius: 999px; background: rgba(44,62,103,0.12); overflow:hidden; margin-top: 8px; }
.dash-shell .dash-bar__fill{ height: 100%; width: 0%; background: rgba(44,62,103,0.55); border-radius: 999px; }
.dash-shell .dash-bar__legend{ margin-top: 8px; color: rgba(44,62,103,0.65); font-weight: 800; font-size: 12px; }

.dash-table{ border-radius: 16px; border: 1px solid rgba(36,49,79,0.12); background: #fff; box-shadow: 0 10px 30px rgba(18, 28, 45, 0.06); padding: 6px; }
.dash-table .pt-table{ border-collapse: collapse; }
.dash-table .pt-table th{ background: transparent; border-bottom: 1px solid rgba(36,49,79,0.12); }

@media (max-width: 980px){
  .dash-shell .dash-kpis{ grid-template-columns: 1fr; }
  .quiz-side{
    grid-template-columns: auto auto;
  }
}


/* Admin header chip: make it look like a simple text link (no button/chip styling) */
#adminChip{
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  min-width: auto;
  box-shadow: none;
}

@media (max-width: 640px){
  .header-row{ grid-template-columns: 1fr 44px 1fr; }
  .brand-name{ font-size: 16px; }
  .badge{ display: none; }
  .admin-login-page .site-header .header-actions > strong{ display: none; }
  .strip-row{ flex-direction: column; align-items: center; }
  .footer-grid{ grid-template-columns: 1fr; }
  .form{ grid-template-columns: 1fr; }
  .quiz-side{
    grid-template-columns: 1fr;
  }
}


/* QUIZ PAGE */
.quiz-hero{
  padding: 22px 0 12px;
}
.quiz-wrap{ padding: 14px 0 54px; }
.quiz-shell{
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
.quiz-card{
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(47,58,74,.10);
  overflow: hidden;
}
.quiz-head{
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(94,113,143,.14);
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.quiz-title{ margin: 0; font-size: 18px; font-weight: 1000; color: #2d3f69; }
.quiz-sub{ margin: 6px 0 0; color: var(--muted); font-weight: 800; font-size: 13px; line-height: 1.5; }

.quiz-metrics{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.metric{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94,113,143,.18);
  background: rgba(150,178,202,.12);
  color: #2c3e67;
  font-weight: 1000;
  font-size: 13px;
}

.progressbar{
  height: 10px;
  background: rgba(94,113,143,.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(94,113,143,.10);
}
.progressbar > div{
  height: 100%;
  width: 0%;
  background: #5e718f;
  transition: width .25s ease;
}

.quiz-body{ padding: 16px; }
.q-stem{ margin: 0 0 12px; font-size: 18px; line-height: 1.45; font-weight: 1000; color: var(--ink); }
.quiz-inline-image{
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(94,113,143,.18);
  background: rgba(150,178,202,.08);
  margin-top: 10px;
}
.quiz-inline-image--stem{
  max-width: 620px;
}
.quiz-inline-image--option{
  max-width: 320px;
  max-height: 220px;
}
.quiz-inline-image--explain{
  max-width: 420px;
  max-height: 240px;
}

.options{ display: grid; gap: 10px; margin-top: 10px; }

.text-answer-wrap{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 6px;
}
.text-answer{
  flex: 1 1 auto;
  min-width: 200px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(94,113,143,.18);
  background: #fff;
  font: inherit;
  font-weight: 900;
  color: var(--ink);
}
.text-answer:disabled{
  background: rgba(94,113,143,.06);
  color: rgba(47,58,74,.8);
}
@media (max-width: 520px){
  .text-answer-wrap{ flex-direction: column; align-items: stretch; }
  .text-answer{ min-width: 0; width: 100%; }
}

.opt{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(94,113,143,.18);
  background: #fff;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease, border-color .18s ease;
}
.opt:hover{ background: rgba(202,154,168,.12); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47,58,74,.08); }
.opt.is-locked{
  cursor: not-allowed;
  pointer-events: none;
  opacity: .98;
}
.opt.is-selected{ border-color: rgba(202,154,168,.60); box-shadow: 0 0 0 4px rgba(202,154,168,.14); background: rgba(202,154,168,.10); }
.opt.is-correct{ border-color: rgba(66,179,90,.55); background: rgba(66,179,90,.12); }
.opt.is-wrong{ border-color: rgba(232,120,120,.55); background: rgba(232,120,120,.10); }
.opt-badge{
  width: 28px; height: 28px;
  border-radius: 10px;
  display:grid; place-items:center;
  font-weight: 1000;
  background: rgba(150,178,202,.18);
  border: 1px solid rgba(94,113,143,.18);
  color: #2c3e67;
  flex: 0 0 auto;
}
.opt-text{ font-weight: 900; color: #2f3a4a; line-height: 1.5; }

.explain{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(94,113,143,.18);
  background: rgba(150,178,202,.10);
  color: #2c3e67;
  line-height: 1.55;
  display: none;
}
.explain strong{ color: #1f2b42; }
.explain.is-show{ display:block; animation: quizFade .22s ease both; }

.quiz-foot{
  padding: 14px 16px;
  border-top: 1px solid rgba(94,113,143,.14);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.quiz-foot .left, .quiz-foot .right{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
.smallpill{
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 1000;
  border: 1px solid rgba(94,113,143,.18);
  background: rgba(232,179,161,.18);
  color: #4c3a1f;
}

.quiz-side{
  display: grid;
  gap: 14px;
  align-content: start;
}
.side-card{
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(47,58,74,.08);
  padding: 14px;
}
.side-card h3{ margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .3px; color: #2d3f69; }
.kpis{ display:grid; gap: 10px; }
.kpi{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(94,113,143,.14);
  background: rgba(150,178,202,.08);
  font-weight: 1000;
  color: #2c3e67;
}
.kpi small{ font-weight: 900; color: rgba(47,58,74,.72); }

.ach-list{ display:grid; gap: 10px; margin-top: 8px; }
.ach{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(94,113,143,.14);
  background: rgba(202,154,168,.10);
  color: #2c3e67;
}
.ach strong{ display:block; }
.ach small{ display:block; color: rgba(47,58,74,.72); margin-top: 4px; font-weight: 800; }

.results{ display:none; padding: 16px; }
.results.is-show{ display:block; animation: quizFade .22s ease both; }
.result-big{ display:flex; align-items:center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.score-badge{
  width: 76px; height: 76px;
  border-radius: 22px;
  display:grid; place-items:center;
  font-weight: 1000;
  font-size: 22px;
  background: rgba(225,184,118,.22);
  border: 1px solid rgba(225,184,118,.45);
  color: #4c3a1f;
}
.result-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.weak-list{ margin-top: 12px; display:grid; gap: 10px; }
.weak-item{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(94,113,143,.14);
  background: rgba(150,178,202,.08);
  color: #2c3e67;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  background: #fff;
  border: 1px solid rgba(94,113,143,.20);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(47,58,74,.18);
  padding: 12px 12px;
  display:none;
  z-index: 999;
}
.toast.is-show{ display:block; animation: toastIn .25s ease both; }
.toast h4{ margin: 0 0 4px; font-size: 14px; color: #2d3f69; }
.toast p{ margin: 0; color: var(--muted); line-height: 1.5; font-weight: 800; }

@keyframes quizFade{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: translateY(0); } }
@keyframes toastIn{ from{ opacity: 0; transform: translateY(12px); } to{ opacity: 1; transform: translateY(0); } }

@media (max-width: 980px){
  .quiz-shell{ grid-template-columns: 1fr; }
}


/* ----------------------------------
   Auth UI helpers
---------------------------------- */

.user-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 113, 143, .28);
  background: rgba(150, 178, 202, .22);
  color: var(--ink);
  font-weight: 1000;
  font-size: 13px;
  white-space: nowrap;
}

/* Header "Hi, <name>" link should not have chip styling */
#headerHiLink{
  border: 0 !important;
  background: transparent !important;
}
.form-error{
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(164, 73, 73, .28);
  background: rgba(202, 154, 168, .20);
  color: #6a2434;
  font-weight: 900;
}
.form-success{
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(72, 147, 95, .28);
  background: rgba(150, 202, 166, .20);
  color: #1f5a33;
  font-weight: 900;
}

/* ----------------------------------
   DASHBOARD
---------------------------------- */
.dash-hero{
  background: linear-gradient(180deg, var(--denim), #ffffff);
  padding: 24px 0 10px;
}
.dash-hero-row{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.dash-kicker{
  margin:0 0 4px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .35px;
  color: #2d3f69;
  opacity: .85;
  font-size: 12px;
}
.dash-title{
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: -.2px;
}
.dash-sub{
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  max-width: 70ch;
  line-height: 1.6;
}
.dash-hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  padding: 14px 0 54px;
}
.dash-side, .dash-main{ min-width: 0; }
.dash-card{ padding: 18px; }
.dash-card-title{ margin: 0; font-size: 16px; }
.dash-card-head{ display:flex; align-items:center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

.dash-profile{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 12px;
}
.dash-avatar{
  width: 54px;
  height: 54px;
  display:grid;
  place-items:center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(202,154,168,.55), rgba(150,178,202,.55));
  border: 1px solid rgba(94, 113, 143, .22);
  font-size: 26px;
}
.dash-name{ margin: 0; font-size: 18px; }
.dash-meta{ margin: 2px 0 0; color: var(--muted); font-weight: 800; font-size: 13px; }

.dash-profile-list{ display:grid; gap: 10px; margin: 12px 0 14px; }
.dash-row{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e9eef7;
  background: rgba(255,255,255,.75);
}
.dash-row b{ font-weight: 1000; color: #2d3f69; }
.dash-row span{ color: var(--muted); font-weight: 800; text-align:right; }

.dash-quick{ display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-note{ margin: 10px 0 0; color: var(--muted); font-weight: 800; line-height: 1.6; }

.dash-kpis{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.kpi{
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
  padding: 14px;
}
.kpi b{ display:block; font-size: 22px; letter-spacing: -.2px; }
.kpi span{ display:block; color: var(--muted); font-weight: 900; margin-top: 4px; }

.dash-panels{ display:grid; grid-template-columns: 1fr; gap: 14px; }

.dash-subjects{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.subj-card{
  border-radius: 16px;
  border: 1px solid #e9eef7;
  background: #fff;
  padding: 12px;
}
.subj-head{ display:flex; justify-content: space-between; gap: 10px; align-items:flex-start; }
.subj-head h4{ margin: 0; font-size: 14px; }
.subj-head small{ color: var(--muted); font-weight: 800; display:block; margin-top: 4px; }
.bar{
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(150,178,202,.28);
  overflow:hidden;
  border: 1px solid rgba(94,113,143,.18);
}
.bar > i{
  display:block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--soft-gold), var(--rose));
}

.dash-completed, .dash-recent, .dash-achievements{ display:grid; gap: 10px; }
.item{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e9eef7;
  background: rgba(255,255,255,.75);
}
.item h4{ margin:0; font-size: 14px; }
.item p{ margin: 4px 0 0; color: var(--muted); font-weight: 800; line-height: 1.45; }
.item .right{ text-align:right; }
.item .right .pill{ display:inline-block; margin-left: auto; }
.item a.btn{ padding: 10px 14px; }

@media (max-width: 980px){
  .dash-grid{ grid-template-columns: 1fr; }
  .dash-kpis{ grid-template-columns: repeat(2, 1fr); }
  .dash-subjects{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .dash-kpis{ grid-template-columns: 1fr; }
  .dash-title{ font-size: 26px; }
}


/* ---------------------------
   Admin Panel
--------------------------- */

.admin{ background: #fff; }
.admin-hero{
  background: linear-gradient(180deg, var(--hero-top), rgba(255,255,255,1));
  padding: 22px 0 10px;
}
.admin-hero-row{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.admin-title{ margin: 0; font-size: 28px; letter-spacing: -.2px; }
.admin-sub{ margin: 6px 0 0; color: var(--muted); font-weight: 800; line-height: 1.6; max-width: 70ch; }
.admin-toolbar{ display:flex; gap: 10px; flex-wrap: wrap; align-items:center; justify-content: flex-end; }

.admin-layout{ display:grid; grid-template-columns: 1fr; gap: 18px; padding: 14px 0 54px; }
.admin-sidebar .admin-note{
  border: 1px solid #e9eef7;
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
  background: rgba(150, 178, 202, .12);
  font-weight: 800;
  line-height: 1.6;
}
.admin-sidebar .admin-note ul{ margin: 8px 0 0; padding-left: 18px; }
.admin-sidebar .admin-note li{ margin: 4px 0; }

.admin-main{ min-width: 0; }
.admin-view{ display:none; }
.admin-view.is-active{ display:block; }

.admin-kpis{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi h3{ margin: 0 0 6px; font-size: 14px; letter-spacing: .2px; text-transform: uppercase; color: #2d3f69; }
.kpi-num{ margin: 0; font-weight: 1000; font-size: 34px; color: var(--ink); }
.kpi-sub{ margin: 6px 0 0; color: var(--muted); font-weight: 800; }

.admin-grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.admin-section-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-section-head h2{ margin: 0; font-size: 22px; }
.muted{ color: var(--muted); font-weight: 800; margin: 6px 0 0; }

.table-wrap{ overflow:auto; border-radius: 14px; border: 1px solid #eef2fb; }
.admin-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  font-size: 14px;
}
.admin-table th, .admin-table td{
  padding: 10px 10px;
  border-bottom: 1px solid #eef2fb;
  text-align: left;
  vertical-align: top;
}
.admin-table thead th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  color: #2d3f69;
  font-weight: 1000;
}
.admin-actions{ display:flex; gap: 8px; flex-wrap: wrap; }

.admin-list{ display:grid; gap: 10px; }
.admin-row{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #eef2fb;
  background: #fff;
}
.admin-row-title{ font-weight: 1000; color: #2d3f69; }
.admin-row-meta{ margin-top: 4px; color: var(--muted); font-weight: 800; font-size: 13px; line-height: 1.5; }
.admin-row-right{ font-weight: 1000; color: #2c3e67; }
.admin-empty{
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed #cfe0ff;
  background: rgba(233,240,255,.55);
  color: var(--muted);
  font-weight: 900;
}

.admin-cardline{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #eef2fb;
  background: #fff;
}
.admin-cardline-right{ display:flex; gap: 8px; flex-wrap: wrap; }
.admin-opt-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.admin-pre{
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #eef2fb;
  background: rgba(150, 178, 202, .12);
  overflow:auto;
  max-height: 360px;
}

@media (max-width: 980px){
  .admin-layout{ grid-template-columns: 1fr; }
  .admin-kpis{ grid-template-columns: 1fr; }
  .admin-grid-2{ grid-template-columns: 1fr; }
  .admin-opt-grid{ grid-template-columns: 1fr; }
}


/* ---------------------------
   Auth Modal
--------------------------- */

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}
.modal.is-open{ display: flex; }
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(47,58,74,.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .18s ease;
}
.modal.is-open .modal-backdrop{ opacity: 1; }

.modal-card{
  position: relative;
  width: min(540px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(94,113,143,.20);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  transform: translateY(10px) scale(.985);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.modal.is-open .modal-card{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close{
  position:absolute;
  right: 12px;
  top: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(47,58,74,.60);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover{ background: rgba(94,113,143,.10); color: rgba(47,58,74,.80); }

.quiz-setup-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quiz-setup-field{
  display: grid;
  gap: 6px;
}
.quiz-setup-field > span{
  font-size: 12px;
  font-weight: 900;
  color: rgba(47,58,74,.78);
}
.quiz-setup-field select,
.quiz-setup-time input{
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(94,113,143,.24);
  padding: 8px 10px;
  background: #fff;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
}
.quiz-setup-time{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.quiz-setup-time span{
  font-size: 13px;
  font-weight: 900;
  color: rgba(47,58,74,.75);
}
.quiz-setup-actions{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------------------
   Autocomplete (dropdown-style)
   --------------------------- */
.ac{ position: relative; width: 100%; }
.ac input{ padding-right: 44px; }
.ac::after{
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(47,58,74,.55);
  pointer-events: none;
  font-size: 14px;
  font-weight: 1000;
}
.ac-menu{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  border-radius: 14px;
  border: 1px solid rgba(94,113,143,.18);
  background: #fff;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
}
.ac-item{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}
.ac-item:hover,
.ac-item.is-active{ background: rgba(94,113,143,.10); }

.modal-title{
  margin: 6px 0 16px;
  text-align: center;
  font-size: 34px;
  letter-spacing: -.2px;
  font-weight: 1000;
  color: var(--ink);
}

.auth-pane{ padding: 0 4px 4px; }

.auth-modal-form{
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.auth-modal-form input,
.auth-modal-form select,
.auth-modal-form textarea{
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid rgba(94,113,143,.20);
  background: rgba(150,178,202,.20);
  outline: none;
  font: inherit;
}
.auth-modal-form select{ background: rgba(150,178,202,.14); }
.auth-modal-form input:focus,
.auth-modal-form select:focus,
.auth-modal-form textarea:focus{
  border-color: rgba(94,113,143,.55);
  box-shadow: 0 0 0 4px rgba(150,178,202,.22);
}

.auth-modal-form textarea{ resize: vertical; min-height: 120px; }

.auth-row{
  display:flex;
  justify-content: flex-start;
  margin-top: -6px;
}

.auth-submit{
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 999px;
}

.auth-link{
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
}
.auth-link:hover{ text-decoration: underline; }

.auth-foot{
  margin: 6px 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.auth-switch,
.auth-back{
  display: block;
  text-align: center;
  margin-top: 4px;
  font-weight: 900;
  color: rgba(47,58,74,.65);
  text-decoration: none;
}
.auth-switch:hover,
.auth-back:hover{ text-decoration: underline; }

.form-error{
  border-radius: 12px;
  border: 1px solid rgba(232, 179, 161, .65);
  background: rgba(232, 179, 161, .25);
  color: #5b2c1f;
  padding: 10px 12px;
  font-weight: 900;
}

/* Signup step cards */
.signup-sub{
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
.signup-choices{
  display: grid;
  gap: 12px;
  margin-top: 6px;
}
.signup-choice{
  width: 100%;
  border: 1px solid rgba(94,113,143,.18);
  background: #fff;
  border-radius: 12px;
  padding: 18px 14px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  text-align: center;
  box-shadow: 0 10px 18px rgba(16,24,40,.04);
}
.signup-choice strong{
  font-size: 18px;
  font-weight: 1000;
  color: var(--ink);
}
.signup-choice span{
  color: var(--muted);
  font-weight: 800;
}
.signup-choice:hover{
  border-color: rgba(94,113,143,.40);
  background: rgba(150,178,202,.12);
}

/* Signup age step */
.signup-age{
  margin: 0 0 20px;
}
.signup-age select{
  width: 100%;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(94,113,143,.22);
  background: #fff;
  font: inherit;
  font-weight: 900;
  color: var(--ink);
}
.signup-age select:focus{
  outline: none;
  border-color: rgba(94,113,143,.55);
  box-shadow: 0 0 0 4px rgba(150,178,202,.22);
}
.signup-minor-msg{
  margin: 10px 0 16px;
  text-align: center;
  font-weight: 1000;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}
.signup-minor-actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Topic card description */
.topic-desc{
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  font-size: 13px;
}

@media (max-width: 520px){
  .modal-card{ padding: 18px 16px 14px; }
  .modal-title{ font-size: 30px; }
  .quiz-setup-grid{ grid-template-columns: 1fr; }
}



/* ---------------------
   Parent / Teacher Dashboard
--------------------- */

.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

.btn--outline{
  background: #fff;
  border: 2px solid rgba(94,113,143,.30);
  color: #2d3f69;
}
.btn--outline:hover{
  background: rgba(150,178,202,.18);
}

.btn--danger{
  background: #fff;
  border: 2px solid rgba(202,154,168,.70);
  color: #7b2a3d;
}
.btn--danger:hover{
  background: rgba(202,154,168,.16);
}

.pt-hero{
  background: linear-gradient(180deg, rgba(150,178,202,.55), rgba(255,255,255,1));
  padding: 22px 0 10px;
}
/* .pt-hero-row removed */
/* .pt-hero-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
*/
.pt-title{
  margin: 0 0 14px;
  font-size: 34px;
  letter-spacing: -.2px;
  color: #0b1b3a;
  text-align: center;
}
.pt-actions{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}
.pt-actions .btn{
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.pt-actions-dropdown{ display:none; }
.pt-actions-dropdown select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7def1;
  background: #fff;
  font-weight: 900;
}

@media (max-width: 640px){
  .pt-actions{ display:none; }
  .pt-actions-dropdown{ display:block; margin-top: 10px; }
  .pt-title{ font-size: 28px; }
}
.pt-body{ padding: 14px 0 54px; }
.pt-toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.pt-search{ min-width: min(420px, 100%); }
.pt-hint{ margin: 0; color: var(--muted); font-weight: 800; }

.pt-table-wrap{ background:#fff; }
.pt-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 14px;
}
.pt-table th, .pt-table td{
  padding: 12px 10px;
  border-bottom: 1px solid #eef2fb;
  text-align: left;
  vertical-align: middle;
}

.pt-row--link{ cursor: pointer; }
.pt-row--link:hover td{ background: rgba(36,49,79,0.04); }
.pt-table th:nth-child(4), .pt-table th:nth-child(5), .pt-table th:nth-child(6),
.pt-table td:nth-child(4), .pt-table td:nth-child(5), .pt-table td:nth-child(6){
  text-align: center;
}
.pt-table thead th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  color: #2d3f69;
  font-weight: 1000;
}

.pt-child{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.pt-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 1000;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--denim), var(--navy));
  box-shadow: 0 10px 22px rgba(94, 113, 143, .22);
}
.pt-name{
  font-weight: 1000;
  color: var(--ink);
}

.pt-name a{
  color: inherit;
  text-decoration: none;
}
.pt-name a:hover{
  text-decoration: underline;
}
.pt-code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 1000;
  color: #2d3f69;
  background: rgba(150,178,202,.18);
  border: 1px solid rgba(94,113,143,.18);
  padding: 4px 8px;
  border-radius: 10px;
  display:inline-block;
}

.pt-progress{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 160px;
}
.pt-bar{
  width: 120px;
  height: 10px;
  border-radius: 999px;
  background: rgba(150,178,202,.25);
  overflow:hidden;
  border: 1px solid rgba(94,113,143,.18);
}
.pt-bar > span{
  display:block;
  height: 100%;
  width: 0%;
  background: var(--soft-gold);
}
.pt-pct{
  font-weight: 1000;
  color: #2d3f69;
}

.pt-row-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pt-ico{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e9eef7;
  background: #fff;
  cursor: pointer;
  display:grid;
  place-items:center;
  font-weight: 1000;
  color: #2d3f69;
}
.pt-icon-btn{
  padding: 0 !important;
  min-width: 36px !important;
  line-height: 1;
}
.pt-icon-btn svg{ display:block; }
.pt-ico:hover{ background: rgba(150,178,202,.18); }

@media (max-width: 980px){
  .pt-title{ font-size: 28px; }
  .pt-table{ min-width: 760px; }
}
@media (max-width: 640px){
  .pt-title{ font-size: 24px; }
}


/* Reviews */
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.review-card{
  background: #fff;
  border: 1px solid rgba(94, 113, 143, .18);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
  display: flex;
  flex-direction: column;
  min-height: 190px;
}
.review-top{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  text-align: center;
}
.stars{
  letter-spacing: 1px;
  color: var(--soft-gold);
  font-weight: 1000;
  font-size: 14px;
}
.tag{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94, 113, 143, .22);
  background: rgba(150, 178, 202, .18);
  color: #2c3e67;
  white-space: nowrap;
}
.review-quote{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 800;
}
.review-meta{
  margin-top: auto;
  display:flex;
  align-items:center;
  gap: 10px;
}
.avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 1000;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--denim), var(--navy));
  box-shadow: 0 10px 22px rgba(94, 113, 143, .28);
}
.meta-sub{
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px){
  .reviews-grid{ grid-template-columns: 1fr; }
}


/* =========================
   About (Organizations) page
   ========================= */
.org-hero{
  background: linear-gradient(180deg, var(--denim), #ffffff);
  padding: 46px 0 0;
  position: relative;
  overflow: hidden;
}
.org-hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: center;
  padding-bottom: 22px;
}
.org-hero-copy h1{
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.3px;
}
.org-hero-actions{ display:flex; gap:10px; flex-wrap: wrap; margin-top: 14px; }
.org-badges{ display:flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.org-badge{
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(94, 113, 143, .18);
  color: #2c3e67;
}

.org-hero-art{ display:flex; justify-content: center; }
.org-art-card{
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.85);
  overflow: hidden;
}
.org-art-top{
  display:flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(94, 113, 143, .12);
  background: rgba(255,255,255,.7);
}
.org-dot{ width: 10px; height: 10px; border-radius: 999px; background: rgba(94,113,143,.35); }
.org-art-body{ padding: 14px; }
.org-mock-row{ display:flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.org-mock-chip{
  font-weight: 900;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94, 113, 143, .18);
  background: rgba(150, 178, 202, .18);
  color: #2c3e67;
}
.org-mock-q{
  border-radius: 18px;
  border: 1px solid rgba(94, 113, 143, .14);
  background: #fff;
  padding: 12px;
}
.org-mock-title{ font-weight: 1000; color: #2c3e67; margin-bottom: 10px; }
.org-mock-line{
  height: 10px; border-radius: 999px; background: rgba(94,113,143,.16); margin-bottom: 10px;
}
.org-mock-line.short{ width: 65%; }
.org-mock-options{ display:grid; gap: 10px; margin-top: 8px; }
.org-opt{ height: 14px; border-radius: 999px; background: rgba(94,113,143,.12); }
.org-mock-footer{ display:flex; align-items:center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.org-progress{ flex: 1; height: 10px; border-radius: 999px; background: rgba(94,113,143,.10); overflow: hidden; border: 1px solid rgba(94,113,143,.14); }
.org-progress-bar{ height: 100%; background: var(--soft-gold); border-radius: 999px; }
.org-mock-meta{ font-weight: 900; font-size: 12px; color: var(--muted); }

.org-sticky-cta{
  position: sticky;
  top: 74px;
  z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(94,113,143,.10);
  border-bottom: 1px solid rgba(94,113,143,.10);
}
.org-sticky-cta--light{ background: rgba(255,255,255,.92); }
.org-sticky-cta--dark{
  background: rgba(94,113,143,.96);
  border-top-color: rgba(255,255,255,.16);
  border-bottom-color: rgba(255,255,255,.16);
}
.org-sticky-cta--dark .org-sticky-text{ color: rgba(255,255,255,.92); }
.org-sticky-cta--dark .btn--muted{ background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); }
.org-sticky-cta--dark .btn--muted:hover{ background: rgba(255,255,255,.20); }

.org-sticky-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.org-sticky-text{ font-weight: 1000; color: #2c3e67; }
.btn--sm{ padding: 10px 14px; font-size: 14px; }

.org-icon-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.org-icon-card{ text-align: center; }
.org-icon{ font-size: 26px; margin-bottom: 8px; }

.org-split{
  background: #fff;
  padding: 46px 0 0;
}
.org-split-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
}
.org-split-copy h2{ margin: 0 0 10px; font-size: 28px; }
.org-split-copy p{ margin: 0 0 12px; color: var(--muted); line-height: 1.7; font-weight: 800; }
.org-bullets{ margin: 0 0 16px; padding-left: 18px; color: var(--muted); line-height: 1.7; font-weight: 800; }
.org-split-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.org-split-art{ display:flex; justify-content: center; }
.org-books{ position: relative; width: min(420px, 100%); height: 260px; }
.org-book{
  position:absolute;
  bottom: 0;
  width: 140px;
  height: 220px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(94,113,143,.18);
}
.org-book.b1{ left: 10px; background: linear-gradient(180deg, var(--cream), #fff); transform: rotate(-3deg); }
.org-book.b2{ left: 140px; background: linear-gradient(180deg, var(--peach), #fff); transform: rotate(2deg); }
.org-book.b3{ left: 270px; background: linear-gradient(180deg, var(--denim), #fff); transform: rotate(-1deg); }

.org-two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.org-mini{ text-align:center; }
.org-mini-ico{ font-size: 26px; margin-bottom: 8px; }

.org-quote-band{
  background: #ffffff;
  padding: 54px 0 0;
}
.org-quote-band h2{ text-align:center; margin: 0 0 18px; }
.org-quote-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.org-quote{
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(94,113,143,.18);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
}
.org-quote p{ margin: 0 0 10px; color: var(--muted); line-height: 1.7; font-weight: 800; }
.org-quote cite{ font-style: normal; font-weight: 1000; color: #2c3e67; font-size: 13px; }

.org-summary{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items:center;
  padding: 18px;
  margin-bottom: 18px;
}
.org-summary-media{
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(202,154,168,.55), rgba(150,178,202,.22));
  border: 1px solid rgba(94,113,143,.16);
  height: 220px;
  display:grid;
  place-items: end center;
  overflow:hidden;
}
.org-person{
  width: 160px; height: 190px;
  border-radius: 120px 120px 36px 36px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(94,113,143,.18);
  margin-bottom: -14px;
}
.org-summary-copy h3{ margin: 0 0 8px; }
.org-summary-copy p{ margin: 0 0 10px; color: var(--muted); line-height: 1.7; font-weight: 800; }

.org-plans{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.org-plan h3{ margin: 0 0 6px; }
.org-plan-price{ margin: 0 0 10px; font-weight: 1000; color: #2c3e67; }
.org-plan ul{ margin: 0 0 14px; padding-left: 18px; color: var(--muted); line-height: 1.7; font-weight: 800; }

.org-faq{
  background: rgba(150, 178, 202, .14);
  padding: 54px 0 56px;
}
.org-faq-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.org-faq details summary{ cursor:pointer; font-weight: 1000; color: #2c3e67; }
.org-faq details summary:hover{ text-decoration: underline; }
.org-faq details p{ margin: 0; }

@media (max-width: 980px){
  .org-hero-grid{ grid-template-columns: 1fr; }
  .org-icon-grid{ grid-template-columns: 1fr; }
  .org-split-grid{ grid-template-columns: 1fr; }
  .org-quote-grid{ grid-template-columns: 1fr; }
  .org-summary{ grid-template-columns: 1fr; }
  .org-plans{ grid-template-columns: 1fr; }
  .org-faq-grid{ grid-template-columns: 1fr; }
  .org-books{ height: 220px; }
  .org-book{ width: 120px; height: 190px; }
  .org-book.b2{ left: 120px; }
  .org-book.b3{ left: 230px; }
}

/* Mobile & tablet refinements */
img{ max-width: 100%; height: auto; display: block; }

@media (max-width: 980px){
  .container{ width: calc(100% - 28px); }
}

@media (max-width: 720px){
  .container{ width: calc(100% - 24px); }
  .header-row{ grid-template-columns: 1fr 44px; padding: 10px 0; }
  .brand-name{ display: inline-flex; align-items: center; }
  .header-actions{ display: none; }
  .nav{ inset: 64px 12px auto 12px; }
  .nav-mobile-auth{ display: block; text-align: center; }
  .nav .js-logout.nav-mobile-auth{ width: 100%; }
  .nav-toggle:checked ~ .nav{ display: flex; }
  .hero{ padding: 28px 0 12px; }
  .hero-copy h1{ font-size: clamp(22px, 6vw, 36px); }
  .subject-layout{grid-template-columns: 1fr;}
  .lead{ font-size: 15px; }
  .section{ padding: 28px 0 34px; }
  .card{ padding: 12px; }
  .footer-grid{ grid-template-columns: 1fr; }
  #sidebarSubjects{ display: none; }
  .side-select--subjects{ display: block; }
}

@media (max-width: 480px){
  .brand-logo{ height: 28px; }
  .nav-hamburger{ width: 40px; height: 40px; }
  .nav{ padding: 10px; inset: 64px 10px auto 10px; }
  .hero-art{ display: block; }
  .hero-art img{ width: 100%; height: auto; display: block; }
  .hero-copy h1{ font-size: clamp(20px, 7vw, 28px); }
  .hero-points{ padding-left: 0; }
  .form{ grid-template-columns: 1fr; }
  .topics-grid{ grid-template-columns: 1fr; }
}

/* Reviews carousel (mobile-only behavior) */
@media (min-width: 721px){
  .reviews-carousel{
    overflow: visible;
  }
  .reviews-carousel .carousel-track{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
    transform: none !important;
  }
  .reviews-carousel .carousel-slide{
    min-width: 0;
    padding: 40px;
  }
  .reviews-carousel .carousel-dots{
    display: none !important;
  }
}

@media (min-width: 721px) and (max-width: 1000px){
  .reviews-carousel .carousel-track{
    grid-template-columns: auto auto;
  }
}

@media (max-width: 720px){
  .reviews-carousel{ position: relative; overflow: hidden; }
  .carousel-track{ display: flex; transition: transform .35s ease; will-change: transform; }
  .carousel-slide{ min-width: 100%; box-sizing: border-box; padding: 12px; }
  .reviews-carousel .review-card{ margin: 0; border-radius: 12px; }
  .carousel-dots{ display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
  .carousel-dots button{ width: 8px; height: 8px; border-radius: 50%; background: rgba(47,58,74,.15); border: 0; padding: 0; }
  .carousel-dots button.is-active{ background: var(--primary); }
}
