﻿:root {
  --navy: #102033;
  --navy-dark: #07111f;
  --teal: #2563eb;
  --teal-dark: #0f766e;
  --text: #111827;
  --muted: #667085;
  --line: #d8e0ea;
  --soft-line: #e8eef5;
  --pale-blue: #f3f7fb;
  --pale-teal: #ecfdf5;
  --white: #ffffff;
  --green: #16a34a;
  --shadow: 0 16px 44px rgba(16, 32, 51, 0.1);
  --display: "Plus Jakarta Sans", "Noto Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --sans: "Plus Jakarta Sans", "Noto Sans", "Segoe UI", system-ui, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #f6f9fc;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-shell {
  max-width: 1840px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(8, 49, 93, 0.08), 0 12px 40px rgba(20, 46, 76, 0.08);
}

.site-announcement {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 74px;
  color: var(--white);
  background: linear-gradient(90deg, #062040 0%, #0a3568 45%, #0d7a72 100%);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(0,155,159,0.25);
}

.site-ann-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2adfbb;
  flex-shrink: 0;
  animation: ann-pulse 2s ease-in-out infinite;
}
@keyframes ann-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 223, 187, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(42, 223, 187, 0); }
}

.site-announcement div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-announcement strong {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.site-announcement span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.site-announcement button {
  min-height: 28px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1.5px solid rgba(42, 223, 187, 0.6);
  border-radius: 20px;
  color: #2adfbb;
  background: rgba(42, 223, 187, 0.08);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-announcement button:hover {
  background: rgba(42, 223, 187, 0.2);
  color: #fff;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 150;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 clamp(22px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(210, 224, 236, 0.78);
  box-shadow: 0 8px 30px rgba(7, 58, 112, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: height 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: height, background;
}

.top-header.is-scrolled {
  height: 58px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 32px rgba(7, 58, 112, 0.12);
  border-bottom-color: rgba(210, 224, 236, 0.58);
}
/* 3px teal accent stripe at very top */
.top-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #03045e 0%, #0077b6 45%, #00b4d8 100%);
}

.brand {
  width: 166px;
  height: 46px;
  display: flex;
  align-items: center;
  flex: 0 0 166px;
  margin-right: 2px;
}

.brand img {
  width: 100%;
  max-height: 42px;
  height: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  color: #082f5d;
  font-size: 12.5px;
  font-weight: 600;
}

/* Hide mobile-only nav elements on desktop */
.mob-nav-header,
.mob-nav-footer {
  display: none;
}

.main-nav,
.tabs,
.toolbar,
.curriculum-card {
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar,
.tabs::-webkit-scrollbar,
.toolbar::-webkit-scrollbar,
.curriculum-card::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #26384d;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}

.top-header.is-scrolled .main-nav a {
  height: 36px;
}
.main-nav a svg { opacity: 0.55; transition: opacity 0.15s; }

.main-nav a:hover:not(.is-active):not(.nav-cta) {
  color: #03045e;
  border-color: #d9e8f2;
  background: #f4f9fc;
}
.main-nav a:hover svg { opacity: 1; }

.main-nav a.is-active {
  color: #03045e;
  border-color: rgba(0, 119, 182, 0.18);
  font-weight: 800;
  background: linear-gradient(180deg, #eaf8fd, #ffffff);
  box-shadow: inset 0 -2px 0 #00b4d8;
}
.main-nav a.is-active svg { opacity: 1; color: #0077b6; }

.nav-dropdown {
  position: relative;
  height: 100%;
}

.nav-drop-toggle {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #26384d;
  border: 1px solid transparent;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  user-select: none;
  white-space: nowrap;
}

.nav-drop-toggle::-webkit-details-marker {
  display: none;
}

.top-header.is-scrolled .nav-drop-toggle {
  height: 36px;
}

.nav-drop-toggle svg {
  opacity: 0.58;
  transition: transform 140ms ease, opacity 140ms ease;
}

.nav-dropdown:hover .nav-drop-toggle,
.nav-dropdown[open] .nav-drop-toggle {
  color: #03045e;
  border-color: #d9e8f2;
  background: #f4f9fc;
}

.nav-dropdown[open] .nav-drop-toggle svg,
.nav-dropdown:hover .nav-drop-toggle svg {
  opacity: 1;
  transform: rotate(180deg);
}

.nav-dropdown:has(a.is-active) .nav-drop-toggle {
  color: #03045e;
  border-color: rgba(0, 119, 182, 0.18);
  font-weight: 800;
  background: linear-gradient(180deg, #eaf8fd, #ffffff);
  box-shadow: inset 0 -2px 0 #00b4d8;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 292px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #dbe7f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(7, 58, 112, 0.15), 0 5px 16px rgba(7, 58, 112, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 240;
}

.nav-dropdown[open] .nav-submenu,
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.main-nav .nav-submenu a {
  height: auto;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: #0b2f61;
  background: transparent;
  font-size: 13px;
  transition: background 140ms ease, color 140ms ease;
}

.top-header.is-scrolled .main-nav .nav-submenu a {
  height: auto;
}

.main-nav .nav-submenu a:hover,
.main-nav .nav-submenu a.is-active {
  color: #06345f;
  background: #eef8fb;
  border: 0;
}

.nav-submenu strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.nav-submenu small {
  color: #63758a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

/* Vertical divider */
.nav-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: #dce8f0;
  margin: 0 6px;
  flex-shrink: 0;
}

/* Search button — sits between logo and main nav */
.nav-search-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 6px;
  justify-content: center;
  border: 1px solid #dbe8f2;
  border-radius: 12px;
  background: #ffffff;
  color: #3a5270;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.nav-search-btn:hover {
  background: #eaf4fb;
  border-color: #00b4d8;
  color: #0077b6;
}

/* Login link */
#loginNavLink {
  height: 38px !important;
  border: 1px solid #cad9e8 !important;
  border-radius: 999px !important;
  color: #03045e !important;
  background: transparent !important;
  font-weight: 800 !important;
  padding: 0 16px !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s !important;
  margin-left: 4px;
}
#loginNavLink:hover {
  background: #03045e !important;
  border-color: #03045e !important;
  color: #fff !important;
}

/* CTA button in nav */
.nav-cta {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 18px !important;
  background: linear-gradient(135deg, #03045e 0%, #0077b6 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  margin-left: 6px;
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.24) !important;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s !important;
  white-space: nowrap !important;
}
.nav-cta:hover {
  opacity: 0.92 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 9px 22px rgba(0, 119, 182, 0.3) !important;
}

.chevron,
.caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.caret {
  width: 9px;
  height: 9px;
}

.caret.small {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.caret.right {
  transform: rotate(-45deg);
}

/* nav-split: text link + chevron button side-by-side */
.nav-split {
  display: inline-flex;
  align-items: stretch;
  border-radius: 6px;
}

.nav-split > a {
  padding-right: 5px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.nav-caret {
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid transparent;
  border-left: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  background: transparent;
  color: #082f5d;
  cursor: pointer;
  font-size: inherit;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-caret:hover {
  color: var(--navy);
  background: #f0f8fb;
  border-color: #ddeef5;
  border-left-color: transparent;
}

/* mirror active underline to the adjacent caret */
.nav-split:has(> a.is-active) .nav-caret {
  box-shadow: inset 0 -3px 0 var(--teal);
  border-radius: 0;
}

.icon-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 205, 223, 0.9);
  background: #ffffff;
  color: var(--navy);
  border-radius: 50%;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--teal-dark);
  background: #f3fbfc;
}

.icon-button svg {
  width: 23px;
  height: 23px;
}

/* ── Hamburger button (hidden on desktop) ───────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger:hover { background: #f3fbfc; }

/* Hamburger → X when nav open */
.top-header.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top-header.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.top-header.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Account button & dropdown ───────────────────────────────────── */
.nav-account { position: relative; }

.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 6px;
  border: 1.5px solid var(--soft-line);
  background: #fff;
  cursor: pointer;
  border-radius: 999px;       /* pill shape */
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  touch-action: manipulation;
}
.nav-account-btn:hover {
  border-color: var(--teal);
  background: #f0fdfa;
  box-shadow: 0 2px 8px rgba(0,155,159,0.12);
}
.nav-account-btn[aria-expanded="true"] {
  border-color: var(--teal);
  background: #f0fdfa;
}

/* Avatar circle */
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-account-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  position: relative;  /* fixes Chrome stacking issue with backdrop-filter parent */
  z-index: 1;
}

.nav-account-chevron {
  opacity: 0.5;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-account-btn[aria-expanded="true"] .nav-account-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Dropdown panel — always hidden by default */
.nav-account-dropdown {
  display: none;           /* explicit hide — never rely solely on [hidden] UA rule */
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(7,58,112,0.16), 0 2px 8px rgba(7,58,112,0.06);
  overflow: hidden;
  z-index: 300;
}
/* Show + animate only when hidden attribute is removed */
.nav-account-dropdown:not([hidden]) {
  display: block;
  animation: dropFadeIn 0.16s ease both;
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Profile header inside dropdown */
.nav-drop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdfa 100%);
  border-bottom: 1px solid var(--soft-line);
}
.nav-drop-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.nav-drop-info { min-width: 0; }
.nav-drop-info strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.nav-drop-role {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  background: rgba(0,155,159,0.1);
  border-radius: 999px;
  padding: 1px 7px;
}

/* Dropdown items */
.nav-account-dropdown a,
.nav-account-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  touch-action: manipulation;
}
.nav-account-dropdown a:hover,
.nav-account-dropdown button:hover {
  background: #f0f9fa;
  color: var(--teal-dark);
}
.nav-account-dropdown a svg,
.nav-account-dropdown button svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-account-dropdown a:hover svg,
.nav-account-dropdown button:hover svg { opacity: 1; }

.nav-drop-divider { border: none; border-top: 1px solid var(--soft-line); margin: 2px 0; }

#dropLogout { color: #dc2626; }
#dropLogout:hover { background: #fff5f5; color: #b91c1c; }
#dropLogout svg { stroke: currentColor; opacity: 0.7; }
#dropLogout:hover svg { opacity: 1; }

.mega-menu {
  position: absolute;
  top: calc(100% - 1px);
  right: 48px;
  left: 48px;
  z-index: 60;
  display: none;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 10px 10px;
  background: var(--white);
  box-shadow: 0 28px 60px rgba(10, 49, 95, 0.18), 0 8px 20px rgba(10,49,95,0.08);
  overflow: hidden;
}

.mega-menu.is-open {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 280px;
  gap: 0;
}

/* Section columns */
.mega-menu section {
  padding: 22px 22px 20px;
  border-right: 1px solid var(--soft-line);
  background: #fafcfe;
}

.mega-menu h2 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Menu item buttons */
.mega-menu button {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  padding: 9px 12px 9px 22px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 130ms ease, color 130ms ease;
}

/* Teal dot bullet */
.mega-menu button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b0d8dc;
  transition: background 130ms ease, transform 130ms ease;
}

.mega-menu button:hover {
  background: #edf8f9;
  color: var(--navy);
}

.mega-menu button:hover::before {
  background: var(--teal);
  transform: translateY(-50%) scale(1.3);
}

.mega-menu button:first-of-type {
  margin-top: 2px;
}

.mega-menu button .mm-text {
  min-width: 0;
  flex: 1;
}

.mega-menu button strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.mega-menu button span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* Dark aside panel */
.mega-menu aside {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: linear-gradient(160deg, #04305d 0%, #073a70 55%, #016c70 100%);
  color: var(--white);
}

.mega-menu aside strong {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.mega-menu aside p {
  margin: 10px 0 20px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.65;
  flex: 1;
}

/* CTA button inside dark aside - white outlined */
.mega-menu aside .primary-button {
  align-self: flex-start;
  min-height: 38px;
  padding: 0 18px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.mega-menu aside .primary-button:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--white);
}

.global-search {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.global-search.is-open {
  display: block;
}

.global-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 29, 56, 0.42);
}

.global-search-box {
  position: relative;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 70px);
  margin: 34px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(4, 32, 62, 0.25);
}

.global-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--soft-line);
}

.global-search-head h2 {
  margin: 0;
  font-size: 28px;
}

.global-search-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.global-search-field {
  margin: 18px 24px 0;
}

.global-search-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  overflow-x: auto;
}

.global-search-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.global-search-tabs button.is-active {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.global-search-results {
  max-height: min(560px, calc(100vh - 280px));
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding: 0 24px 24px;
}

.global-result {
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fbfdff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.global-result:hover {
  border-color: var(--teal);
  background: #eefafb;
}

.global-result img,
.global-result > span {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.global-result img {
  object-fit: cover;
}

.global-result > span {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.global-result strong,
.global-result small {
  display: block;
}

.global-result strong {
  color: var(--navy);
  font-size: 14px;
}

.global-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.global-result em {
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-search {
  margin: 10px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fbfdff;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.blue-bar {
  height: 35px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--navy-dark), #064b88);
  color: var(--white);
}

.crumbs {
  width: 100%;
  max-width: 1780px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
  margin: 0 auto;
  font-size: 12px;
}

.crumbs span {
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.content {
  padding: 27px 48px 22px;
}

/* ── Section tag label ─────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  background: rgba(0,155,159,0.09);
  border-radius: 999px;
  padding: 3px 11px;
}

/* ── Home hero: two-column split layout ────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.home-hero {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 6% 18%, rgba(42, 157, 138, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 94% 82%, rgba(49, 87, 213, 0.06) 0%, transparent 44%),
    linear-gradient(180deg, #f6faff 0%, #edf4fb 55%, #f0f8f6 100%);
  border-bottom: 1px solid var(--line);
}

.home-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(360px, 44%);
  min-height: 260px;
}

.home-hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 2.5vw, 36px) clamp(36px, 5vw, 74px) clamp(12px, 1.5vw, 20px);
  background:
    radial-gradient(circle at 8% 80%, rgba(42, 157, 138, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 92% 10%, rgba(49, 87, 213, 0.05) 0%, transparent 42%),
    linear-gradient(160deg, #f0f8ff 0%, #ffffff 50%, #f5faf9 100%);
  overflow: hidden;
}

.home-hero-left::before {
  content: "";
  width: 80px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) 0%, #0b3a75 100%);
  box-shadow: 0 6px 18px rgba(42, 157, 138, 0.22);
  animation: heroFadeUp 0.5s ease both;
}

.home-hero-left h1 {
  max-width: 690px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 1.06;
  color: #071f4f;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  animation: heroFadeUp 0.55s 0.08s ease both;
}

.home-hero-left h1 span {
  background: linear-gradient(120deg, var(--teal-dark) 0%, #1255a4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-left > p {
  max-width: 560px;
  margin: 0;
  color: #3d5470;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.65;
  animation: heroFadeUp 0.55s 0.16s ease both;
}

/* ── Hero stat chips ────────────────────────────── */
.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  animation: heroFadeUp 0.55s 0.24s ease both;
}

.home-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(2, 155, 159, 0.07);
  border: 1px solid rgba(2, 155, 159, 0.2);
}

.home-stat strong {
  color: var(--teal-dark);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.home-stat span {
  color: #3d5470;
  font-size: 12px;
  font-weight: 500;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  animation: heroFadeUp 0.55s 0.3s ease both;
}

.home-hero-photo {
  position: relative;
  overflow: hidden;
  background: #c8e4f0;
  animation: heroFadeUp 0.65s 0.12s ease both;
}

/* ── Floating badge on hero photo ───────────────── */
.home-hero-badge {
  position: absolute;
  bottom: 28px;
  left: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(42, 157, 138, 0.18);
  box-shadow: 0 8px 32px rgba(7, 58, 112, 0.18), 0 2px 8px rgba(7, 58, 112, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: heroFadeUp 0.6s 0.52s ease both;
}

.home-hero-badge-icon {
  display: grid;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
}

.home-hero-badge-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-hero-badge strong {
  display: block;
  color: #071f4f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.home-hero-badge span {
  color: #5c7191;
  font-size: 11px;
  font-weight: 500;
}

.home-hero-photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -20%;
  bottom: -20%;
  left: -8%;
  width: 18%;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0f8ff, #ffffff);
  box-shadow: 20px 0 44px rgba(240, 248, 255, 0.9);
  pointer-events: none;
}

.home-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-actions .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(10, 114, 120, 0.32);
  letter-spacing: -0.01em;
}

.home-actions .primary-button:hover {
  box-shadow: 0 12px 36px rgba(10, 114, 120, 0.42);
  transform: translateY(-2px);
}

.home-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 10px;
  border-color: #c2d3e2;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.home-actions .ghost-button:hover {
  border-color: var(--teal);
  background: #eefcfc;
  color: var(--teal-dark);
  transform: translateY(-2px);
}

/* Mobile-only button icons — hidden on desktop */
.btn-book-icon {
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.9;
}
.btn-arrow-icon {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.home-actions button:hover .btn-arrow-icon {
  transform: translateX(3px);
}

/* ── Hero course cards ─────────────────────────────────────────── */
.home-course-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 12px;
  width: min(1200px, calc(100% - 42px));
  margin: -224px auto 24px;
  position: relative;
  z-index: 4;
}

.home-course-card {
  --course-accent: var(--teal);
  --course-soft: #e5f7f6;
  --course-border: #b8dcda;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 4px;
  min-width: 0;
  min-height: 152px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(194, 211, 226, 0.9);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 26px rgba(7, 58, 112, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-course-card:nth-child(1) { --course-accent: #3157d5; --course-soft: #e8edff; --course-border: #9fb1ff; }
.home-course-card:nth-child(2) { --course-accent: #0d9488; --course-soft: #dcf6ef; --course-border: #8dd7cd; }
.home-course-card:nth-child(3) { --course-accent: #e11d48; --course-soft: #ffe3e8; --course-border: #ff9cac; }
.home-course-card:nth-child(4) { --course-accent: #f08a13; --course-soft: #fff0dc; --course-border: #ffc575; }

.home-course-icon {
  display: grid;
  grid-row: 1 / span 3;
  grid-column: 1;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-top: 6px;
  border-radius: 50%;
  color: var(--course-accent);
  background: var(--course-soft);
  box-shadow: none;
}

.home-course-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-course-kicker {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  min-height: 22px;
  justify-self: start;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--course-accent);
  background: var(--course-soft);
  font-size: 9px;
  font-weight: 900;
}

.home-course-card h2 {
  grid-column: 2;
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-course-card p {
  grid-column: 2;
  margin: 0;
  color: #536b87;
  font-size: 10px;
  line-height: 1.3;
}

.home-course-card button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  margin-top: 5px;
  padding: 0 12px;
  border: 1.5px solid var(--course-border);
  border-radius: 7px;
  color: var(--course-accent);
  background: #ffffff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
}

.home-course-card button b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  font-size: 14px;
}

.home-course-card button:hover {
  transform: translateY(-1px);
  background: var(--course-soft);
}

@media (max-width: 1180px) {
  .home-course-cards {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    overflow-x: auto;
    width: calc(100% - 32px);
    margin-top: -168px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .home-course-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .home-course-cards {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 10px;
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .home-course-card {
    min-height: 0;
    padding: 16px;
  }

  .home-course-card h2 {
    font-size: 15px;
  }

  .home-course-card p {
    font-size: 11px;
  }
}

/* ── Curriculum showcase ───────────────────────────────────────── */
.home-curriculum {
  padding: 64px clamp(20px, 5vw, 80px) 72px;
  background: #f4f8fc;
}

.home-curriculum-head {
  text-align: center;
  margin-bottom: 44px;
}

.home-curriculum-head h2 {
  margin: 0 0 14px;
  color: #0d2240;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-curriculum-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #2da89a;
}

.home-curriculum-divider span {
  display: block;
  width: 48px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.45;
}

.home-curriculum-divider svg {
  width: 26px;
  height: 26px;
}

.home-curriculum-head p {
  max-width: 540px;
  margin: 0 auto;
  color: #536b87;
  font-size: 16px;
  line-height: 1.65;
}

.home-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Card base */
.hcc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 22px 22px 20px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hcc:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

/* Gradient variants */
.hcc--green  { background: linear-gradient(148deg, #1b6e3c 0%, #2aaa60 100%); }
.hcc--blue   { background: linear-gradient(148deg, #1748a8 0%, #2e70e0 100%); }
.hcc--purple { background: linear-gradient(148deg, #47239a 0%, #7d44e2 100%); }
.hcc--rose   { background: linear-gradient(148deg, #7e1e4d 0%, #c23873 100%); }

/* Ghost background icon */
.hcc-ghost {
  position: absolute;
  right: -14px;
  top: -14px;
  width: 168px;
  height: 168px;
  opacity: 0.1;
  pointer-events: none;
}

.hcc-ghost svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
}

/* Top row: icon + badge */
.hcc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: auto;
  padding-bottom: 22px;
}

.hcc-icon {
  display: grid;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
}

.hcc-icon svg {
  width: 19px;
  height: 19px;
  stroke: #ffffff;
}

.hcc-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Text */
.hcc h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hcc > p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

/* CTA button */
.hcc button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
  margin-top: auto;
}

.hcc button:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 960px) {
  .home-curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .home-curriculum {
    padding: 48px clamp(16px, 4vw, 48px) 56px;
  }
}

@media (max-width: 540px) {
  .home-curriculum {
    padding: 40px 16px 48px;
  }
  .home-curriculum-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hcc {
    min-height: 220px;
  }
}

/* ── Curriculum cards inline in hero ───────────────────────────── */
.home-curriculum-inline {
  padding: 0 clamp(24px, 5vw, 74px) 6px;
  border-top: 1px solid rgba(42, 157, 138, 0.15);
}

.home-curriculum-inline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 2px;
}

.home-curriculum-inline-head::before {
  content: "";
  display: block;
  width: 28px;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), #0b3a75);
  flex-shrink: 0;
}

.home-curriculum-inline-head span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #536b87;
}

.home-curriculum-inline .home-curriculum-grid {
  max-width: none;
  margin: 0;
}

.home-curriculum-inline .hcc {
  min-height: 160px;
  padding: 12px 14px 12px;
  border-radius: 0;
}

/* ── Feature cards row ─────────────────────────────────────────── */
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px clamp(24px, 5vw, 74px) 28px;
  background: linear-gradient(180deg, #f0f8ff 0%, #e8f4fb 100%);
  border-top: 1px solid rgba(203, 215, 229, 0.7);
}

.home-feature-grid button {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 32px;
  align-items: center;
  column-gap: 14px;
  min-height: 112px;
  padding: 20px 16px 20px 20px;
  border: 1px solid rgba(203, 215, 229, 0.7);
  border-radius: 12px;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.home-feature-grid button:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 20px rgba(0,155,159,0.12);
  transform: translateY(-2px);
}

.home-feature-grid .feat-icon {
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf7fa, #d4f1f1);
  color: var(--teal-dark);
}

.home-feature-grid .feat-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--teal-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Per-card icon colours ── */
/* 1 Detailed Notes — teal (default, kept) */
/* 2 Course Outlines — indigo */
.home-feature-grid button:nth-child(2) .feat-icon {
  background: linear-gradient(135deg, #eef2ff, #dde6ff);
  color: #4338ca;
}
.home-feature-grid button:nth-child(2) .feat-icon svg { stroke: #4338ca; }

/* 3 Quizzes & Exams — emerald */
.home-feature-grid button:nth-child(3) .feat-icon {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
}
.home-feature-grid button:nth-child(3) .feat-icon svg { stroke: #059669; }

/* 4 Medical Instruments — amber */
.home-feature-grid button:nth-child(4) .feat-icon {
  background: linear-gradient(135deg, #fff8f0, #fde8c8);
  color: #d97706;
}
.home-feature-grid button:nth-child(4) .feat-icon svg { stroke: #d97706; }

/* 5 Practical Guide — rose */
.home-feature-grid button:nth-child(5) .feat-icon {
  background: linear-gradient(135deg, #fff1f2, #fecdd3);
  color: #e11d48;
}
.home-feature-grid button:nth-child(5) .feat-icon svg { stroke: #e11d48; }

/* 6 Nursing Diagnosis — violet */
.home-feature-grid button:nth-child(6) .feat-icon {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #7c3aed;
}
.home-feature-grid button:nth-child(6) .feat-icon svg { stroke: #7c3aed; }

.home-feature-grid strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.home-feature-grid small {
  color: #4a6880;
  font-size: 13px;
  line-height: 1.4;
}

.home-feature-grid button::after {
  content: "›";
  width: 28px;
  height: 28px;
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: center;
  display: grid;
  place-items: center;
  border: 1px solid rgba(2, 155, 159, 0.36);
  border-radius: 50%;
  color: var(--teal-dark);
  font-size: 18px;
  background: #ffffff;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Legacy / removed ──────────────────────────────────────────── */
.home-stats,
.study-board,
.hero-proof-stack,
.hero-slide-dots,
.home-hero-slides,
.home-hero-slide,
.board-top,
.board-content { display: none; }

.board-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.board-rows {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.board-rows button {
  min-height: 52px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  color: #2f5578;
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
}

.board-rows button:hover {
  border-color: #9bd6d8;
  background: #eefafb;
}

.board-rows strong {
  color: var(--navy);
  font-size: 13px;
}

.board-rows span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.board-rows em {
  color: var(--teal-dark);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.instrument-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border-top: 1px solid var(--soft-line);
  background: var(--soft-line);
}

.instrument-strip img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  display: block;
  object-fit: cover;
  background: #f4f8fb;
}

.home-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 64px);
}

.home-blog-promo {
  background: #ffffff;
}

.home-blog-promo .section-heading,
.home-study-highlights .section-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.home-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-study-highlights {
  max-width: 100%;
  background: linear-gradient(180deg, #f7fbfd 0%, #eef6fb 100%);
  border-top: 1px solid rgba(203, 215, 229, 0.72);
  border-bottom: 1px solid rgba(203, 215, 229, 0.72);
}

.home-study-highlights > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.home-highlight-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-highlight-layout > article {
  border: 1.5px solid rgba(15, 45, 90, 0.1);
  border-radius: 16px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(11, 42, 91, 0.06);
}

.home-highlight-layout h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.home-link-stack {
  display: grid;
  gap: 10px;
}

.home-link-stack button {
  display: grid;
  gap: 5px;
  min-height: 72px;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  background: #f8fbfe;
  text-align: left;
  cursor: pointer;
}

.home-link-stack button:hover {
  border-color: var(--teal);
  background: #eefafb;
}

.home-link-stack strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
}

.home-link-stack span {
  color: #62748a;
  font-size: 12px;
  line-height: 1.45;
}

.home-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(circle at 6% 50%, rgba(11, 156, 163, 0.22), transparent 40%),
    radial-gradient(circle at 96% 20%, rgba(15, 60, 120, 0.18), transparent 36%),
    linear-gradient(135deg, #071e46 0%, #0a4a5a 60%, #093a56 100%);
  border-top: none;
  border-radius: 0;
}

.home-newsletter .section-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}

.home-newsletter h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.home-newsletter p {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.7;
}

.newsletter-form {
  display: grid;
  gap: 12px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 24px 56px rgba(4, 18, 50, 0.3), inset 0 1px 0 rgba(255,255,255,0.9);
}

.newsletter-form label {
  display: grid;
  gap: 7px;
  color: #62748a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.newsletter-form input {
  min-height: 48px;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  padding: 0 14px;
  color: #102a43;
  background: #ffffff;
  font: inherit;
}

.newsletter-form button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b9ca3, #087278);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px rgba(10, 114, 120, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(10, 114, 120, 0.42);
}

.newsletter-form small {
  color: #62748a;
  font-size: 12px;
  line-height: 1.45;
}

.newsletter-form small.is-error {
  color: #b42318;
}

.home-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-hub-grid button {
  min-height: 148px;
  padding: 20px;
  border: 1.5px solid rgba(15, 45, 90, 0.1);
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(11, 42, 91, 0.07);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.home-hub-grid button:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(0, 155, 159, 0.14);
  transform: translateY(-3px);
}

.home-hub-grid strong,
.home-hub-grid span {
  display: block;
}

.home-hub-grid strong {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
}

.home-hub-grid span {
  color: #62748a;
  font-size: 13px;
  line-height: 1.5;
}

.home-programs {
  background: linear-gradient(180deg, #f4f9fd 0%, #eef5fb 100%);
  max-width: 100%;
  padding: clamp(52px, 6vw, 80px) clamp(20px, 5vw, 64px);
}

.home-programs > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.instruments-home {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f7fbfd 0%, #eef6fb 100%);
  border-top: 1px solid rgba(203, 215, 229, 0.72);
  border-bottom: 1px solid rgba(203, 215, 229, 0.72);
}

.instruments-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 94% 10%, rgba(2, 155, 159, 0.13), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(7, 58, 112, 0.1), transparent 30%);
}

.instruments-home > * {
  position: relative;
}

.instruments-heading {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.instruments-heading > div {
  max-width: 760px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1.5px solid rgba(2, 155, 159, 0.28);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(2, 155, 159, 0.07);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.instruments-home-cta {
  min-height: 46px;
  flex: 0 0 auto;
  margin-bottom: 4px;
  padding: 0 22px;
  border: 1.5px solid rgba(7, 58, 112, 0.28);
  border-radius: 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(7, 58, 112, 0.1);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.instruments-home-cta:hover {
  border-color: var(--teal);
  background: #eefcfc;
  color: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(0, 155, 159, 0.16);
  transform: translateY(-2px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.notes-copy h2 {
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.06;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 900;
  position: relative;
  padding-bottom: 18px;
}

.section-heading h2::after,
.notes-copy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), #54c8ca 60%, transparent);
}

.section-heading p,
.notes-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.home-card {
  min-height: 148px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 18px;
  align-items: center;
  text-align: left;
}

.home-card .program-icon {
  grid-row: 1 / 4;
  align-self: start;
  margin-bottom: 0;
}

.home-card h3 {
  min-height: auto;
  font-size: 19px;
}

.home-card p {
  margin: 5px 0 0;
}

.home-card button {
  width: min(210px, 100%);
  margin-top: 12px;
}

.notes-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(380px, 1.35fr) minmax(260px, 0.88fr);
  gap: 20px;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: #fbfdff;
}

.notes-copy {
  align-self: center;
}

.notes-copy .outline-accent {
  min-height: 42px;
  margin-top: 24px;
  padding: 0 22px;
}

.home-lesson-list {
  display: grid;
  gap: 8px;
}

.home-lesson-list button {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 9px 54px 9px 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.home-lesson-list button::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 22px;
  height: 28px;
  border: 1px solid #8da4ba;
  border-radius: 3px;
  background: linear-gradient(#fff, #f4f8fb);
}

.home-lesson-list button::after {
  content: "New";
  position: absolute;
  right: 12px;
  top: 15px;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  background: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.home-lesson-list button:hover {
  border-color: var(--teal);
}

.home-lesson-list span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.home-lesson-list small {
  color: #4d6986;
  font-size: 10px;
  line-height: 1.55;
}

.home-outline-table,
.latest-lessons {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(7, 58, 112, 0.05);
}

.outline-table-body {
  overflow-x: auto;
}

.outline-table-head,
.latest-lessons > div:first-child {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  color: var(--navy);
  background: #edf4fb;
  border-bottom: 1px solid rgba(7, 58, 112, 0.1);
}

.outline-table-head strong {
  font-size: 13px;
  font-weight: 800;
}

.outline-table-head button,
.latest-lessons > div:first-child button {
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.outline-table-head button:hover,
.latest-lessons > div:first-child button:hover {
  text-decoration: underline;
}

.outline-table-body {
  display: grid;
}

.outline-table-body button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 88px 96px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  color: #335878;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.outline-table-body button:hover {
  background: #eefafb;
}

.outline-table-body span {
  color: var(--teal-dark);
  font-weight: 800;
}

.outline-table-body strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-table-body em {
  color: #294f74;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.latest-lessons > div:first-child h3 {
  color: var(--navy);
  font-size: 15px;
}

.latest-lessons .home-lesson-list {
  padding: 9px;
}

.instrument-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.instrument-preview-grid article {
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(190, 205, 223, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 32px rgba(7, 58, 112, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.instrument-preview-grid article:hover {
  border-color: #9dd5d8;
  box-shadow: 0 20px 46px rgba(7, 58, 112, 0.14);
  transform: translateY(-4px);
}

.instrument-preview-media {
  height: 178px;
  display: grid;
  place-items: center;
  margin: 10px 10px 0;
  border: 1px solid rgba(228, 237, 244, 0.9);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0%, #f3f8fb 76%);
}

.instrument-preview-grid img {
  width: min(82%, 210px);
  height: 146px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(7, 58, 112, 0.12));
}

.instrument-preview-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.instrument-preview-body span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.instrument-preview-grid h3 {
  margin: 7px 0 8px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.18;
  text-align: left;
}

.instrument-preview-grid p {
  margin: 0;
  color: #4d647f;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-links-home {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 52px;
  border-top: 1px solid var(--soft-line);
}

.resource-links-home button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px 20px;
  border: 1.5px solid var(--soft-line);
  border-radius: 14px;
  color: var(--navy);
  background: var(--white);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.resource-links-home button:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 24px rgba(0,155,159,0.13);
  transform: translateY(-3px);
}

.rl-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #d6f4f5, #b8eaec);
  color: var(--teal-dark);
}
.rl-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Differentiated icon colours per resource */
.resource-links-home button:nth-child(1) .rl-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}
.resource-links-home button:nth-child(2) .rl-icon {
  background: linear-gradient(135deg, #d6f4f5, #b8eaec);
  color: var(--teal-dark);
}
.resource-links-home button:nth-child(3) .rl-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #6d28d9;
}
.resource-links-home button:nth-child(4) .rl-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.rl-text { flex: 1; min-width: 0; }
.rl-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 3px;
}
.rl-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.resources-content {
  max-width: 1580px;
  margin: 0 auto;
  padding-top: 34px;
}

.resources-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.58fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
  min-height: 390px;
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid rgba(115, 231, 219, 0.25);
  border-radius: 16px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.07) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 92% 10%, rgba(64, 202, 205, 0.34), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(66, 133, 255, 0.20), transparent 34%),
    linear-gradient(135deg, #061733 0%, #0b315f 54%, #0c6970 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(5, 21, 45, 0.18);
}

.resources-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  pointer-events: none;
}

.resources-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  max-width: 760px;
}

.resources-hero h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

.resources-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.resources-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.resources-hero-actions .primary-button,
.resources-hero-actions .ghost-button {
  min-height: 48px;
  padding-left: 32px;
  padding-right: 32px;
  min-width: 180px;
  border-radius: 10px;
}

.resources-hero-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.resources-hero-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(4, 20, 42, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.resources-hero-panel div {
  display: grid;
  gap: 4px;
  min-height: 96px;
  align-content: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid #73e7db;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.resources-hero-panel strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.resources-hero-panel span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.resources-directory {
  margin-top: 34px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-directory-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 102% -8%, var(--resource-glow, rgba(42, 157, 138, 0.15)), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
  box-shadow: 0 18px 48px rgba(15, 40, 80, 0.08);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.resource-directory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--resource-accent, var(--teal-dark));
}

.resource-directory-card--teal { --resource-accent: #2a9d8a; --resource-soft: #e5f7f8; --resource-glow: rgba(42, 157, 138, 0.15); }
.resource-directory-card--blue { --resource-accent: #2563b8; --resource-soft: #eaf2ff; --resource-glow: rgba(37, 99, 184, 0.15); }
.resource-directory-card--green { --resource-accent: #147a4b; --resource-soft: #eaf8ef; --resource-glow: rgba(20, 122, 75, 0.15); }
.resource-directory-card--navy { --resource-accent: #173b73; --resource-soft: #edf3fb; --resource-glow: rgba(23, 59, 115, 0.15); }
.resource-directory-card--amber { --resource-accent: #c26200; --resource-soft: #fff4e7; --resource-glow: rgba(194, 98, 0, 0.15); }
.resource-directory-card--purple { --resource-accent: #6d3bd1; --resource-soft: #f1edff; --resource-glow: rgba(109, 59, 209, 0.15); }

.resource-directory-card > * {
  position: relative;
  z-index: 1;
}

.resource-directory-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  color: var(--resource-accent, var(--teal-dark));
  background: var(--resource-soft, #e5f7f8);
}

.resource-directory-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-directory-meta {
  justify-self: start;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--resource-accent, var(--teal-dark));
  background: var(--resource-soft, #effafa);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.resource-directory-card h2 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.12;
}

.resource-directory-card p {
  margin: 0;
  color: #536579;
  font-size: 14px;
  line-height: 1.55;
}

.resource-directory-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 1px solid var(--resource-soft, #b7e8e9);
  border-radius: 8px;
  color: var(--resource-accent, var(--navy));
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s, background .18s, color .18s, border-color .18s;
}

.resource-directory-card button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-directory-card:hover {
  transform: translateY(-4px);
  border-color: var(--resource-accent, rgba(0, 155, 159, 0.38));
  box-shadow: 0 24px 60px rgba(15, 40, 80, 0.12);
}

.resource-directory-card:hover button {
  color: #ffffff;
  border-color: var(--resource-accent, var(--teal-dark));
  background: var(--resource-accent, var(--teal-dark));
}

.pdf-download-library {
  margin-top: 46px;
  padding: 30px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(42, 157, 138, 0.08), transparent 44%),
    #f8fbfe;
}

.pdf-download-library .section-heading p {
  margin: 6px 0 0;
  color: #536579;
  font-size: 15px;
  line-height: 1.55;
}

.pdf-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pdf-resource-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 420px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
  box-shadow: 0 16px 44px rgba(15, 40, 80, 0.08);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.pdf-resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 157, 138, 0.38);
  box-shadow: 0 22px 56px rgba(15, 40, 80, 0.12);
}

.pdf-resource-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdf-resource-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
}

.pdf-resource-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-resource-card h2 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.pdf-resource-card p {
  margin: 0;
  color: #536579;
  font-size: 14px;
  line-height: 1.55;
}

.pdf-preview {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  background: #ffffff;
}

.pdf-preview h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
}

.pdf-preview ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #334e68;
  font-size: 12.5px;
  line-height: 1.45;
}

.pdf-capture-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.pdf-capture-form label {
  display: grid;
  gap: 6px;
}

.pdf-capture-form label span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pdf-capture-form input {
  min-height: 42px;
  border: 1px solid #c8d8e8;
  border-radius: 8px;
  padding: 0 12px;
  color: #102a43;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
}

.pdf-capture-form button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
  font-weight: 900;
  cursor: pointer;
}

.pdf-capture-form small {
  color: #6b8198;
  font-size: 11.5px;
  line-height: 1.45;
}

.pdf-capture-form small.is-error {
  color: #b42318;
}

.resources-top-ad {
  min-height: 108px;
  margin: 26px 0 6px;
  border-radius: 12px;
}

.resources-premium-soon {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(15, 45, 90, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.58) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #f8fbfe 0%, #eaf7f7 100%);
}

.resources-premium-soon h2 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.resources-premium-soon p {
  margin: 0;
  color: #506982;
  font-size: 15px;
  line-height: 1.7;
}

.resources-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resources-soon-grid article {
  min-height: 190px;
  padding: 18px;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(11, 42, 91, 0.06);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.resources-soon-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 157, 138, 0.35);
  box-shadow: 0 20px 42px rgba(11, 42, 91, 0.1);
}

.resources-soon-grid span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--teal-dark);
  background: #eaf7f7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.resources-soon-grid h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.resources-soon-grid p {
  color: #506982;
  font-size: 13px;
  line-height: 1.55;
}

.resources-soon-grid small {
  display: inline-flex;
  margin-top: 12px;
  color: #62748a;
  font-size: 11px;
  font-weight: 900;
}

.resource-content {
  max-width: 1780px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 24px;
  margin: 0 auto;
}

.resource-menu,
.resource-link-panel,
.resource-article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.resource-menu {
  position: sticky;
  top: 98px;
  align-self: start;
  overflow: hidden;
}

.resource-menu button {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px dashed #aebdcc;
  color: #34465c;
  background: var(--white);
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}

.resource-menu button.is-active,
.resource-menu button:hover {
  color: var(--navy);
  background: #eefafb;
}

.resource-article {
  padding: 28px 34px;
}

.resource-blocks {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: #294f74;
  font-size: 15px;
  line-height: 1.75;
}

.resource-blocks h2 {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
  font-size: 25px;
}

.resource-blocks p,
.resource-blocks ul {
  margin: 0;
}

.resource-blocks ul {
  padding-left: 20px;
}

.resource-link-panel {
  align-self: start;
  padding: 18px;
}

.resource-link-panel h2 {
  font-size: 26px;
}

#resourceLinks {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

#resourceLinks button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--soft-line);
  border-radius: 5px;
  color: var(--navy);
  background: #fbfdff;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

#resourceLinks button:hover {
  border-color: var(--teal);
  background: #eefafb;
}

.topic-content,
.login-content {
  max-width: 1780px;
  margin: 0 auto;
}

.topic-lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.topic-lesson-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(10, 49, 95, 0.05);
}

.topic-lesson-card.is-covered {
  border-color: #a7dfe1;
}

.topic-card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #f4f8fb;
  border-bottom: 1px solid var(--soft-line);
}

.topic-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.topic-lesson-card:hover .topic-card-media img {
  transform: scale(1.04);
}

.topic-card-media figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(0deg, rgba(4, 28, 56, 0.72) 0%, transparent 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}

.topic-card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(135deg, #eef8f9, #ddf0f2);
  border-bottom: 1px solid var(--soft-line);
}

.topic-card-placeholder.is-missing {
  background: linear-gradient(135deg, #f4f6f8, #ebeef2);
}

.topic-card-placeholder svg {
  width: 28px;
  height: 28px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.topic-card-placeholder.is-missing svg {
  stroke: #8da4ba;
}

.topic-card-placeholder span {
  max-width: 180px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.topic-card-placeholder.is-missing span {
  color: #8da4ba;
}

.topic-lesson-card > div {
  padding: 18px;
}

.topic-lesson-card span,
.revision-source-note {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 99px;
  color: var(--teal-dark);
  background: #e6f8f7;
  font-size: 11px;
  font-weight: 800;
}

.topic-lesson-card.is-missing span {
  color: #6d7890;
  background: #eef2f6;
}

.topic-lesson-card h2 {
  margin-top: 12px;
  font-size: 21px;
  line-height: 1.18;
}

.topic-lesson-card p {
  margin: 10px 0 16px;
  color: #43617f;
  font-size: 13px;
  line-height: 1.55;
}

.topic-lesson-card button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.topic-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-card-actions .quiz-outline-button,
.subtopic-quiz-link {
  color: var(--navy);
  border-color: #b7c8da;
  background: #f8fbff;
}

.subtopic-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: center;
}

.subtopic-actions > button:first-child {
  min-width: 0;
  text-align: left;
}

.subtopic-quiz-link {
  min-height: 31px;
  padding: 0 8px;
  border: 1px solid #b7c8da;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.revision-source-note {
  margin: 0 0 16px;
}

.topic-card .has-notes::after,
.topic-card .missing-notes::after {
  margin-left: 7px;
  font-size: 10px;
  font-weight: 800;
}

.topic-card .has-notes::after {
  content: "Notes";
  color: var(--teal-dark);
}

.topic-card .missing-notes::after {
  content: "Blank";
  color: #7d8795;
}

.login-content {
  min-height: 620px;
  display: grid;
  place-items: center;
}

.dashboard-content {
  max-width: 1420px;
  margin: 0 auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 24px;
}

/* ── Base card ── */
.dashboard-card {
  min-height: 250px;
  padding: 22px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(10, 49, 95, 0.07);
  position: relative;
  overflow: hidden;
}
.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 10px 10px 0 0;
}
#dashboardStats::before   { background: linear-gradient(90deg, var(--navy), #0891b2); }
#dashboardScores::before  { background: linear-gradient(90deg, var(--teal-dark), #0891b2); }
#dashboardRecommended::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
#dashboardBookmarks::before { background: linear-gradient(90deg, #7c3aed, #2563eb); }

[data-toggle-bookmark].is-saved {
  border-color: #2a9d8a !important;
  color: #08746d !important;
  background: #e8f7f4 !important;
}

.global-search-summary {
  grid-column: 1 / -1;
  padding: 4px 2px 8px;
  color: #60748b;
  font-size: 12px;
}

.global-search-summary strong {
  color: var(--navy);
}

.global-result mark {
  padding: 0 2px;
  color: #083b6f;
  background: #c9f1e9;
  border-radius: 2px;
}
#dashboardCertificate::before { background: linear-gradient(90deg, #16a34a, #22c55e); }

/* ── Card header row ── */
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.dash-card-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dash-card-label svg { opacity: .8; flex-shrink: 0; }
.dash-welcome-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
/* Standalone span label (stats / scores / recommended) */
#dashboardStats  > .dash-card-label,
#dashboardScores > .dash-card-label,
#dashboardRecommended > .dash-card-label,
#dashboardCertificate > .dash-card-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

/* ── Continue card ── */
.continue-card {
  background: linear-gradient(145deg, #eefafb 0%, #f0f9ff 50%, #fff 100%);
}
.dashboard-card h2 {
  margin: 10px 0 7px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.dashboard-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.dash-last-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.dash-last-meta svg { opacity: .6; }
.dash-cta { margin-top: 16px; }

/* ── Progress bar ── */
.dash-prog-wrap { margin: 4px 0 16px; }
.dash-prog-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.dash-prog-pct {
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.dash-prog-top small { color: var(--muted); font-weight: 600; font-size: 13px; }
.dash-prog-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.dash-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-dark), #0891b2);
  border-radius: 999px;
  transition: width .6s ease;
  min-width: 4px;
}

/* ── Stat rows (icon + text) ── */
.dashboard-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
}
.dashboard-stat-row svg { flex-shrink: 0; }
.dashboard-stat-row div { min-width: 0; }
.dashboard-stat-row strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
}
.dashboard-stat-row small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 1px;
}
.stat-teal  svg { stroke: #0891b2; }
.stat-cyan svg { stroke: #0d9488; }
.stat-amber  svg { stroke: #d97706; }
.stat-teal   { border-left: 3px solid #0891b2; }
.stat-cyan { border-left: 3px solid #0d9488; }
.stat-amber  { border-left: 3px solid #d97706; }

/* ── Score / recommended list buttons ── */
.dash-list-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.dash-list-btn:hover {
  border-color: var(--teal);
  background: #eefafb;
  box-shadow: 0 2px 8px rgba(0,155,159,.08);
}
.dash-list-text { flex: 1; min-width: 0; }
.dash-list-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); }
.dash-list-text small  { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.dash-list-arrow { opacity: .35; flex-shrink: 0; transition: opacity .15s, transform .15s; }
.dash-list-btn:hover .dash-list-arrow { opacity: .7; transform: translateX(2px); }

/* ── Score badge ── */
.dash-score-badge {
  flex-shrink: 0;
  min-width: 44px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.score-green { background: #dcfce7; color: #166534; }
.score-amber { background: #fef9c3; color: #854d0e; }
.score-red   { background: #fee2e2; color: #991b1b; }

/* ── Recommended note dot ── */
.dash-note-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-left: 2px;
}

/* ── Empty state ── */
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}
.dash-empty svg { opacity: .3; }
.dash-empty p   { font-size: 13px; line-height: 1.6; }
.dash-empty small { font-size: 12px; }

/* ── Certificate ring card ── */
.dash-cert-body {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.dash-cert-ring {
  position: relative;
  flex-shrink: 0;
  width: 72px; height: 72px;
}
.dash-cert-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}
.dash-cert-ring.is-done span { color: #16a34a; }
.dash-cert-info h2 { font-size: 18px; margin: 0 0 5px; }
.dash-cert-info p  { font-size: 13px; margin: 0 0 12px; }

#dashboardScores strong,
#dashboardScores small,
#dashboardRecommended strong,
#dashboardRecommended small {
  display: block;
}
#dashboardScores small,
#dashboardRecommended small {
  margin-top: 4px;
  color: var(--muted);
}

#dashboardWeakAreas::before { background: linear-gradient(90deg, #dc2626, #f97316); }
#dashboardDownloads::before { background: linear-gradient(90deg, #0891b2, #14b8a6); }
#dashboardLearningPlan::before { background: linear-gradient(90deg, #0b2a5b, #2c9a9a); }

.dash-plan-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.dash-plan-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  color: #334e68;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.dash-plan-list b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-size: 12px;
}

.login-panel {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  font-size: 36px;
}

.login-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-premium-shell {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(360px, 0.65fr);
  gap: 0;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(7, 58, 112, 0.14);
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(10, 49, 95, 0.14), 0 8px 24px rgba(10,49,95,0.07);
}

/* Dark navy left panel */
.auth-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 640px;
  padding: 36px 38px 40px;
  background: linear-gradient(160deg, #04305d 0%, #073a70 55%, #016c70 100%);
  color: var(--white);
  overflow: hidden;
}

/* Subtle decorative circle in bg */
.auth-copy::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 155, 159, 0.1);
  pointer-events: none;
}

.auth-copy::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.auth-copy > img {
  position: relative;
  z-index: 1;
  width: 170px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.auth-media {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 220px;
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(0,50,100,0.3);
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
}

.auth-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.auth-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(4, 28, 56, 0.8), transparent);
  pointer-events: none;
}

.auth-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 22px;
  color: var(--white);
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.08;
}

.auth-copy p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.65;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 800;
}

.auth-benefits span::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
}

/* Right panel — form card */
.auth-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 38px 36px;
  border-left: 1px solid var(--soft-line);
  background: #ffffff;
  border-top: 4px solid var(--teal);
}

.admin-auth-shell .auth-card {
  border-top-color: var(--navy);
}

/* Tab switcher */
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fa;
}

.auth-tabs-two {
  grid-template-columns: repeat(2, 1fr);
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: #4a6680;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.auth-tabs button:hover:not(.is-active) {
  color: var(--navy);
  background: rgba(255,255,255,0.7);
}

.auth-tabs button.is-active {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 2px 8px rgba(0,155,159,0.25);
}

.admin-auth-shell .auth-tabs button.is-active {
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(7,58,112,0.25);
}

.auth-form {
  display: none !important;
}

.auth-form.is-active {
  display: grid !important;
}

.auth-message {
  min-height: 42px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cce6ef;
  border-radius: 6px;
  color: #335a7a;
  background: #f3fbfd;
  font-size: 13px;
  line-height: 1.45;
}

.profile-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8e8ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 155, 159, 0.1), rgba(7, 58, 112, 0.04)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(7, 58, 112, 0.08);
}

.profile-avatar-large {
  display: inline-grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 155, 159, 0.22);
}

.profile-summary-card strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.profile-summary-card span:not(.profile-avatar-large) {
  display: block;
  margin-top: 4px;
  color: #58718a;
  font-size: 13px;
  line-height: 1.45;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 12px;
}

#adminDashboardView {
  min-height: 100vh;
  background: #f6f9fd;
}

/* Admin mode: unlock scroll that canvas-mode locks, and ensure
   the content column can scroll freely */
body.admin-mode .site-shell.canvas-mode,
body.admin-mode .site-shell.canvas-mode #appRoot {
  overflow: auto;
  height: auto;
}

/* ── Admin Topbar ──────────────────────────────────────────── */
.admin-topbar {
  position: fixed;
  top: 0;
  left: 248px;
  right: 0;
  z-index: 70;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid rgba(203, 215, 229, 0.86);
  box-shadow: 0 4px 20px rgba(7, 58, 112, 0.06);
}

.admin-topbar-left { min-width: 0; }

.admin-topbar-crumb {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
  color: #7a90ac;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-topbar-crumb a {
  color: #7a90ac;
  text-decoration: none;
}

.admin-topbar-crumb a:hover { color: #0b7f91; }

.admin-topbar-crumb svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

.admin-topbar h1 {
  margin: 0;
  color: #071b4d;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#adminDashboardView .content {
  max-width: none;
  margin-left: 248px;
  padding: 22px 32px 34px;
}

.dashboard-heading-spacer { height: 64px; }

.admin-side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 71;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 12%, rgba(2, 155, 159, 0.18), transparent 30%),
    linear-gradient(180deg, #061a3c 0%, #062f63 56%, #051f46 100%);
  box-shadow: 18px 0 44px rgba(5, 28, 61, 0.18);
  overflow-y: auto;
}

.admin-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 18px;
}

.admin-side-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 18px;
  font-weight: 900;
}

.admin-side-brand strong,
.admin-side-brand small {
  display: block;
}

.admin-side-brand strong {
  font-size: 16px;
  line-height: 1;
}

.admin-side-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-side-rail nav {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 2px;
}

/* Scroll styling */
.admin-side-rail nav::-webkit-scrollbar { width: 4px; }
.admin-side-rail nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 999px; }

.admin-nav-group-label {
  display: block;
  padding: 10px 10px 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-side-rail nav button {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.admin-side-rail nav button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}

.admin-side-rail nav button span {
  display: grid;
  gap: 1px;
}

.admin-side-rail nav button small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 600;
}

.admin-side-rail nav button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-side-rail nav button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1479ff, #0f63e9);
  box-shadow: 0 8px 22px rgba(13, 99, 233, 0.32);
}

.admin-side-rail nav button.is-active svg { opacity: 1; }

/* ── Sidebar footer / status bar ───────────────────────────── */
.admin-side-footer {
  margin-top: auto;
  padding: 12px 10px 6px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-side-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.admin-status-dot.is-on {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.24);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot { 50% { opacity: 0.5; } }

.admin-side-status span { flex: 1; }
.admin-side-status strong { color: #fff; }

.admin-status-link {
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 5px;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.admin-status-link:hover { background: rgba(255,255,255,0.12); color: #fff; }

.admin-side-footer > small {
  display: block;
  padding: 8px 8px 0;
  color: rgba(255,255,255,0.28);
  font-size: 10px;
}

.admin-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-editorial-card {
  min-height: 190px;
  align-content: start;
}

.admin-editorial-card code {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #0b2a5b;
  background: #eef6fb;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-actions,
.lesson-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

/* Topbar action buttons (populated dynamically per panel) */
.admin-topbar-right .ghost-button,
.admin-topbar-right .primary-button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.admin-topbar-right .primary-button {
  border: 0;
  background: linear-gradient(135deg, #0b7f91, #14b8b4);
  box-shadow: 0 8px 20px rgba(2, 155, 159, 0.22);
}

/* ── Compact Flat Admin Module Cards ─────────────────────────────── */
.admin-module-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 16px 14px;
  border: 1px solid rgba(203, 215, 229, 0.9);
  border-bottom-width: 4px;
  border-left-width: 1px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(10,49,95,0.06);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-module-card[data-admin-panel] { cursor: pointer; }

.admin-module-card[data-admin-panel]:hover,
.admin-module-card[data-admin-panel].is-active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,49,95,0.12);
}

/* Color accent LEFT borders (flat style) */
.amc--blue   { border-bottom-color: #3b82f6; }
.amc--green  { border-bottom-color: #22c55e; }
.amc--cyan   { border-bottom-color: #0d9488; }
.amc--orange { border-bottom-color: #f97316; }
.amc--teal   { border-bottom-color: #0d9488; }
.amc--pink   { border-bottom-color: #ec4899; }
.amc--amber  { border-bottom-color: #f59e0b; }

/* Flat icon chip — no gradient, just tinted bg + solid color icon */
.amc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.amc-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  fill: none;
}

/* Flat tinted backgrounds + matching icon stroke color */
.amc--blue   .amc-icon { background: #eff6ff; }
.amc--blue   .amc-icon svg { stroke: #3b82f6; }
.amc--green  .amc-icon { background: #f0fdf4; }
.amc--green  .amc-icon svg { stroke: #22c55e; }
.amc--cyan   .amc-icon { background: #f0fdfa; }
.amc--cyan   .amc-icon svg { stroke: #0d9488; }
.amc--orange .amc-icon { background: #fff7ed; }
.amc--orange .amc-icon svg { stroke: #f97316; }
.amc--teal   .amc-icon { background: #f0fdfa; }
.amc--teal   .amc-icon svg { stroke: #0d9488; }
.amc--pink   .amc-icon { background: #fdf2f8; }
.amc--pink   .amc-icon svg { stroke: #ec4899; }
.amc--amber  .amc-icon { background: #fffbeb; }
.amc--amber  .amc-icon svg { stroke: #f59e0b; }

/* Card body — right of icon */
.amc-body { flex: 1; min-width: 0; }

.amc-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #526891;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.amc-value {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0;
}
.amc-desc {
  display: none;
}

/* No arrow needed in compact layout */
.amc-arrow { display: none; }

.admin-side-rail nav button:focus-visible,
.admin-module-card:focus-visible,
.admin-topbar-right button:focus-visible,
.admin-ql-card:focus-visible {
  outline: 2px solid rgba(20, 184, 180, 0.85);
  outline-offset: 2px;
}

/* ── Overview Quick-Link Grid ────────────────────────────────── */
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.admin-ql-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 215, 229, 0.9);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}

.admin-ql-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(10, 49, 95, 0.1);
}

.admin-ql-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.admin-ql-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-ql-body { flex: 1; min-width: 0; }

.admin-ql-body strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-ql-body em {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  margin-top: 1px;
}

.admin-ql-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Overview Meta Row (bars + status) ───────────────────────── */
.admin-overview-meta {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}

.admin-activity-bars,
.admin-status-cards {
  padding: 18px;
  border: 1px solid rgba(203, 215, 229, 0.9);
  border-radius: 10px;
  background: #fff;
}

.admin-activity-bars h4,
.admin-status-cards h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7a90ac;
}

.admin-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.admin-bar-row span { min-width: 120px; color: #334155; }
.admin-bar-row strong { min-width: 36px; text-align: right; color: #0f1c3b; font-weight: 900; }

.admin-bar-row em {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  display: block;
  overflow: hidden;
}

.admin-bar-row em i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ── Platform status list ────────────────────────────────────── */
.admin-status-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.admin-status-item:last-of-type { border-bottom: 0; }

.admin-status-item span { color: #526891; }

.admin-status-item strong {
  font-size: 12px;
  font-weight: 800;
  color: #071b4d;
}

.aps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.aps-ok   { background: #22c55e; }
.aps-warn { background: #f59e0b; animation: pulse-dot 1.4s ease-in-out infinite; }
.aps-muted { background: #cbd5e1; }

.maintenance-card {
  grid-column: span 2;
  background:
    radial-gradient(circle at 76% 46%, rgba(245, 158, 11, 0.22), transparent 32%),
    linear-gradient(135deg, #fff9ed, #ffffff 72%);
}

/* ── Inline maintenance toggle ───────────────────────────────────── */
.amc-toggle {
  position: absolute;
  top: 18px;
  right: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.amc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.amc-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.22s;
}
.amc-toggle input:checked ~ .amc-toggle-track { background: #f59e0b; }
.amc-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: transform 0.22s;
}
.amc-toggle input:checked ~ .amc-toggle-track .amc-toggle-thumb { transform: translateX(20px); }

/* Maintenance "On" label color */
.maintenance-card .amc-value.is-on { color: #d97706; }

.admin-workbench {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(203, 215, 229, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(10, 49, 95, 0.06);
}

/* In panel mode: compact the stat cards into a slim row */
#adminDashboardView.is-panel-mode .admin-dashboard-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

#adminDashboardView.is-panel-mode .admin-module-card {
  min-height: 60px;
  padding: 8px 12px;
  gap: 8px;
}

#adminDashboardView.is-panel-mode .amc-icon { display: none; }

#adminDashboardView.is-panel-mode .amc-desc { display: none; }

#adminDashboardView.is-panel-mode .amc-label {
  font-size: 9px;
}

#adminDashboardView.is-panel-mode .amc-value {
  font-size: 15px;
}

#adminDashboardView.is-panel-mode .admin-workbench {
  margin-top: 0;
}

.admin-workbench-summary {
  margin: 0 0 14px;
  color: #526891;
  font-size: 13px;
  line-height: 1.5;
}

.admin-panel-body {
  margin-top: 18px;
}

/* ── Hamburger menu button (hidden on desktop) ─────────────── */
.admin-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid rgba(203, 215, 229, 0.8);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: #405a82;
}

.admin-menu-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── Mobile rail backdrop ──────────────────────────────────── */
.admin-rail-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 20, 50, 0.52);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.admin-rail-backdrop.is-visible {
  opacity: 1;
}

/* ── Admin Mobile Responsive ───────────────────────────────── */
@media (max-width: 860px) {

  /* Hamburger visible */
  .admin-menu-btn { display: flex; }

  /* Topbar goes full-width */
  .admin-topbar {
    left: 0;
    padding: 0 14px;
    gap: 10px;
  }

  .admin-topbar-crumb { display: none; }

  .admin-topbar h1 { font-size: 17px; }

  /* Content goes full-width */
  #adminDashboardView .content {
    margin-left: 0;
    padding: 12px 14px 40px;
  }

  /* Sidebar slides off-screen; toggled by JS */
  .admin-side-rail {
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 210;
  }

  .admin-side-rail.is-open {
    transform: translateX(0);
  }

  /* Backdrop visible on mobile */
  .admin-rail-backdrop {
    display: block;
    pointer-events: none;
  }

  .admin-rail-backdrop.is-visible {
    pointer-events: auto;
  }

  /* Stat cards: 2 columns on mobile */
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Panel-mode compact stat cards: 2 columns on mobile */
  #adminDashboardView.is-panel-mode .admin-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  #adminDashboardView.is-panel-mode .admin-module-card {
    min-height: 52px;
    padding: 8px 10px;
  }

  /* Maintenance card spans full width on mobile */
  .maintenance-card { grid-column: span 2; }

  /* Overview grid: 1 column on mobile */
  .admin-overview-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Overview meta: single column */
  .admin-overview-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Workbench */
  .admin-workbench {
    padding: 14px;
  }

  /* Tables scroll nicely */
  .admin-table-wrap { border-radius: 8px; }
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10,49,95,0.04);
}

.admin-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  color: var(--navy);
  font-size: 13.5px;
}

.admin-table th {
  padding: 11px 16px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-table tbody tr:hover td { background: #f8fcff; }
.admin-table tr:last-child td { border-bottom: 0; }

/* Student row with avatar */
.student-row-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
/* Rotating palette for avatars */
.sa-0 { background: linear-gradient(135deg,#3b82f6,#6366f1); }
.sa-1 { background: linear-gradient(135deg,#22c55e,#16a34a); }
.sa-2 { background: linear-gradient(135deg,#0891b2,#0d9488); }
.sa-3 { background: linear-gradient(135deg,#f97316,#ef4444); }
.sa-4 { background: linear-gradient(135deg,#ec4899,#db2777); }
.sa-5 { background: linear-gradient(135deg,#0d9488,#1a6b6b); }
.sa-6 { background: linear-gradient(135deg,#f59e0b,#d97706); }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.sb--active  { background: #dcfce7; color: #16a34a; }
.sb--inactive { background: #fee2e2; color: #dc2626; }
.sb--pending  { background: #fef9c3; color: #d97706; }
.sb--default  { background: #f1f5f9; color: #64748b; }

.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 28px;
  border: 1.5px dashed #bfd9e5;
  border-radius: 12px;
  background: #f8fcfd;
  color: #64748b;
  text-align: center;
}
.admin-empty-state strong {
  font-size: 16px;
  color: var(--navy);
}

.admin-overview-state {
  align-items: stretch;
  text-align: left;
}

.admin-overview-state strong,
.admin-overview-state p {
  text-align: left;
}

.admin-overview-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.admin-overview-mini span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(203, 215, 229, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: #526b8f;
  font-size: 12px;
  font-weight: 800;
}

.admin-overview-mini b {
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}

.admin-analytics-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-analytics-bars div {
  display: grid;
  grid-template-columns: 150px 54px minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
  color: #526b8f;
  font-size: 12px;
  font-weight: 900;
}

.admin-analytics-bars strong {
  color: var(--navy);
  text-align: right;
}

.admin-analytics-bars em {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.admin-analytics-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.admin-editor {
  display: grid;
  gap: 18px;
}

.admin-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.admin-editor-toolbar label,
.admin-editor-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.admin-editor-toolbar select,
.admin-editor-form input,
.admin-editor-form select,
.admin-editor-form textarea {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fbfdff;
  font: inherit;
}

.admin-editor-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.admin-editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfdff;
}

.admin-editor-form label:has(textarea),
.admin-editor-form .auth-message,
.admin-editor-form button {
  grid-column: 1 / -1;
}

.admin-editor-rows {
  display: grid;
  gap: 10px;
}

.admin-quiz-code-panel,
.admin-quiz-performance-panel {
  display: grid;
  gap: 14px;
}

.admin-quiz-code-note {
  align-items: flex-start;
  padding: 18px;
  text-align: left;
}

.admin-quiz-code-table {
  max-height: 520px;
  overflow: auto;
}

.admin-quiz-code-table code {
  display: inline-flex;
  min-width: 104px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 8px;
  color: #06356a;
  background: #eaf7ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-quiz-code-table td strong,
.admin-quiz-code-table td small {
  display: block;
}

.admin-quiz-code-table td small {
  margin-top: 3px;
  color: #6f8196;
  font-size: 11px;
}

.admin-mini-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #cfe2ee;
  border-radius: 8px;
  color: #0a4d73;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-mini-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.admin-mini-select,
.admin-inline-input {
  min-height: 34px;
  border: 1px solid #cfe2ee;
  border-radius: 8px;
  color: #12385f;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.admin-mini-select {
  padding: 0 8px;
}

.admin-inline-input {
  width: min(190px, 100%);
  padding: 0 10px;
}

.admin-tools-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #f8fcff;
}

.admin-tools-strip span {
  color: #53698e;
  font-size: 13px;
  font-weight: 800;
}

.admin-inline-search {
  min-width: min(420px, 100%);
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.admin-inline-search input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
}

.admin-inline-search select {
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cfe0ec;
  border-radius: 7px;
  color: var(--navy);
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.admin-row-actions button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.admin-analytics-panel {
  display: grid;
  gap: 18px;
}

.admin-analytics-toolbar {
  margin-bottom: 0;
}

.admin-analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-analytics-stat {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(10, 49, 95, 0.05);
}

.admin-analytics-stat span {
  color: #5d7190;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-analytics-stat strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.admin-analytics-stat small {
  color: #627895;
  font-size: 12px;
  font-weight: 800;
}

.admin-analytics-stat.is-loading {
  background: linear-gradient(90deg, #ffffff, #f5fbff, #ffffff);
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.admin-analytics-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d8e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.admin-analytics-grid h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 20px;
}

.admin-analytics-bars--ranked {
  margin-top: 0;
}

.admin-analytics-bars--ranked div {
  grid-template-columns: minmax(120px, 1fr) 54px minmax(120px, 1.1fr);
}

.admin-analytics-bars--ranked span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-analytics-bars--ranked i {
  background: linear-gradient(90deg, var(--teal), #0b2a5b);
}

.admin-daily-sparkline {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 180px;
  padding: 12px;
  border: 1px solid #e3edf4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.admin-daily-sparkline span {
  flex: 1 1 6px;
  min-width: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #0d9488, #0b2a5b);
}

.admin-media-panel {
  display: grid;
  gap: 18px;
}

.admin-media-upload {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid #cfe3ef;
  border-radius: 12px;
  background:
    radial-gradient(circle at 96% 12%, rgba(2, 155, 159, 0.1), transparent 28%),
    #f8fcff;
}

.admin-media-upload label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.admin-media-upload input {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
}

.admin-media-upload .auth-message {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-media-card {
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(10, 49, 95, 0.05);
}

.admin-media-card figure {
  height: 136px;
  margin: 0;
  background: #edf5f8;
}

.admin-media-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-media-card div {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.admin-media-card strong {
  color: var(--navy);
  font-size: 14px;
}

.admin-media-card small {
  color: #607894;
  font-size: 12px;
}

.admin-media-card code {
  display: block;
  overflow-wrap: anywhere;
  padding: 8px;
  border-radius: 7px;
  color: #0b5078;
  background: #eefafa;
  font-size: 11px;
}

.maintenance-card strong {
  color: var(--teal-dark);
}

.maintenance-panel {
  display: grid;
  gap: 18px;
}

.maintenance-status {
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #f8fcfd;
}

.maintenance-status.is-on {
  border-color: rgba(181, 88, 0, 0.28);
  background: #fff8ef;
}

.maintenance-status.is-off {
  border-color: rgba(0, 155, 159, 0.26);
  background: #f2fbfb;
}

.maintenance-status span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.maintenance-status.is-on span {
  color: #a14f00;
}

.maintenance-status strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
}

.maintenance-status p {
  margin-top: 8px;
  color: #3a5f7b;
  line-height: 1.55;
}

.maintenance-panel label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.maintenance-panel textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fbfdff;
  font: inherit;
  line-height: 1.5;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfdff;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.maintenance-lock {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: #ffffff;
  border-top: 7px solid #0c6872;
}

.maintenance-lock.is-visible {
  display: flex;
  flex-direction: column;
}

.maintenance-lock-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 56%) minmax(320px, 44%);
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 24% 36%, rgba(7, 58, 112, 0.05), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: none;
}

.maintenance-lock-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 100%;
  overflow: visible;
  background: #eaf4f8;
}

.maintenance-lock-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -8%;
  bottom: -10%;
  left: -22%;
  width: 42%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 28px 0 42px rgba(255, 255, 255, 0.82);
}

.maintenance-lock-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.maintenance-lock-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(180deg, rgba(7, 58, 112, 0.06), rgba(7, 58, 112, 0.12));
}

.maintenance-info-card {
  position: absolute;
  z-index: 3;
  left: -90px;
  bottom: 40px;
  width: min(300px, 70vw);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(203, 215, 229, 0.76);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(7, 58, 112, 0.18);
  backdrop-filter: blur(10px);
}

.maintenance-info-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(2, 155, 159, 0.26);
  border-radius: 50%;
  color: var(--teal-dark);
  background: #ffffff;
}

.maintenance-info-card strong {
  display: inline-block;
  max-width: 190px;
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.25;
}

.maintenance-info-card p {
  margin: 6px 0 0;
  color: #62728b;
  font-size: 12px;
  line-height: 1.45;
}

.maintenance-lock-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 4vh, 52px) clamp(32px, 7vw, 110px) clamp(24px, 3vh, 44px);
  z-index: 4;
  overflow: hidden;
}

.maintenance-lock-logo {
  width: min(260px, 72%);
  height: auto;
}

.maintenance-lock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: clamp(18px, 2.4vh, 32px);
  padding: 6px 14px;
  border: 1px solid rgba(0, 155, 159, 0.2);
  border-radius: 999px;
  background: #effbfb;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.maintenance-lock-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f5b84b;
  box-shadow: 0 0 0 5px rgba(245, 184, 75, 0.18);
}

.maintenance-lock-card h2 {
  max-width: 580px;
  margin: clamp(18px, 2.4vh, 36px) 0 0;
  color: #081e48;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.8vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.maintenance-lock-rule {
  width: 64px;
  height: 3px;
  margin-top: clamp(16px, 2vh, 28px);
  border-radius: 99px;
  background: #8dd8d7;
}

.maintenance-lock-card p {
  max-width: 480px;
  margin: clamp(12px, 1.6vh, 20px) 0 0;
  color: #31476b;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

.maintenance-refresh {
  min-width: 180px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(16px, 2.4vh, 32px);
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b2b61, #0a3c78);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(7, 58, 112, 0.24);
}

.maintenance-refresh:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #092654, #07518f);
}

.maintenance-lock-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(28px, 7vw, 110px);
  border-top: 1px solid rgba(203, 215, 229, 0.86);
  background: rgba(250, 253, 255, 0.94);
  color: #243e65;
}

.maintenance-lock-footer > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.maintenance-lock-footer > div + div {
  border-left: 1px solid rgba(174, 196, 217, 0.72);
  padding-left: 20px;
}

.maintenance-lock-footer span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(2, 155, 159, 0.22);
  border-radius: 50%;
  color: var(--teal-dark);
  background: #ffffff;
}

.maintenance-lock-footer svg {
  width: 18px;
  height: 18px;
}

.maintenance-lock-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.maintenance-lock-footer strong,
.maintenance-lock-footer small {
  display: block;
}

.maintenance-lock-footer small {
  color: #687895;
}

.maintenance-lock-footer > small {
  white-space: nowrap;
  color: #405878;
  font-size: 13px;
}

.ad-slot {
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.ad-slot-placeholder {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(186, 206, 222, 0.5);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f4f8fb 100%);
  color: #9db3c4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot-placeholder::before {
  content: "Advertisement";
}

.ad-slot-placeholder:has(ins)::before {
  content: none;
}

.ad-slot-horizontal {
  min-height: 92px;
}

.ad-slot.ad-slot-empty {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

.ad-slot-vertical {
  min-height: 210px;
}

/* Real AdSense units must fill their wrapper before Google measures them. */
.ad-slot:has(> ins.adsbygoogle) {
  border-color: transparent;
  background: transparent;
}

.lesson-ad:has(> ins.adsbygoogle),
.lesson-sidebar-ad:has(> ins.adsbygoogle) {
  display: block;
  place-items: initial;
  text-align: initial;
}

.ad-slot > ins.adsbygoogle {
  width: 100%;
  min-width: 0;
}

.ad-slot[data-ad-format="inArticle"] {
  min-height: 120px;
}

.ad-slot[data-ad-format="multiplex"] {
  min-height: 260px;
}

.home-top-ad,
.library-top-ad {
  width: min(1280px, calc(100% - 48px));
  margin: 24px auto;
}

.library-top-ad {
  width: 100%;
}

/* Collapse when no ad is injected */
.ad-slot:empty:not(.ad-slot-placeholder) {
  display: none;
  margin: 0;
}

.certificate-content {
  max-width: 1480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin: 0 auto;
}

.certificate-sheet {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
  box-shadow: 0 18px 42px rgba(10, 49, 95, 0.08);
}

.certificate-border {
  min-height: 660px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 54px;
  border: 8px double rgba(0, 60, 115, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,250,251,0.92)),
    url("assets/home/nurses-online-discussion-hero-slide-digital-curriculum.png") center / cover;
  text-align: center;
}

.certificate-border img {
  width: 210px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.certificate-border span {
  margin-top: 34px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-border h1 {
  margin-top: 12px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 58px;
  line-height: 1;
}

.certificate-border p {
  max-width: 720px;
  margin-top: 16px;
  color: #315a7c;
  font-size: 18px;
  line-height: 1.65;
}

.certificate-border h2 {
  margin-top: 18px;
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 30px;
}

.certificate-border dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 28px;
}

.certificate-border dl div {
  padding: 14px;
  border: 1px solid rgba(0, 155, 159, 0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
}

.certificate-border dt {
  color: #54718b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-border dd {
  margin-top: 6px;
  color: var(--navy);
  font-weight: 900;
}

.certificate-signatures {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 42px;
}

.certificate-signatures div {
  padding-top: 14px;
  border-top: 1px solid var(--navy);
}

.certificate-signatures strong,
.certificate-signatures small {
  display: block;
}

.certificate-signatures small {
  margin-top: 6px;
  color: #52708b;
}

.certificate-sheet.is-locked {
  filter: grayscale(0.55);
  opacity: 0.72;
}

.certificate-actions {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(10, 49, 95, 0.06);
}

.certificate-actions h2 {
  color: var(--navy);
  font-family: var(--display);
  font-size: 28px;
}

.certificate-actions p {
  margin: 10px 0 18px;
  color: #365d7c;
  line-height: 1.6;
}

.certificate-criteria {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  background: #f8fcfd;
}

.certificate-criteria strong,
.certificate-criteria span,
.certificate-criteria small {
  display: block;
}

.certificate-criteria strong {
  color: var(--navy);
  font-size: 14px;
}

.certificate-criteria span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #62748a;
  background: #eef4f8;
  font-size: 12px;
  font-weight: 900;
}

.certificate-criteria span.is-met {
  color: #166534;
  background: #dcfce7;
}

.certificate-criteria small {
  color: #62748a;
  font-size: 12px;
  line-height: 1.5;
}

.certificate-actions button {
  width: 100%;
  margin-top: 10px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.login-form input,
.login-form select {
  min-height: 48px;
  padding: 0 14px 0 42px;
  border: 1.5px solid #cdd8e5;
  border-radius: 7px;
  color: var(--text);
  background: #f8fafc;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form select {
  padding-left: 14px;
}

.login-form input:focus,
.login-form select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 155, 159, 0.14);
}

/* Input icons via background-image */
.login-form input[type="email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238da4ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 18px;
}

.login-form input[type="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238da4ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 18px;
}

.login-form input[type="text"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238da4ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 18px;
}

/* Submit button full-width */
.login-form .primary-button {
  width: 100%;
  min-height: 50px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0,155,159,0.28);
  transition: box-shadow 160ms ease, transform 120ms ease;
}

.login-form .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,155,159,0.34);
}

.admin-auth-shell .login-form .primary-button {
  background: linear-gradient(180deg, #0a4a8c, var(--navy-dark));
  border-color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(7,58,112,0.3);
}

.admin-auth-shell .login-form .primary-button:hover {
  box-shadow: 0 10px 24px rgba(7,58,112,0.38);
}

/* Auth message box */
.auth-message {
  min-height: 42px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #c5dae7;
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  color: #2a4e6c;
  background: #f0f8fc;
  font-size: 12px;
  line-height: 1.5;
}

/* ── Cookie Consent Bar ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 32px rgba(10,49,95,0.10);
  transform: translateY(110%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Left: emoji + text */
.cookie-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.cookie-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  color: #0b2a5b;
  background: #e7f5f2;
  border-radius: 8px;
}

.cookie-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cookie-banner-text {
  min-width: 0;
}
.cookie-banner-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}
.cookie-banner-text p {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 6px;
}

/* Privacy link */
.cookie-privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.15s;
}
.cookie-privacy-link:hover { color: var(--navy); text-decoration: underline; }

/* Right: action buttons */
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.12s;
}
.cookie-btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.cookie-btn-secondary,
.cookie-btn-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.cookie-btn-secondary svg,
.cookie-btn-manage svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.cookie-btn-secondary:hover,
.cookie-btn-manage:hover {
  border-color: var(--navy);
  background: #f8fafc;
  color: var(--navy);
}

/* ── Helpful popups ─────────────────────────────────────── */
.nod-popup-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}

.nod-popup-layer.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.nod-popup-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(42, 157, 138, 0.16), transparent 34%),
    rgba(4, 16, 36, 0.6);
  backdrop-filter: blur(9px);
}

.nod-popup {
  position: relative;
  width: min(100%, 420px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(198, 218, 235, 0.92);
  border-radius: 14px;
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(7, 24, 48, 0.28);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}

.nod-popup-layer.is-visible .nod-popup {
  transform: translateY(0) scale(1);
}

.nod-popup-layer.is-toast {
  align-items: end;
  justify-items: end;
  padding: 0 22px 22px;
}

.nod-popup-layer.is-toast .nod-popup-backdrop {
  display: none;
}

.nod-popup--toast {
  width: min(100%, 360px);
  padding: 18px;
  overflow: visible;
  border-color: rgba(42, 157, 138, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(37, 211, 102, 0.17), transparent 34%),
    #ffffff;
  box-shadow: 0 22px 60px rgba(7, 24, 48, 0.22);
}

.nod-popup--whatsapp .nod-popup-mark {
  color: #ffffff;
  background: linear-gradient(135deg, #128c7e, #25d366);
}

.nod-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #dce8f2;
  border-radius: 7px;
  color: #49627c;
  background: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.nod-popup-close:hover {
  border-color: rgba(42, 157, 138, 0.44);
  color: var(--teal-dark);
  background: #f4fbfb;
}

.nod-popup-media {
  position: relative;
  height: clamp(100px, 16vw, 140px);
  margin: 0;
  background: #0f315f;
}

.nod-popup-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 19, 45, 0) 44%, rgba(255, 255, 255, 0.96) 100%);
  pointer-events: none;
}

.nod-popup-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nod-popup-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px 20px 0;
}

.nod-popup:not(:has(.nod-popup-media)) .nod-popup-content,
.nod-popup--toast .nod-popup-content {
  padding: 0;
}

.nod-popup-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 0;
  border-radius: 10px;
  color: var(--teal-dark);
  background: #e5f7f8;
  box-shadow: inset 0 0 0 1px rgba(42, 157, 138, 0.12);
}

.nod-popup-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nod-popup-copy > span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nod-popup h2 {
  margin: 0 30px 6px 0;
  color: var(--navy);
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.15;
  letter-spacing: 0;
}

.nod-popup p {
  margin: 0;
  color: #40566f;
  font-size: 13px;
  line-height: 1.55;
}

.nod-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 20px 18px;
  margin-top: 0;
}

.nod-popup-actions .primary-button,
.nod-popup-actions .ghost-button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: none;
}

.nod-popup--toast .nod-popup-actions {
  padding: 22px 0 0;
}

.nod-popup--toast .nod-popup-mark {
  margin-bottom: 0;
}

.nod-popup--toast h2 {
  font-size: 22px;
}

.nod-popup--toast p {
  font-size: 14px;
  line-height: 1.55;
}

.nod-popup-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.nod-popup-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(42, 157, 138, 0.17);
  border-radius: 8px;
  color: #176f70;
  background: #eefafa;
  font-size: 12px;
  font-weight: 950;
}

.nod-popup-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.nod-popup-form label {
  display: grid;
  gap: 7px;
}

.nod-popup-form label span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nod-popup-form input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #c8d8e8;
  border-radius: 9px;
  color: #102a43;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
}

.nod-popup-form small {
  color: #667c92;
  font-size: 12px;
  line-height: 1.45;
}

.nod-popup-form small.is-error {
  color: #b42318;
}

.nod-popup-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.nod-popup-course-grid button {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #cfe1ef;
  border-radius: 9px;
  color: var(--navy);
  background: #f8fbfe;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s, border-color .18s, background .18s;
}

.nod-popup-course-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 157, 138, 0.45);
  background: #eefafa;
}

/* ── Copy-lock toast ───────────────────────────────────── */
.nod-lock-toast {
  position: fixed;
  z-index: 9200;
  width: 264px;
  padding: 14px 15px 15px;
  border-radius: 13px;
  background: linear-gradient(145deg, #0b1d32 0%, #0e2640 100%);
  border: 1px solid rgba(42, 157, 138, 0.28);
  box-shadow: 0 16px 48px rgba(4, 16, 36, 0.58), 0 2px 8px rgba(4, 16, 36, 0.32);
  opacity: 0;
  transform: scale(0.88) translateY(8px);
  transition: opacity 0.17s ease, transform 0.17s ease;
  pointer-events: none;
  user-select: none;
}
.nod-lock-toast.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.nod-lock-toast-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.nod-lock-toast-icon {
  display: grid;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: rgba(42, 157, 138, 0.18);
  color: #34d9c4;
}
.nod-lock-toast-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nod-lock-toast-title {
  font-size: 13px;
  font-weight: 800;
  color: #f0f8ff;
  line-height: 1.2;
}
.nod-lock-toast-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: #5d8fa6;
  letter-spacing: .02em;
}
.nod-lock-toast p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #8ab5cc;
}
.nod-lock-toast-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: opacity 0.14s;
}
.nod-lock-toast-btn:hover { opacity: 0.88; }
.nod-lock-toast-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.library-content {
  max-width: 1780px;
  margin: 0 auto;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.library-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.library-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.library-chip:hover {
  border-color: var(--teal);
  background: #eefbfb;
  color: var(--teal-dark);
}

.library-chip.is-active {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.library-chip.is-active:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 10px;
  font-weight: 900;
}

.library-chip.is-active .chip-count {
  background: rgba(255, 255, 255, 0.28);
}

.library-card {
  --note-accent: #1167bd;
  --note-ink: #073a78;
  --note-soft: #eaf5ff;
  --note-soft-2: #d7ecff;
  --note-chip: rgba(255, 255, 255, 0.82);
  position: relative;
  min-height: 304px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(150, 182, 218, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 255, 255, 0.78) 0 16%, transparent 17%),
    radial-gradient(circle at 88% 95%, var(--note-soft-2) 0 38%, transparent 39%),
    linear-gradient(135deg, #ffffff 0%, var(--note-soft) 100%);
  box-shadow: 0 18px 40px rgba(10, 49, 95, 0.11);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.library-card::before {
  content: attr(data-initial);
  position: absolute;
  right: 18px;
  top: 22px;
  color: color-mix(in srgb, var(--note-accent) 16%, transparent);
  font-size: clamp(110px, 8vw, 156px);
  line-height: 0.8;
  font-weight: 900;
  pointer-events: none;
}

.library-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 98px;
  height: 72px;
  opacity: 0.34;
  background-image: radial-gradient(circle, var(--note-accent) 0 3px, transparent 3.5px);
  background-size: 22px 22px;
  pointer-events: none;
}

.library-card:hover {
  border-color: color-mix(in srgb, var(--note-accent) 44%, #ffffff);
  box-shadow: 0 22px 48px rgba(10, 49, 95, 0.16);
  transform: translateY(-2px);
}

.library-card > div {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 30px 28px;
}

.library-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 92%;
}

.library-course-badge {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 99px;
  color: var(--note-ink);
  background: var(--note-chip);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(10, 49, 95, 0.08);
}

.library-topic-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 99px;
  color: color-mix(in srgb, var(--note-accent) 72%, #2f2400);
  background: color-mix(in srgb, var(--note-accent) 12%, #fff8df);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.library-card h2 {
  max-width: 88%;
  margin-top: 34px;
  color: var(--note-ink);
  font-size: clamp(24px, 1.75vw, 32px);
  line-height: 1.06;
  font-weight: 900;
  text-transform: uppercase;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.library-card h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: var(--note-accent);
}

.library-card p {
  max-width: 82%;
  margin: 16px 0 22px;
  color: #253c5a;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.library-card button {
  min-height: 42px;
  margin-top: auto;
  padding: 0 19px;
  border: 1.5px solid var(--note-accent);
  border-radius: 8px;
  color: var(--note-ink);
  background: rgba(255, 255, 255, 0.44);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.library-card button svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.library-card button:hover {
  background: var(--note-accent);
  color: var(--white);
}

.library-card:hover button svg {
  transform: translateX(3px);
}

.library-card[data-note-theme="blue"] {
  --note-accent: #1684e5;
  --note-ink: #073a78;
  --note-soft: #eaf6ff;
  --note-soft-2: #b8dcff;
}

.library-card[data-note-theme="teal"] {
  --note-accent: #168c8a;
  --note-ink: #08595c;
  --note-soft: #e9fbf7;
  --note-soft-2: #bfeee5;
}

.library-card[data-note-theme="green"] {
  --note-accent: #168a4e;
  --note-ink: #07542f;
  --note-soft: #edfbf2;
  --note-soft-2: #c3edd1;
}

.library-card[data-note-theme="violet"] {
  --note-accent: #7a26d8;
  --note-ink: #2d0d74;
  --note-soft: #f3e7ff;
  --note-soft-2: #cda4ff;
}

.library-card[data-note-theme="amber"] {
  --note-accent: #d28a00;
  --note-ink: #6b3d00;
  --note-soft: #fff7df;
  --note-soft-2: #ffe2a3;
}

.library-card[data-note-theme="emerald"] {
  --note-accent: #168c52;
  --note-ink: #07542f;
  --note-soft: #e6fbef;
  --note-soft-2: #b8ebd0;
}

.library-card[data-note-theme="rose"] {
  --note-accent: #de3157;
  --note-ink: #7a1731;
  --note-soft: #fff0f4;
  --note-soft-2: #ffc3d1;
}

@media (max-width: 1220px) {
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.program-content {
  max-width: 1780px;
  margin: 0 auto;
}

.program-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  letter-spacing: 0;
}

.program-heading h1 {
  font-size: 34px;
  line-height: 1.08;
}

.program-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.ghost-button,
.primary-button,
.outline-accent,
.wide-back,
.program-card button,
.side-card button,
.open-course {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid #b8c8da;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ghost-button svg {
  width: 15px;
  height: 15px;
}

.primary-button,
.open-course,
.program-card button.primary {
  border-color: var(--teal);
  color: var(--white);
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  box-shadow: 0 5px 12px rgba(0, 155, 159, 0.18);
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  margin-top: 26px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  height: 43px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #314a6d;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tabs button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

.tabs button.is-active svg {
  opacity: 1;
  color: var(--teal);
}

.tabs button.is-active {
  color: var(--teal);
  border-color: var(--teal);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 112px 178px 178px auto;
  gap: 18px;
  margin-top: 18px;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 42px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.12s;
}
.pdf-download-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pdf-download-btn:hover { background: var(--teal); transform: translateY(-1px); }
.pdf-download-btn:active { transform: translateY(0); }

.search-field {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.search-field svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 13px;
}

select {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #314a6d;
  background: var(--white);
  font-size: 12px;
}

.curriculum-card {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #b6d0de;
  border-radius: 7px;
  background: var(--white);
}

.year-row,
.semester-row {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
}

.year-row {
  height: 50px;
  padding: 0 22px;
  background: linear-gradient(180deg, var(--teal), #058b91);
  color: var(--white);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.year-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.year-row svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke-width: 0;
}

.year-row.pale {
  color: var(--navy);
  background: #eef8fc;
  border-top: 1px solid #d5e6ef;
}

.year-row.pale svg {
  color: var(--navy);
}

.semester-row {
  height: 38px;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 28px;
  background: #e9f6f7;
  border-bottom: 1px solid #c9e1e8;
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
}

.semester-row .caret:last-child {
  margin-left: auto;
  color: var(--navy);
}

.course-list {
  background: var(--white);
}

.course-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px 98px minmax(240px, 1fr) 90px 100px 82px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--soft-line);
  color: #526984;
  font-size: 12px;
  transition: background 0.12s ease;
  cursor: pointer;
}

.course-row:not(.current):hover {
  background: #f0f9fa;
}

.empty-row {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--soft-line);
}

.course-row strong,
.course-row b {
  color: var(--navy);
  font-weight: 700;
}

.course-row em {
  color: var(--text);
  font-style: normal;
}

.course-row.current {
  background: #e8f8f9;
  color: var(--navy);
  font-weight: 700;
}

.status-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #a9bfd5;
  border-radius: 50%;
}

.status-dot.checked {
  display: grid;
  place-items: center;
  border-color: var(--green);
  background: var(--green);
}

.status-dot.checked::after {
  width: 6px;
  height: 3px;
  content: "";
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.status-dot.current-ring {
  border-color: var(--teal);
  background: var(--white);
}

.open-course {
  min-height: 31px;
  padding: 0 22px;
}

.programs-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.course-outline {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.curriculum-guide-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid #cfe4ec;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,251,252,0.96)),
    url("assets/home/nurses-online-discussion-hero-slide-digital-curriculum.png") center right / auto 100% no-repeat;
  box-shadow: 0 14px 34px rgba(10, 49, 95, 0.07);
}

.curriculum-guide-copy {
  max-width: 760px;
}

.curriculum-guide-copy span,
.outline-heading span {
  display: inline-flex;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.curriculum-guide-copy h2 {
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.12;
}

.curriculum-guide-copy p {
  margin-top: 10px;
  color: #385a78;
  font-size: 14px;
  line-height: 1.65;
}

.curriculum-guide-copy strong {
  display: block;
  margin-top: 14px;
  color: #0a3c66;
  font-size: 13px;
  line-height: 1.55;
}

.curriculum-guide-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  grid-column: 2;
}

.curriculum-guide-stats div {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.curriculum-guide-stats svg {
  width: 24px;
  height: 24px;
  color: var(--teal-dark);
}

.curriculum-guide-stats b {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.curriculum-guide-stats small {
  color: #526b8f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.curriculum-guide-steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.curriculum-guide-steps article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  background: #ffffff;
}

.curriculum-guide-steps b {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0b7f91;
  font-size: 13px;
  font-weight: 900;
}

.curriculum-guide-steps strong {
  color: var(--navy);
  font-size: 13px;
}

.curriculum-guide-steps span {
  color: #526b8f;
  font-size: 12px;
  line-height: 1.45;
}

.outline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.outline-heading h2 {
  margin-top: 6px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.15;
}

.outline-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.outline-code {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 99px;
  color: var(--white);
  background: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.curriculum-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  background: #f8fcfd;
  color: #526b8f;
  font-size: 12px;
  font-weight: 800;
}

.curriculum-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid #a9bfd5;
  border-radius: 50%;
}

.legend-ready {
  border-color: #1e8e3e;
  background: #1e8e3e;
}

.course-outline > h3 {
  margin-bottom: 16px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
}

.module-outline-list {
  display: grid;
  gap: 18px;
}

.module-outline-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.module-outline-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(0, 155, 159, 0.08);
}

.module-outline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--soft-line);
  background: #f8fcfd;
}

.module-outline-head > b {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0b6073;
  background: #e8f8f8;
  font-size: 14px;
  font-weight: 900;
}

.module-outline-head span {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.module-outline-head h3 {
  margin-top: 6px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.18;
}

.module-outline-head button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid #b8d6de;
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.module-outline-head button:hover {
  border-color: var(--teal);
  background: #eefbfb;
}

.module-topic-grid {
  padding: 16px;
}

.topic-number {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
  border-color: #9dd5d8;
  box-shadow: 0 4px 14px rgba(0, 155, 159, 0.08);
}

.topic-card h4 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.35;
}

.topic-card ul {
  margin: 0;
  padding-left: 18px;
  color: #294f74;
  font-size: 12px;
  line-height: 1.55;
}

.topic-card li + li {
  margin-top: 5px;
}

.topic-card button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  line-height: inherit;
  cursor: pointer;
}

.topic-card button:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.blank-note {
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
}

.module-coverage {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.module-coverage > span {
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.coverage-bar {
  height: 5px;
  border-radius: 99px;
  background: #d9edf2;
  overflow: hidden;
}

.coverage-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width 0.4s ease;
  min-width: 3px;
}

.mod-has-notes {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--teal-dark);
  background: #e0f6f6;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.instruments-content {
  max-width: 1780px;
  margin: 0 auto;
}

.instrument-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) minmax(160px, 220px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.instrument-toolbar select {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.instrument-card {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(10, 49, 95, 0.05);
}

.instrument-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #f4f8fb;
  border-bottom: 1px solid var(--soft-line);
}

.instrument-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instrument-body {
  padding: 16px 16px 18px;
}

.instrument-body h2 {
  color: var(--navy);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.15;
}

.instrument-body p {
  margin: 10px 0 0;
  color: #385a78;
  font-size: 13px;
  line-height: 1.55;
}

.instrument-page-shell {
  max-width: 1660px;
  margin: 0 auto;
  padding: 34px 42px 58px;
}

.instrument-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #d6e5ef;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 35%, rgba(31, 166, 170, 0.13), transparent 26%),
    linear-gradient(105deg, #ffffff 0%, #f4fbfd 50%, #dff6f7 100%);
  box-shadow: 0 20px 46px rgba(14, 53, 88, 0.08);
}

.instrument-hero-copy {
  position: relative;
  z-index: 2;
  padding: 44px 48px;
}

.instrument-crumbs,
.instrument-detail-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #123c70;
  font-size: 13px;
  font-weight: 800;
}

.instrument-crumbs span,
.instrument-detail-crumbs span {
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.58;
}

.instrument-hero-copy h1 {
  max-width: 680px;
  color: #062a5d;
  font-family: var(--display);
  font-size: clamp(38px, 4vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

.instrument-hero-copy p {
  max-width: 640px;
  margin-top: 18px;
  color: #445d7e;
  font-size: 17px;
  line-height: 1.62;
}

.instrument-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 28px;
}

.instrument-hero-points span {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 11px;
  min-width: 150px;
}

.instrument-hero-points svg {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  padding: 7px;
  color: #0f999b;
  border: 1px solid #c4ecec;
  border-radius: 50%;
  background: #f3ffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.instrument-hero-points b {
  color: #072c61;
  font-size: 13px;
}

.instrument-hero-points small {
  color: #6b7b93;
  font-size: 11px;
}

.instrument-hero-art {
  position: relative;
  min-height: 330px;
  isolation: isolate;
}

.instrument-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #f4fbfd 0%, rgba(244,251,253,0.55) 18%, rgba(244,251,253,0) 52%);
  pointer-events: none;
}

.instrument-hero-art img {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(8, 43, 78, 0.14));
}

.instrument-hero-art img:nth-child(1) {
  width: 45%;
  right: 8%;
  top: 15%;
  transform: rotate(-9deg);
}

.instrument-hero-art img:nth-child(2) {
  width: 48%;
  right: 27%;
  top: 32%;
  transform: rotate(21deg);
}

.instrument-hero-art img:nth-child(3) {
  width: 28%;
  right: 0;
  top: 0;
  opacity: 0.86;
}

.instrument-library-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(170px, 210px) minmax(180px, 230px);
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.instrument-search-field {
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid #d5e1ec;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 43, 78, 0.04);
}

.instrument-search-field svg {
  width: 22px;
  height: 22px;
  color: #0a3770;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.instrument-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #0a2c60;
  font-weight: 700;
  background: transparent;
}

.instrument-library-tools select,
.instrument-back-btn {
  min-height: 56px;
  border-radius: 7px;
  font-weight: 900;
}

.instrument-library-tools select {
  padding: 0 17px;
  color: #0a2c60;
  border: 1px solid #d5e1ec;
  background: #ffffff;
}

.instrument-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #092e63, #071f4d);
  box-shadow: 0 16px 28px rgba(5, 31, 71, 0.18);
}

.instrument-back-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.instrument-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.instrument-category-pills button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid #d7e3ef;
  border-radius: 999px;
  color: #153661;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.instrument-category-pills button span {
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #0b7e82;
  background: #e7f8f8;
  font-size: 11px;
}

.instrument-category-pills button.is-active {
  color: #ffffff;
  border-color: #082d62;
  background: #082d62;
}

.instrument-category-pills button.is-active span {
  color: #082d62;
  background: #ffffff;
}

.instrument-catalog-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 26px;
  margin-top: 24px;
}

.instrument-filter-panel {
  align-self: start;
  position: sticky;
  top: 18px;
  padding: 24px 22px;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(10, 49, 95, 0.05);
}

.instrument-filter-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dce7f0;
}

.instrument-filter-panel h2,
.instrument-filter-panel h3 {
  color: #0a2c60;
  font-family: var(--sans);
  letter-spacing: 0;
}

.instrument-filter-panel h2 {
  font-size: 20px;
}

.instrument-filter-panel h3 {
  margin-top: 22px;
  font-size: 14px;
}

.instrument-filter-panel button {
  color: #0b999b;
  border: 0;
  background: transparent;
  font-weight: 900;
}

.instrument-filter-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.instrument-filter-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #344e72;
  font-size: 13px;
  font-weight: 800;
}

.instrument-filter-list input {
  width: 16px;
  height: 16px;
  accent-color: #119fa0;
}

.instrument-filter-list em {
  color: #8493a8;
  font-style: normal;
  font-size: 11px;
}

.instrument-total-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #d9e9ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7ffff, #f5f9ff);
}

.instrument-total-card svg {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: #0f999b;
  border-radius: 12px;
  background: #e4f7f8;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.instrument-total-card strong {
  color: #082d62;
  font-size: 15px;
}

.instrument-total-card span {
  color: #718198;
  font-size: 12px;
}

.instrument-page-shell .instrument-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
}

.instrument-page-shell .instrument-card {
  min-height: 0;
  border-color: #d9e4ef;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(8, 43, 78, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.instrument-page-shell .instrument-card:hover {
  transform: translateY(-3px);
  border-color: #9dcfd1;
  box-shadow: 0 24px 46px rgba(8, 43, 78, 0.11);
}

.instrument-card-link {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  color: inherit;
  border: 0;
  background: transparent;
}

.instrument-page-shell .instrument-media {
  min-height: 190px;
  border-bottom: 0;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.instrument-page-shell .instrument-media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.instrument-page-shell .instrument-body {
  display: grid;
  gap: 8px;
  padding: 18px 20px 20px;
}

.instrument-page-shell .instrument-body small {
  color: #119fa0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.instrument-page-shell .instrument-body strong {
  color: #082d62;
  font-size: 20px;
  line-height: 1.15;
}

.instrument-page-shell .instrument-body span {
  min-height: 60px;
  color: #415d7e;
  font-size: 14px;
  line-height: 1.45;
}

.instrument-page-shell .instrument-body em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #0c8f91;
  font-style: normal;
  font-weight: 900;
}

.instrument-page-shell .instrument-body em svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.instrument-detail-page {
  display: grid;
  gap: 24px;
}

.instrument-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 0.78fr);
  gap: 32px;
  align-items: center;
  padding: 42px;
  border: 1px solid #d8e6ef;
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 160, 161, 0.11), transparent 28%),
    linear-gradient(135deg, #ffffff, #eefbfc);
  box-shadow: 0 22px 48px rgba(8, 43, 78, 0.08);
}

.instrument-detail-copy > span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 15px;
  border: 1px solid #bce8e7;
  border-radius: 999px;
  color: #0b8d91;
  background: #f1ffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.instrument-detail-copy h1 {
  color: #062a5d;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.instrument-detail-copy p {
  max-width: 760px;
  margin-top: 18px;
  color: #405b7d;
  font-size: 18px;
  line-height: 1.62;
}

.instrument-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.instrument-detail-hero figure {
  overflow: hidden;
  margin: 0;
  padding: 26px;
  border: 1px solid #d8e6ef;
  border-radius: 10px;
  background: #ffffff;
}

.instrument-detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
}

.instrument-detail-hero figcaption {
  margin-top: 14px;
  color: #6d7d93;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.instrument-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.instrument-detail-stats div {
  padding: 20px;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 43, 78, 0.05);
}

.instrument-detail-stats small {
  display: block;
  color: #6d7d93;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.instrument-detail-stats strong {
  display: block;
  margin-top: 6px;
  color: #082d62;
  font-size: 19px;
}

.instrument-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.instrument-detail-grid section {
  padding: 26px;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 43, 78, 0.05);
}

.instrument-detail-grid h2,
.instrument-related h2 {
  color: #082d62;
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: 0;
}

.instrument-detail-grid p,
.instrument-related p {
  margin-top: 12px;
  color: #3e5878;
  font-size: 15px;
  line-height: 1.65;
}

.instrument-detail-grid ul {
  display: grid;
  gap: 11px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.instrument-detail-grid li {
  position: relative;
  padding-left: 24px;
  color: #3e5878;
  font-size: 15px;
  line-height: 1.58;
}

.instrument-detail-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #12a0a0;
  box-shadow: 0 0 0 5px rgba(18, 160, 160, 0.11);
}

.instrument-detail-wide {
  grid-column: 1 / -1;
}

.instrument-related {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 26px;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f5fbff);
}

.instrument-related > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.instrument-related button {
  min-height: 150px;
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 14px;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  color: #082d62;
  background: #ffffff;
  font-weight: 900;
}

.instrument-related img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .instrument-page-shell {
    padding: 28px 24px 48px;
  }

  .instrument-hero-panel,
  .instrument-detail-hero {
    grid-template-columns: 1fr;
  }

  .instrument-hero-art {
    min-height: 250px;
    order: -1;
  }

  .instrument-hero-art::before {
    background: linear-gradient(180deg, rgba(244,251,253,0), #f4fbfd 100%);
  }

  .instrument-catalog-layout {
    grid-template-columns: 1fr;
  }

  .instrument-filter-panel {
    position: static;
  }

  .instrument-page-shell .instrument-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .instrument-page-shell {
    padding: 18px 14px 38px;
  }

  .instrument-hero-panel {
    border-radius: 8px;
  }

  .instrument-hero-copy {
    padding: 28px 20px 30px;
  }

  .instrument-hero-copy h1,
  .instrument-detail-copy h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .instrument-hero-copy p,
  .instrument-detail-copy p {
    font-size: 15px;
  }

  .instrument-hero-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .instrument-library-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .instrument-category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .instrument-category-pills button {
    flex: 0 0 auto;
  }

  .instrument-filter-panel {
    display: none;
  }

  .instrument-page-shell .instrument-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .instrument-page-shell .instrument-media {
    min-height: 140px;
  }

  .instrument-page-shell .instrument-body {
    padding: 14px;
  }

  .instrument-page-shell .instrument-body strong {
    font-size: 16px;
  }

  .instrument-page-shell .instrument-body span {
    min-height: 0;
    font-size: 12px;
  }

  .instrument-detail-hero {
    gap: 22px;
    padding: 22px;
  }

  .instrument-detail-stats,
  .instrument-detail-grid,
  .instrument-related,
  .instrument-related > div:last-child {
    grid-template-columns: 1fr;
  }

  .instrument-detail-grid section,
  .instrument-related {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .instrument-page-shell .instrument-grid {
    grid-template-columns: 1fr;
  }

  .instrument-hero-art {
    min-height: 190px;
  }

  .instrument-hero-art img:nth-child(1) {
    width: 58%;
    right: 2%;
    top: 14%;
  }

  .instrument-hero-art img:nth-child(2) {
    width: 62%;
    right: 30%;
    top: 34%;
  }

  .instrument-hero-art img:nth-child(3) {
    width: 34%;
  }

  .instrument-detail-actions {
    display: grid;
  }

  .instrument-detail-actions button {
    width: 100%;
  }
}

#coursesView {
  background: #f6f9fd;
}

.courses-library-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  min-height: 210px;
  padding: 30px 72px;
  border-bottom: 1px solid #dbe7f2;
  background:
    radial-gradient(circle at 14% 32%, rgba(2,155,159,0.10), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(7,58,112,0.04), transparent 30%),
    linear-gradient(90deg, #ffffff 0%, #f4f9fe 52%, #eaf5fb 100%);
}

.courses-library-copy {
  position: relative;
  z-index: 2;
}

.courses-library-copy h1 {
  color: #073a70;
  font-family: var(--sans);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.05;
}

.courses-library-copy p {
  max-width: 520px;
  margin-top: 14px;
  color: #31476b;
  font-size: 16px;
  line-height: 1.65;
}

.courses-country-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 12px;
  border: 1px solid #cddfeb;
  border-radius: 999px;
  color: #0b5078;
  background: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 800;
}

.courses-library-media {
  position: absolute;
  inset: 0 0 0 48%;
}

.courses-library-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.78) 20%, rgba(255,255,255,0.06) 56%);
}

.courses-library-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.courses-library-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 32px 48px 64px;
}

.courses-library-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 200px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(7,58,112,0.04);
}

.courses-library-search {
  min-height: 44px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  border: 1px solid #d4e1ed;
  border-radius: 8px;
  background: #ffffff;
}

.courses-library-search svg {
  width: 22px;
  height: 22px;
  justify-self: center;
  color: #143d76;
}

.courses-library-search input,
.courses-library-sort select,
.course-filter-group select {
  width: 100%;
  min-height: 42px;
  border: 0;
  color: #243e65;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.courses-library-search input:focus,
.courses-library-sort select:focus,
.course-filter-group select:focus {
  outline: none;
}

.courses-library-sort {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #31476b;
  font-size: 13px;
  font-weight: 800;
}

.courses-library-sort select,
.course-filter-group select {
  padding: 0 14px;
  border: 1px solid #d4e1ed;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.courses-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 0;
  align-items: start;
}

.courses-filter-panel {
  position: sticky;
  top: 98px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
  padding: 20px 18px;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(7,58,112,0.06);
}

.courses-filter-panel h2 {
  color: #073a70;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 900;
}

.course-filter-group {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  border-left: 0;
  padding-left: 0;
}

.course-filter-group h3 {
  color: #073a70;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #405878;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.course-filter-group input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--teal-dark);
  cursor: pointer;
}

.course-filter-reset {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin-top: 0;
  border: 1px solid var(--teal-dark);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.courses-library-results {
  min-width: 0;
}

.courses-library-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.courses-library-chips button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #d8e5f0;
  border-radius: 999px;
  color: #073a70;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.courses-library-chips button:hover {
  border-color: rgba(42, 157, 138, 0.45);
  background: #f3fbfb;
  transform: translateY(-1px);
}

.courses-library-chips button.is-active {
  border-color: rgba(42, 157, 138, 0.7);
  color: var(--teal-dark);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(42, 157, 138, 0.12);
}

.courses-library-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.course-library-card {
  --course-accent: #0f766e;
  --course-accent-dark: #0c4f68;
  --course-accent-soft: rgba(15, 118, 110, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(196, 211, 226, 0.85);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 6px 18px rgba(7,58,112,0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-library-card--certificate-in-nursing {
  --course-accent: #2f8f46;
  --course-accent-dark: #176432;
  --course-accent-soft: rgba(47, 143, 70, 0.14);
}

.course-library-card--diploma-in-nursing-extension {
  --course-accent: #3157d5;
  --course-accent-dark: #1d348f;
  --course-accent-soft: rgba(49, 87, 213, 0.14);
}

.course-library-card--diploma-in-midwifery {
  --course-accent: #7436c8;
  --course-accent-dark: #4c1d95;
  --course-accent-soft: rgba(116, 54, 200, 0.14);
}

.course-library-card--bachelor-of-nursing-science {
  --course-accent: #ad2f67;
  --course-accent-dark: #7a1d46;
  --course-accent-soft: rgba(173, 47, 103, 0.14);
}

.course-library-card:hover {
  border-color: color-mix(in srgb, var(--course-accent) 48%, #ffffff);
  box-shadow: 0 18px 36px rgba(7,58,112,0.13);
  transform: translateY(-4px);
}

/* ── Image column ── */
.course-library-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: var(--course-accent-dark);
}

.course-library-card figure::before,
.course-library-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.course-library-card figure::before {
  background:
    linear-gradient(180deg, rgba(5, 20, 38, 0.04) 0%, rgba(5, 20, 38, 0.22) 54%, rgba(5, 20, 38, 0.52) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--course-accent-dark) 60%, transparent) 0%, transparent 54%);
}

.course-library-card figure::after {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
  box-shadow: inset 0 -70px 80px rgba(2, 18, 34, 0.24);
}

.course-library-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.course-library-card:hover figure img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.045);
}

.course-lib-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--course-accent) 86%, #05283a);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(6, 65, 91, 0.16);
}

/* ── Body column ── */
.course-library-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 17px 18px 10px;
  gap: 11px;
}

.course-library-title-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.course-library-title-row h2 {
  color: var(--course-accent-dark);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: uppercase;
}

.course-library-body > p {
  margin: 0;
  color: #4a5f78;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.course-library-actions {
  margin-top: auto;
  padding: 6px 18px 18px;
}

.course-library-actions .primary-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  background: #ffffff;
  border: 1.5px solid color-mix(in srgb, var(--course-accent) 46%, #ffffff);
  color: var(--course-accent-dark);
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.course-library-actions .primary-button:hover {
  border-color: var(--course-accent);
  background: var(--course-accent-soft);
  color: var(--course-accent-dark);
  transform: translateY(-1px);
}

.course-library-actions .primary-button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.course-library-actions .primary-button b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--course-accent-soft);
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.course-library-actions .primary-button:hover b {
  background: color-mix(in srgb, var(--course-accent) 24%, #ffffff);
  transform: translateX(2px);
}

.courses-quick-access {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(7,58,112,0.04);
}

.courses-quick-access h2 {
  color: #073a70;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 900;
}

.courses-quick-access p {
  margin-top: 3px;
  color: #506b88;
  font-size: 13px;
}

.courses-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.courses-resource-grid button {
  min-height: 92px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  color: #073a70;
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.courses-resource-grid button:hover {
  border-color: #9fc8e0;
  box-shadow: 0 4px 16px rgba(7,58,112,0.10);
  transform: translateY(-1px);
}

.courses-resource-grid span {
  color: #073a70;
  font-size: 14px;
  font-weight: 900;
}

.courses-resource-grid strong {
  color: #506b88;
  font-size: 12px;
  line-height: 1.45;
}

.courses-study-band {
  display: grid;
  grid-template-columns: 200px repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 20px 26px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal-dark), #062d68);
  box-shadow: 0 8px 28px rgba(7,58,112,0.16);
}

.courses-study-band h2 {
  color: #ffffff;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.courses-study-band strong,
.courses-study-band span {
  display: block;
}

.courses-study-band strong {
  color: #ffffff;
  font-size: 14px;
}

.courses-study-band span {
  margin-top: 4px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 1.4;
}

.courses-page-footer {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.5fr);
  gap: 48px;
  align-items: stretch;
  max-width: 1560px;
  margin: 30px auto 0;
  padding: 74px 64px 58px;
  border-top: 9px solid #2eb7b4;
  border-radius: 8px 8px 0 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 22%, rgba(46, 183, 180, 0.16), transparent 34%),
    radial-gradient(circle at 15% 78%, rgba(54, 149, 222, 0.14), transparent 28%),
    linear-gradient(135deg, #03152f 0%, #082858 58%, #0a346f 100%);
  box-shadow: 0 26px 60px rgba(3, 27, 63, 0.22);
  position: relative;
  overflow: hidden;
}

.courses-page-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle, rgba(120, 223, 224, 0.26) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.courses-footer-brand,
.courses-footer-menu {
  position: relative;
  z-index: 1;
}

.courses-footer-brand {
  padding-right: 40px;
  border-right: 1px solid rgba(151, 190, 225, 0.22);
}

.courses-page-footer img {
  width: 265px;
  max-width: 100%;
  padding: 8px;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.courses-page-footer h2 {
  margin-top: 34px;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.courses-page-footer p {
  max-width: 450px;
  margin-top: 10px;
  color: rgba(235, 246, 255, 0.86);
  font-size: 13px;
  line-height: 1.62;
}

.courses-footer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-width: 440px;
  margin-top: 28px;
}

.courses-footer-stats span {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid rgba(151, 190, 225, 0.22);
  border-radius: 10px;
  background: rgba(8, 40, 88, 0.48);
}

.courses-footer-stats svg,
.courses-footer-cta svg,
.courses-footer-menu h3 svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.courses-footer-stats svg {
  color: #35cac9;
}

.courses-footer-stats strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.courses-footer-stats small {
  color: rgba(235, 246, 255, 0.86);
  font-size: 12px;
}

.courses-footer-cta {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 0 26px;
  border: 1px solid rgba(113, 226, 224, 0.36);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #31bdb8, #0b7f8c);
  box-shadow: 0 18px 36px rgba(10, 127, 140, 0.24);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.courses-footer-cta b {
  font-size: 24px;
  line-height: 1;
}

.courses-footer-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 58px;
  align-self: start;
}

.courses-footer-menu section {
  min-width: 0;
}

.courses-footer-menu h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 46px 0 20px;
  padding-bottom: 24px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.courses-footer-menu section:first-child h3,
.courses-footer-menu section:nth-child(2) h3,
.courses-footer-menu section:nth-child(3) h3 {
  margin-top: 46px;
}

.courses-footer-menu h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: #2eb7b4;
}

.courses-footer-menu h3 svg {
  color: #2eb7b4;
}

.courses-page-footer a {
  position: relative;
  display: block;
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid rgba(151, 190, 225, 0.14);
  color: rgba(244, 250, 255, 0.92);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.courses-page-footer a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #2eb7b4;
  border-right: 2px solid #2eb7b4;
  transform: rotate(45deg);
}

.courses-page-footer a:hover {
  color: #77f0ef;
}

.courses-page-footer small {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .courses-library-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 220px;
    padding: 32px 34px 86px;
  }

  .courses-library-copy {
    max-width: 620px;
  }

  .courses-library-media {
    inset: auto 0 0 38%;
    height: 100%;
    opacity: 0.55;
  }

  .courses-library-shell {
    padding: 0 28px 44px;
  }

  .courses-library-layout {
    grid-template-columns: 1fr;
  }

  .courses-filter-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-filter-panel h2,
  .course-filter-reset {
    align-self: stretch;
  }

  .course-filter-group {
    border-left: 0;
    padding-left: 0;
    padding-top: 16px;
    border-top: 1px solid #e0e9f2;
  }

  .course-library-card {
    grid-template-columns: none;
  }

  .courses-library-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-library-body {
    padding: 16px 16px 14px;
  }

  .courses-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-study-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-study-band h2 {
    grid-column: 1 / -1;
  }

  .courses-page-footer {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 52px 34px 42px;
  }

  .courses-footer-brand {
    padding-right: 0;
    padding-bottom: 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(151, 190, 225, 0.22);
  }

  .courses-footer-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .courses-footer-menu h3 {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  #coursesView {
    background: #f7fbff;
  }

  .courses-library-hero {
    height: auto;
    min-height: auto;
    padding: 34px 18px 26px;
    border-bottom: 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.9), rgba(246,250,254,0.96)),
      #f7fbff;
  }

  .courses-library-copy h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .courses-library-copy p {
    margin-top: 12px;
    font-size: 15px;
  }

  .courses-country-pill {
    align-items: flex-start;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.35;
  }

  .courses-library-media {
    position: relative;
    inset: auto;
    height: 188px;
    margin-top: 22px;
    border: 1px solid #d9e7f2;
    border-radius: 18px;
    opacity: 1;
  }

  .courses-library-media::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(3,43,93,0.12));
  }

  .courses-library-shell {
    padding: 0 14px 32px;
  }

  .courses-library-controls {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .courses-library-sort {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .courses-library-search,
  .courses-library-search input,
  .courses-library-sort select,
  .course-filter-group select {
    min-height: 48px;
  }

  .courses-library-layout {
    gap: 14px;
  }

  .courses-filter-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
  }

  .course-filter-group {
    margin-top: 0;
    padding-top: 14px;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #e0e9f2;
  }

  .courses-library-chips {
    flex-wrap: nowrap;
    margin: 2px -14px 12px;
    padding: 0 14px 4px;
    overflow-x: auto;
  }

  .courses-library-chips button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
  }

  .course-library-card {
    grid-template-columns: none;
    border-radius: 16px;
  }

  .courses-library-list {
    grid-template-columns: 1fr;
  }

  .course-library-card figure {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .course-library-body {
    padding: 20px 18px;
    gap: 12px;
  }

  .course-library-title-row h2 {
    font-size: 22px;
  }

  .course-library-body > p {
    font-size: 13.5px;
  }

  .course-library-body dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .courses-quick-access {
    padding: 18px;
    border-radius: 14px;
  }

  .courses-resource-grid,
  .courses-study-band {
    grid-template-columns: 1fr;
  }

  .courses-study-band {
    gap: 16px;
    padding: 22px;
  }

  .courses-study-band h2 {
    font-size: 22px;
  }

  .courses-page-footer {
    gap: 28px;
    margin-top: 24px;
    padding: 38px 18px 34px;
    border-top-width: 7px;
  }

  .courses-page-footer img {
    width: 220px;
  }

  .courses-page-footer h2 {
    margin-top: 24px;
    font-size: 24px;
  }

  .courses-page-footer p {
    font-size: 14px;
  }

  .courses-footer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .courses-footer-cta {
    width: 100%;
    justify-content: center;
  }

  .courses-footer-menu {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .courses-footer-menu h3 {
    margin: 0 0 10px;
  }

  .courses-page-footer a {
    padding: 13px 0 13px 24px;
  }
}

.programs-section h2 {
  font-size: 24px;
}

.programs-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.courses-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--soft-line);
}

.course-selector {
  margin-top: 46px;
  padding: 34px 0 10px;
  border-top: 1px solid var(--soft-line);
}

.course-selector .program-grid {
  margin-top: 22px;
}

.selected-program-heading {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 4px solid var(--teal);
}

.course-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 22px;
}

.course-feature-grid {
  display: grid;
  gap: 18px;
}

.course-feature-hero {
  position: relative;
  min-height: 206px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #e9f4f7;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(10, 49, 95, 0.08);
}

.course-feature-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.60) 52%, rgba(255, 255, 255, 0.06));
}

.course-feature-hero.is-primary {
  min-height: 430px;
}

.course-feature-hero > div {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 30px;
}

.course-feature-hero span,
.course-tab-intro span,
.course-info-grid span,
.course-exam-panel span {
  display: inline-flex;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.course-feature-hero h2 {
  margin-top: 10px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.05;
}

.course-feature-hero h3 {
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.12;
}

.course-feature-hero p {
  max-width: 560px;
  margin-top: 12px;
  color: #28476c;
  font-size: 15px;
  line-height: 1.65;
}

.course-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.course-hero-actions button {
  min-width: 160px;
}

.course-tab-panel {
  margin-top: 22px;
}

.course-tab-intro,
.course-exam-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(10, 49, 95, 0.05);
}

.course-tab-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
}

.course-tab-intro h2,
.course-info-grid h2,
.course-exam-panel h2 {
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.18;
}

.course-tab-intro p,
.course-info-grid p,
.course-exam-panel p {
  margin-top: 8px;
  color: #385a78;
  font-size: 14px;
  line-height: 1.65;
}

.course-info-grid,
.course-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-info-grid article,
.course-resource-grid button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(10, 49, 95, 0.05);
}

.course-info-grid article {
  min-height: 205px;
  padding: 22px;
}

.course-exam-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 24px;
}

.course-exam-steps {
  display: grid;
  gap: 12px;
}

.course-exam-steps article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #f8fcfd;
}

.course-exam-steps b {
  width: 42px;
  height: 42px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
}

.course-exam-steps strong,
.course-resource-grid strong {
  color: var(--navy);
  font-size: 15px;
}

.course-exam-steps span,
.course-resource-grid span {
  color: #45617e;
  font-size: 13px;
  line-height: 1.45;
}

.course-resource-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.course-resource-grid button {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.course-resource-grid button:hover {
  border-color: var(--teal);
  background: #f1fbfc;
}

#programView {
  background: #f6f9fd;
}

#programView .blue-bar,
#programView .courses-heading,
#programView .selected-program-heading,
#programView .ad-slot-horizontal[data-ad-slot="courseTop"] {
  display: none;
}

#programView [hidden] {
  display: none !important;
}

#programView .content {
  padding-top: 26px;
}

.course-hero-panel {
  display: block;
}

.course-dashboard-hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: block;
  padding: 0;
  border: 1px solid #d9e4ef;
  border-radius: 18px;
  background: linear-gradient(135deg, #071a41 0%, #0c2855 100%);
  box-shadow: 0 18px 44px rgba(7, 58, 112, 0.13);
}

.course-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 26, 65, 0.98) 0%,
    rgba(7, 26, 65, 0.93) 38%,
    rgba(7, 26, 65, 0.60) 58%,
    rgba(7, 26, 65, 0.15) 76%,
    transparent 100%
  );
}

.course-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 58%;
  padding: 28px 24px 28px 28px;
  color: #ffffff;
}

.course-hero-crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  font-weight: 800;
}

.course-hero-crumbs a {
  color: #72e0df;
}

.course-hero-crumbs span {
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.8;
}

.course-hero-copy h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: #ffffff;
  font-family: var(--sans);
  font-size: clamp(30px, 2.75vw, 44px);
  font-weight: 900;
  line-height: 1.04;
}

.course-hero-copy h2 span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #67dadb;
}

.course-hero-copy h2 svg,
.course-dashboard-hero svg,
.course-notes-panel svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-hero-copy h2 span svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.course-hero-copy p {
  max-width: 650px;
  margin-top: 10px;
  color: rgba(255,255,255,0.94);
  font-size: 14px;
  line-height: 1.42;
}

.course-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.course-hero-actions .primary-button,
.course-hero-actions .ghost-button {
  min-width: 154px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.course-hero-actions .ghost-button {
  border-color: rgba(255,255,255,0.58);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
}

.course-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.course-hero-points > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}

.course-hero-points svg {
  width: 19px;
  height: 19px;
  grid-row: span 2;
  padding: 6px;
  border-radius: 50%;
  color: #87e2e1;
  background: rgba(69, 138, 206, 0.2);
}

.course-hero-points strong {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
}

.course-hero-points span {
  color: rgba(255,255,255,0.78);
  font-size: 11.5px;
  line-height: 1.25;
}

.course-hero-side {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 18px;
}

.course-module-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #15b3ad, #0c817f);
  box-shadow: 0 4px 16px rgba(1, 83, 105, 0.35);
  font-size: 13px;
  font-weight: 900;
}

.course-module-badge svg {
  width: 17px;
  height: 17px;
}

.course-hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: #0c2855;
  box-shadow: none;
}

.course-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.course-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 31, 71, 0.0) 60%, rgba(4, 31, 71, 0.22) 100%);
}

.course-hero-media figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  color: #ffffff;
}

.course-hero-media figcaption span,
.course-hero-media figcaption small {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 800;
}

.course-hero-media figcaption strong {
  display: block;
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.08;
}

.course-hero-media figcaption small {
  margin-top: 7px;
  font-weight: 700;
}

.course-hero-mini-stats {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 44%;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(7, 26, 65, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0 0 18px 0;
}

.course-hero-mini-stats > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.course-hero-mini-stats > div + div {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.course-hero-mini-stats span {
  width: 32px;
  height: 32px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--teal-dark);
  background: rgba(231, 251, 251, 0.15);
}

.course-hero-mini-stats > div:nth-child(2) span {
  color: #d86734;
  background: #fff1e9;
}

.course-hero-mini-stats strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
}

.course-hero-mini-stats small {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.35;
}

.course-progress-strip {
  display: none; /* removed from UI — progress strip is no longer rendered */
  width: 100%;
  min-height: 58px;
  grid-template-columns: 48px minmax(0, 1fr) minmax(170px, 0.66fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--navy);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 30px rgba(7, 58, 112, 0.1);
  box-sizing: border-box;
}

.course-progress-strip > div:not(.course-progress-meter) {
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  padding-left: 12px;
  border-left: 1px solid #dce6f0;
}

.course-progress-strip strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.course-progress-strip small {
  color: #607793;
  font-size: 11.5px;
}

.course-progress-strip svg {
  width: 20px;
  height: 20px;
  grid-row: span 2;
  color: #1f5a9b;
}

.course-progress-strip i {
  display: block;
  grid-column: 2;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8e3ee;
}

.course-progress-strip i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.course-progress-meter {
  --size: 42px;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 56%, transparent 57%),
    conic-gradient(var(--teal) calc(var(--progress) * 1%), #d9e6ef 0);
}

.course-progress-meter span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.course-hero--diploma-in-nursing-extension {
  min-height: 510px;
  border-color: rgba(57, 211, 155, 0.24);
  border-radius: 24px;
  background: #061112;
  box-shadow: 0 24px 54px rgba(2, 10, 16, 0.26);
}

.course-hero--diploma-in-nursing-extension::before {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 12%, rgba(62, 211, 153, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(2, 10, 16, 0.98) 0%, rgba(2, 13, 18, 0.95) 34%, rgba(2, 19, 21, 0.76) 55%, rgba(4, 38, 33, 0.28) 76%, rgba(6, 17, 18, 0.08) 100%),
    linear-gradient(180deg, rgba(2, 10, 16, 0.12), rgba(2, 10, 16, 0.66));
}

.course-hero--diploma-in-nursing-extension .course-hero-copy {
  max-width: 58%;
  padding: 44px 28px 40px 40px;
}

.course-hero--diploma-in-nursing-extension .course-hero-crumbs {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.course-hero--diploma-in-nursing-extension .course-hero-crumbs a {
  color: #28d894;
}

.course-hero--diploma-in-nursing-extension .course-hero-copy h2 {
  max-width: 950px;
  margin-top: 28px;
  color: #ffffff;
  font-size: clamp(48px, 4.25vw, 76px);
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
}

.course-hero--diploma-in-nursing-extension .course-hero-copy h2 span {
  color: #28d894;
}

.course-hero--diploma-in-nursing-extension .course-hero-copy p {
  max-width: 770px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.38;
}

.course-hero--diploma-in-nursing-extension .course-hero-actions {
  gap: 16px;
  margin-top: 34px;
}

.course-hero--diploma-in-nursing-extension .course-hero-actions .primary-button,
.course-hero--diploma-in-nursing-extension .course-hero-actions .ghost-button {
  min-width: 220px;
  min-height: 62px;
  border-radius: 12px;
  font-size: 18px;
}

.course-hero--diploma-in-nursing-extension .course-hero-actions .primary-button {
  background: linear-gradient(180deg, #19b875, #087b55);
  box-shadow: inset 0 1px rgba(255,255,255,0.32), 0 14px 28px rgba(7, 123, 85, 0.34);
}

.course-hero--diploma-in-nursing-extension .course-hero-actions .ghost-button {
  border-color: rgba(40, 216, 148, 0.64);
  color: #ffffff;
  background: rgba(2, 10, 16, 0.42);
  box-shadow: inset 0 1px rgba(255,255,255,0.12);
}

.course-hero--diploma-in-nursing-extension .course-hero-points {
  max-width: 1065px;
  gap: 18px;
  margin-top: 28px;
}

.course-hero--diploma-in-nursing-extension .course-hero-points > div,
.course-hero--diploma-in-nursing-extension .course-progress-strip,
.course-hero--diploma-in-nursing-extension .course-hero-mini-stats {
  border: 1px solid rgba(143, 244, 214, 0.18);
  background: rgba(6, 24, 25, 0.78);
  box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 18px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.course-hero--diploma-in-nursing-extension .course-hero-points > div {
  min-height: 84px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 18px;
  border-radius: 18px;
}

.course-hero--diploma-in-nursing-extension .course-hero-points svg,
.course-hero--diploma-in-nursing-extension .course-hero-mini-stats span {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  color: #28d894;
  background: rgba(12, 132, 87, 0.58);
}

.course-hero--diploma-in-nursing-extension .course-hero-points strong,
.course-hero--diploma-in-nursing-extension .course-hero-mini-stats strong,
.course-hero--diploma-in-nursing-extension .course-progress-strip strong {
  color: #ffffff;
  font-size: 18px;
}

.course-hero--diploma-in-nursing-extension .course-hero-points span,
.course-hero--diploma-in-nursing-extension .course-hero-mini-stats small,
.course-hero--diploma-in-nursing-extension .course-progress-strip small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip {
  position: absolute;
  left: 40px;
  right: auto;
  bottom: 46px;
  z-index: 4;
  width: min(1065px, calc(58% - 44px));
  min-height: 118px;
  grid-template-columns: 84px minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 22px;
  padding: 18px;
  border-radius: 20px;
  color: #ffffff;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip > div:not(.course-progress-meter) {
  min-height: 72px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding-left: 24px;
  border-left-color: rgba(143, 244, 214, 0.16);
}

.course-hero--diploma-in-nursing-extension .course-progress-strip svg {
  width: 32px;
  height: 32px;
  color: #28d894;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip i {
  height: 10px;
  background: rgba(40, 216, 148, 0.12);
}

.course-hero--diploma-in-nursing-extension .course-progress-strip i b {
  background: #28d894;
}

.course-hero--diploma-in-nursing-extension .course-progress-meter {
  background:
    radial-gradient(circle at center, rgba(6, 24, 25, 0.94) 56%, transparent 57%),
    conic-gradient(#28d894 calc(var(--progress) * 1%), rgba(40, 216, 148, 0.22) 0);
}

.course-hero--diploma-in-nursing-extension .course-progress-meter {
  --size: 82px;
}

.course-hero--diploma-in-nursing-extension .course-progress-meter span {
  color: #ffffff;
  font-size: 22px;
}

.course-hero--diploma-in-nursing-extension .course-module-badge {
  top: 30px;
  right: 28px;
  min-height: 50px;
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(180deg, #16a66e, #08734f);
  box-shadow: inset 0 1px rgba(255,255,255,0.26), 0 14px 24px rgba(0,0,0,0.28);
  font-size: 18px;
}

.course-hero--diploma-in-nursing-extension .course-hero-media img {
  object-position: center center;
  filter: saturate(1.08) contrast(1.04);
}

.course-hero--diploma-in-nursing-extension .course-hero-media::after {
  background: linear-gradient(180deg, rgba(3, 13, 15, 0) 52%, rgba(3, 13, 15, 0.58) 100%);
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats {
  right: 38px;
  bottom: 42px;
  width: min(840px, 42%);
  min-height: 108px;
  border-radius: 18px;
  overflow: hidden;
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats > div {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 108px;
  padding: 20px 26px;
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats > div + div {
  border-left-color: rgba(143, 244, 214, 0.18);
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats > div:nth-child(2) span {
  color: #ffffff;
  background: rgba(12, 132, 87, 0.58);
}

.course-hero--diploma-in-midwifery {
  min-height: 510px;
  border-color: rgba(198, 115, 255, 0.52);
  border-radius: 24px;
  background: #120626;
  box-shadow: 0 24px 58px rgba(22, 4, 52, 0.42);
}

.course-hero--diploma-in-midwifery::before {
  z-index: 1;
  background:
    radial-gradient(circle at 76% 4%, rgba(224, 119, 255, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(16, 3, 39, 0.98) 0%, rgba(20, 5, 51, 0.95) 35%, rgba(63, 22, 102, 0.72) 57%, rgba(112, 62, 156, 0.36) 78%, rgba(61, 22, 97, 0.10) 100%),
    linear-gradient(180deg, rgba(20, 5, 51, 0.14), rgba(20, 5, 51, 0.70));
}

.course-hero--diploma-in-midwifery .course-hero-copy {
  max-width: 60%;
  padding: 44px 28px 40px 40px;
}

.course-hero--diploma-in-midwifery .course-hero-crumbs {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.course-hero--diploma-in-midwifery .course-hero-crumbs a {
  color: #d58cff;
}

.course-hero--diploma-in-midwifery .course-hero-copy h2 {
  max-width: 980px;
  margin-top: 28px;
  color: #ffffff;
  font-size: clamp(48px, 4.25vw, 76px);
  letter-spacing: 0;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.38);
}

.course-hero--diploma-in-midwifery .course-hero-copy h2 span {
  color: #7dd3fc;
}

.course-hero--diploma-in-midwifery .course-hero-copy p {
  max-width: 790px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.38;
}

.course-hero--diploma-in-midwifery .course-hero-actions {
  gap: 16px;
  margin-top: 34px;
}

.course-hero--diploma-in-midwifery .course-hero-actions .primary-button,
.course-hero--diploma-in-midwifery .course-hero-actions .ghost-button {
  min-width: 220px;
  min-height: 62px;
  border-radius: 12px;
  font-size: 18px;
}

.course-hero--diploma-in-midwifery .course-hero-actions .primary-button {
  background: linear-gradient(180deg, #0ea5e9, #0f766e);
  box-shadow: inset 0 1px rgba(255,255,255,0.34), 0 16px 30px rgba(15, 118, 110, 0.30);
}

.course-hero--diploma-in-midwifery .course-hero-actions .ghost-button {
  border-color: rgba(125, 211, 252, 0.68);
  color: #ffffff;
  background: rgba(4, 34, 54, 0.46);
  box-shadow: inset 0 1px rgba(255,255,255,0.13);
}

.course-hero--diploma-in-midwifery .course-hero-points {
  max-width: 1065px;
  gap: 18px;
  margin-top: 28px;
}

.course-hero--diploma-in-midwifery .course-hero-points > div,
.course-hero--diploma-in-midwifery .course-progress-strip,
.course-hero--diploma-in-midwifery .course-hero-mini-stats {
  border: 1px solid rgba(125, 211, 252, 0.30);
  background: rgba(5, 48, 63, 0.78);
  box-shadow: inset 0 1px rgba(255,255,255,0.10), 0 18px 36px rgba(3, 27, 38, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.course-hero--diploma-in-midwifery .course-hero-points > div {
  min-height: 84px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 18px;
  border-radius: 18px;
}

.course-hero--diploma-in-midwifery .course-hero-points svg,
.course-hero--diploma-in-midwifery .course-hero-mini-stats span {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.66);
}

.course-hero--diploma-in-midwifery .course-hero-points strong,
.course-hero--diploma-in-midwifery .course-hero-mini-stats strong,
.course-hero--diploma-in-midwifery .course-progress-strip strong {
  color: #ffffff;
  font-size: 18px;
}

.course-hero--diploma-in-midwifery .course-hero-points span,
.course-hero--diploma-in-midwifery .course-hero-mini-stats small,
.course-hero--diploma-in-midwifery .course-progress-strip small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.course-hero--diploma-in-midwifery .course-progress-strip {
  position: absolute;
  left: 40px;
  right: auto;
  bottom: 46px;
  z-index: 4;
  width: min(930px, calc(60% - 48px));
  min-height: 118px;
  grid-template-columns: 84px minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 22px;
  padding: 18px;
  border-radius: 20px;
  color: #ffffff;
}

.course-hero--diploma-in-midwifery .course-progress-strip > div:not(.course-progress-meter) {
  min-height: 72px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding-left: 24px;
  border-left-color: rgba(125, 211, 252, 0.26);
}

.course-hero--diploma-in-midwifery .course-progress-strip svg {
  width: 32px;
  height: 32px;
  color: #7dd3fc;
}

.course-hero--diploma-in-midwifery .course-progress-strip i {
  height: 10px;
  background: rgba(125, 211, 252, 0.18);
}

.course-hero--diploma-in-midwifery .course-progress-strip i b {
  background: #0ea5e9;
}

.course-hero--diploma-in-midwifery .course-progress-meter {
  --size: 82px;
  background:
    radial-gradient(circle at center, #ecfeff 56%, transparent 57%),
    conic-gradient(#0ea5e9 calc(var(--progress) * 1%), rgba(14, 165, 233, 0.22) 0);
}

.course-hero--diploma-in-midwifery .course-progress-meter span {
  color: #05303f;
  font-size: 22px;
}

.course-hero--diploma-in-midwifery .course-module-badge {
  top: 30px;
  right: 28px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(255,255,255,0.24);
  color: #ffffff;
  background: linear-gradient(180deg, #0ea5e9, #0f766e);
  box-shadow: inset 0 1px rgba(255,255,255,0.30), 0 14px 28px rgba(3, 46, 50, 0.36);
  font-size: 18px;
}

.course-hero--diploma-in-midwifery .course-hero-media img {
  object-position: center center;
  filter: saturate(1.05) contrast(1.04);
}

.course-hero--diploma-in-midwifery .course-hero-media::after {
  background: linear-gradient(180deg, rgba(5, 32, 45, 0) 52%, rgba(5, 32, 45, 0.62) 100%);
}

.course-hero--diploma-in-midwifery .course-hero-mini-stats {
  right: 38px;
  bottom: 42px;
  width: min(840px, 42%);
  min-height: 108px;
  border-radius: 18px;
  overflow: hidden;
}

.course-hero--diploma-in-midwifery .course-hero-mini-stats > div {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 108px;
  padding: 20px 26px;
}

.course-hero--diploma-in-midwifery .course-hero-mini-stats > div + div {
  border-left-color: rgba(125, 211, 252, 0.25);
}

.course-hero--diploma-in-midwifery .course-hero-mini-stats > div:nth-child(2) span {
  color: #ffffff;
  background: rgba(14, 116, 144, 0.72);
}

.course-hero--bachelor-of-nursing-science {
  min-height: 510px;
  border-color: rgba(255, 157, 132, 0.42);
  border-radius: 24px;
  background: #2a0808;
  box-shadow: 0 24px 56px rgba(61, 11, 11, 0.34);
}

.course-hero--bachelor-of-nursing-science::before {
  z-index: 1;
  background:
    radial-gradient(circle at 76% 8%, rgba(255, 164, 137, 0.32), transparent 36%),
    linear-gradient(90deg, rgba(45, 8, 8, 0.98) 0%, rgba(62, 13, 13, 0.94) 35%, rgba(103, 36, 31, 0.72) 58%, rgba(150, 76, 60, 0.34) 78%, rgba(96, 39, 31, 0.10) 100%),
    linear-gradient(180deg, rgba(45, 8, 8, 0.12), rgba(45, 8, 8, 0.68));
}

.course-hero--bachelor-of-nursing-science .course-hero-copy {
  max-width: 60%;
  padding: 44px 28px 40px 40px;
}

.course-hero--bachelor-of-nursing-science .course-hero-crumbs {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.course-hero--bachelor-of-nursing-science .course-hero-crumbs a {
  color: #ffa188;
}

.course-hero--bachelor-of-nursing-science .course-hero-copy h2 {
  max-width: 980px;
  margin-top: 28px;
  color: #fff8f5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 4.25vw, 76px);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.36);
}

.course-hero--bachelor-of-nursing-science .course-hero-copy h2 span {
  color: #ffa188;
}

.course-hero--bachelor-of-nursing-science .course-hero-copy p {
  max-width: 790px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.38;
}

.course-hero--bachelor-of-nursing-science .course-hero-actions {
  gap: 16px;
  margin-top: 34px;
}

.course-hero--bachelor-of-nursing-science .course-hero-actions .primary-button,
.course-hero--bachelor-of-nursing-science .course-hero-actions .ghost-button {
  min-width: 220px;
  min-height: 62px;
  border-radius: 12px;
  font-size: 18px;
}

.course-hero--bachelor-of-nursing-science .course-hero-actions .primary-button {
  background: linear-gradient(180deg, #f36f61, #bb3f35);
  box-shadow: inset 0 1px rgba(255,255,255,0.34), 0 16px 30px rgba(187, 63, 53, 0.32);
}

.course-hero--bachelor-of-nursing-science .course-hero-actions .ghost-button {
  border-color: rgba(255, 161, 136, 0.62);
  color: #ffffff;
  background: rgba(45, 8, 8, 0.44);
  box-shadow: inset 0 1px rgba(255,255,255,0.12);
}

.course-hero--bachelor-of-nursing-science .course-hero-points {
  max-width: 1065px;
  gap: 18px;
  margin-top: 28px;
}

.course-hero--bachelor-of-nursing-science .course-hero-points > div,
.course-hero--bachelor-of-nursing-science .course-progress-strip,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats {
  border: 1px solid rgba(255, 171, 146, 0.22);
  background: rgba(86, 24, 22, 0.76);
  box-shadow: inset 0 1px rgba(255,255,255,0.10), 0 18px 34px rgba(45, 8, 8, 0.26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.course-hero--bachelor-of-nursing-science .course-hero-points > div {
  min-height: 84px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 18px;
  border-radius: 18px;
}

.course-hero--bachelor-of-nursing-science .course-hero-points svg,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats span {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  color: #ffd5ca;
  background: rgba(198, 73, 61, 0.62);
}

.course-hero--bachelor-of-nursing-science .course-hero-points strong,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats strong,
.course-hero--bachelor-of-nursing-science .course-progress-strip strong {
  color: #ffffff;
  font-size: 18px;
}

.course-hero--bachelor-of-nursing-science .course-hero-points span,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats small,
.course-hero--bachelor-of-nursing-science .course-progress-strip small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.course-hero--bachelor-of-nursing-science .course-progress-strip {
  position: absolute;
  left: 40px;
  right: auto;
  bottom: 46px;
  z-index: 4;
  width: min(930px, calc(60% - 48px));
  min-height: 118px;
  grid-template-columns: 84px minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 22px;
  padding: 18px;
  border-radius: 20px;
  color: #ffffff;
}

.course-hero--bachelor-of-nursing-science .course-progress-strip > div:not(.course-progress-meter) {
  min-height: 72px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding-left: 24px;
  border-left-color: rgba(255, 171, 146, 0.24);
}

.course-hero--bachelor-of-nursing-science .course-progress-strip svg {
  width: 32px;
  height: 32px;
  color: #f36f61;
}

.course-hero--bachelor-of-nursing-science .course-progress-strip i {
  height: 10px;
  background: rgba(255, 171, 146, 0.20);
}

.course-hero--bachelor-of-nursing-science .course-progress-strip i b {
  background: #f36f61;
}

.course-hero--bachelor-of-nursing-science .course-progress-meter {
  --size: 82px;
  background:
    radial-gradient(circle at center, #fff6ef 56%, transparent 57%),
    conic-gradient(#f36f61 calc(var(--progress) * 1%), rgba(243, 111, 97, 0.22) 0);
}

.course-hero--bachelor-of-nursing-science .course-progress-meter span {
  color: #3b1210;
  font-size: 22px;
}

.course-hero--bachelor-of-nursing-science .course-module-badge {
  top: 30px;
  right: 28px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(255,255,255,0.20);
  color: #ffffff;
  background: linear-gradient(180deg, #f36f61, #c8473d);
  box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 14px 26px rgba(61, 11, 11, 0.32);
  font-size: 18px;
}

.course-hero--bachelor-of-nursing-science .course-hero-media img {
  object-position: center center;
  filter: saturate(1.04) contrast(1.03);
}

.course-hero--bachelor-of-nursing-science .course-hero-media::after {
  background: linear-gradient(180deg, rgba(45, 8, 8, 0) 52%, rgba(45, 8, 8, 0.60) 100%);
}

.course-hero--bachelor-of-nursing-science .course-hero-mini-stats {
  right: 38px;
  bottom: 42px;
  width: min(840px, 42%);
  min-height: 108px;
  border-radius: 18px;
  overflow: hidden;
}

.course-hero--bachelor-of-nursing-science .course-hero-mini-stats > div {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 108px;
  padding: 20px 26px;
}

.course-hero--bachelor-of-nursing-science .course-hero-mini-stats > div + div {
  border-left-color: rgba(255, 171, 146, 0.22);
}

.course-hero--bachelor-of-nursing-science .course-hero-mini-stats > div:nth-child(2) span {
  color: #ffd5ca;
  background: rgba(198, 73, 61, 0.62);
}

.course-hero--diploma-in-nursing-extension,
.course-hero--diploma-in-midwifery,
.course-hero--bachelor-of-nursing-science {
  min-height: 360px;
  border-radius: 18px;
}

.course-hero--diploma-in-nursing-extension .course-hero-copy,
.course-hero--diploma-in-midwifery .course-hero-copy,
.course-hero--bachelor-of-nursing-science .course-hero-copy {
  max-width: 58%;
  padding: 28px 24px 28px 28px;
}

.course-hero--diploma-in-nursing-extension .course-hero-crumbs,
.course-hero--diploma-in-midwifery .course-hero-crumbs,
.course-hero--bachelor-of-nursing-science .course-hero-crumbs {
  font-size: 12px;
}

.course-hero--diploma-in-nursing-extension .course-hero-copy h2,
.course-hero--diploma-in-midwifery .course-hero-copy h2,
.course-hero--bachelor-of-nursing-science .course-hero-copy h2 {
  max-width: 650px;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: clamp(30px, 2.75vw, 44px);
  font-weight: 900;
  line-height: 1.04;
}

.course-hero--diploma-in-nursing-extension .course-hero-copy p,
.course-hero--diploma-in-midwifery .course-hero-copy p,
.course-hero--bachelor-of-nursing-science .course-hero-copy p {
  max-width: 650px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.42;
}

.course-hero--diploma-in-nursing-extension .course-hero-actions,
.course-hero--diploma-in-midwifery .course-hero-actions,
.course-hero--bachelor-of-nursing-science .course-hero-actions {
  gap: 12px;
  margin-top: 16px;
}

.course-hero--diploma-in-nursing-extension .course-hero-actions .primary-button,
.course-hero--diploma-in-nursing-extension .course-hero-actions .ghost-button,
.course-hero--diploma-in-midwifery .course-hero-actions .primary-button,
.course-hero--diploma-in-midwifery .course-hero-actions .ghost-button,
.course-hero--bachelor-of-nursing-science .course-hero-actions .primary-button,
.course-hero--bachelor-of-nursing-science .course-hero-actions .ghost-button {
  min-width: 154px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
}

.course-hero--diploma-in-nursing-extension .course-hero-points,
.course-hero--diploma-in-midwifery .course-hero-points,
.course-hero--bachelor-of-nursing-science .course-hero-points {
  max-width: none;
  gap: 10px;
  margin-top: 14px;
}

.course-hero--diploma-in-nursing-extension .course-hero-points > div,
.course-hero--diploma-in-midwifery .course-hero-points > div,
.course-hero--bachelor-of-nursing-science .course-hero-points > div {
  min-height: auto;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 8px;
  border-radius: 10px;
}

.course-hero--diploma-in-nursing-extension .course-hero-points svg,
.course-hero--diploma-in-midwifery .course-hero-points svg,
.course-hero--bachelor-of-nursing-science .course-hero-points svg {
  width: 19px;
  height: 19px;
  padding: 6px;
}

.course-hero--diploma-in-nursing-extension .course-hero-points strong,
.course-hero--diploma-in-midwifery .course-hero-points strong,
.course-hero--bachelor-of-nursing-science .course-hero-points strong {
  font-size: 12px;
  line-height: 1.2;
}

.course-hero--diploma-in-nursing-extension .course-hero-points span,
.course-hero--diploma-in-midwifery .course-hero-points span,
.course-hero--bachelor-of-nursing-science .course-hero-points span {
  font-size: 11.5px;
  line-height: 1.25;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip,
.course-hero--diploma-in-midwifery .course-progress-strip,
.course-hero--bachelor-of-nursing-science .course-progress-strip {
  position: static;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 48px minmax(0, 1fr) minmax(170px, 0.66fr);
  gap: 12px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 12px;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip > div:not(.course-progress-meter),
.course-hero--diploma-in-midwifery .course-progress-strip > div:not(.course-progress-meter),
.course-hero--bachelor-of-nursing-science .course-progress-strip > div:not(.course-progress-meter) {
  min-height: auto;
  grid-template-columns: 26px minmax(0, 1fr);
  padding-left: 10px;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip svg,
.course-hero--diploma-in-midwifery .course-progress-strip svg,
.course-hero--bachelor-of-nursing-science .course-progress-strip svg {
  width: 22px;
  height: 22px;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip i,
.course-hero--diploma-in-midwifery .course-progress-strip i,
.course-hero--bachelor-of-nursing-science .course-progress-strip i {
  height: 6px;
}

.course-hero--diploma-in-nursing-extension .course-progress-meter,
.course-hero--diploma-in-midwifery .course-progress-meter,
.course-hero--bachelor-of-nursing-science .course-progress-meter {
  --size: 44px;
}

.course-hero--diploma-in-nursing-extension .course-progress-meter span,
.course-hero--diploma-in-midwifery .course-progress-meter span,
.course-hero--bachelor-of-nursing-science .course-progress-meter span {
  font-size: 12px;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip strong,
.course-hero--diploma-in-midwifery .course-progress-strip strong,
.course-hero--bachelor-of-nursing-science .course-progress-strip strong {
  font-size: 13px;
  line-height: 1.2;
}

.course-hero--diploma-in-nursing-extension .course-progress-strip small,
.course-hero--diploma-in-midwifery .course-progress-strip small,
.course-hero--bachelor-of-nursing-science .course-progress-strip small {
  font-size: 12px;
  line-height: 1.35;
}

.course-hero--diploma-in-nursing-extension .course-module-badge,
.course-hero--diploma-in-midwifery .course-module-badge,
.course-hero--bachelor-of-nursing-science .course-module-badge {
  top: 16px;
  right: 16px;
  min-height: 32px;
  padding: 0 16px;
  font-size: 13px;
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats,
.course-hero--diploma-in-midwifery .course-hero-mini-stats,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats {
  right: 0;
  bottom: 0;
  width: 44%;
  min-height: auto;
  border-radius: 0 0 18px 0;
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats > div,
.course-hero--diploma-in-midwifery .course-hero-mini-stats > div,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats > div {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 56px;
  padding: 12px 14px;
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats span,
.course-hero--diploma-in-midwifery .course-hero-mini-stats span,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats span {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9px;
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats strong,
.course-hero--diploma-in-midwifery .course-hero-mini-stats strong,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats strong {
  font-size: 13px;
  line-height: 1.2;
}

.course-hero--diploma-in-nursing-extension .course-hero-mini-stats small,
.course-hero--diploma-in-midwifery .course-hero-mini-stats small,
.course-hero--bachelor-of-nursing-science .course-hero-mini-stats small {
  font-size: 12px;
  line-height: 1.35;
}

#programView .tabs {
  overflow-x: auto;
  align-items: stretch;
  gap: 0;
  margin-top: 22px;
  padding: 0 18px;
  border: 1px solid #d9e4ef;
  border-radius: 12px 12px 0 0;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 58, 112, 0.06);
}

#programView .tabs button {
  min-width: 145px;
  height: 58px;
  justify-content: center;
  padding: 0 14px;
  border-bottom-width: 3px;
  font-weight: 800;
}

.course-notes-panel .course-tab-intro span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.course-notes-panel {
  display: grid;
  gap: 18px;
}

.course-notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.course-notes-grid button {
  min-height: 150px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 18px;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  color: var(--navy);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 12px 24px rgba(7, 58, 112, 0.05);
  cursor: pointer;
}

.course-notes-grid button > span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.course-notes-grid strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}

.course-notes-grid small,
.course-notes-grid em {
  color: #607793;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.program-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.program-card:hover {
  border-color: #9dd5d8;
  box-shadow: 0 12px 30px rgba(0, 155, 159, 0.12);
  transform: translateY(-3px);
}

.program-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
}

.program-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 6px 6px 0 0;
}

.program-card-cover {
  width: calc(100% + 40px);
  margin: -18px -20px 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  flex-shrink: 0;
}

.program-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.program-card:hover .program-card-cover img {
  transform: scale(1.04);
}

.program-card-stats {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 8px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #f4f8fc;
}

.program-card-stats span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.program-card-stats b {
  display: block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.program-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--teal);
  background: #d8f5ed;
}

.program-icon.blue {
  color: var(--navy);
  background: #d9ebff;
}

.program-icon.green {
  color: var(--teal);
  background: #dff5e9;
}

.program-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke-width: 0;
}

.program-card h3 {
  min-height: 48px;
  font-size: 17px;
  line-height: 1.18;
}

.program-card p {
  margin: 8px 0 0;
  color: #435e7e;
  font-size: 12px;
}

.program-card button {
  width: 170px;
  margin-top: auto;
}

.site-footer {
  display: flex;
  flex-direction: column;
  color: var(--navy);
  background:
    radial-gradient(circle at 12% 18%, rgba(2, 155, 159, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, #ffffff 58%, #f5f9fd 100%);
}

.mega-footer {
  border-top: 6px solid var(--teal-dark);
}

/* ── Main grid ── */
.footer-main {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.8fr);
  gap: clamp(46px, 6vw, 86px);
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  padding: 84px 74px 72px;
}

.footer-brand img {
  width: 350px;
  max-width: 100%;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-brand-name {
  display: none;
}

.footer-brand p {
  max-width: 430px;
  margin: 28px 0 0;
  color: #31476b;
  font-size: 14px;
  line-height: 1.62;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.footer-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 9px 16px;
  border: 1px solid #d8e6f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 26px rgba(7, 58, 112, 0.05);
}

.footer-stat-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  align-items: center;
  flex-shrink: 0;
  color: #1f5a9b;
}

.footer-stat-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-stat-value {
  color: #0a3470;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.footer-stat-label {
  color: #506b88;
  font-size: 11px;
  font-weight: 700;
}

/* ── Nav group ── */
.footer-nav-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 76px);
  align-content: start;
  padding-top: 10px;
}

.footer-col h3,
.site-footer h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  color: #073a70;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 0;
}

.footer-col h3::before,
.site-footer h3::before {
  content: "";
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  background: var(--teal-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5.5A3.5 3.5 0 0 1 7.5 2H20v16H8.5A2.5 2.5 0 0 0 6 20.5V6.5A1 1 0 0 0 5 5.5zm4 0V15h10V4H7.5A1.5 1.5 0 0 0 6 5.5zM6 20.5A2.5 2.5 0 0 1 8.5 18H20v2H8.5a.5.5 0 0 0 0 1H20v2H8.5A2.5 2.5 0 0 1 6 20.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5.5A3.5 3.5 0 0 1 7.5 2H20v16H8.5A2.5 2.5 0 0 0 6 20.5V6.5A1 1 0 0 0 5 5.5zm4 0V15h10V4H7.5A1.5 1.5 0 0 0 6 5.5zM6 20.5A2.5 2.5 0 0 1 8.5 18H20v2H8.5a.5.5 0 0 0 0 1H20v2H8.5A2.5 2.5 0 0 1 6 20.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-col h3::after,
.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
}

.footer-start-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #0c2f68, #0a3f82);
  box-shadow: 0 16px 34px rgba(7, 58, 112, 0.18);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.footer-start-button:hover {
  background: linear-gradient(135deg, #09275a, #07518f);
  transform: translateY(-1px);
}

.footer-col a,
.site-footer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border-bottom: 1px solid #dbe6f0;
  color: #243e65;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.12s ease, padding-left 0.14s ease, border-color 0.14s ease;
}

.footer-col a::before {
  display: none;
}

.footer-col a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid #6e809b;
  border-right: 2px solid #6e809b;
  transform: rotate(45deg);
  line-height: 1;
  flex-shrink: 0;
}

.footer-col a:hover,
.site-footer a:hover {
  color: var(--teal-dark);
  border-color: #badde2;
  padding-left: 6px;
  text-decoration: none;
}

.footer-col a:hover::after {
  color: var(--teal);
  border-color: var(--teal-dark);
}

/* ── Bottom bar ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 74px;
  border-top: 1px solid #d8e3ed;
  background: rgba(247, 251, 255, 0.88);
}

.footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eefafa;
  border: 1px solid #d2ecee;
  color: var(--teal-dark);
}

.footer-bottom-brand p {
  color: #243e65;
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom-brand small {
  color: #74839a;
  font-size: 12px;
}

.footer-bottom nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.footer-bottom nav a {
  margin: 0;
  width: auto;
  min-height: auto;
  border: 0;
  color: #073a70;
  font-size: 13px;
  font-weight: 700;
}

.footer-bottom nav a:hover {
  color: var(--teal-dark);
  padding-left: 0;
}

.footer-bottom nav a::after {
  display: none;
}

.footer-sep {
  width: 1px;
  height: 24px;
  overflow: hidden;
  color: transparent;
  background: #c7d4e2;
  user-select: none;
}

.lesson-layout.is-visible {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 215px;
  grid-template-rows: 38px auto;
  min-height: calc(100vh - 76px);
}

.lesson-layout .blue-bar {
  grid-column: 1 / -1;
}

.lesson-layout .crumbs {
  padding: 0 48px;
}

.lesson-sidebar {
  padding: 24px 20px 30px;
  border-right: 1px solid var(--soft-line);
  background: var(--white);
}

.mini-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.mini-card {
  padding: 16px;
}

.mini-card strong,
.side-card h3 {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.mini-card span,
.side-card span,
.side-card p {
  display: block;
  margin-top: 8px;
  color: #4e6683;
  font-size: 12px;
}

.progress {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 9px;
  background: #d9e1ea;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.lesson-sidebar h2 {
  margin: 22px 0 18px;
  font-size: 17px;
  line-height: 1.22;
}

.lesson-nav {
  display: grid;
  gap: 0;
}

.lesson-nav h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px 0 10px;
  border-top: 1px solid var(--soft-line);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
}

.lesson-nav h3::before {
  width: 8px;
  height: 16px;
  margin-right: 8px;
  content: "";
  background: var(--teal);
}

.lesson-nav h3 {
  justify-content: flex-start;
}

.lesson-nav h3 span {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
  transform: rotate(45deg);
}

.lesson-nav a {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 26px;
  border-radius: 6px;
  color: #43617f;
  font-size: 12px;
}

.lesson-nav a::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  content: "";
  border: 1px solid #9eb6cc;
  border-radius: 50%;
  background: var(--white);
}

.lesson-nav a.done::before {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--teal);
}

.lesson-nav a.current {
  color: var(--teal-dark);
  background: #e6f7f8;
  font-weight: 700;
}

.lesson-nav a.current::before {
  border-color: var(--teal);
  background: var(--teal);
}

.wide-back {
  width: 100%;
  margin-top: 28px;
}

.wide-back::before {
  content: "←";
  font-size: 15px;
}

.lesson-article {
  padding: 34px 58px 48px;
  background:
    linear-gradient(180deg, rgba(238, 248, 251, 0.72), rgba(255, 255, 255, 0) 260px),
    var(--white);
}

.lesson-top,
.lesson-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 14px;
  border-radius: 99px;
  color: var(--white);
  background: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.small-button {
  min-height: 34px;
  padding: 0 18px;
}

.lesson-article h1 {
  margin-top: 33px;
  font-size: 34px;
  line-height: 1.12;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: #526984;
  font-size: 12px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-row svg {
  width: 17px;
  height: 17px;
  color: var(--navy);
}

.lesson-article section {
  margin-top: 34px;
}

.lesson-article h2 {
  color: var(--teal);
  font-size: 22px;
  line-height: 1.2;
}

.lesson-article p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #24496f;
  font-size: 15px;
  line-height: 1.72;
}

/* ── Lesson loading skeleton ─────────────────────────────────── */
@keyframes skel-sweep {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}
@keyframes lesson-content-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lesson-skeleton {
  max-width: 860px;
  padding: 6px 0 40px;
}

.skel-line {
  border-radius: 6px;
  background: linear-gradient(90deg, #eef3f8 25%, #dbe8f2 50%, #eef3f8 75%);
  background-size: 500px 100%;
  animation: skel-sweep 1.5s ease-in-out infinite;
}

.skel-pill-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.skel-pill {
  height: 22px;
  width: 148px;
  border-radius: 99px;
}

.skel-title {
  height: 33px;
  border-radius: 8px;
  margin-bottom: 11px;
}

.skel-meta-row {
  display: flex;
  gap: 22px;
  margin: 26px 0 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--soft-line, #eaeef3);
}

.skel-meta-row .skel-line {
  height: 14px;
  flex-shrink: 0;
}

.skel-section {
  margin-top: 34px;
}

.skel-h2 {
  height: 20px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.skel-p {
  height: 13px;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Content entrance — fires every time new .lesson-source-content is inserted */
.lesson-source-content {
  max-width: 900px;
  animation: lesson-content-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lesson-key-list li {
  padding-left: 4px;
}

.lesson-key-list li::marker {
  color: var(--teal);
  font-size: 18px;
}

.lesson-hero-image {
  position: relative;
  max-width: 860px;
  margin: 26px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef6f8;
  box-shadow: 0 20px 48px rgba(10, 49, 95, 0.13);
}

.lesson-hero-image img {
  width: 100%;
  max-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.lesson-hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 20px 14px;
  background: linear-gradient(0deg, rgba(5, 32, 62, 0.72) 0%, transparent 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
}

.lesson-hero-image figcaption::before {
  content: "📷 ";
  font-style: normal;
  opacity: 0.7;
}

.lesson-source-gallery {
  max-width: 900px;
  margin: 26px 0 30px;
  padding: 18px;
  border: 1px solid #cfe3ef;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fcff, #ffffff);
  box-shadow: 0 16px 36px rgba(10, 49, 95, 0.08);
}

.lesson-source-gallery figcaption {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.lesson-source-gallery div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lesson-source-gallery img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #ffffff;
}

.lesson-overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid #b8dfe6;
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 248, 251, 0.95), rgba(255, 255, 255, 0.99)),
    var(--white);
  box-shadow: 0 14px 34px rgba(10, 49, 95, 0.07);
  margin-bottom: 6px;
}

.lesson-overview-panel span,
.lesson-section-kicker {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-overview-panel h2 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 24px;
}

.lesson-overview-panel p {
  margin-top: 8px;
  color: #385a78;
  line-height: 1.55;
}

.lesson-overview-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.lesson-overview-panel dl div {
  padding: 10px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: var(--white);
}

.lesson-overview-panel dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-overview-panel dd {
  margin: 3px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.lesson-toc-panel {
  max-width: 900px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid #cfe3ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 58, 112, 0.04), rgba(0, 151, 153, 0.07)),
    #ffffff;
  box-shadow: 0 10px 28px rgba(10, 49, 95, 0.055);
}

.lesson-toc-panel span:first-child {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-toc-panel h2 {
  margin-top: 6px;
  color: var(--navy);
  font-size: 22px;
}

.lesson-toc-panel p {
  margin-top: 8px;
  color: #496481;
  font-size: 14px;
  line-height: 1.55;
}

.lesson-toc-panel ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-toc-panel a {
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 212, 228, 0.9);
  border-radius: 8px;
  color: #183b65;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lesson-toc-panel a:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(10, 49, 95, 0.08);
  transform: translateY(-1px);
}

.lesson-toc-panel b {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  font-size: 12px;
}

.lesson-toc-panel a span {
  min-width: 0;
}

.lesson-outcomes,
.lesson-note-section {
  max-width: 900px;
  padding: 24px 28px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(10, 49, 95, 0.045);
}

.lesson-outcomes {
  border-left: 5px solid var(--navy);
}

.lesson-outcomes h2,
.lesson-note-section h2 {
  margin: 10px 0 10px;
  font-size: 19px;
  line-height: 1.28;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 159, 166, 0.18);
}

.lesson-note-section h3 {
  margin: 18px 0 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #3d5f7d;
  line-height: 1.4;
}

.lesson-outcomes ul,
.lesson-key-list {
  margin: 14px 0 0;
  padding-left: 19px;
  color: #24496f;
  font-size: 15px;
  line-height: 1.65;
}

.lesson-outcomes li + li,
.lesson-key-list li + li {
  margin-top: 7px;
}

/* Numbered procedure step lists — teal step circles */
ol.lesson-key-list {
  padding-left: 0;
  list-style: none;
  counter-reset: lesson-step;
}

ol.lesson-key-list li {
  counter-increment: lesson-step;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-left: 0;
}

ol.lesson-key-list li::before {
  content: counter(lesson-step);
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Lesson note tables ──────────────────────────────────────── */
.lesson-table-wrap {
  margin: 16px 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--soft-line, #d4e4ef);
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 360px;
  background: #fff;
}

.lesson-table th,
.lesson-table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--soft-line, #d4e4ef);
  line-height: 1.55;
  vertical-align: top;
}

.lesson-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #edf4fb;
  color: #1a3a5c;
  white-space: nowrap;
}

.lesson-table tbody tr:last-child td {
  border-bottom: none;
}

.lesson-table tbody tr:nth-child(even) td {
  background: #f7fbfd;
}

.lesson-table-caption {
  font-size: 13px;
  font-weight: 600;
  color: #4a6380;
  margin: 0 0 4px;
}

/* ── Lesson note sections ──────────────────────────────────────── */
.lesson-note-section {
  position: relative;
  border-left: 4px solid var(--teal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lesson-note-section:hover {
  border-left-color: var(--teal-dark);
  box-shadow: 0 12px 32px rgba(10, 49, 95, 0.08);
}

.lesson-note-section:nth-child(even) {
  background: linear-gradient(135deg, #fafcff, var(--white));
}

.lesson-heading-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.lesson-note-section:nth-child(even) .lesson-heading-number {
  background: var(--teal-dark, #087f83);
}

.lesson-heading-level-3 {
  border-left-style: double;
}

.lesson-note-section p {
  max-width: 820px;
  margin: 12px 0 0;
  color: #1e3f62;
  font-size: 15px;
  line-height: 1.82;
}

.lesson-note-section p:first-of-type {
  margin-top: 14px;
}

.lesson-note-section + .lesson-note-section {
  margin-top: 24px;
}

/* Mark-as-complete row — sits between notes and prev/next nav */
.lesson-complete-row {
  max-width: 900px;
  margin-top: 28px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  justify-content: flex-end;
}

.lesson-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 7px;
}

.lesson-complete-btn[data-done="true"] {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* Back-to-top floating button */
.lesson-back-top {
  position: fixed;
  bottom: 72px;
  right: 16px;
  z-index: 120;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 159, 166, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lesson-back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lesson-back-top:hover {
  background: var(--teal-dark, #087f83);
}

.lesson-back-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Inline auto-links to related lessons */
.lesson-inline-link {
  color: var(--teal-dark, #087f83);
  text-decoration: underline;
  text-decoration-color: rgba(0, 159, 166, 0.4);
  text-underline-offset: 2px;
  font-weight: 600;
}

.lesson-inline-link:hover {
  color: var(--teal, #009fa6);
  text-decoration-color: var(--teal, #009fa6);
}

/* Related lessons section */
.lesson-related {
  max-width: 900px;
  margin-top: 28px;
  padding: 18px 20px;
  background: #f7fbfd;
  border: 1px solid #d0e8ef;
  border-top: 3px solid var(--teal);
  border-radius: 8px;
}

.lesson-related h3 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-dark, #087f83);
}

.lesson-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.lesson-related-card {
  display: block;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid #d0e5ef;
  border-radius: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, color .15s;
}

.lesson-related-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(0, 159, 166, 0.12);
  color: var(--teal-dark, #087f83);
}

@media (max-width: 540px) {
  .lesson-related-grid {
    grid-template-columns: 1fr;
  }
}

.lesson-keyword {
  padding: 0 4px;
  border-radius: 4px;
  color: #06356a;
  background: #dff7f6;
  font-weight: 900;
}

.lesson-note-section strong,
.lesson-key-list strong {
  color: #062f64;
  font-weight: 900;
}

.lesson-key-term {
  color: #0a7a82;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(0, 159, 166, 0.38);
  padding-bottom: 1px;
  cursor: default;
}

.lesson-source-content section {
  margin-top: 24px;
}

.lesson-source-content .plain-list {
  margin-top: 10px;
}

.blank-lesson {
  min-height: 220px;
}

.lesson-study-actions {
  max-width: 860px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #b9dce7;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: linear-gradient(135deg, #f2fbfb, #ffffff);
  box-shadow: 0 12px 30px rgba(10, 49, 95, 0.07);
}

.lesson-study-actions span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-study-actions h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 22px;
}

.lesson-study-actions p {
  max-width: 620px;
  margin-top: 8px;
  line-height: 1.45;
}

.lesson-premium-nav {
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.lesson-premium-nav button {
  min-height: 88px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  padding: 15px 18px;
  text-align: left;
}

.lesson-premium-nav small {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.74;
}

.lesson-premium-nav span {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.quiz-banks-content {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
}

.quiz-banks-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 28px;
  align-items: end;
  min-height: 250px;
  padding: 34px 38px;
  border: 1px solid rgba(16, 132, 141, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 22%, rgba(11, 167, 173, 0.18), transparent 31%),
    linear-gradient(135deg, #06183a 0%, #0b3566 55%, #eef9fb 100%);
  color: var(--white);
  box-shadow: 0 20px 46px rgba(10, 49, 95, 0.16);
}

.quiz-banks-hero .topic-pill {
  color: #bdf7f6;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.quiz-banks-hero h1 {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--white);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
}

.quiz-banks-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.58;
}

.quiz-banks-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.quiz-banks-hero-stats span {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.quiz-banks-hero-stats span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.quiz-banks-hero-stats strong {
  color: var(--white);
  font-size: 26px;
  line-height: 1;
}

.quiz-bank-grid {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.quiz-bank-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  min-height: 258px;
  overflow: hidden;
  border: 1px solid #d7e7f0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(10, 49, 95, 0.08);
}

.quiz-bank-card-main {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-content: center;
  padding: 34px 38px;
}

.quiz-bank-index {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #e7f8f8;
  font-size: 18px;
  font-weight: 900;
}

.quiz-bank-card h2 {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.quiz-bank-card p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #314c68;
  font-size: 16px;
  line-height: 1.65;
}

.quiz-bank-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quiz-bank-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  color: #086b71;
  background: #ecfafa;
  font-size: 13px;
  font-weight: 900;
}

.quiz-bank-action {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 32px;
  background:
    linear-gradient(155deg, rgba(6, 24, 58, 0.94), rgba(5, 52, 93, 0.96)),
    var(--navy);
}

.quiz-bank-action .primary-button,
.quiz-bank-action .ghost-button {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  border-radius: 8px;
  font-size: 15px;
}

.quiz-bank-action .ghost-button {
  border-color: rgba(10, 202, 211, 0.72);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.quiz-bank-action svg {
  width: 25px;
  height: 25px;
  stroke-width: 2;
}

.quiz-code-lock-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  border: 1px solid #cfe2ee;
  border-left: 5px solid var(--navy);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcff, #ffffff);
  box-shadow: 0 16px 36px rgba(10, 49, 95, 0.08);
}

.quiz-code-lock-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
}

.quiz-code-lock-icon svg {
  width: 26px;
  height: 26px;
}

.quiz-code-lock-card h2 {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: 28px;
}

.quiz-code-lock-card p {
  max-width: 680px;
  margin-top: 8px;
  color: #46617e;
  line-height: 1.55;
}

.quiz-code-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 6px;
}

.quiz-code-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.quiz-code-form input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #d5e3ee;
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-code-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 151, 153, 0.1);
}

.quiz-code-message {
  grid-column: 1 / -1;
  margin: 0;
  color: #54708d;
  font-size: 13px;
  font-weight: 700;
}

.quiz-code-message.is-error {
  color: #b42318;
}

.quiz-content {
  max-width: 1480px;
  margin: 0 auto;
  padding-top: 34px;
}

.quiz-page-shell {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 760px) minmax(150px, 190px);
  align-items: start;
  justify-content: center;
  gap: 22px;
}

.quiz-main-column {
  min-width: 0;
}

.quiz-ad-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.quiz-ad-rail .ad-slot {
  width: 100%;
  margin: 0;
}

.quiz-ad-rail .ad-slot-placeholder {
  min-height: 300px;
}

.quiz-ad-mobile {
  display: none;
}

.quiz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 32px 36px;
  border: 1px solid #b8dfe6;
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(228, 247, 250, 0.98), rgba(255, 255, 255, 0.99)),
    var(--white);
  box-shadow: 0 14px 40px rgba(10, 49, 95, 0.08);
}

.quiz-hero > div:first-child {
  min-width: 0;
}

.quiz-hero > button {
  grid-column: 2;
  grid-row: 1;
}

.quiz-hero h1 {
  margin: 14px 0 0;
  font-size: 36px;
  line-height: 1.06;
}

.quiz-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #375a7b;
  font-size: 15px;
  line-height: 1.6;
}

.quiz-hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  overflow: hidden;
  width: 100%;
  border: 1px solid #cce6ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.quiz-hero-stats span {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 9px 8px;
  color: #4a6680;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.quiz-hero-stats span + span {
  border-left: 1px solid #dbeaf2;
}

.quiz-hero-stats strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.quiz-objectives {
  margin-top: 10px;
  padding: 24px 28px;
  border: 1px solid var(--soft-line);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  background: #f8fafc;
}

.quiz-objectives h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 20px;
}

#quizObjectives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quiz-objective {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #d8e8f2;
  border-radius: 7px;
  background: var(--white);
  color: #1e3f62;
  font-size: 14px;
  line-height: 1.55;
}

.quiz-objective svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz-question-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.quiz-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 -4px;
  padding: 14px 18px;
  border: 1px solid #d7e7f0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5fbfd, #ffffff);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(10, 49, 95, 0.05);
}

.quiz-section-divider span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-section-divider strong {
  font-size: 16px;
}

.quiz-section-divider em {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.quiz-question-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid #d7e7f0;
  border-left: 4px solid #c9edf0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 253, 255, 0.86), rgba(255, 255, 255, 0.98)),
    var(--white);
  box-shadow: 0 4px 16px rgba(10, 49, 95, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.quiz-question-card:has(button.is-selected),
.quiz-question-card.is-answered {
  border-left-color: var(--navy);
  box-shadow: 0 14px 34px rgba(10, 49, 95, 0.1);
}

.quiz-question-card.is-correct {
  border-left-color: #0e8d6d;
}

.quiz-question-card.is-wrong {
  border-left-color: #c54040;
}

.quiz-needs-content {
  border-left-color: #d7922a;
  background: linear-gradient(135deg, #fff8ed, #ffffff);
}

.quiz-needs-content .quiz-q-badge {
  background: #d7922a;
}

.quiz-needs-content p {
  margin: 0;
  color: #3c5d78;
  font-size: 14px;
  line-height: 1.65;
}

.quiz-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quiz-question-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-q-num {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-q-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 30px;
}

.quiz-question-card:has(button.is-selected) .quiz-q-badge {
  background: var(--navy);
}

.quiz-q-num > span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quiz-q-of {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.quiz-course-tag {
  padding: 4px 10px;
  border-radius: 99px;
  background: #eef6fb;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-answer-state {
  padding: 4px 10px;
  border: 1px solid #d7e7f0;
  border-radius: 99px;
  background: #ffffff;
  color: #5e7690;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-answer-state.is-answered {
  border-color: rgba(10, 155, 159, 0.38);
  background: #e9fbfa;
  color: var(--teal-dark);
}

.quiz-type-tag,
.quiz-difficulty-tag {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-type-tag {
  background: #e6fbf6;
  color: #08745e;
}

.quiz-difficulty-tag {
  background: #fff6e6;
  color: #8a5700;
}

.quiz-question-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.4;
}

.quiz-option-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.quiz-true-false-grid {
  grid-template-columns: minmax(0, 1fr);
}

.quiz-true-false-card {
  border-left-color: var(--navy);
}

.quiz-true-false-card .quiz-q-badge {
  background: var(--navy);
}

.quiz-question-card button {
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1.5px solid #c7d9e9;
  border-radius: 8px;
  color: #173a63;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.14s ease;
}

.quiz-question-card button:hover:not(:disabled) {
  border-color: var(--teal);
  background: linear-gradient(135deg, #f0fbfb 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(0, 155, 159, 0.13);
}

.quiz-question-card button:hover:not(:disabled) b {
  background: rgba(2, 155, 159, 0.12);
  color: var(--teal-dark);
  transform: scale(1.08);
}

.quiz-question-card button b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #0b2a5b;
  background: #e8f1fa;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 28px;
  box-shadow: inset 0 1px 0 #ffffff;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.quiz-question-card button span {
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.quiz-question-card button.is-selected {
  border-color: #08777b;
  color: #ffffff;
  background: linear-gradient(135deg, #15979a 0%, #08777b 100%);
  box-shadow:
    0 0 0 3px rgba(15, 146, 146, 0.22),
    0 6px 18px rgba(8, 119, 123, 0.2);
}

.quiz-question-card button.is-selected b {
  color: #08777b;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 8px rgba(4, 67, 70, 0.18);
  transform: scale(1.05);
}

.quiz-question-card button.is-correct {
  border-color: #6ecaaa;
  background: linear-gradient(135deg, #e8faf3, #f4fdf8);
  color: #086648;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(14, 141, 109, 0.15);
}

.quiz-question-card button.is-correct b {
  color: var(--white);
  background: #0e8d6d;
}

.quiz-question-card button.is-wrong {
  border-color: #e8a0a0;
  background: linear-gradient(135deg, #fff0f0, #fff8f8);
  color: #8b1a1a;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(197, 64, 64, 0.12);
}

.quiz-question-card button.is-wrong b {
  color: var(--white);
  background: #c54040;
}

.quiz-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quiz-meta-row span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f6fb;
  color: #42627e;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.quiz-review {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: #f8fbff;
}

.quiz-review.is-correct {
  border-color: #7ecfb3;
  border-left: 4px solid #0e8d6d;
  background: linear-gradient(135deg, #edfaf4, #f8fdfb);
}

.quiz-review.is-wrong {
  border-color: #e8a8a8;
  border-left: 4px solid #c54040;
  background: linear-gradient(135deg, #fff2f2, #fffafa);
}

.quiz-review-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.quiz-review-head svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: #0e8d6d;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz-review.is-wrong .quiz-review-head svg {
  stroke: #c54040;
}

.quiz-review strong {
  color: var(--navy);
  font-size: 13px;
}

.quiz-review strong span {
  color: var(--teal-dark);
}

.quiz-review p {
  margin: 0;
  color: #2c4f6e;
  font-size: 13px;
  line-height: 1.65;
}

.quiz-controls {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -16px 36px rgba(10, 49, 95, 0.1);
  backdrop-filter: blur(12px);
}

.quiz-score {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}

.quiz-progress-text {
  display: block;
}

.quiz-progress-bar {
  height: 5px;
  border-radius: 99px;
  background: #d8e6f0;
  overflow: hidden;
}

.quiz-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.3s ease;
}

.quiz-score-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 900;
}

.quiz-score-result strong {
  font-size: 18px;
}

.quiz-score-result em {
  font-style: normal;
  font-size: 14px;
  opacity: 0.9;
}

.quiz-score-excellent {
  background: linear-gradient(135deg, #d4f5e9, #e8fdf5);
  color: #0a6e50;
  border: 1px solid #6ecaaa;
}

.quiz-score-good {
  background: linear-gradient(135deg, #deeeff, #eef6ff);
  color: #1a4d84;
  border: 1px solid #8ab8e8;
}

.quiz-score-retry {
  background: linear-gradient(135deg, #fff0e8, #fff8f4);
  color: #8b3a10;
  border: 1px solid #e8a070;
}

.quiz-score-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.quiz-score-breakdown {
  display: block;
  color: #244c70;
  font-size: 12px;
  font-weight: 800;
}

.quiz-controls > div:last-child {
  display: flex;
  gap: 10px;
}

@media (max-width: 1280px) {
  .quiz-page-shell {
    grid-template-columns: minmax(128px, 160px) minmax(0, 740px) minmax(128px, 160px);
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .quiz-banks-hero,
  .quiz-bank-card {
    grid-template-columns: 1fr;
  }

  .quiz-bank-action {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-content {
    max-width: 860px;
  }

  .quiz-page-shell {
    display: block;
  }

  .quiz-main-column {
    max-width: 760px;
    margin: 0 auto;
  }

  .quiz-ad-rail {
    display: none;
  }

  .quiz-ad-mobile {
    display: grid;
    margin: 0 0 18px;
  }
}

.callout {
  max-width: 720px;
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding: 26px 28px;
  border-radius: 7px;
}

.callout > span {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
}

.callout svg {
  width: 34px;
  height: 34px;
}

.callout h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
}

.callout.key {
  border: 1px solid #a8dfb0;
  background: #f2fff3;
}

.callout.key > span {
  background: var(--teal);
}

.callout.remember {
  align-items: center;
  border: 1px solid #bcd5eb;
  background: #f6fbff;
}

.callout.remember > span {
  background: var(--navy);
}

.callout ul,
.plain-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #24496f;
  font-size: 13px;
  line-height: 1.75;
}

.callout p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.plain-list {
  max-width: 620px;
  margin-top: 14px;
}

.lesson-bottom {
  max-width: 720px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lesson-bottom .primary-button {
  margin-right: auto;
}

.outline-accent {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.lesson-tools {
  padding: 20px 14px 30px;
  border-left: 1px solid var(--soft-line);
  background: var(--white);
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* ── Dynamic lesson Table of Contents (.ltoc-*) ─────────── */
.lesson-toc-sidebar {
  margin-bottom: 14px;
  border: 1.5px solid #d0dff0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(11, 42, 91, 0.07);
}

.ltoc-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0b2a5b 0%, #1a4480 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ltoc-hd svg { color: #4fd1b8; flex-shrink: 0; }
.ltoc-hd span { flex: 1; }

.ltoc-hd em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 99px;
}

.ltoc-nav {
  padding: 4px 0;
}

.ltoc-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 12px 7px 0;
  color: #2d4a6a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  border-left: 3px solid transparent;
  transition: background 0.13s ease, color 0.13s ease, border-color 0.13s ease;
  cursor: pointer;
}

.ltoc-item:hover {
  color: #0a7a7a;
  background: #f4fbfa;
}

.ltoc-item.is-active {
  color: #0a7a7a;
  font-weight: 700;
  border-left-color: var(--teal);
  background: linear-gradient(90deg, rgba(42, 157, 138, 0.07), transparent 80%);
}

.ltoc-bar {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ltoc-bar::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8dce8;
  transition: background 0.13s ease, transform 0.13s ease;
}

.ltoc-item.is-active .ltoc-bar::before {
  background: var(--teal);
  transform: scale(1.3);
}

.ltoc-item:hover .ltoc-bar::before { background: #6bc8c0; }

.ltoc-label { flex: 1; min-width: 0; }

.ltoc-l3 {
  font-size: 11.5px;
  color: #4a6a8a;
}

.ltoc-l3 .ltoc-bar { width: 30px; }

.ltoc-l3 .ltoc-bar::before {
  width: 4px;
  height: 4px;
  background: #d0dce8;
}

/* Legacy side-card (kept for other non-lesson uses) */
.side-card {
  margin-bottom: 22px;
  padding: 18px 16px;
}

.side-card a {
  display: block;
  margin: 0 -16px;
  padding: 10px 16px;
  color: #385a78;
  font-size: 12px;
}

.side-card a.active {
  border-left: 3px solid var(--teal);
  color: var(--teal-dark);
  background: #e8f7f7;
  font-weight: 700;
}

.side-card button {
  width: 100%;
  justify-content: flex-start;
  margin-top: 8px;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 0;
  color: #315a7e;
  background: transparent;
  font-size: 11px;
}

@media (max-width: 1120px) {
  .admin-dashboard-grid { grid-template-columns: repeat(2, 1fr); }

  /* Sidebar, topbar, and content margins now handled by the
     dedicated @media (max-width: 860px) admin-mobile block */

  .maintenance-card {
    grid-column: span 2;
  }

  .site-announcement {
    display: none;
  }

  .top-header {
    height: 76px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 14px;
    position: relative;
    top: auto;
    z-index: 70;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(201, 214, 229, 0.72);
    box-shadow: 0 10px 26px rgba(7, 58, 112, 0.1), 0 1px 0 rgba(255,255,255,0.9) inset;
    backdrop-filter: blur(18px);
  }

  .brand {
    width: min(50vw, 188px);
    height: 50px;
    flex: 0 1 min(50vw, 188px);
    max-width: 188px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .brand img {
    width: 100%;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
  }

  .top-header > .icon-button,
  .nav-hamburger {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(190, 205, 223, 0.82);
    border-radius: 12px;
    color: #03045e;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 7px 18px rgba(7, 58, 112, 0.1), inset 0 1px 0 rgba(255,255,255,0.95);
  }

  .top-header > .icon-button {
    margin-left: auto;
  }

  .top-header > .icon-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.25;
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    margin-left: 0;
  }

  .nav-hamburger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: none;
    transition: transform 0.24s cubic-bezier(0.4,0,0.2,1), opacity 0.18s ease;
  }

  .top-header.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .top-header.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .top-header.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .top-header > .icon-button:hover,
  .nav-hamburger:hover {
    color: #0077b6;
    background: #ffffff;
    border-color: rgba(0, 180, 216, 0.42);
  }

  .top-header.nav-open .nav-hamburger {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(135deg, #03045e, #0077b6);
    box-shadow: 0 10px 22px rgba(7, 58, 112, 0.2);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .floating-whatsapp-support-removed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }

  body.mobile-nav-open .cookie-banner {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - 76px);
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background:
      radial-gradient(circle at 88% 8%, rgba(0, 180, 216, 0.13), transparent 30%),
      radial-gradient(circle at 4% 0%, rgba(8, 47, 93, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,0.985), rgba(244,250,252,0.985));
    border: 0;
    border-top: 1px solid rgba(170, 198, 220, 0.58);
    border-radius: 0;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.92) inset, 0 -18px 44px rgba(7, 58, 112, 0.12);
    padding: 14px clamp(16px, 5vw, 28px) 28px;
    z-index: 69;
    gap: 10px;
    backdrop-filter: blur(20px);
  }

  /* Slide open when nav-open */
  .top-header.nav-open .main-nav {
    display: flex;
    animation: mobileMenuReveal 180ms ease-out both;
  }

  @keyframes mobileMenuReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Stagger entrance for each nav link */
  .main-nav a:nth-child(1) { animation-delay: 30ms; }
  .main-nav a:nth-child(2) { animation-delay: 60ms; }
  .main-nav a:nth-child(3) { animation-delay: 90ms; }
  .main-nav a:nth-child(4) { animation-delay: 120ms; }
  .main-nav a:nth-child(5) { animation-delay: 150ms; }
  .main-nav a:nth-child(6) { animation-delay: 180ms; }

  @keyframes mobNavItem {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .top-header.nav-open .main-nav a {
    animation: mobNavItem 200ms ease-out both;
  }

  .main-nav a,
  .nav-account-btn {
    min-height: 50px;
    height: auto;
    padding: 0 16px 0 18px;
    white-space: normal;
    width: 100%;
    justify-content: space-between;
    border: 1px solid rgba(202, 219, 232, 0.55);
    border-radius: 12px;
    color: #0b2f61;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,253,255,0.88));
    box-shadow: 0 2px 8px rgba(7, 58, 112, 0.05), inset 0 1px 0 rgba(255,255,255,0.98);
    font-size: 15px;
    font-weight: 700;
    touch-action: manipulation;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, color 140ms ease;
  }

  .main-nav a::after {
    content: "›";
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #8aa0b8;
    background: rgba(242, 247, 251, 0.88);
    font-size: 24px;
    line-height: 1;
    opacity: 1;
    transform: none;
    transition: background 140ms ease, color 140ms ease;
  }

  .main-nav a.is-active {
    color: #03045e;
    border-color: rgba(0, 119, 182, 0.32);
    background: linear-gradient(135deg, rgba(202, 240, 248, 0.48), rgba(255,255,255,0.94));
    box-shadow: inset 4px 0 0 #00b4d8, 0 4px 16px rgba(7, 58, 112, 0.08);
  }

  .main-nav a.is-active::after {
    color: #0077b6;
    background: rgba(0, 180, 216, 0.1);
  }

  .main-nav a:hover:not(.is-active) {
    color: #03045e;
    background: #ffffff;
    border-color: rgba(0, 119, 182, 0.28);
    box-shadow: 0 4px 18px rgba(7, 58, 112, 0.1);
    transform: translateX(3px);
  }

  .main-nav a:hover::after {
    color: #0077b6;
    background: rgba(0, 180, 216, 0.08);
  }

  .nav-dropdown {
    width: 100%;
    height: auto;
  }

  .nav-drop-toggle {
    min-height: 50px;
    height: auto;
    width: 100%;
    justify-content: space-between;
    padding: 0 16px 0 18px;
    border: 1px solid rgba(202, 219, 232, 0.55);
    border-radius: 11px;
    color: #101827;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,253,255,0.88));
    box-shadow: 0 2px 8px rgba(7, 58, 112, 0.05), inset 0 1px 0 rgba(255,255,255,0.98);
    font-size: 14px;
    font-weight: 800;
  }

  .top-header.is-scrolled .nav-drop-toggle {
    height: auto;
  }

  .nav-dropdown[open] .nav-drop-toggle,
  .nav-dropdown:hover .nav-drop-toggle {
    color: #03045e;
    border-color: rgba(0, 119, 182, 0.32);
    background: linear-gradient(135deg, rgba(202, 240, 248, 0.48), rgba(255,255,255,0.94));
    box-shadow: inset 4px 0 0 #00b4d8, 0 4px 16px rgba(7, 58, 112, 0.08);
  }

  .nav-submenu {
    position: static;
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: rgba(255, 255, 255, 0.72);
  }

  .main-nav .nav-submenu a {
    min-height: 46px;
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    animation: none;
  }

  .main-nav .nav-submenu a::after {
    content: none;
  }

  /* Tap-safe active state on mobile links */
  .main-nav a:active,
  .nav-account-btn:active {
    background: #eaf8fb;
    transform: translateX(0);
  }

  /* ── Mobile nav header label ───────── */
  .mob-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 14px;
    border-bottom: 1px solid rgba(170, 198, 220, 0.4);
    margin-bottom: 4px;
  }

  .mob-nav-header span {
    color: #4a6882;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mob-nav-header em {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(2, 155, 159, 0.1);
    color: var(--teal-dark);
    font-size: 10px;
    font-weight: 900;
  }

  /* ── Mobile nav footer ─────────────── */
  .mob-nav-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(170, 198, 220, 0.4);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mob-nav-wa {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(37, 211, 102, 0.38);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.04));
    color: #1a7d3a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .mob-nav-wa:hover,
  .mob-nav-wa:active {
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(37, 211, 102, 0.56);
    transform: translateX(3px);
  }

  .mob-nav-wa svg {
    flex-shrink: 0;
    fill: #25d366;
  }

  /* Account area — full width inline in mobile nav */
  .nav-account {
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
  }

  .nav-account-btn {
    width: 100%;
    min-height: 66px;
    border-radius: 16px;
    border: 1px solid rgba(2, 155, 159, 0.3);
    padding: 0 18px;
    justify-content: flex-start;
    background: linear-gradient(135deg, #0c355f, #0b7379);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(7, 58, 112, 0.2);
  }
  .nav-account-btn:hover,
  .nav-account-btn[aria-expanded="true"] {
    background: linear-gradient(135deg, #092b50, #058b91);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 20px 44px rgba(7, 58, 112, 0.24);
  }
  .nav-account-dropdown {
    position: static;
    animation: none;
    box-shadow: 0 18px 36px rgba(7, 58, 112, 0.11);
    border: 1px solid rgba(198, 215, 230, 0.74);
    border-radius: 14px;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.92);
    z-index: auto;
  }
  /* On mobile the show rule still needs to override display:none */
  .nav-account-dropdown:not([hidden]) {
    display: block;
    animation: none;
  }
  /* Hide profile header on mobile (info shown in the button itself) */
  .nav-drop-header { display: none; }
  .nav-account-dropdown a,
  .nav-account-dropdown button {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    min-height: 48px;
    touch-action: manipulation;
  }

  .mega-menu {
    position: fixed;
    top: 106px;
    right: 16px;
    left: 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 69;
    border-radius: 10px;
    box-shadow: 0 22px 54px rgba(7, 58, 112, 0.24);
  }

  .mega-menu-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #adminDashboardView .dashboard-heading {
    align-items: flex-start;
  }

  #adminDashboardView .dashboard-heading h1 {
    font-size: 34px;
  }

  .admin-panel-tabs {
    flex-wrap: wrap;
  }

  .content,
  .crumbs {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blue-bar {
    min-height: 74px;
    height: auto;
    background: linear-gradient(90deg, #062a5d 0%, #073a70 58%, #0b4f86 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 22px rgba(7, 58, 112, 0.12);
  }

  .crumbs {
    min-height: 74px;
    gap: 16px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.18);
  }

  .crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
  }

  .crumbs a:first-child {
    width: 42px;
    flex: 0 0 42px;
    justify-content: center;
    font-size: 0;
  }

  .crumbs a:first-child::before {
    content: "";
    width: 27px;
    height: 27px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 10.7 12 3l9 7.7v9.1a1.2 1.2 0 0 1-1.2 1.2h-5.1v-6.2H9.3V21H4.2A1.2 1.2 0 0 1 3 19.8z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 10.7 12 3l9 7.7v9.1a1.2 1.2 0 0 1-1.2 1.2h-5.1v-6.2H9.3V21H4.2A1.2 1.2 0 0 1 3 19.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .crumbs span {
    width: 12px;
    height: 12px;
    border-width: 3px;
    opacity: 0.98;
  }

  /* Keep lesson breadcrumbs compact inside the 1120px breakpoint */
  .lesson-layout .blue-bar {
    min-height: 36px;
    height: 36px;
    background: #f4f8fc;
    box-shadow: none;
  }
  .lesson-layout .crumbs {
    min-height: 36px;
    font-size: 11px;
    font-weight: 500;
    color: #62748a;
    text-shadow: none;
    flex-wrap: nowrap;
  }

  /* ── Hero: split layout — image right, text left ── */
  .home-hero {
    background: #f7f9fc;
    border-bottom: none;
  }

  .home-hero-split {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    overflow: hidden;
    border-radius: 0;
    background: #f7f9fc;
  }

  /* Dot-grid pattern top-left */
  .home-hero-split::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(circle, #adbdcc 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
  }

  /* Nurse photo — pinned to top-right, 63% wide */
  .home-hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 63%;
    height: auto;
    min-height: unset;
    z-index: 1;
    overflow: visible;
    background: transparent;
  }

  .home-hero-photo picture,
  .home-hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
  }

  /* Remove old dark gradient overlay */
  .home-hero-photo::before {
    display: none;
  }

  /* Text column — full width, above photo (z-index) */
  .home-hero-left {
    position: relative;
    z-index: 2;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 20px 0;
    background: transparent;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  /* Heading — dark navy + teal, constrained to left side */
  .home-hero-left h1 {
    color: #071f4f;
    font-size: 40px;
    line-height: 1.14;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    text-shadow: none;
    width: 56%;
  }

  .home-hero-left h1 span {
    color: #2a9d8a;
  }

  /* Subtext — dark, constrained to left side */
  .home-hero-left > p {
    color: #4a5568;
    font-size: 13px;
    line-height: 1.68;
    max-width: 58%;
    text-shadow: none;
    margin-bottom: 0;
  }

  /* Buttons — full-width, stacked */
  .home-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
    padding: 0 0 26px;
    position: relative;
    z-index: 2;
    background: transparent;
  }

  .home-actions .primary-button {
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: none;
    letter-spacing: -0.01em;
  }

  .home-actions .ghost-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    border: 2px solid #dde1ea;
    background: #ffffff;
    color: #071f4f;
    text-shadow: none;
    backdrop-filter: none;
  }

  /* Mobile-only button icons — show both icons */
  .btn-book-icon { display: inline-block; flex-shrink: 0; }
  .btn-arrow-icon { display: inline-block; flex-shrink: 0; }

  .home-feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 18px 16px 22px;
    margin-top: 8px;
  }

  .home-feature-grid button {
    min-height: 72px;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 10px;
    padding: 12px 10px 12px 12px;
  }

  .home-feature-grid .feat-icon {
    width: 38px;
    height: 38px;
    grid-row: 1;
  }

  .home-feature-grid strong {
    font-size: 13px;
    grid-row: 1;
  }

  .home-feature-grid small {
    display: none;
  }

  /* ── Sections ── */
  .home-section {
    padding: 40px 18px;
  }

  .home-programs {
    padding: 40px 18px;
  }

  .section-heading h2,
  .notes-copy h2 {
    font-size: 24px;
    padding-bottom: 14px;
  }

  .notes-panel {
    grid-template-columns: 1fr;
  }

  .instrument-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .instruments-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .instruments-home-cta {
    width: min(320px, 100%);
    justify-content: center;
  }

  .resource-links-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .resource-content {
    grid-template-columns: 1fr;
  }

  .topic-lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-menu {
    position: static;
  }

  .resource-menu,
  .resource-links-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr 110px;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-hero-panel,
  .course-exam-panel,
  .curriculum-guide-panel {
    grid-template-columns: 1fr;
  }

  .curriculum-guide-panel {
    background: linear-gradient(135deg, #ffffff, #effbfc);
  }

  .curriculum-guide-stats {
    grid-column: 1;
  }

  .curriculum-guide-steps {
    grid-template-columns: 1fr;
  }

  .course-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instrument-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-layout.is-visible {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .lesson-tools {
    display: none;
  }

  .lesson-article {
    padding: 30px;
  }

  .lesson-overview-panel {
    grid-template-columns: 1fr;
  }

  .auth-premium-shell {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: auto;
  }

  .auth-media {
    min-height: 280px;
  }

  .auth-media img {
    min-height: 280px;
  }

  .auth-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 58px 42px 48px;
  }

  .footer-nav-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-bottom {
    padding: 24px 42px;
  }
}

@media (max-width: 760px) {
  .site-announcement {
    display: none;
  }

  .site-announcement div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .site-announcement span {
    white-space: normal;
  }

  .brand {
    width: min(48vw, 188px);
    height: 50px;
    flex: 0 1 min(48vw, 188px);
    max-width: 188px;
  }

  .brand img {
    max-height: 48px;
  }

  .program-heading,
  .lesson-top,
  .lesson-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .program-heading h1,
  .lesson-article h1 {
    font-size: 32px;
  }

  .tabs,
  .toolbar {
    overflow-x: auto;
  }

  .toolbar {
    display: flex;
  }

  .search-field {
    min-width: 240px;
  }

  .toolbar select {
    min-width: 150px;
  }

  .course-row {
    grid-template-columns: 20px 72px minmax(170px, 1fr) 58px 70px 70px;
    min-width: 720px;
  }

  .curriculum-card {
    overflow-x: auto;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .course-feature-hero.is-primary {
    min-height: 360px;
  }

  .course-feature-hero > div,
  .course-exam-panel {
    padding: 20px;
  }

  .course-feature-hero h2 {
    font-size: 31px;
  }

  .course-feature-hero h3,
  .course-tab-intro h2,
  .course-info-grid h2,
  .course-exam-panel h2 {
    font-size: 23px;
  }

  .course-info-grid,
  .course-resource-grid {
    grid-template-columns: 1fr;
  }

  .course-tab-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-stats,
  .home-feature-grid,
  .instrument-preview-grid,
  .resource-links-home,
  .topic-lesson-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-card {
    min-height: 300px;
  }

  .library-card > div {
    padding: 28px 26px;
  }

  .library-card-meta,
  .library-card h2,
  .library-card p {
    max-width: 100%;
  }

  .library-card h2 {
    margin-top: 36px;
    font-size: 28px;
  }

  .library-card::before {
    right: 10px;
    top: 80px;
    font-size: 128px;
  }

  .hero-proof-stack {
    grid-template-columns: 1fr;
  }

  .instrument-preview-grid article {
    min-height: auto;
  }

  .instrument-preview-media {
    height: 190px;
  }

  .login-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .auth-copy,
  .auth-card {
    padding: 24px;
  }

  .auth-media {
    min-height: 210px;
    margin-top: 18px;
  }

  .auth-media img {
    min-height: 210px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .global-search-box {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
  }

  .global-search-head,
  .quiz-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-workbench-head,
  .dashboard-actions,
  .lesson-action-buttons {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .admin-panel-tabs {
    justify-content: flex-start;
  }

  /* Admin stat cards: 2 columns on small screens */
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-column: auto;
  }

  .maintenance-card {
    grid-template-columns: 1fr;
    grid-column: span 2;
  }

  .admin-module-card {
    min-height: auto;
  }

  .certificate-content {
    grid-template-columns: 1fr;
  }

  .certificate-actions {
    position: static;
  }

  .admin-panel-tabs button,
  .dashboard-actions button,
  .lesson-action-buttons button,
  .admin-editor-toolbar button {
    width: 100%;
  }

  .admin-editor-form,
  .certificate-border dl,
  .certificate-signatures {
    grid-template-columns: 1fr;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
  }

  .cookie-notice > div:last-child {
    justify-content: flex-start;
  }

  /* ── Mobile maintenance: focused single-column lock screen ── */
  .maintenance-lock {
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    border-top-width: 5px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
  }

  .maintenance-lock-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    width: 100%;
    min-height: 100dvh;
    flex: 0 0 auto;
    overflow: visible;
    background: transparent;
  }

  .maintenance-lock-media,
  .maintenance-info-card {
    display: none;
  }

  .maintenance-lock-copy {
    flex: 0 0 auto;
    min-height: auto;
    grid-column: unset;
    grid-row: unset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 34px 22px 28px;
    overflow: visible;
    background: transparent;
    position: relative;
    text-align: center;
  }

  .maintenance-lock-copy::after {
    display: none;
  }

  .maintenance-lock-logo {
    display: block;
    width: min(245px, 78vw);
    height: auto;
    padding: 0;
    background: transparent;
    align-self: center;
    box-sizing: border-box;
  }

  .maintenance-lock-badge {
    margin: 28px 0 0;
    font-size: 11px;
    padding: 6px 13px;
    min-height: 28px;
    align-self: center;
  }

  .maintenance-lock-card h2 {
    max-width: 340px;
    margin: 22px auto 0;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.01em;
  }

  .maintenance-lock-rule {
    margin: 18px auto 0;
    width: 52px;
    height: 3px;
  }

  .maintenance-lock-card p {
    margin: 18px auto 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 335px;
  }

  .maintenance-refresh {
    align-self: stretch;
    width: min(320px, 100%);
    min-width: 0;
    min-height: 48px;
    margin: 26px auto 0;
    border-radius: 8px;
    font-size: 14px;
    gap: 8px;
  }

  .maintenance-lock-footer {
    grid-column: unset;
    grid-row: unset;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 22px 22px;
    border-top: 1px solid rgba(203, 215, 229, 0.86);
    background: rgba(248, 251, 255, 0.86);
  }

  .maintenance-lock-footer > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding: 12px 0;
    grid-template-columns: none;
  }

  .maintenance-lock-footer > div + div {
    border-left: 0;
    border-top: 1px solid rgba(174, 196, 217, 0.45);
    padding-top: 12px;
    padding-left: 0;
  }

  .maintenance-lock-footer span {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .maintenance-lock-footer svg {
    width: 15px;
    height: 15px;
  }

  .maintenance-lock-footer p {
    margin: 0;
    text-align: left;
    font-size: 11px;
    line-height: 1.3;
  }

  .maintenance-lock-footer strong {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    display: block;
  }

  .maintenance-lock-footer small {
    font-size: 9px;
    color: #687895;
    text-align: left;
    display: block;
  }

  .maintenance-lock-footer > small {
    display: none;
  }

  .global-result {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .global-result em {
    grid-column: 2;
  }

  .mega-menu {
    position: fixed;
    top: 126px;
    right: 10px;
    left: 10px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border-radius: 8px;
    border-top: 3px solid var(--teal);
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu aside {
    border-radius: 0 0 8px 8px;
  }

  .dashboard-card {
    min-height: auto;
    padding: 20px;
  }

  .quiz-controls {
    position: static;
  }

  .quiz-controls > div:last-child,
  .quiz-controls button {
    width: 100%;
  }

  .home-hero {
    min-height: auto;
  }

  .home-copy h1 {
    font-size: 38px;
  }

  .home-actions .primary-button,
  .home-actions .ghost-button {
    width: 100%;
  }

  .home-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .outline-table-body button {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 10px 14px;
  }

  .outline-table-body em {
    display: none;
  }

  .study-board {
    min-width: 0;
  }

  .board-content {
    padding: 20px;
  }

  .board-rows button {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .board-rows em {
    display: none;
  }

  .instrument-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .instrument-strip img:nth-child(n + 4) {
    display: none;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .module-outline-head {
    flex-direction: column;
  }

  .module-outline-head button {
    width: 100%;
  }

  .instrument-toolbar {
    grid-template-columns: 1fr;
  }

  .instrument-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 42px 22px 34px;
  }

  .footer-brand img {
    width: min(285px, 100%);
  }

  .footer-brand p {
    margin-top: 22px;
    font-size: 15px;
  }

  .footer-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .footer-stat {
    min-height: 58px;
    border-radius: 14px;
    padding: 10px 12px;
  }

  .footer-start-button {
    width: 100%;
    margin-top: 24px;
  }

  .footer-nav-group {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col h3,
  .site-footer h3 {
    font-size: 14px;
  }

  .footer-col a,
  .site-footer a {
    min-height: 50px;
    font-size: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .lesson-layout.is-visible {
    display: block;
  }

  .lesson-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .lesson-article {
    padding: 28px 20px;
  }

  .meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .callout {
    flex-direction: column;
    padding: 22px;
  }

  .lesson-study-actions,
  .lesson-premium-nav,
  .lesson-toc-panel,
  .lesson-overview-panel,
  .quiz-banks-hero,
  .quiz-bank-card-main,
  .quiz-bank-action,
  .quiz-hero,
  .quiz-option-grid,
  .quiz-true-false-grid,
  #quizObjectives {
    grid-template-columns: 1fr;
  }

  .lesson-study-actions,
  .lesson-toc-panel,
  .quiz-banks-hero,
  .quiz-hero {
    padding: 22px;
  }

  .quiz-banks-hero {
    min-height: auto;
  }

  .quiz-banks-hero h1,
  .quiz-bank-card h2 {
    font-size: 34px;
  }

  .quiz-banks-hero-stats,
  .quiz-hero-stats {
    grid-template-columns: 1fr;
  }

  .quiz-banks-hero-stats span + span,
  .quiz-hero-stats span + span {
    border-left: 0;
    border-top: 1px solid rgba(203, 215, 229, 0.72);
  }

  .quiz-bank-card-main {
    gap: 16px;
    padding: 24px;
  }

  .quiz-bank-meta {
    grid-column: auto;
  }

  .quiz-bank-action {
    padding: 22px;
  }

  .lesson-toc-panel ol {
    grid-template-columns: 1fr;
  }

  .lesson-source-gallery div {
    grid-template-columns: 1fr;
  }

  .lesson-source-gallery img {
    max-height: 280px;
  }

  .quiz-hero {
    flex-direction: column;
  }

  .quiz-hero > button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .quiz-hero h1 {
    font-size: 30px;
  }

  .quiz-section-divider,
  .quiz-question-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-section-divider em {
    margin-left: 0;
  }

  .quiz-question-tags {
    justify-content: flex-start;
  }

  .quiz-question-card {
    padding: 22px 18px;
  }
}

/* ── Tablet (portrait): hero stays split but smaller, 2-col programs ── */
@media (min-width: 761px) and (max-width: 1024px) {
  /* Restore desktop-style split: content left, photo right */
  .home-hero-split {
    display: grid;
    grid-template-columns: 55% 45%;
    height: auto;
    min-height: 420px;
  }

  /* Restore in-flow photo (undo mobile absolute positioning) */
  .home-hero-photo {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 380px;
    order: 0;
  }

  .home-hero-photo img {
    position: static;
    width: 100%;
    height: 100%;
    object-position: center top;
  }

  .home-hero-left {
    height: auto;
    padding: 40px 32px 36px;
    justify-content: center;
    background: linear-gradient(150deg, #f0f8ff 0%, #ffffff 55%, #f8fcfe 100%);
  }

  .home-hero-left h1 {
    color: #071f4f;
    text-shadow: none;
  }

  .home-hero-left h1 span {
    color: var(--teal-dark);
  }

  .home-hero-left > p {
    color: #31476b;
    text-shadow: none;
  }

  .home-actions .ghost-button {
    background: transparent;
    border-color: var(--teal-dark);
    color: var(--teal-dark);
    backdrop-filter: none;
  }

  .home-hero-left h1 {
    font-size: clamp(30px, 3.8vw, 46px);
    margin-bottom: 12px;
  }

  .home-hero-left > p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Restore inline buttons on tablet */
  .home-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .home-actions .primary-button,
  .home-actions .ghost-button {
    width: auto;
    min-height: 46px;
    font-size: 14px;
  }

  .home-feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px 24px 22px;
  }

  .home-feature-grid button {
    min-height: 100px;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .notes-panel {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
    gap: 16px;
  }

  .latest-lessons {
    display: none;
  }

  .instrument-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Small mobile ── */
@media (max-width: 480px) {
  .home-hero-photo {
    height: max(100vh, 700px);
  }

  .home-hero-left h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    padding: 14px 14px 18px;
  }

  .home-feature-grid button {
    min-height: 66px;
    grid-template-columns: 36px minmax(0, 1fr) 22px;
    padding: 10px 8px 10px 10px;
    grid-template-rows: auto;
    align-items: center;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .instrument-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .resource-links-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .section-heading h2,
  .notes-copy h2 {
    font-size: 22px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #certificateSheet,
  #certificateSheet * {
    visibility: visible;
  }

  #certificateSheet {
    position: fixed;
    inset: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .certificate-border {
    min-height: 100vh;
    border-radius: 0;
  }
}

/* ═══════════════════════════════════════════════
   CANVAS AUTH — Full-screen login pages
   (Student login & admin redirect)
═══════════════════════════════════════════════ */

/* When a canvas view is active, shell hides header/footer/subheader */
.site-shell.canvas-mode .top-header,
.site-shell.canvas-mode .site-announcement,
.site-shell.canvas-mode .site-footer,
.site-shell.canvas-mode .sub-header {
  display: none !important;
}
.site-shell.canvas-mode {
  height: 100vh;
  overflow: hidden;
}
.site-shell.canvas-mode #appRoot {
  height: 100vh;
  overflow: hidden;
}

/* The canvas section fills viewport */
.view-canvas {
  display: none;
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  background: #fff;
}
.view-canvas.is-visible {
  display: flex !important;
}

/* Two-column layout */
.canvas-auth {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ── Left: Image ── */
.canvas-auth-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}
.canvas-auth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.canvas-auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 28, 52, 0.78) 0%,
    rgba(14, 116, 144, 0.55) 60%,
    rgba(8, 28, 52, 0.48) 100%
  );
}
.canvas-auth-image-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.canvas-auth-image-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.canvas-auth-image-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 28px;
}
.canvas-auth-features { display: flex; flex-direction: column; gap: 10px; }
.canvas-auth-feature { display: flex; align-items: center; gap: 10px; }
.canvas-auth-feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #0891b2);
  flex-shrink: 0;
}
.canvas-auth-feature span { font-size: 13px; color: rgba(255,255,255,.82); font-weight: 500; }

/* ── Right: Form panel ── */
.canvas-auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 48px 40px;
  overflow-y: auto;
}
.canvas-auth-inner {
  width: 100%;
  max-width: 380px;
  animation: authFadeUp 0.38s ease both;
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.canvas-auth-logo { margin-bottom: 36px; }
.canvas-auth-logo img { height: 36px; object-fit: contain; display: block; }

/* Accent line */
.canvas-auth-accent {
  width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #0891b2, #2dd4bf);
  margin-bottom: 28px;
}

/* Heading */
.canvas-auth-heading {
  font-size: 26px; font-weight: 800; color: #0d2137;
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.canvas-auth-subheading {
  font-size: 14px; color: #64748b; margin-bottom: 28px; line-height: 1.6;
}

/* Tabs */
.canvas-auth-tabs {
  display: flex; gap: 3px; background: #f1f5f9;
  border-radius: 10px; padding: 4px; margin-bottom: 22px;
}
.canvas-auth-tabs button {
  flex: 1; padding: 9px 8px; border: none; background: transparent;
  border-radius: 7px; font-size: 12.5px; font-weight: 600;
  color: #94a3b8; cursor: pointer; transition: 0.16s;
  white-space: nowrap; font-family: inherit;
}
.canvas-auth-tabs button.is-active {
  background: #fff; color: #0d2137;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Message */
.canvas-auth-message {
  font-size: 13px; color: #64748b; margin-bottom: 18px;
  line-height: 1.5; min-height: 18px;
}
.canvas-auth-message.is-error {
  color: #9f1239; background: #fff1f2;
  border-left: 3px solid #f43f5e;
  border-radius: 0 7px 7px 0; padding: 10px 13px;
}

/* Forms */
.canvas-auth-form { display: none; flex-direction: column; }
.canvas-auth-form.is-active { display: flex; }

.auth-method-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 15px;
  padding: 4px;
  border-radius: 10px;
  background: #f1f5f9;
}

.auth-method-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: #64748b;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.auth-method-toggle button.is-active {
  color: #0d2137;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.login-identity-panel[hidden] {
  display: none !important;
}

/* Fields */
.canvas-field { margin-bottom: 15px; }
.canvas-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: #94a3b8; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 7px;
}
.canvas-field input,
.canvas-field select {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #0f172a;
  background: #f8fafc; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  font-family: inherit;
}
.canvas-field input::placeholder { color: #cbd5e1; font-weight: 400; }
.canvas-field input:focus,
.canvas-field select:focus {
  border-color: #0891b2; background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.10);
}

.country-select-wrap {
  position: relative;
  display: block;
}

.country-select-wrap select {
  min-height: 54px;
  padding: 0 46px 0 18px;
  color: #253858;
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 54px;
  appearance: none;
}

.country-select-chevron {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #253858;
  border-bottom: 2px solid #253858;
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

/* Button */
.canvas-btn {
  width: 100%; padding: 14px; margin-top: 8px;
  background: linear-gradient(135deg, #0d2137 0%, #0e7490 100%);
  color: #fff; font-size: 15px; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer;
  transition: opacity 0.18s, transform 0.15s, box-shadow 0.18s;
  letter-spacing: 0.01em; text-align: center; display: block;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.28);
  font-family: inherit;
}
.canvas-btn:hover {
  opacity: 0.94; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 116, 144, 0.38);
}
.canvas-btn:active { transform: translateY(0); box-shadow: none; }
.canvas-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Optional label badge */
.canvas-optional-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* Phone input: dial-code prefix + number side-by-side */
.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.phone-input-wrap:focus-within {
  border-color: #0891b2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.10);
}

.phone-dial-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: transparent;
  color: #0e7490;
  font-size: 15px;
  font-weight: 700;
  border-right: 1.5px solid #e2e8f0;
  white-space: nowrap;
  min-width: 86px;
  user-select: none;
}

.phone-input-wrap input[type="tel"] {
  flex: 1;
  border: none !important;
  outline: none;
  box-shadow: none !important;
  padding: 13px 14px;
  font-size: 14px;
  background: transparent;
  color: #1e293b;
  font-family: inherit;
  border-radius: 0 !important;
}

.phone-input-wrap input[type="tel"]::placeholder { color: #cbd5e1; }

/* Back link */
.canvas-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 22px; background: none; border: none;
  color: #94a3b8; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 0; transition: color 0.15s;
  text-decoration: none; font-family: inherit;
}
.canvas-back-btn:hover { color: #0891b2; }

/* Mobile */
@media (max-width: 760px) {
  .canvas-auth-image { display: none; }
  .canvas-auth-panel { padding: 36px 24px; background: #f8fafc; }
}
/* ── Block Hostinger / Auto-injected ads outside the SPA shell ───────
   These are direct <body> children injected by the hosting provider.
   Our own ad slots live inside .site-shell and are never affected.    */
body > ins[class*="adsbygoogle"],
body > ins[class*="adsbygoogle"] + ins,
body > div[id^="aswift"],
body > iframe[id^="aswift"],
body > div[id^="google_ads"],
body > div[data-hostinger-ad] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ── Cookie banner mobile ── */
@media (max-width: 760px) {
  .cookie-banner {
    max-height: 38dvh;
    overflow-y: auto;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px 12px;
  }
  .cookie-banner-left { align-items: center; gap: 10px; }
  .cookie-icon { width: 34px; height: 34px; }
  .cookie-icon svg { width: 21px; height: 21px; }
  .cookie-banner-text strong { margin: 0 0 2px; font-size: 13px; }
  .cookie-banner-text p { display: none; }
  .cookie-privacy-link { font-size: 10px; }
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    gap: 6px;
  }
  .cookie-btn-primary,
  .cookie-btn-secondary,
  .cookie-btn-manage {
    width: auto;
    justify-content: center;
    min-width: 0;
    padding: 8px 5px;
    font-size: 10px;
    white-space: normal;
    line-height: 1.2;
  }

  .nod-popup-layer {
    padding: 10px;
  }

  .nod-popup-layer.is-toast {
    justify-items: stretch;
    padding: 0 10px 10px;
  }

  .nod-popup {
    width: 100%;
    padding: 0;
    border-radius: 12px;
  }

  .nod-popup-media {
    height: 95px;
  }

  .nod-popup-content {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 14px 16px 0;
  }

  .nod-popup-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .nod-popup-mark svg {
    width: 18px;
    height: 18px;
  }

  .nod-popup h2 {
    margin-right: 26px;
    font-size: 15px;
  }

  .nod-popup p {
    font-size: 12px;
  }

  .nod-popup-actions {
    display: grid;
    gap: 7px;
    padding: 11px 16px 15px;
  }

  .nod-popup-actions .primary-button,
  .nod-popup-actions .ghost-button {
    width: 100%;
    min-height: 38px;
    font-size: 13px;
  }

  .nod-popup-course-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .resources-hero {
    grid-template-columns: 1fr;
  }

  .resources-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resources-grid,
  .pdf-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-dashboard-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    background:
      radial-gradient(circle at 85% 12%, rgba(107, 218, 217, 0.2), transparent 32%),
      linear-gradient(180deg, #071a41 0%, #0c2855 56%, #e9f6f8 56.2%, #f6fbfd 100%);
  }

  .course-hero--diploma-in-nursing-extension,
  .course-hero--diploma-in-midwifery,
  .course-hero--bachelor-of-nursing-science {
    min-height: auto;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-copy,
  .course-hero--diploma-in-midwifery .course-hero-copy,
  .course-hero--bachelor-of-nursing-science .course-hero-copy {
    max-width: 100%;
    padding: 34px 28px 220px;
  }

  .course-hero--diploma-in-nursing-extension .course-progress-strip,
  .course-hero--diploma-in-midwifery .course-progress-strip,
  .course-hero--bachelor-of-nursing-science .course-progress-strip {
    left: 28px;
    right: 28px;
    bottom: 28px;
    width: auto;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-mini-stats,
  .course-hero--diploma-in-midwifery .course-hero-mini-stats,
  .course-hero--bachelor-of-nursing-science .course-hero-mini-stats {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 28px 28px;
  }

  .course-hero-copy {
    padding: 12px 10px 0;
  }

  .course-hero-side {
    grid-template-rows: auto auto auto;
  }

  .course-progress-strip {
    width: 100%;
    grid-template-columns: 54px minmax(0, 1fr) minmax(180px, 0.7fr);
  }

  .course-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-media-upload,
  .admin-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-media-upload .primary-button {
    width: 100%;
  }

  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }

  .admin-analytics-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body,
  .site-shell {
    max-width: 100%;
    overflow-x: hidden;
  }

  .resources-content {
    padding: 18px 14px 26px;
  }

  .resources-hero {
    min-height: auto;
    padding: 22px;
    border-radius: 8px;
  }

  .resources-hero h1 {
    font-size: 34px;
  }

  .resources-hero p {
    font-size: 15px;
  }

  .resources-hero-actions {
    flex-direction: column;
  }

  .resources-hero-actions .primary-button,
  .resources-hero-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .resources-hero-panel,
  .resources-grid,
  .pdf-resources-grid {
    grid-template-columns: 1fr;
  }

  .pdf-download-library {
    padding: 20px;
    border-radius: 12px;
  }

  .resource-directory-card,
  .pdf-resource-card {
    min-height: 240px;
  }

  #programView .content {
    padding: 18px 14px 26px;
  }

  .course-dashboard-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, #071a41 0%, #0c2855 58%, #eef8fa 58.2%, #f8fcfd 100%);
  }

  .course-dashboard-hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  }

  .course-hero-copy {
    padding: 10px 6px 0;
  }

  .course-hero-crumbs {
    flex-wrap: wrap;
    font-size: 12px;
  }

  .course-hero-copy h2 {
    align-items: flex-start;
    margin-top: 20px;
    font-size: 34px;
  }

  .course-hero-copy h2 span,
  .course-hero-copy h2 span svg {
    width: 34px;
    height: 34px;
  }

  .course-hero-copy p {
    font-size: 15px;
  }

  .course-hero-actions .primary-button,
  .course-hero-actions .ghost-button {
    width: 100%;
  }

  .course-hero-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-hero-points > div {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
  }

  .course-module-badge {
    justify-self: start;
  }

  .course-progress-strip {
    display: none;
  }

  .course-hero-side {
    grid-template-rows: auto;
  }

  .course-hero-media {
    min-height: 210px;
  }

  .course-hero-media img {
    min-height: 210px;
  }

  .course-hero-media figcaption strong {
    font-size: 20px;
  }

  .course-hero-mini-stats {
    grid-template-columns: 1fr;
  }

  .course-hero--diploma-in-nursing-extension,
  .course-hero--diploma-in-midwifery,
  .course-hero--bachelor-of-nursing-science {
    padding: 0;
    border-radius: 18px;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-copy,
  .course-hero--diploma-in-midwifery .course-hero-copy,
  .course-hero--bachelor-of-nursing-science .course-hero-copy {
    max-width: 100%;
    padding: 24px 18px;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-copy h2,
  .course-hero--diploma-in-midwifery .course-hero-copy h2,
  .course-hero--bachelor-of-nursing-science .course-hero-copy h2 {
    font-size: 38px;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-copy p,
  .course-hero--diploma-in-midwifery .course-hero-copy p,
  .course-hero--bachelor-of-nursing-science .course-hero-copy p {
    font-size: 16px;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-actions .primary-button,
  .course-hero--diploma-in-nursing-extension .course-hero-actions .ghost-button,
  .course-hero--diploma-in-midwifery .course-hero-actions .primary-button,
  .course-hero--diploma-in-midwifery .course-hero-actions .ghost-button,
  .course-hero--bachelor-of-nursing-science .course-hero-actions .primary-button,
  .course-hero--bachelor-of-nursing-science .course-hero-actions .ghost-button {
    min-width: 0;
    min-height: 52px;
    font-size: 15px;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-points,
  .course-hero--diploma-in-midwifery .course-hero-points,
  .course-hero--bachelor-of-nursing-science .course-hero-points {
    grid-template-columns: 1fr;
  }

  .course-hero--diploma-in-nursing-extension .course-progress-strip,
  .course-hero--diploma-in-midwifery .course-progress-strip,
  .course-hero--bachelor-of-nursing-science .course-progress-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    width: 100%;
    min-height: auto;
    margin-top: 18px;
  }

  .course-hero--diploma-in-nursing-extension .course-progress-strip > div:last-child,
  .course-hero--diploma-in-midwifery .course-progress-strip > div:last-child,
  .course-hero--bachelor-of-nursing-science .course-progress-strip > div:last-child {
    grid-column: 1 / -1;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-side,
  .course-hero--diploma-in-midwifery .course-hero-side,
  .course-hero--bachelor-of-nursing-science .course-hero-side {
    position: relative;
    min-height: 260px;
  }

  .course-hero--diploma-in-nursing-extension .course-module-badge,
  .course-hero--diploma-in-midwifery .course-module-badge,
  .course-hero--bachelor-of-nursing-science .course-module-badge {
    top: 16px;
    right: 16px;
    min-height: 40px;
    font-size: 14px;
  }

  .course-hero--diploma-in-nursing-extension .course-hero-mini-stats,
  .course-hero--diploma-in-midwifery .course-hero-mini-stats,
  .course-hero--bachelor-of-nursing-science .course-hero-mini-stats {
    grid-template-columns: 1fr;
    margin: 14px;
    width: auto;
  }

  #programView .tabs {
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 0 8px;
  }

  #programView .tabs button {
    min-width: 0;
    flex: 1 1 31%;
    height: 54px;
    font-size: 12px;
  }

  .course-notes-grid {
    grid-template-columns: 1fr;
  }

  .admin-tools-strip,
  .admin-row-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-inline-search,
  .admin-row-actions button {
    width: 100%;
  }

  .admin-analytics-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-analytics-grid article {
    padding: 14px;
  }

  .admin-analytics-bars--ranked div {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .admin-analytics-bars--ranked em {
    grid-column: 1 / -1;
  }

  .admin-daily-sparkline {
    height: 150px;
  }

  .admin-media-upload,
  .admin-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-media-card figure {
    height: 190px;
  }
}

/* ═══════════════════════════════════════════════════════
   NURSING DIAGNOSES — Interactive Reference UI
   ═══════════════════════════════════════════════════════ */

.nd-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Stats bar */
.nd-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #071a41 0%, #0c2855 100%);
  border-radius: 14px;
  padding: 20px 24px;
}
.nd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 90px;
  gap: 4px;
}
.nd-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.nd-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Type color tokens */
.nd-type-problem { color: #e05c00; }
.nd-type-risk     { color: #c0392b; }
.nd-type-health   { color: #1e8e3e; }
.nd-type-syndrome { color: #6d28d9; }

/* Controls row */
.nd-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.nd-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f8fc;
  border: 1.5px solid #d0dbe8;
  border-radius: 10px;
  padding: 0 14px;
  flex: 1 1 220px;
  min-width: 180px;
  color: #5e7a99;
}
.nd-search-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  padding: 10px 0;
  width: 100%;
  color: #0d2040;
}
.nd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nd-filter-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #cdd9e8;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #4a6485;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nd-filter-btn:hover { background: #eef3f9; }
.nd-filter-btn.is-active {
  background: #0c2855;
  border-color: #0c2855;
  color: #fff;
}
.nd-filter-btn.nd-type-problem.is-active { background: #e05c00; border-color: #e05c00; }
.nd-filter-btn.nd-type-risk.is-active    { background: #c0392b; border-color: #c0392b; }
.nd-filter-btn.nd-type-health.is-active  { background: #1e8e3e; border-color: #1e8e3e; }
.nd-filter-btn.nd-type-syndrome.is-active{ background: #6d28d9; border-color: #6d28d9; }

.nd-domain-wrap select {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid #d0dbe8;
  background: #f5f8fc;
  font-size: 13px;
  color: #0d2040;
  cursor: pointer;
  outline: none;
}

/* Result count */
.nd-result-count {
  font-size: 13px;
  color: #5e7a99;
  margin: 0;
}

/* Card list */
.nd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Diagnosis card */
.nd-card {
  background: #fff;
  border: 1.5px solid #d8e4ef;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s;
  cursor: pointer;
}
.nd-card:hover {
  box-shadow: 0 4px 18px rgba(7,26,65,0.09);
  border-color: #b0c8e0;
}
.nd-card[aria-expanded="true"] {
  border-color: #0c7a8c;
  box-shadow: 0 4px 20px rgba(12,122,140,0.12);
}

.nd-card-head {
  padding: 16px 20px 14px;
}
.nd-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.nd-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nd-type-badge.nd-type-problem { background: #fff3eb; color: #e05c00; }
.nd-type-badge.nd-type-risk    { background: #fff0ef; color: #c0392b; }
.nd-type-badge.nd-type-health  { background: #edf7f0; color: #1e8e3e; }
.nd-type-badge.nd-type-syndrome{ background: #f3effe; color: #6d28d9; }

.nd-domain-tag {
  font-size: 11.5px;
  color: #6b84a0;
  font-weight: 500;
}
.nd-card-label {
  font-size: 16px;
  font-weight: 800;
  color: #071a41;
  margin: 0 0 6px;
  line-height: 1.3;
}
.nd-card-def {
  font-size: 13.5px;
  color: #3d5575;
  line-height: 1.6;
  margin: 0 0 10px;
}
.nd-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0c7a8c;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.nd-expand-btn:hover { color: #086070; }
.nd-chevron {
  transition: transform 0.22s;
}
.nd-card[aria-expanded="true"] .nd-chevron {
  transform: rotate(180deg);
}

/* Expandable body */
.nd-card-body {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid #edf2f8;
  margin-top: 4px;
  padding-top: 16px;
}
.nd-card[aria-expanded="true"] .nd-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nd-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0c7a8c;
  margin: 0 0 8px;
}
.nd-section ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nd-section ul li {
  font-size: 13px;
  color: #2d4460;
  line-height: 1.5;
}

.nd-no-results {
  text-align: center;
  color: #7a94b0;
  padding: 40px 0;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 640px) {
  .nd-stats-bar { padding: 14px 16px; gap: 10px; }
  .nd-stat-num  { font-size: 22px; }
  .nd-controls  { flex-direction: column; align-items: stretch; }
  .nd-filters   { justify-content: flex-start; }
  .nd-domain-wrap select { width: 100%; }
  .nd-card-label { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════
   INLINE CURRICULUM TREE  (ci-*)
   ═══════════════════════════════════════════════════════ */

/* ── Year block ─────────────────────────────────────── */
.ci-year {
  border-top: 1px solid #b6d0de;
}
.ci-year:first-child { border-top: none; }

.ci-year-hd {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  height: 52px;
  background: linear-gradient(180deg, #0d9fa7, #0a8990);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--display, inherit);
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  transition: background 0.15s;
}
.ci-year-hd:hover { background: linear-gradient(180deg, #0b8f96, #087880); }

.ci-year-icon { display: flex; align-items: center; }
.ci-year-icon svg { width: 24px; height: 24px; fill: currentColor; stroke-width: 0; }

.ci-year-label { flex: 1; }

.ci-year-meta {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.03em;
}

.ci-chevron {
  transition: transform 0.22s;
  opacity: 0.85;
  flex-shrink: 0;
}
.ci-year-open .ci-chevron { transform: rotate(180deg); }

.ci-year-body { display: none; }
.ci-year-open .ci-year-body { display: block; }

/* ── Semester block ─────────────────────────────────── */
.ci-semester + .ci-semester {
  border-top: 1px solid #d4eaf0;
}

.ci-semester-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: #e9f6f7;
  border-bottom: 1px solid #c9e1e8;
}

.ci-sem-label {
  font-size: 14px;
  font-weight: 800;
  color: #0a7e87;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ci-sem-count {
  font-size: 11.5px;
  color: #5e9aaa;
  font-weight: 600;
}

/* ── Course rows ────────────────────────────────────── */
.ci-course-list { background: #fff; }

.ci-course { border-bottom: 1px solid #e8f0f5; }
.ci-course:last-child { border-bottom: none; }

.ci-course-hd {
  display: grid;
  grid-template-columns: 20px 88px minmax(200px, 1fr) 74px minmax(110px,140px) 72px 32px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 20px;
  cursor: pointer;
  transition: background 0.12s;
}
.ci-course-hd:hover { background: #f0f9fa; }
.ci-course-open > .ci-course-hd { background: #e4f6f7; }

/* Status dot */
.ci-status {
  width: 16px;
  height: 16px;
  border: 2px solid #a9bfd5;
  border-radius: 50%;
  flex-shrink: 0;
}
.ci-status.ci-done {
  border-color: #1e8e3e;
  background: #1e8e3e;
  position: relative;
}
.ci-status.ci-done::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%) rotate(-45deg);
  width: 6px; height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.ci-code {
  font-size: 12px;
  font-weight: 800;
  color: #0c2855;
}

.ci-name {
  font-size: 13px;
  color: #2d4460;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-course-open .ci-name { font-weight: 700; color: #0c2855; }

.ci-type {
  font-size: 11px;
  font-weight: 700;
  color: #0c7a8c;
  background: #e0f5f5;
  padding: 2px 9px;
  border-radius: 20px;
  text-align: center;
  justify-self: start;
}

/* Progress bar + count */
.ci-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #5e7a99;
  white-space: nowrap;
}
.ci-bar {
  width: 52px;
  height: 5px;
  border-radius: 3px;
  background: #d8e8f0;
  overflow: hidden;
  flex-shrink: 0;
}
.ci-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0db5b0, #0a8a84);
  border-radius: 3px;
}

/* Open button */
.ci-open-btn {
  height: 30px;
  padding: 0 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0db5b0, #0a8a84);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.ci-open-btn:hover { opacity: 0.85; }

/* Expand chevron */
.ci-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  color: #7a94b0;
  transition: color 0.15s, background 0.15s;
}
.ci-expand:hover { background: #e4f0f8; color: #0c2855; }
.ci-expand svg { transition: transform 0.22s; }
.ci-course-open .ci-expand svg { transform: rotate(180deg); }

.ci-empty-row {
  padding: 14px 20px;
  font-size: 13px;
  color: #7a94b0;
}

/* ── Topics panel ───────────────────────────────────── */
.ci-topics {
  display: none;
  padding: 0 0 8px 40px;
  background: #f7fbfc;
  border-top: 1px solid #d4eaf0;
}
.ci-course-open .ci-topics { display: block; }

/* Topic row */
.ci-topic {
  border-bottom: 1px solid #e2eff4;
  padding: 12px 16px 10px 0;
}
.ci-topic:last-child { border-bottom: none; }

.ci-topic-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ci-topic-num {
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #0c7a8c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ci-topic-title {
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: #0c2855;
  padding: 0;
  transition: color 0.12s;
}
.ci-topic-title:hover { color: #0c7a8c; }

.ci-topic-badge {
  font-size: 11px;
  font-weight: 600;
  color: #5e9aaa;
  white-space: nowrap;
  background: #e0f5f5;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Subtopic list ──────────────────────────────────── */
.ci-subtopic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ci-subtopic {
  display: grid;
  grid-template-columns: 14px minmax(0,1fr) 44px 52px;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 6px 0;
  border-radius: 6px;
  transition: background 0.1s;
}
.ci-subtopic:hover { background: #ebf5f7; }

.ci-sub-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #a9bfd5;
  flex-shrink: 0;
}
.ci-sub-dot.ci-dot-done {
  background: #1e8e3e;
  border-color: #1e8e3e;
}

.ci-sub-title {
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  color: #2d4460;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s;
}
.ci-sub-title:hover { color: #0c7a8c; }
.ci-sub-title.ci-has-note { color: #0c2855; font-weight: 600; }

.ci-note-tag {
  font-size: 10px;
  font-weight: 700;
  color: #1e8e3e;
  background: #edf7f0;
  padding: 2px 6px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

.ci-quiz-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1.5px solid #b0c8d8;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: #3d6480;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
}
.ci-quiz-btn:hover { border-color: #0c7a8c; color: #0c7a8c; }

.ci-quiz-pending {
  font-size: 10.5px;
  color: #a0b3c6;
  font-style: italic;
}

.ci-empty {
  font-size: 12px;
  color: #8da8bc;
  padding: 4px 0;
  margin: 0;
}

/* ── Bachelor lock states ───────────────────────────── */
.ci-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3e2 !important;
  color: #b45309 !important;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.ci-subtopic-locked {
  opacity: 0.68;
  cursor: default;
}
.ci-subtopic-locked:hover { background: transparent !important; }

.ci-locked-title {
  color: #7a94b0 !important;
  font-style: italic;
  cursor: default;
  pointer-events: none;
}

.ci-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3e2;
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
}

.ci-open-locked {
  background: #e8eef5 !important;
  color: #7a94b0 !important;
  cursor: not-allowed !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
  box-shadow: none !important;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .curriculum-guide-panel {
    padding: 18px;
  }

  .curriculum-guide-copy h2 {
    font-size: 24px;
  }

  .curriculum-guide-stats {
    grid-template-columns: 1fr;
  }

  .module-outline-head {
    flex-direction: column;
  }

  .module-outline-head button {
    width: 100%;
  }

  .ci-course-hd {
    grid-template-columns: 18px 70px minmax(0,1fr) 56px 28px;
  }
  .ci-type,
  .ci-stats { display: none; }
  .ci-topics { padding-left: 16px; }
  .ci-subtopic { grid-template-columns: 12px minmax(0,1fr) 48px; }
  .ci-note-tag { display: none; }
}

/* ── Premium Lesson Template ─────────────────────────────────────── */
.lesson-layout.is-visible {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 860px) minmax(190px, 238px);
  grid-template-rows: auto auto;
  justify-content: center;
  align-items: start;
  gap: 0 24px;
  min-height: calc(100vh - 76px);
  background: #f7fafc;
}

.lesson-layout .blue-bar {
  grid-column: 1 / -1;
  min-height: 38px;
  border-bottom: 1px solid #d8e5f0;
}

.lesson-layout .crumbs {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 24px;
}

.lesson-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 108px);
  margin: 24px 0 34px;
  padding: 0 0 8px;
  overflow: auto;
  border: 1px solid #d8e5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(11, 42, 91, 0.06);
}

.lesson-sidebar h2 {
  margin: 20px 16px 14px;
  color: #0b2a5b;
  font-size: 17px;
  line-height: 1.22;
}

.lesson-nav {
  padding: 0 14px;
}

.lesson-nav h3 {
  margin-top: 12px;
  padding: 12px 0 9px;
  color: #0b2a5b;
  font-size: 11px;
  line-height: 1.35;
}

.lesson-nav h3::before {
  width: 4px;
  height: 16px;
  border-radius: 8px;
  background: #2c9a9a;
}

.lesson-nav a {
  min-height: 34px;
  padding: 7px 8px 7px 24px;
  color: #4c6680;
  font-size: 11.5px;
  line-height: 1.35;
}

.lesson-nav a.current {
  color: #076f73;
  background: #eaf7f7;
}

.wide-back {
  width: calc(100% - 28px);
  min-height: 42px;
  margin: 18px 14px 8px;
  border: 1px solid #b9cbe0;
  border-radius: 7px;
  color: #0b2a5b;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.lesson-article {
  min-width: 0;
  margin: 24px 0 44px;
  padding: 0;
  background: transparent;
}

.lesson-top {
  align-items: center;
  margin-bottom: 14px;
}

.lesson-mobile-controls {
  display: none;
  gap: 10px;
  align-items: center;
}

.lesson-mobile-controls label {
  display: grid;
  gap: 4px;
  color: #62748a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-mobile-controls select {
  min-height: 38px;
  max-width: 260px;
  border: 1px solid #cddbea;
  border-radius: 7px;
  color: #0b2a5b;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.lesson-article h1 {
  max-width: 780px;
  margin-top: 16px;
  color: #0b2a5b;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

.meta-row {
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #62748a;
  font-size: 12px;
  font-weight: 700;
}

.lesson-source-content {
  max-width: none;
}

.lesson-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.lesson-header-actions .primary-button,
.lesson-header-actions .ghost-button,
.lesson-header-actions .outline-accent {
  min-height: 44px;
  border-radius: 7px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
}

.lesson-quick-summary,
.lesson-outcomes,
.lesson-toc-panel,
.lesson-note-section,
.lesson-procedure-checklist,
.lesson-practice-preview,
.lesson-practice-cta {
  max-width: 860px;
  margin-top: 18px;
  border: 1px solid #d8e5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(11, 42, 91, 0.045);
}

.lesson-quick-summary {
  padding: 20px 22px;
  border-color: #9fd7d8;
  background: linear-gradient(135deg, #eaf7f7, #ffffff);
}

.lesson-quick-summary h2,
.lesson-outcomes h2,
.lesson-toc-panel h2,
.lesson-note-section h2,
.lesson-procedure-checklist h2,
.lesson-practice-preview h2,
.lesson-practice-cta h2 {
  margin: 0;
  color: #0b2a5b;
  font-size: 20px;
  line-height: 1.25;
}

.lesson-quick-summary p,
.lesson-procedure-checklist p,
.lesson-practice-cta p {
  max-width: 760px;
  margin-top: 10px;
  color: #324f6b;
  font-size: 15px;
  line-height: 1.68;
}

.lesson-outcomes {
  padding: 20px 22px;
  border-left: 4px solid #0b2a5b;
}

.lesson-outcomes ul,
.lesson-key-list,
.lesson-practice-preview ol {
  margin: 13px 0 0;
  padding-left: 20px;
  color: #233f5c;
  font-size: 14.5px;
  line-height: 1.74;
}

.lesson-outcomes li + li,
.lesson-key-list li + li,
.lesson-practice-preview li + li {
  margin-top: 7px;
}

.lesson-ad {
  max-width: 860px;
  min-height: 112px;
  display: grid;
  place-items: center;
  margin: 18px 0;
  border: 1px dashed #b7cce1;
  border-radius: 8px;
  background: #f8fbfe;
  color: #62748a;
  text-align: center;
}

.lesson-ad > span,
.lesson-sidebar-ad > span {
  color: #62748a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-ad > p,
.lesson-sidebar-ad > p {
  margin: 4px 0 0;
  color: #7c8ca0;
  font-size: 12px;
  font-weight: 700;
}

.lesson-toc-panel {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
}

.lesson-toc-panel p {
  margin-top: 8px;
  color: #62748a;
  font-size: 13px;
  line-height: 1.5;
}

.lesson-toc-panel ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lesson-toc-panel a {
  min-height: 42px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.lesson-toc-panel b {
  width: 28px;
  height: 28px;
  background: #2c9a9a;
  font-size: 11px;
}

.lesson-note-section {
  padding: 22px 24px;
  border-left: 4px solid #2c9a9a;
}

.lesson-note-section:nth-child(even) {
  background: #ffffff;
}

.lesson-heading-number {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  background: #2c9a9a;
}

.lesson-note-section p {
  max-width: 780px;
  margin-top: 12px;
  color: #102a43;
  font-size: 16px;
  line-height: 1.78;
}

.lesson-image-card {
  margin: 22px 0 14px;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
}

.lesson-image-card img {
  width: 100%;
  max-height: none;
  display: block;
  object-fit: contain;
  background: transparent;
}

.lesson-image-card figcaption {
  padding: 7px 0 0;
  color: #506982;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.lesson-learning-box {
  margin-top: 18px;
  padding: 14px 16px 14px 20px;
  border: 1px solid #d8e5f0;
  border-left: 4px solid #7cafc8;
  border-radius: 0 8px 8px 0;
  background: #f7fafc;
}

.lesson-learning-box h3,
.lesson-learning-box .lesson-callout-title {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #3d5f7d;
}

.lesson-learning-box p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: #1e3f62;
}

.lesson-learning-box.key-point {
  border-left-color: var(--teal);
  border-color: #9fd7d8;
  background: #eaf7f7;
}

.lesson-learning-box.key-point h3,
.lesson-learning-box.key-point .lesson-callout-title {
  color: var(--teal-dark, #087f83);
}

.lesson-learning-box.nursing-alert {
  border-left-color: #e0913a;
  border-color: #f2c47d;
  background: #fff8e8;
}

.lesson-learning-box.nursing-alert h3,
.lesson-learning-box.nursing-alert .lesson-callout-title {
  color: #b86a10;
}

.lesson-learning-box.exam-tip {
  border-left-color: #4a7aad;
  border-color: #b9cbe0;
  background: #f3f8fd;
}

.lesson-learning-box.exam-tip h3,
.lesson-learning-box.exam-tip .lesson-callout-title {
  color: #2e5d8e;
}

.lesson-learning-box.remember {
  border-left-color: #6890b0;
  border-color: #c4d7e7;
  background: #fbfdff;
}

.lesson-procedure-checklist,
.lesson-practice-preview {
  padding: 22px 24px;
}

.lesson-table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
}

.lesson-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lesson-table-wrap th,
.lesson-table-wrap td {
  padding: 12px;
  border: 1px solid #d8e5f0;
  text-align: left;
  vertical-align: top;
}

.lesson-table-wrap th {
  color: #ffffff;
  background: #0b2a5b;
}

.lesson-practice-preview button {
  margin-top: 14px;
}

.lesson-practice-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b2a5b, #2c9a9a);
}

.lesson-practice-cta h2,
.lesson-practice-cta p,
.lesson-practice-cta small {
  color: #ffffff;
}

.lesson-practice-cta small {
  display: block;
  margin-top: 8px;
  opacity: 0.82;
  font-size: 12px;
  font-weight: 800;
}

.lesson-premium-nav {
  max-width: 860px;
  gap: 14px;
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}

.lesson-premium-nav button {
  min-height: 76px;
  border-radius: 8px;
}

.lesson-tools {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 108px);
  margin: 24px 0 34px;
  padding: 0;
  overflow: auto;
  border-left: 0;
  background: transparent;
}

.side-card {
  margin: 0 0 16px;
  padding: 16px;
  border-color: #d8e5f0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(11, 42, 91, 0.04);
}

.lesson-on-page-card a {
  margin: 0 -8px;
  padding: 8px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.35;
}

.lesson-on-page-card a.active {
  border-left: 0;
  color: #076f73;
  background: #eaf7f7;
}

.lesson-study-tools-card button,
.help-card button {
  min-height: 34px;
  justify-content: flex-start;
  margin-top: 8px;
  border: 1px solid #d8e5f0;
  border-radius: 6px;
  padding: 0 10px;
  color: #0b2a5b;
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
}

.lesson-sidebar-ad {
  min-height: 360px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px dashed #b7cce1;
  border-radius: 8px;
  background: #f8fbfe;
  color: #62748a;
  text-align: center;
}

@media (max-width: 1180px) {
  .lesson-layout.is-visible {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 0 18px;
    padding: 0 18px;
  }

  .lesson-layout .blue-bar {
    margin: 0 -18px;
  }

  .lesson-tools {
    display: none;
  }
}

@media (max-width: 820px) {
  .lesson-layout.is-visible {
    display: block;
    padding: 0 14px 34px;
  }

  .lesson-layout .blue-bar {
    margin: 0 -14px;
  }

  .lesson-sidebar {
    display: none;
  }

  .lesson-layout.show-course-lessons .lesson-sidebar {
    position: fixed;
    inset: 92px 14px 18px;
    z-index: 120;
    display: block;
    max-height: none;
    margin: 0;
    box-shadow: 0 24px 60px rgba(6, 26, 58, 0.24);
  }

  .lesson-article {
    margin-top: 20px;
  }

  .lesson-mobile-controls {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .lesson-top {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-article h1 {
    font-size: 34px;
  }

  .lesson-header-actions,
  .meta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-header-actions .primary-button,
  .lesson-header-actions .ghost-button,
  .lesson-header-actions .outline-accent {
    width: 100%;
    justify-content: center;
  }

  .lesson-toc-panel,
  .lesson-practice-cta,
  .lesson-premium-nav {
    grid-template-columns: 1fr;
  }

  .lesson-toc-panel ol {
    grid-template-columns: 1fr;
  }

  .lesson-quick-summary,
  .lesson-outcomes,
  .lesson-toc-panel,
  .lesson-note-section,
  .lesson-procedure-checklist,
  .lesson-practice-preview,
  .lesson-practice-cta {
    padding: 18px;
  }

  .lesson-note-section p {
    font-size: 15px;
    line-height: 1.72;
  }

  .lesson-ad {
    min-height: 96px;
  }
}

/* Reference lesson page polish */
body:has(#lessonView.is-visible) {
  background: #f7fafc;
}

.lesson-layout.is-visible {
  grid-template-columns: minmax(0, 1020px) minmax(220px, 260px);
  grid-template-rows: auto auto;
  gap: 0 28px;
  padding: 0 24px;
}

.quiz-question-card .quiz-review-note {
  min-height: 38px;
  width: fit-content;
  display: inline-flex;
  grid-template-columns: none;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid #9fd8d3;
  border-radius: 6px;
  color: #08746d;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.lesson-layout .lesson-footer {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  margin: 28px auto 0;
}

.lesson-layout .blue-bar {
  grid-column: 1;
  grid-row: 1;
  min-height: 36px;
  height: 36px;
  border-bottom: 1px solid #dce8f4;
  background: #f4f8fc;
  box-shadow: none;
}

.lesson-layout .crumbs {
  max-width: 1020px;
  padding: 0 0 0 2px;
  color: #62748a;
  font-size: 11px;
  font-weight: 500;
  min-height: 36px;
  gap: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  text-shadow: none;
}

.lesson-layout .crumbs a {
  color: #425d78;
  min-height: unset;
}

/* ── Lesson breadcrumb items (.lbc-*) ────────────────────── */
.lbc-home {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(42, 157, 138, 0.12);
  border-radius: 6px;
  color: #1e8a78;
  text-decoration: none;
  transition: background 0.15s;
}
.lbc-home:hover { background: rgba(42, 157, 138, 0.22); }

.lbc-sep {
  flex-shrink: 0;
  color: #a8bdd0;
  font-size: 12px;
  font-weight: 400;
  margin: 0 5px;
  /* Reset the global .crumbs span chevron styles */
  width: auto !important;
  height: auto !important;
  border: none !important;
  transform: none !important;
  opacity: 1 !important;
  border-radius: 0;
  background: none;
}

.lbc-item {
  flex-shrink: 1;
  min-width: 0;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #5a7898;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
a.lbc-item:hover { color: #0c2855; text-decoration: underline; }

.lbc-dim {
  max-width: 50px;
  color: #8faabb;
  font-weight: 400;
}

.lbc-course {
  max-width: 120px;
}

.lbc-current {
  flex-shrink: 2;
  min-width: 0;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0c2855;
  font-weight: 700;
  font-size: 11.5px;
}

.lesson-sidebar {
  display: none !important;
}

.lesson-sidebar h2 {
  margin: 0;
  padding: 24px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #087f83, #2c9a9a);
  font-size: 16px;
  line-height: 1.28;
}

.lesson-progress-card {
  margin: 0;
  padding: 20px 18px;
  border-bottom: 1px solid #d8e5f0;
  background: #ffffff;
}

.lesson-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lesson-progress-card h3 {
  margin: 0;
  color: #0b2a5b;
  font-size: 14px;
  line-height: 1.25;
}

.lesson-progress-head span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #9fd7d8;
  border-radius: 999px;
  color: #087f83;
  background: #eaf7f7;
  font-size: 9px;
  font-weight: 900;
}

.lesson-progress-card p,
.lesson-progress-card strong {
  display: block;
  margin-top: 14px;
  color: #294866;
  font-size: 12px;
  line-height: 1.35;
}

.lesson-progress-card strong {
  margin-top: 10px;
  color: #0b2a5b;
  font-weight: 800;
}

.lesson-progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf5;
}

.lesson-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2c9a9a;
}

.lesson-nav {
  padding: 12px 18px 0;
}

.lesson-nav h3 {
  margin-top: 14px;
  color: #0b2a5b;
}

.lesson-nav a {
  min-height: 36px;
  padding: 8px 10px 8px 25px;
  color: #173a63;
}

.lesson-nav a::before {
  border-color: #2c9a9a;
}

.lesson-nav a.current {
  color: #076f73;
  background: #dff3f3;
  font-weight: 900;
}

.lesson-article {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 46px;
}

.lesson-top {
  margin-bottom: 14px;
}

.topic-pill {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: #0f9292;
  font-size: 11px;
  font-weight: 900;
}

.lesson-article h1 {
  max-width: 980px;
  margin: 14px 0 0;
  color: #0b2a5b;
  font-size: clamp(38px, 4vw, 50px);
  line-height: 1.08;
}

.meta-row {
  gap: 12px 24px;
  color: #294866;
  font-size: 12px;
}

.meta-row svg {
  color: #0b2a5b;
}

.lesson-header-actions .primary-button,
.lesson-header-actions .ghost-button,
.lesson-header-actions .outline-accent {
  min-width: 166px;
  border-radius: 6px;
}

.lesson-header-actions .ghost-button {
  color: #ffffff;
  border-color: #0f9292;
  background: #0f9292;
}

.lesson-header-actions .primary-button {
  color: #0b2a5b;
  border: 1px solid #b9cbe0;
  background: #ffffff;
  box-shadow: none;
}

.lesson-header-actions .outline-accent {
  border-color: #b9cbe0;
  color: #0b2a5b;
  background: #ffffff;
}

.lesson-quick-summary,
.lesson-outcomes,
.lesson-toc-panel,
.lesson-procedure-checklist,
.lesson-practice-preview,
.lesson-practice-cta,
.lesson-premium-nav {
  max-width: 1020px;
}

.lesson-quick-summary,
.lesson-outcomes,
.lesson-toc-panel {
  padding: 18px 22px;
  border-color: #b9dfe7;
  border-radius: 7px;
  box-shadow: none;
}

.lesson-quick-summary {
  background: linear-gradient(135deg, #f0fbfb, #ffffff);
}

.lesson-outcomes {
  border-left: 1px solid #b9dfe7;
  background: #ffffff;
}

.lesson-quick-summary h2,
.lesson-outcomes h2,
.lesson-toc-panel h2 {
  color: #0b2a5b;
  font-size: 16px;
}

.lesson-quick-summary p,
.lesson-outcomes ul,
.lesson-key-list {
  color: #102a43;
  font-size: 13px;
  line-height: 1.72;
}

.lesson-toc-panel {
  display: block;
}

.lesson-toc-panel p {
  display: none;
}

.lesson-toc-panel ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 14px;
}

.lesson-toc-panel a {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #0b2a5b;
  font-size: 11.5px;
  font-weight: 800;
}

.lesson-toc-panel b {
  width: auto;
  height: auto;
  color: #0f9292;
  background: transparent;
  font-size: 11px;
}

.lesson-ad {
  max-width: 1020px;
  min-height: 64px;
  margin: 12px 0 14px;
  border-radius: 5px;
  background: #ffffff;
}

.lesson-note-section {
  max-width: 1020px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 14px;
  margin-top: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid #d8e5f0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lesson-note-section > * {
  grid-column: 2;
}

.lesson-note-section .lesson-heading-number {
  grid-column: 1;
  grid-row: 1;
}

.lesson-heading-number {
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #0f9292;
  font-size: 12px;
}

.lesson-note-section h2 {
  grid-row: 1;
  color: #0b2a5b;
  font-size: 18px;
  line-height: 1.28;
}

.lesson-note-section h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #536b87;
  line-height: 1.4;
  margin-top: 14px;
  margin-bottom: 2px;
}

.lesson-note-section p,
.lesson-note-section li {
  color: #102a43;
  font-size: 15px;
  line-height: 1.82;
}

.lesson-note-section ul,
.lesson-note-section ol {
  margin-top: 16px;
  padding-left: 24px;
}

.lesson-note-section li + li {
  margin-top: 16px;
}

.lesson-image-card {
  width: 100%;
  float: none;
  margin: 22px 0 14px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.lesson-image-card img {
  max-height: none;
  object-fit: contain;
}

.lesson-image-card figcaption {
  color: #506982;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 6px 0 0;
}

.lesson-learning-box {
  clear: both;
  padding: 14px 16px;
  border-radius: 6px;
  box-shadow: none;
}

.lesson-learning-box h3 {
  font-size: 13px;
}

.lesson-learning-box p {
  font-size: 12.5px;
}

.lesson-tools {
  grid-column: 2;
  grid-row: 1 / span 2;
  top: 96px;
  margin: 40px 0 36px;
}

.side-card {
  padding: 18px;
  border: 1px solid #d8e5f0;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
}

.side-card h3 {
  color: #0b2a5b;
  font-size: 15px;
}

.lesson-on-page-card a {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 20px;
  color: #173a63;
  background: transparent;
  font-size: 11.5px;
}

.lesson-on-page-card a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2c9a9a;
  transform: translateY(-50%);
}

.lesson-on-page-card a.active {
  color: #0f9292;
  background: transparent;
}

/* ── Lesson mode: hide site footer ───────────────────────── */
body.lesson-mode .site-footer { display: none !important; }

/* ── Premium Study Tools Card (.lst-*) ───────────────────── */
.lst-card {
  overflow: hidden;
  border: 1.5px solid #d0dff0;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(11, 42, 91, 0.09);
}

.lst-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #0b2a5b 0%, #1a4480 100%);
}

.lst-header-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4fd1b8;
}

.lst-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.lst-items {
  background: #fff;
  padding: 4px 0;
}

.lst-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f5fa;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  min-height: unset;
  justify-content: flex-start;
}
.lst-item:last-child { border-bottom: none; }
.lst-item:hover { background: #f4f9ff; }
.lst-item:hover .lst-item-arrow { color: #2a9d8a; }

.lst-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lst-icon-pdf   { background: #eef3ff; color: #3b5fa0; }
.lst-icon-print { background: #fff4e6; color: #b85c00; }
.lst-icon-fav   { background: #fff0f5; color: #b02055; }
.lst-icon-share { background: #edf7f5; color: #1e8a78; }

.lst-item-text { flex: 1; min-width: 0; }
.lst-item-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0b2a5b;
  line-height: 1.3;
}
.lst-item-text small {
  display: block;
  font-size: 10.5px;
  color: #7a95b0;
  margin-top: 2px;
  font-weight: 400;
}

.lst-item-arrow {
  flex-shrink: 0;
  color: #b8cfe0;
  transition: color 0.15s;
}

/* Old study tools button reset (kept for any static HTML) */
.lesson-study-tools-card button {
  border: 0;
  padding: 0;
  color: #0b2a5b;
  background: transparent;
}

/* ── Premium Table of Contents card (.ltc-*) ────────────── */
.ltc-card {
  overflow: hidden;
  border: 1.5px solid #d0dff0;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(11, 42, 91, 0.09);
}

.ltc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #0b2a5b 0%, #1a4480 100%);
}

.ltc-hdr-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4fd1b8;
}

.ltc-hdr-label {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ltc-hdr-count {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.ltc-nav {
  background: #fff;
  padding: 6px 0;
}

.ltc-row {
  border-bottom: 1px solid #f0f5fa;
}
.ltc-row:last-child { border-bottom: none; }

.ltc-row-hd {
  display: flex;
  align-items: center;
}

.ltc-link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex: 1;
  padding: 9px 6px 9px 12px;
  color: #2d4a6a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
  min-width: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.ltc-link:hover { color: #0a8080; }
.ltc-link.ltc-active { color: #0a7a7a; font-weight: 700; }
.ltc-link.ltc-active .ltc-dot {
  background: #2a9d8a;
  box-shadow: 0 0 0 2px rgba(42, 157, 138, 0.2);
}

.ltc-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8cfe0;
  margin-top: 5px;
  transition: background 0.2s, box-shadow 0.2s;
}

.ltc-text {
  flex: 1;
  min-width: 0;
}

.ltc-xbtn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ab5cc;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  min-height: unset;
}
.ltc-xbtn:hover { background: #edf5fb; color: #2a9d8a; }
.ltc-xbtn svg { transition: transform 0.22s ease; }
.ltc-row.ltc-open .ltc-xbtn svg { transform: rotate(180deg); }

/* Sub-sections (level-3 headings) */
.ltc-sub {
  display: none;
  padding: 2px 8px 6px 28px;
  border-left: 2px solid #e4f0f7;
  margin: 0 12px 6px 27px;
}
.ltc-row.ltc-open .ltc-sub { display: block; }

.ltc-sub-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 4px;
  color: #4a6a8a;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.4;
  transition: color 0.15s;
  border-radius: 4px;
}
.ltc-sub-link:hover { color: #0a8080; background: #f4fbfa; }
.ltc-sub-link.ltc-active { color: #0a7a7a; font-weight: 700; }

.ltc-sub-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8dce8;
  margin-top: 4px;
}

.lesson-sidebar-ad {
  min-height: 600px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(216, 229, 240, 0.22) 25%, transparent 25%) 0 0 / 18px 18px,
    #ffffff;
}

@media (max-width: 1180px) {
  .lesson-layout.is-visible {
    grid-template-columns: minmax(0, 1000px);
    gap: 0 20px;
  }

  .lesson-layout .blue-bar {
    grid-column: 1;
    margin: 0;
  }
}

@media (max-width: 820px) {
  .lesson-layout.is-visible {
    padding: 0 14px 34px;
  }

  .lesson-layout .blue-bar {
    min-height: auto;
    margin: 0;
  }

  .lesson-article {
    margin-top: 18px;
  }

  .lesson-article h1 {
    font-size: 34px;
  }

  .lesson-toc-panel ol {
    grid-template-columns: 1fr;
  }

  .lesson-note-section {
    display: block;
    padding: 20px 0;
  }

  .lesson-note-section p,
  .lesson-note-section li {
    font-size: 17px;
    line-height: 1.78;
  }

  .lesson-heading-number {
    margin-bottom: 10px;
  }

  .lesson-image-card {
    float: none;
    width: 100%;
    margin: 16px 0;
  }

  .lesson-image-card img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

/* Resource detail pages: Practical Guide and Nursing Diagnoses */
#resourceView .resource-content {
  max-width: 1440px;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  align-items: start;
  padding: 32px 24px 56px;
  margin: 0 auto;
}

#resourceView .resource-left-sidebar,
#resourceView .resource-right-sidebar {
  min-width: 0;
}

#resourceView .resource-left-sidebar {
  position: sticky;
  top: 110px;
}

#resourceView .resource-right-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

#resourceView .resource-article {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

#resourceView.diagnosis-active .resource-content {
  max-width: 1580px;
  grid-template-columns: minmax(0, 1fr);
}

#resourceView.diagnosis-active .resource-left-sidebar,
#resourceView.diagnosis-active .resource-right-sidebar {
  display: none;
}

#resourceView.practical-active .resource-content {
  max-width: 1760px;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  padding: 32px clamp(18px, 3vw, 48px) 64px;
}

#resourceView.practical-active .resource-right-sidebar {
  display: none;
}

#resourceView.practical-active .resource-top-ad,
#resourceView.practical-active .resource-bottom-ad,
#resourceView.practical-active .resource-inline-ad {
  display: none !important;
}

#resourceView.practical-active .resource-article {
  max-width: none;
}

#resourceView.practical-active .program-heading {
  overflow: hidden;
  border-color: rgba(44, 154, 154, 0.28);
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 15%, rgba(44, 154, 154, 0.42), transparent 34%),
    linear-gradient(135deg, #061a3a 0%, #0b2a5b 58%, #176c78 100%);
  box-shadow: 0 24px 56px rgba(6, 26, 58, 0.18);
}

#resourceView.practical-active .program-heading h1,
#resourceView.practical-active .program-heading p {
  color: #ffffff;
}

#resourceView.practical-active .program-heading p {
  max-width: 980px;
}

#resourceView.practical-active .program-heading .ghost-button {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

#resourceView .program-heading {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(15, 45, 90, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(11, 42, 91, 0.06);
}

#resourceView .program-heading h1 {
  color: #0b2a5b;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}

#resourceView .program-heading p {
  max-width: 760px;
  color: #506982;
  font-size: 17px;
  line-height: 1.65;
}

#resourceView .program-heading .ghost-button {
  position: static;
  flex: 0 0 auto;
  min-width: 132px;
  white-space: nowrap;
}

.resource-sidebar-card,
.resource-side-card,
#resourceView .resource-link-panel,
.resource-main-intro,
.resource-osce-card,
.practical-station-card {
  border: 1px solid rgba(15, 45, 90, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(11, 42, 91, 0.055);
}

.resource-sidebar-card,
.resource-side-card,
#resourceView .resource-link-panel {
  padding: 20px;
}

.resource-sidebar-intro {
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #061a3a, #0b2a5b 55%, #2c9a9a);
}

.resource-sidebar-intro h2,
.resource-sidebar-intro p {
  color: #ffffff;
}

.resource-sidebar-intro h2,
.resource-side-card h3,
#resourceView .resource-link-panel h2,
.resource-stat-list h3,
.resource-toc h3 {
  margin: 0;
  color: #0b2a5b;
  font-size: 18px;
  line-height: 1.25;
}

.resource-sidebar-intro h2 {
  color: #ffffff;
  font-size: 24px;
}

.resource-sidebar-intro p,
.resource-side-card p {
  margin: 10px 0 0;
  color: #dcecf4;
  font-size: 14px;
  line-height: 1.65;
}

.resource-side-card p {
  color: #506982;
}

.resource-stat-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.resource-stat-list span {
  display: block;
  color: #506982;
  font-size: 13px;
  line-height: 1.4;
}

.resource-stat-list strong {
  color: #0b2a5b;
  font-size: 18px;
}

.resource-toc {
  display: grid;
  gap: 8px;
  max-height: 420px;
  margin-top: 18px;
  overflow: auto;
}

.resource-toc a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #edf3f8;
  color: #294866;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

.resource-toc a:hover {
  color: #2c9a9a;
}

#resourceView .resource-link-panel {
  position: relative;
  overflow: hidden;
  padding: 0 18px 18px;
  border-color: #cfdeeb;
  background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 58%);
  box-shadow: 0 18px 38px rgba(11, 42, 91, 0.09);
}

#resourceView .resource-link-panel h2 {
  margin: 0 -18px 16px;
  padding: 18px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b2a5b 0%, #176c78 100%);
  font-size: 20px;
  letter-spacing: 0;
}

#resourceView .resource-link-panel h2::after {
  content: "CURATED STUDY SOURCES";
  display: block;
  margin-top: 5px;
  color: #bfe8e4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

#resourceView #resourceLinks {
  gap: 10px;
  margin-top: 0;
}

#resourceLinks button,
.resource-side-card button {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d8e5f0;
  border-radius: 8px;
  color: #0b2a5b;
  background: #f8fbfe;
  font-size: 12.5px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

#resourceLinks button:hover,
.resource-side-card button:hover {
  border-color: #2c9a9a;
  background: #eaf7f7;
}

.resource-side-card {
  display: grid;
  gap: 10px;
}

#resourceView .resource-sidebar-ad {
  min-height: 600px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(216, 229, 240, 0.28) 25%, transparent 25%) 0 0 / 20px 20px,
    #ffffff;
}

#resourceView .resource-top-ad,
#resourceView .resource-bottom-ad,
#resourceView .resource-inline-ad {
  min-height: 96px;
  margin: 18px 0;
  border-radius: 12px;
}

#resourceView.legal-active .resource-top-ad,
#resourceView.legal-active .resource-bottom-ad,
#resourceView.legal-active .resource-sidebar-ad,
#resourceView.legal-active [data-ad-slot] {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.resource-main-intro,
.resource-osce-card {
  padding: 28px;
}

.resource-main-intro h2,
.resource-osce-card h2 {
  margin: 0;
  color: #0b2a5b;
  font-size: 28px;
  line-height: 1.2;
}

.resource-main-intro p,
.resource-osce-card p,
.article-content p {
  color: #102a43;
  font-size: 17px;
  line-height: 1.75;
}

.resource-blocks {
  display: block;
  margin-top: 0;
}

.article-content h2 + p,
.article-content p + p {
  margin-top: 14px;
}

.practical-station-list {
  display: grid;
  gap: 20px;
}

.practical-station-card {
  padding: 28px;
}

.station-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.station-heading > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: #2c9a9a;
  font-weight: 900;
}

.station-heading h2 {
  margin: 0;
  color: #0b2a5b;
  font-size: 25px;
  line-height: 1.22;
}

.station-heading p {
  margin: 8px 0 0;
  color: #506982;
  font-size: 16px;
  line-height: 1.65;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.station-grid section,
.station-callouts div {
  padding: 18px;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #f8fbfe;
}

.station-grid h3,
.station-procedure h3,
.station-callouts h3 {
  margin: 0 0 10px;
  color: #0b2a5b;
  font-size: 16px;
}

.station-grid ul,
.station-procedure ol {
  margin: 0;
  padding-left: 20px;
  color: #102a43;
  font-size: 15.5px;
  line-height: 1.7;
}

.station-procedure {
  margin-top: 22px;
}

.station-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #ffffff;
}

.station-procedure-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #102a43;
  font-size: 15px;
  line-height: 1.55;
}

.station-procedure-table th,
.station-procedure-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e4edf5;
  text-align: left;
  vertical-align: top;
}

.station-procedure-table th {
  color: #0b2a5b;
  background: #eef7f7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.station-procedure-table td:first-child {
  width: 64px;
  color: #176c78;
  font-weight: 900;
  text-align: center;
}

.station-procedure-table td:nth-child(2) {
  width: 58%;
  font-weight: 760;
}

.station-procedure-table tr:last-child td {
  border-bottom: 0;
}

.station-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.station-callouts div:first-child {
  border-color: #9fd7d8;
  background: #eaf7f7;
}

.station-callouts div:last-child {
  border-color: #f2c47d;
  background: #fff8e8;
}

.station-callouts p {
  margin: 0;
  color: #294866;
  font-size: 14px;
  line-height: 1.6;
}

.nd-root {
  gap: 18px;
}

.nd-stats-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
}

.nd-stat {
  align-items: flex-start;
}

.nd-controls {
  display: grid;
  align-items: stretch;
  margin-top: 18px;
}

#resourceView #resourceLinks button {
  position: relative;
  min-height: 58px;
  padding: 12px 42px 12px 48px;
  border-color: #d5e3ee;
  border-left: 4px solid var(--source-accent, #2a9d8a);
  border-radius: 7px;
  color: #0b2a5b;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(11, 42, 91, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#resourceView #resourceLinks button::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 24px;
  border: 2px solid var(--source-accent, #2a9d8a);
  border-radius: 4px;
  background: linear-gradient(135deg, transparent 0 70%, color-mix(in srgb, var(--source-accent, #2a9d8a) 18%, white) 70% 100%);
  transform: translateY(-50%);
}

#resourceView #resourceLinks button::after {
  content: "\2192";
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--source-accent, #2a9d8a);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}

#resourceView #resourceLinks button:nth-child(2) { --source-accent: #2563b8; }
#resourceView #resourceLinks button:nth-child(3) { --source-accent: #7c3aed; }
#resourceView #resourceLinks button:nth-child(4) { --source-accent: #b8326a; }

#resourceView #resourceLinks button:hover,
#resourceView #resourceLinks button:focus-visible {
  border-color: var(--source-accent, #2a9d8a);
  background: color-mix(in srgb, var(--source-accent, #2a9d8a) 7%, white);
  box-shadow: 0 12px 24px rgba(11, 42, 91, 0.12);
  outline: none;
  transform: translateY(-2px);
}

#resourceView #resourceLinks button:hover::after,
#resourceView #resourceLinks button:focus-visible::after {
  transform: translate(3px, -50%);
}

#resourceView.diagnosis-active .nd-controls-main {
  grid-template-columns: auto minmax(240px, 1.1fr) minmax(0, 2fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 16px;
}

.nd-controls h3 {
  margin: 0;
  color: #0b2a5b;
  font-size: 18px;
  white-space: nowrap;
}

.nd-search-wrap {
  min-width: 0;
}

.nd-filters {
  display: grid;
  grid-template-columns: 1fr;
}

#resourceView.diagnosis-active .nd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-filter-btn {
  justify-content: flex-start;
  border-radius: 999px;
}

#resourceView.diagnosis-active .nd-filter-btn {
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
}

.nd-domain-wrap select {
  width: 100%;
}

.nd-result-count {
  padding: 0 2px;
  color: #506982;
  font-size: 14px;
  font-weight: 800;
}

.nd-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.nd-card {
  height: fit-content;
  border-radius: 14px;
}

.nd-card-label {
  font-size: 18px;
}

.nd-card-def {
  font-size: 14.5px;
}


@media (max-width: 1180px) {
  #resourceView .resource-content {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  #resourceView.diagnosis-active .resource-content {
    grid-template-columns: minmax(0, 1fr);
  }

  #resourceView .resource-left-sidebar {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  #resourceView .resource-left-sidebar .resource-sidebar-card,
  #resourceView .resource-left-sidebar .nd-stats-bar,
  #resourceView .resource-left-sidebar .nd-controls {
    margin-top: 0;
  }

  #resourceView .resource-right-sidebar {
    position: sticky;
    top: 96px;
  }

  #resourceView.diagnosis-active .resource-right-sidebar {
    display: none;
  }

  #resourceView.diagnosis-active .nd-controls-main {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #resourceView.diagnosis-active .nd-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  #resourceView .resource-content {
    display: block;
    padding: 22px 16px 44px;
  }

  #resourceView .resource-left-sidebar,
  #resourceView .resource-right-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    position: static;
    margin-bottom: 20px;
  }

  #resourceView .program-heading {
    padding: 22px;
  }

  #resourceView .program-heading {
    flex-direction: column;
  }

  #resourceView .program-heading .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .station-grid,
  .station-callouts {
    grid-template-columns: 1fr;
  }

  .practical-station-card,
  .resource-main-intro,
  .resource-osce-card {
    padding: 22px;
  }

  .station-heading {
    grid-template-columns: 1fr;
  }

}

/* Blog system */
.blog-page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 24px 58px;
}

.blog-hero,
.blog-category-hero,
.blog-article-header {
  border: 1px solid rgba(15, 45, 90, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, #061a3a 0%, #0b2a5b 58%, #2c9a9a 130%);
  box-shadow: 0 18px 46px rgba(11, 42, 91, 0.12);
}

.blog-hero,
.blog-category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  padding: 38px;
  color: #ffffff;
}

.blog-category-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.blog-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #7ee5e1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1,
.blog-category-hero h1,
.blog-article-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

.blog-category-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.blog-hero p,
.blog-category-hero p,
.blog-article-header p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #dcecf4;
  font-size: 18px;
  line-height: 1.7;
}

.blog-category-hero strong {
  display: inline-grid;
  min-width: 120px;
  min-height: 70px;
  place-items: center;
  border: 1px solid rgba(126, 229, 225, 0.36);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 20px;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 0 18px;
  background: #ffffff;
  color: #0b2a5b;
}

.blog-search svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
}

.blog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #102a43;
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.blog-ad {
  min-height: 104px;
  margin: 22px 0;
  border-radius: 14px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  align-items: start;
}

.seo-hub-hero {
  padding: 34px;
  border: 1px solid rgba(15, 45, 90, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 12%, rgba(44, 154, 154, 0.18), transparent 26%),
    linear-gradient(135deg, #ffffff, #eef8f8);
}

.seo-hub-hero h1 {
  max-width: 840px;
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1;
}

.seo-hub-hero p {
  max-width: 780px;
  color: #4f6680;
  font-size: 17px;
  line-height: 1.7;
}

.seo-hub-resource-grid,
.seo-hub-lesson-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-hub-resource-grid button,
.seo-hub-lesson-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 16px;
  border: 1px solid #d8e5f0;
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.seo-hub-resource-grid svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-hub-lesson-list button {
  display: grid;
  justify-content: stretch;
}

.seo-hub-lesson-list span {
  color: #62748a;
  font-size: 12px;
  font-weight: 700;
}

.blog-main {
  min-width: 0;
}

.blog-sidebar,
.blog-article-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.blog-featured,
.blog-section,
.blog-side-card,
.blog-takeaways,
.blog-toc,
.blog-faq,
.blog-references,
.blog-related {
  border: 1px solid rgba(15, 45, 90, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(11, 42, 91, 0.055);
}

.blog-featured,
.blog-section,
.blog-side-card,
.blog-takeaways,
.blog-toc,
.blog-faq,
.blog-references,
.blog-related {
  padding: 22px;
}

.blog-featured h2,
.blog-section-head h2,
.blog-side-card h2,
.blog-takeaways h2,
.blog-toc h2,
.blog-faq h2,
.blog-references h2,
.blog-related h2 {
  margin: 0;
  color: #0b2a5b;
  font-size: 22px;
  line-height: 1.2;
}

.blog-section {
  margin-top: 22px;
}

.blog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.blog-section-head p {
  margin: 8px 0 0;
  color: #62748a;
  font-size: 14px;
  line-height: 1.5;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid #d8e5f0;
  border-radius: 14px;
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
  border-color: #9fd7d8;
  box-shadow: 0 16px 36px rgba(11, 42, 91, 0.11);
  transform: translateY(-2px);
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf7f7;
}

.blog-card img,
.blog-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card-body {
  padding: 18px;
}

.blog-card a:focus-visible,
.blog-pagination a:focus-visible,
.blog-category-row a:focus-visible {
  outline: 3px solid rgba(44, 154, 154, 0.34);
  outline-offset: 3px;
}

.blog-category-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: #087f83;
  background: #eaf7f7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 12px 0 0;
  color: #0b2a5b;
  font-size: 20px;
  line-height: 1.25;
}

.blog-card h2 a {
  color: inherit;
}

.blog-card p {
  margin: 10px 0 0;
  color: #506982;
  font-size: 14px;
  line-height: 1.62;
}

.blog-card-featured {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
}

.blog-card-featured .blog-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.blog-card-featured h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: #62748a;
  font-size: 12px;
  font-weight: 800;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.blog-read-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-category-quicklinks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.blog-category-quicklinks a {
  border: 1px solid rgba(126, 229, 225, 0.28);
  border-radius: 999px;
  padding: 8px 11px;
  color: #eaf7f7;
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 900;
}

.blog-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.blog-share-end {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #f8fbfe;
}

.blog-share > span {
  color: #dcecf4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-share-end > span {
  color: var(--navy);
}

.blog-share a,
.blog-share button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(126, 229, 225, 0.34);
  border-radius: 999px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.blog-share-end a,
.blog-share-end button {
  border-color: #b7e8e9;
  color: var(--navy);
  background: #ffffff;
}

.blog-share svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-share small {
  color: #7ee5e1;
  font-size: 12px;
  font-weight: 800;
}

.blog-share-end small {
  color: var(--teal-dark);
}

.blog-side-card {
  display: grid;
  gap: 10px;
}

.blog-side-card a,
.blog-side-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border: 1px solid #d8e5f0;
  border-radius: 9px;
  padding: 8px 10px;
  color: #0b2a5b;
  background: #f8fbfe;
  font-size: 12.5px;
  font-weight: 900;
  text-align: left;
}

.blog-side-card button {
  width: 100%;
  cursor: pointer;
}

.blog-sidebar-ad {
  min-height: 420px;
  border-radius: 14px;
}

.blog-load-more {
  min-height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  color: #ffffff;
  background: #0b2a5b;
  font-weight: 900;
  cursor: pointer;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.blog-pagination a,
.blog-pagination span {
  min-width: 42px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e5f0;
  border-radius: 9px;
  padding: 0 12px;
  color: var(--navy);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.blog-pagination a[aria-current="page"] {
  border-color: var(--teal);
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
}

.blog-pagination span {
  color: #8aa0b6;
  background: #f8fbfe;
}

.blog-category-showcase {
  display: grid;
  gap: 14px;
}

.blog-category-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #f8fbfe;
}

.blog-category-row h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.blog-category-row p {
  margin: 6px 0 0;
  color: #62748a;
  font-size: 13px;
  line-height: 1.5;
}

.blog-category-row > div:last-child {
  display: grid;
  gap: 8px;
}

.blog-category-row > div:last-child a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.blog-newsletter-card,
.blog-not-found {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  border: 1px solid rgba(15, 45, 90, 0.12);
  border-radius: 14px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fbfe, #eaf7f7);
  box-shadow: 0 12px 30px rgba(11, 42, 91, 0.055);
}

.blog-newsletter-card h2,
.blog-not-found h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.blog-newsletter-card p,
.blog-not-found p {
  margin: 10px 0 0;
  color: #506982;
  font-size: 15px;
  line-height: 1.65;
}

.blog-not-found {
  grid-template-columns: 1fr;
}

.blog-not-found div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.blog-not-found a,
.blog-not-found button {
  min-height: 44px;
  border: 1px solid #b7e8e9;
  border-radius: 9px;
  padding: 0 16px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 880px) minmax(240px, 300px);
  gap: 30px;
  align-items: start;
}

.blog-article {
  min-width: 0;
}

.blog-article-header {
  padding: 38px;
}

.blog-article-header h1 {
  margin-top: 14px;
  font-size: clamp(38px, 5vw, 64px);
}

.blog-cover {
  aspect-ratio: 16 / 8;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #eaf7f7;
}

.blog-takeaways {
  border-left: 5px solid #2c9a9a;
}

.blog-takeaways ul,
.blog-references ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #102a43;
  font-size: 16px;
  line-height: 1.72;
}

.blog-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 22px 0;
}

.blog-toc h2 {
  grid-column: 1 / -1;
}

.blog-toc a {
  color: #0b2a5b;
  font-size: 13px;
  font-weight: 900;
}

.blog-article-body {
  display: grid;
  gap: 22px;
}

.blog-article-body section {
  padding: 28px;
  border: 1px solid rgba(15, 45, 90, 0.12);
  border-radius: 14px;
  background: #ffffff;
}

.blog-article-body h2 {
  margin: 0;
  color: #0b2a5b;
  font-size: 28px;
  line-height: 1.25;
}

.blog-article-body p {
  margin: 14px 0 0;
  color: #102a43;
  font-size: 18px;
  line-height: 1.78;
}

.blog-resource-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.blog-resource-links button {
  min-height: 48px;
  border: 1px solid #d8e5f0;
  border-radius: 9px;
  padding: 0 12px;
  color: var(--navy);
  background: #f8fbfe;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.blog-faq,
.blog-references,
.blog-related {
  margin-top: 22px;
}

.blog-faq details {
  margin-top: 12px;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.blog-faq summary {
  color: #0b2a5b;
  font-weight: 900;
  cursor: pointer;
}

.blog-faq p,
.blog-references p {
  color: #506982;
  font-size: 15px;
  line-height: 1.7;
}

.blog-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-list span {
  border-radius: 999px;
  padding: 7px 10px;
  color: #087f83;
  background: #eaf7f7;
  font-size: 11px;
  font-weight: 900;
}

.blog-empty {
  color: #62748a;
  font-size: 16px;
}

@media (max-width: 1100px) {
  .home-article-grid,
  .home-highlight-layout {
    grid-template-columns: 1fr 1fr;
  }

  .home-newsletter,
  .resources-premium-soon {
    grid-template-columns: 1fr;
  }

  .resources-soon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-layout,
  .blog-article-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar,
  .blog-article-sidebar {
    position: static;
  }

  .blog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-newsletter-card,
  .blog-category-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-blog-promo .section-heading,
  .home-study-highlights .section-heading {
    display: grid;
    align-items: start;
  }

  .home-article-grid,
  .home-highlight-layout,
  .resources-soon-grid {
    grid-template-columns: 1fr;
  }

  .home-newsletter,
  .resources-premium-soon {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
    gap: 28px;
  }

  .home-newsletter h2 {
    font-size: 26px;
  }

  .home-newsletter p {
    font-size: 15px;
  }

  .newsletter-form {
    padding: 16px;
  }

  .blog-page-shell {
    padding: 22px 14px 44px;
  }

  .blog-hero,
  .blog-category-hero,
  .blog-card-featured {
    grid-template-columns: 1fr;
  }

  .blog-hero,
  .blog-category-hero,
  .blog-article-header {
    padding: 24px;
  }

  .blog-hero h1,
  .blog-category-hero h1,
  .blog-article-header h1 {
    font-size: 38px;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-toc {
    grid-template-columns: 1fr;
  }

  .blog-article-body section {
    padding: 22px;
  }

  .blog-article-body p {
    font-size: 16.5px;
  }

  .blog-resource-links {
    grid-template-columns: 1fr;
  }

  .blog-share {
    align-items: stretch;
  }

  .blog-share a,
  .blog-share button {
    flex: 1 1 150px;
    justify-content: center;
  }

  .home-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .seo-hub-resource-grid,
  .seo-hub-lesson-list,
  .admin-editorial-grid {
    grid-template-columns: 1fr;
  }

  .seo-hub-hero {
    padding: 22px;
  }

  .seo-hub-hero h1 {
    font-size: 34px;
  }

  .certificate-border dl {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    min-height: auto;
  }
}

/* ============================================================
   ABOUT PAGE  — appended to styles.css via build
   ============================================================ */

#resourceView.info-page-active .resource-content {
  max-width: 1520px;
  grid-template-columns: minmax(0, 1fr);
  padding: 34px clamp(18px, 4vw, 64px) 72px;
}

#resourceView.info-page-active .resource-left-sidebar,
#resourceView.info-page-active .resource-right-sidebar,
#resourceView.info-page-active .program-heading,
#resourceView.info-page-active [data-ad-slot] {
  display: none !important;
}

#resourceView.info-page-active .resource-content {
  display: block;
  padding: 0 clamp(20px, 4vw, 56px);
}

#resourceView.info-page-active .resource-article {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  max-width: none;
}

#resourceView.info-page-active .resource-blocks {
  margin-top: 0;
  gap: 0;
}

/* ── Page wrapper ────────────────────────────────────────── */
.about-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Hero ────────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #071830 0%, #0f2044 55%, #1a4a4a 100%);
  border-radius: 18px;
  padding: clamp(36px, 5vw, 64px);
  color: #fff;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 24, 48, 0.18);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(42,157,138,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(42,157,138,.10) 0%, transparent 55%);
  pointer-events: none;
}

.about-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border: 1px solid rgba(42,157,138,.45);
  border-radius: 99px;
  background: rgba(42,157,138,.12);
  color: #7ee8d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.about-hero-h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.08;
}

.about-hero-lead {
  margin: 0;
  max-width: 780px;
  color: rgba(255,255,255,.72);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-hero-actions button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
}

.about-hero-actions button:first-child {
  border-color: #52c9b6;
  color: #08213d;
  background: #77ead9;
}

.about-hero-actions button:hover {
  transform: translateY(-2px);
  border-color: #77ead9;
  background: rgba(119, 234, 217, 0.16);
}

.about-hero-actions button:first-child:hover {
  background: #8ff4e4;
}

.about-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  position: relative;
  z-index: 1;
}

.about-stat {
  flex: 1;
  text-align: center;
}

.about-stat strong {
  display: block;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.about-stat span {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.55);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.about-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.14);
  flex-shrink: 0;
}

/* ── Shared section styles ───────────────────────────────── */
.about-section {
  padding: 44px 0;
  border-bottom: 1px solid #eaeff5;
}

.about-section:last-child { border-bottom: none; }

.about-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 99px;
  background: #eaf7f5;
  color: #1e8a7a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.about-section-h2 {
  margin: 0 0 20px;
  color: #0b2a5b;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.2;
}

.about-body {
  max-width: 880px;
  color: #3a5068;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

/* ── Mission / blockquote ────────────────────────────────── */
.about-quote {
  margin: 0 0 22px;
  padding: 22px 28px;
  border-left: 4px solid #2a9d8a;
  border-radius: 0 10px 10px 0;
  background: #f4fbfa;
  color: #0b2a5b;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.about-mission-grid div {
  padding: 20px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.about-mission-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #0b2a5b;
  font-size: 14px;
  font-weight: 900;
}

.about-mission-grid span {
  display: block;
  color: #516a82;
  font-size: 13.5px;
  line-height: 1.65;
}

/* ── Offer grid ──────────────────────────────────────────── */
.about-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.about-offer-card {
  padding: 24px 22px;
  border: 1px solid #dde8f2;
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.about-offer-card:hover {
  border-color: #2a9d8a;
  box-shadow: 0 8px 28px rgba(42,157,138,.12);
  transform: translateY(-3px);
}

.about-offer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #eaf7f5;
  color: #2a9d8a;
}

.about-offer-icon svg {
  width: 22px;
  height: 22px;
}

.about-offer-card h3 {
  margin: 0 0 8px;
  color: #0b2a5b;
  font-size: 14.5px;
  font-weight: 800;
}

.about-offer-card p {
  margin: 0;
  color: #5a7085;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Who It Is For ───────────────────────────────────────── */
.about-who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-who-copy {
  display: flex;
  flex-direction: column;
}

.about-programme-list {
  list-style: none;
  margin: 0;
  padding: 26px 22px;
  border: 1px solid #dde8f2;
  border-radius: 14px;
  background: #f8fbfe;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-programme-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1a3a5c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.about-trust-section {
  border-bottom: 0;
}

.about-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.about-trust-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #dbe7ef;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(42, 157, 138, 0.07), transparent 42%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(11, 42, 91, 0.055);
}

.about-trust-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: #c07b23;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
}

.about-trust-card h3 {
  margin: 0 0 10px;
  color: #0b2a5b;
  font-size: 18px;
  line-height: 1.25;
}

.about-trust-card p {
  margin: 0;
  color: #516a82;
  font-size: 14px;
  line-height: 1.65;
}

/* ── Always Free banner ──────────────────────────────────── */
.about-free-banner {
  margin: 44px 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2044 0%, #1a4a4a 100%);
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(11, 42, 91, 0.16);
}

.about-free-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 44px 48px;
}

.about-free-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  opacity: .85;
}

.about-free-h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.1;
}

.about-free-p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Contact section ─────────────────────────────────────── */
.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.about-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid #dde8f2;
  border-radius: 14px;
  background: #fff;
  color: #0b2a5b;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}

.about-contact-card:hover {
  border-color: #2a9d8a;
  box-shadow: 0 6px 22px rgba(42,157,138,.1);
}

.about-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eaf7f5;
  color: #2a9d8a;
}

.about-contact-icon svg { width: 20px; height: 20px; }

.about-contact-icon--wa {
  background: #e8f8ee;
  color: #25d366;
}

.about-contact-card strong {
  display: block;
  color: #0b2a5b;
  font-size: 13px;
  font-weight: 800;
}

.about-contact-card span {
  display: block;
  margin-top: 3px;
  color: #5a7085;
  font-size: 12.5px;
}

/* ── Contact page ───────────────────────────────────────── */
.contact-page {
  display: grid;
  gap: 38px;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(26px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(36px, 5vw, 68px);
  border: 1px solid rgba(117, 234, 217, 0.24);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 88% 8%, rgba(117, 234, 217, 0.32), transparent 32%),
    radial-gradient(circle at 8% 92%, rgba(52, 112, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #07172d 0%, #123252 50%, #24766f 100%);
  box-shadow: 0 30px 72px rgba(7, 24, 48, 0.2);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.contact-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.contact-kicker {
  margin: 0 0 16px;
  color: #8ef0df;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.04;
}

.contact-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}

.contact-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(142, 240, 223, 0.32);
  border-radius: 8px;
  color: #d9fff9;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-hero-actions a,
.contact-support-actions button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
}

.contact-hero-actions a:first-child {
  border-color: #75ead9;
  color: #08213d;
  background: #75ead9;
}

.contact-hero-actions a:hover,
.contact-support-actions button:hover {
  transform: translateY(-2px);
  border-color: #75ead9;
  background: rgba(117, 234, 217, 0.16);
}

.contact-hero-actions a:first-child:hover {
  background: #8df4e4;
}

.contact-direct-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(3, 14, 29, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.contact-direct-card > span {
  color: #8ef0df;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-direct-card a {
  display: grid;
  gap: 5px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid #75ead9;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: transform .18s, border-color .18s, background .18s;
}

.contact-direct-card a:hover,
.contact-direct-card a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  border-left-color: #9bf6ea;
  background: rgba(255, 255, 255, 0.17);
}

.contact-direct-card strong,
.contact-direct-card em,
.contact-direct-card small {
  display: block;
  font-style: normal;
}

.contact-direct-card strong {
  font-size: 13px;
  font-weight: 950;
}

.contact-direct-card em {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.contact-direct-card small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 800;
}

.contact-direct-card p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.65;
}

.contact-section {
  padding: 42px 0;
  border-bottom: 1px solid #e5eef5;
}

.contact-section:last-child {
  border-bottom: 0;
}

.contact-section-head {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.contact-section-head h2,
.contact-detail-band h2,
.contact-support-strip h2 {
  margin: 0;
  color: #0b2a5b;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.contact-section-head p,
.contact-detail-band p,
.contact-support-strip p {
  margin: 0;
  color: #516a82;
  font-size: 15.5px;
  line-height: 1.7;
}

.contact-section-head .about-label {
  grid-column: 1 / -1;
  margin-bottom: -14px;
}

.contact-request-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-request-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(42, 157, 138, 0.12), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(11, 42, 91, 0.05);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.contact-request-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 157, 138, 0.44);
  box-shadow: 0 22px 46px rgba(11, 42, 91, 0.1);
}

.contact-request-card > span {
  display: inline-flex;
  min-width: 42px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: #0b2a5b;
  font-size: 13px;
  font-weight: 950;
}

.contact-request-card em {
  display: block;
  margin-bottom: 8px;
  color: #2a9d8a;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-request-card h3 {
  margin: 0 0 10px;
  color: #0b2a5b;
  font-size: 17px;
  line-height: 1.25;
}

.contact-request-card p {
  margin: 0;
  color: #516a82;
  font-size: 13.5px;
  line-height: 1.65;
}

.contact-detail-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 34px;
  align-items: center;
  padding: 38px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 185, 82, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(42, 157, 138, 0.1), transparent 46%),
    #f8fbfe;
}

.contact-response-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.contact-response-guide span {
  padding: 13px 14px;
  border: 1px solid #dce8f2;
  border-radius: 9px;
  color: #0b2a5b;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.contact-checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-checklist li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #dce8f2;
  border-radius: 9px;
  background: #ffffff;
  color: #173b5c;
  font-size: 14px;
  font-weight: 800;
}

.contact-checklist svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #2a9d8a;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-support-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  border-radius: 14px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #0b2a5b, #286f72);
}

.contact-support-strip h2,
.contact-support-strip p {
  color: #ffffff;
}

.contact-support-strip p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Sidebar nav ─────────────────────────────────────────── */
.about-side-nav {
  padding: 18px 20px;
  border: 1px solid #dde8f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(11,42,91,.05);
}

.about-side-nav h3 {
  margin: 0 0 12px;
  color: #0b2a5b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-side-nav a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid #edf3f8;
  color: #2a5080;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}

.about-side-nav a:last-child { border-bottom: none; }
.about-side-nav a:hover { color: #2a9d8a; }

/* ── Tablet ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-hero {
    padding: 36px 24px 32px;
    border-radius: 14px;
    margin-bottom: 24px;
  }

  .about-hero-h1 { font-size: 30px; }

  .about-hero-stats {
    margin-top: 28px;
    padding-top: 20px;
  }

  .about-stat strong { font-size: 24px; }

  .about-offer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about-mission-grid,
  .about-trust-grid {
    grid-template-columns: 1fr;
  }

  .about-who {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-free-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 32px 24px;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-quote {
    padding: 16px 18px;
    font-size: 16px;
  }

  .contact-hero,
  .contact-section-head,
  .contact-detail-band {
    grid-template-columns: 1fr;
  }

  .contact-response-guide {
    grid-template-columns: 1fr;
  }

  .contact-request-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-support-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-support-actions {
    justify-content: flex-start;
  }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 540px) {
  .about-hero {
    padding: 28px 18px 24px;
    border-radius: 12px;
  }

  .about-hero-h1 { font-size: 26px; }
  .about-hero-lead { font-size: 14px; }

  .about-hero-stats {
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .about-stat { min-width: 80px; }
  .about-stat-divider { display: none; }

  .about-offer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #resourceView.info-page-active .resource-content {
    padding: 22px 14px 46px;
  }

  .about-hero-actions button,
  .contact-hero-actions a,
  .contact-support-actions button {
    width: 100%;
  }

  .about-section { padding: 28px 0; }

  .about-free-banner {
    margin: 28px 0;
    border-radius: 12px;
  }

  .about-free-h2 { font-size: 20px; }

  .about-free-inner { padding: 26px 18px; }

  .about-section-h2 { font-size: 20px; }

  .contact-page {
    gap: 22px;
  }

  .contact-hero,
  .contact-detail-band,
  .contact-support-strip {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .contact-hero h1 {
    font-size: 30px;
  }

  .contact-hero-points {
    gap: 8px;
  }

  .contact-hero-points span {
    width: 100%;
    justify-content: center;
  }

  .contact-direct-card {
    padding: 18px;
  }

  .contact-section {
    padding: 28px 0;
  }

  .contact-section-head {
    gap: 14px;
  }

  .contact-section-head .about-label {
    margin-bottom: 0;
  }

  .contact-request-grid {
    grid-template-columns: 1fr;
  }

  .contact-request-card {
    min-height: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   CURRICULUM v2 — Year-tabs + summary cards + course rows
   ═══════════════════════════════════════════════════════════ */

/* Layout wrapper */
.ci-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Year summary card strip ────────────────────────────── */
.ci-year-summary {
  display: flex;
  gap: 10px;
  padding: 20px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ci-year-summary::-webkit-scrollbar { display: none; }

.ci-yscard {
  flex: 0 0 auto;
  min-width: 130px;
  background: #fff;
  border: 1.5px solid #dce8f0;
  border-radius: 14px;
  padding: 14px 16px 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ci-yscard:hover {
  border-color: #2a9d8a;
  box-shadow: 0 2px 12px rgba(42,157,138,0.10);
  transform: translateY(-1px);
}
.ci-yscard--active {
  border-color: #2a9d8a;
  background: linear-gradient(135deg, #edfaf7 0%, #f0faf8 100%);
  box-shadow: 0 3px 16px rgba(42,157,138,0.14);
}
.ci-yscard-year {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b8299;
}
.ci-yscard--active .ci-yscard-year { color: #2a9d8a; }
.ci-yscard-pct {
  font-size: 22px;
  font-weight: 800;
  color: #0c2855;
  line-height: 1.1;
}
.ci-yscard-bar {
  height: 4px;
  background: #e8f0f5;
  border-radius: 4px;
  overflow: hidden;
  margin: 2px 0;
}
.ci-yscard-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2a9d8a, #34c5ad);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.ci-yscard-meta {
  font-size: 10.5px;
  color: #8faabb;
  white-space: nowrap;
}

/* ── Year tabs ──────────────────────────────────────────── */
.ci-year-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e8f0f5;
  margin-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ci-year-nav::-webkit-scrollbar { display: none; }

.ci-ytab {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #6b8299;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ci-ytab:hover { color: #2a9d8a; }
.ci-ytab--active {
  color: #2a9d8a;
  border-bottom-color: #2a9d8a;
}

/* ── Year panels ────────────────────────────────────────── */
.ci-panels { }

.ci-panel { display: none; }
.ci-panel--active { display: block; }

/* ── Progress banner inside each panel ─────────────────── */
.ci-prog-banner {
  background: linear-gradient(135deg, #0c2855 0%, #0e3168 100%);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0 12px;
  color: #fff;
}
.ci-prog-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ci-prog-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  flex-grow: 1;
}
.ci-prog-pct {
  font-size: 13px;
  font-weight: 700;
  color: #2adfbb;
}
.ci-prog-dots {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
}
.ci-prog-stat {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
}
.ci-prog-track {
  height: 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 5px;
  overflow: hidden;
}
.ci-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a9d8a, #2adfbb);
  border-radius: 5px;
  transition: width 0.6s ease;
}

/* ── Semester section ───────────────────────────────────── */
.ci-sem {
  margin-bottom: 20px;
}
.ci-sem-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 6px;
  border-bottom: 2px solid #e8f0f5;
  margin-bottom: 6px;
}
.ci-sem-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0c2855;
  flex: 1;
}
.ci-sem-count {
  font-size: 11px;
  color: #8faabb;
  font-weight: 500;
}

/* ── Course rows ────────────────────────────────────────── */
.ci-sem-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ci-row {
  background: #fff;
  border: 1.5px solid #e4edf5;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.ci-row:hover {
  box-shadow: 0 2px 12px rgba(12,40,85,0.07);
  border-color: #c8dce9;
}
.ci-row--open {
  border-color: #2a9d8a;
  box-shadow: 0 3px 16px rgba(42,157,138,0.10);
}

.ci-row-main {
  display: grid;
  grid-template-columns: 10px 48px 1fr auto auto auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 14px;
  cursor: default;
}

.ci-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dce8f0;
  flex-shrink: 0;
}
.ci-row-dot--done { background: #2a9d8a; }

.ci-row-code {
  font-size: 10px;
  font-weight: 700;
  color: #8faabb;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-row-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0c2855;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ci-badge--theory   { background: #eef4ff; color: #3b5fa0; }
.ci-badge--clinical { background: #fff0f0; color: #b03a2e; }
.ci-badge--practical { background: #fff8e6; color: #956800; }
.ci-badge--core     { background: #f0faf8; color: #1a7a6a; }

.ci-row-lessons {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b8299;
  white-space: nowrap;
  flex-shrink: 0;
}

.ci-row-prog {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ci-row-bar {
  width: 52px;
  height: 4px;
  background: #e8f0f5;
  border-radius: 4px;
  overflow: hidden;
}
.ci-row-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2a9d8a, #34c5ad);
  border-radius: 4px;
}
.ci-row-frac {
  font-size: 10.5px;
  color: #8faabb;
  white-space: nowrap;
}

.ci-row-open {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  background: #2a9d8a;
  color: #fff;
  transition: opacity 0.15s;
}
.ci-row-open:hover { opacity: 0.85; }
.ci-row-open--locked {
  background: #f0f4f8;
  color: #8faabb;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: not-allowed;
}

.ci-row-chevron {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f8fb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #6b8299;
  transition: background 0.15s, color 0.15s, transform 0.2s;
}
.ci-row-chevron:hover { background: #e8f0f5; color: #0c2855; }
.ci-row--open .ci-row-chevron { background: #e4f6f4; color: #2a9d8a; transform: rotate(180deg); }

/* ── Topics dropdown ────────────────────────────────────── */
.ci-topics {
  display: none;
  border-top: 1.5px solid #e4f6f4;
  background: #f7fbfd;
  padding: 12px 14px 14px;
}
.ci-row--open .ci-topics { display: block; }

.ci-topic {
  margin-bottom: 10px;
}
.ci-topic:last-child { margin-bottom: 0; }

.ci-topic-hd {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}
.ci-topic-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #e4f0f8;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #0c2855;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ci-topic-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: #0c2855;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  line-height: 1.4;
}
.ci-topic-title:hover { color: #2a9d8a; }
.ci-topic-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: #edf7f5;
  color: #2a9d8a;
  white-space: nowrap;
}
.ci-locked-badge {
  background: #fff0e6;
  color: #c07000;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Subtopic list */
.ci-subtopic-list {
  list-style: none;
  margin: 4px 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ci-subtopic {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 0.12s;
}
.ci-subtopic:hover { background: #edf6f5; }
.ci-subtopic-locked:hover { background: transparent !important; }

.ci-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8d8e4;
  flex-shrink: 0;
}
.ci-dot-done { background: #2a9d8a; }

.ci-sub-title {
  font-size: 12px;
  color: #3a5470;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  line-height: 1.4;
  min-width: 0;
}
.ci-sub-title.ci-has-note { color: #0c2855; font-weight: 600; }
.ci-sub-title.ci-has-note:hover { color: #2a9d8a; }
.ci-locked-title { color: #8faabb; cursor: default; }
.ci-lock-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: #c07000;
  background: #fff0e6;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.ci-note-tag {
  font-size: 10px;
  font-weight: 700;
  color: #2a9d8a;
  background: #edf7f5;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.ci-quiz-btn {
  font-size: 10px;
  font-weight: 700;
  color: #3b5fa0;
  background: #eef4ff;
  border: none;
  padding: 2px 7px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
}
.ci-quiz-btn:hover { background: #dce8ff; }
.ci-quiz-pending {
  font-size: 10px;
  color: #aab8c8;
  white-space: nowrap;
}

.ci-empty-row {
  padding: 20px;
  text-align: center;
  color: #8faabb;
  font-size: 13px;
  background: #f7fbfd;
  border-radius: 10px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .ci-row-main {
    grid-template-columns: 10px 1fr auto auto auto;
    gap: 6px;
  }
  .ci-row-code  { display: none; }
  .ci-row-prog  { display: none; }
  .ci-row-lessons { display: none; }
  .ci-row-title { font-size: 12.5px; }
  .ci-row-open  { padding: 7px 10px; font-size: 11px; }
}

@media (max-width: 560px) {
  .ci-yscard { min-width: 110px; }
  .ci-yscard-pct { font-size: 18px; }
  .ci-row-main {
    grid-template-columns: 10px 1fr auto auto;
    gap: 5px;
    padding: 10px;
  }
  .ci-badge { display: none; }
  .ci-row-open { padding: 6px 10px; font-size: 10.5px; }
  .ci-prog-banner { padding: 12px 14px; }
  .ci-prog-info { gap: 5px; }
  .ci-prog-dots { display: none; }
  .ci-prog-stat { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   CURRICULUM v3 — Expanded layout, year banner, 2-col grid
   ═══════════════════════════════════════════════════════════ */

/* ── Year banner ─────────────────────────────────────────── */
.ci-year-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a5f5a 0%, #0f4a44 100%);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 16px 0 20px;
  color: #fff;
  gap: 16px;
}
.ci-yb-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.ci-yb-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ci-yb-text { min-width: 0; }
.ci-yb-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 3px;
}
.ci-yb-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-yb-right {
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
}
.ci-yb-stat-icon { flex-shrink: 0; }
.ci-yb-modules {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.ci-yb-sems {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* ── 2-column semester grid ──────────────────────────────── */
.ci-sems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}
.ci-sem-col { display: flex; flex-direction: column; gap: 10px; }

/* Semester header */
.ci-sem-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
  border-bottom: 2px solid #e4edf5;
  margin-bottom: 4px;
}
.ci-sem-icon { color: #2a9d8a; }
.ci-sem-label {
  flex: 1;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0c2855;
}
.ci-sem-count-pill {
  font-size: 11px;
  font-weight: 600;
  color: #2a9d8a;
  background: #edf7f5;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Course card ─────────────────────────────────────────── */
.ci-course-card {
  background: #fff;
  border: 1.5px solid #e4edf5;
  border-radius: 12px;
  overflow: hidden;
}

.ci-cc-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  flex-wrap: wrap;
}

.ci-cc-status {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #dce8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ci-cc-done {
  background: #2a9d8a;
  border-color: #2a9d8a;
}

.ci-cc-code {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #0c2855;
  font-family: 'Courier New', monospace;
}

.ci-cc-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #0c2855;
  min-width: 0;
  line-height: 1.3;
}

.ci-cc-bar {
  flex-shrink: 0;
  width: 50px;
  height: 3.5px;
  background: #e8f0f5;
  border-radius: 4px;
  overflow: hidden;
}
.ci-cc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a9d8a, #34c5ad);
  border-radius: 4px;
}

.ci-cc-counts {
  flex-shrink: 0;
  font-size: 11px;
  color: #6b8299;
  white-space: nowrap;
}

.ci-cc-locked {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #c07000;
  background: #fff0e6;
  padding: 3px 8px;
  border-radius: 20px;
}

.ci-cc-chevron {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f8fb;
  border-radius: 6px;
  color: #6b8299;
  margin-left: auto;
}

/* ── Item labels ─────────────────────────────────────────── */
.ci-item-label {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
}
.ci-item-label--module {
  background: #e8f0f5;
  color: #4a6880;
}
.ci-item-label--topic {
  background: #edf7f5;
  color: #1a7a6a;
}
.ci-item-label--lesson {
  background: #eef3ff;
  color: #3b5fa0;
}

/* ── Course body (expanded topics) ───────────────────────── */
.ci-cc-body {
  border-top: 1.5px solid #f0f5fa;
  background: #f8fbfd;
  padding: 10px 14px 12px;
}

.ci-topic-block {
  margin-bottom: 10px;
}
.ci-topic-block:last-child { margin-bottom: 0; }

.ci-topic-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
}
.ci-topic-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #2a9d8a;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ci-topic-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: #0c2855;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.ci-topic-title:hover { color: #2a9d8a; }
.ci-topic-notes {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #2a9d8a;
  background: #edf7f5;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Lesson list ─────────────────────────────────────────── */
.ci-lesson-list {
  list-style: none;
  margin: 0 0 0 14px;
  padding: 0;
}

.ci-lesson-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.12s;
}
.ci-lesson-item:hover { background: #edf6f5; }
.ci-lesson-locked:hover { background: transparent; }

.ci-lesson-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8d8e4;
}
.ci-dot-done { background: #2a9d8a !important; }

.ci-lesson-name {
  flex: 1;
  font-size: 12px;
  color: #3a5470;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  line-height: 1.4;
  min-width: 0;
}
.ci-lesson-name.ci-has-note {
  color: #0c2855;
  font-weight: 600;
  cursor: pointer;
}
.ci-lesson-name.ci-has-note:hover { color: #2a9d8a; }

.ci-notes-btn {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: #2a9d8a;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.ci-notes-btn:hover { opacity: 0.85; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .ci-sems-grid { grid-template-columns: 1fr; }
  .ci-year-banner { padding: 16px 18px; }
  .ci-yb-title { font-size: 17px; }
}
@media (max-width: 560px) {
  .ci-cc-hd { gap: 5px; padding: 10px 12px; }
  .ci-cc-bar { display: none; }
  .ci-cc-counts { display: none; }
  .ci-yb-right { display: none; }
  .ci-yb-desc { display: none; }
  .ci-item-label { display: none; }
}

.ci-admin-topic-quizzes {
  margin: 10px 8px 4px 34px;
  padding: 12px;
  border: 1px solid #dbe9f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6fb 100%);
}

.ci-admin-course-quizzes {
  margin: 16px 8px 6px;
  padding: 16px;
  border: 1.5px solid #dbe9f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ci-admin-topic-quiz-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #0c2855;
}

.ci-admin-topic-quiz-head span {
  flex-shrink: 0;
  color: #0f766e;
  background: #ddf7f1;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ci-admin-topic-quiz-head strong {
  font-size: 13px;
  font-weight: 800;
}

.ci-admin-topic-quiz-head em {
  margin-left: auto;
  color: #5c728f;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.ci-admin-quiz-topic-list {
  display: grid;
  gap: 12px;
}

.ci-admin-quiz-topic {
  padding: 12px;
  border: 1px solid #d7e5fb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.ci-admin-quiz-topic-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #0c2855;
}

.ci-admin-quiz-topic-head strong {
  min-width: 0;
  color: #0c2855;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.ci-admin-quiz-topic-head em {
  margin-left: auto;
  flex-shrink: 0;
  color: #2a9d8a;
  background: #e8f8f4;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 850;
}

.ci-admin-topic-quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ci-admin-topic-quiz-grid .ci-quiz-btn {
  display: grid;
  justify-items: start;
  gap: 3px;
  width: 100%;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px solid #d7e5fb;
  border-radius: 10px;
  background: #fff;
  color: #0c2855;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 18px rgba(12, 40, 85, 0.06);
}

.ci-admin-topic-quiz-grid .ci-quiz-btn:hover {
  border-color: #2a9d8a;
  background: #f4fcfa;
  color: #0f766e;
}

.ci-admin-topic-quiz-grid .ci-quiz-btn span {
  color: #2a9d8a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ci-admin-topic-quiz-grid .ci-quiz-btn strong {
  font-size: 12px;
  line-height: 1.35;
}

.ci-admin-topic-quiz-grid .ci-quiz-pending {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px dashed #c7d7ea;
  border-radius: 10px;
  color: #7d8ca3;
  background: #f9fbfd;
}

@media (max-width: 700px) {
  .ci-admin-topic-quizzes,
  .ci-admin-course-quizzes {
    margin-left: 8px;
  }

  .ci-admin-quiz-topic-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ci-admin-quiz-topic-head em {
    margin-left: 0;
  }

  .ci-admin-topic-quiz-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   CURRICULUM FILTER TOOLBAR — coordinated with year tabs
   ═══════════════════════════════════════════════════════════ */

/* Wrap toolbar + curriculum card in one unified block */
[data-course-section="curriculum"].toolbar {
  background: #f5f8fc;
  border: 1.5px solid #dce8f4;
  border-radius: 14px 14px 0 0;
  padding: 14px 16px;
  margin-top: 22px;
  margin-bottom: 0;
  gap: 10px;
  grid-template-columns: minmax(200px, 1fr) 90px 160px 160px auto;
}

[data-course-section="curriculum"].toolbar + [data-course-section="curriculum"] {
  border-top: none;
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Search field in toolbar */
[data-course-section="curriculum"].toolbar .search-field {
  border-radius: 9px;
  border: 1.5px solid #dce8f4;
  background: #fff;
  min-height: 38px;
}
[data-course-section="curriculum"].toolbar .search-field:focus-within {
  border-color: #2a9d8a;
  box-shadow: 0 0 0 3px rgba(42,157,138,0.12);
}

/* Search button */
[data-course-section="curriculum"].toolbar .primary-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 9px;
  background: #2a9d8a;
  white-space: nowrap;
}

/* Year & Semester selects */
[data-course-section="curriculum"].toolbar select {
  min-height: 38px;
  border-radius: 9px;
  border: 1.5px solid #dce8f4;
  background: #fff;
  color: #0c2855;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}
[data-course-section="curriculum"].toolbar select:focus {
  outline: none;
  border-color: #2a9d8a;
  box-shadow: 0 0 0 3px rgba(42,157,138,0.12);
}

/* PDF button */
[data-course-section="curriculum"].toolbar .pdf-download-btn {
  height: 38px;
  border-radius: 9px;
}

/* ── Year tabs — sit flush below the toolbar ──────────────── */
.curriculum-card {
  margin-top: 0 !important;
  border-top: none !important;
  border-radius: 0 0 14px 14px !important;
}

.ci-year-nav {
  background: #f5f8fc;
  border-bottom: 2px solid #e4edf5;
  padding: 0 20px;
  gap: 0;
}

.ci-ytab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #6b8299;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ci-ytab:hover { color: #2a9d8a; background: rgba(42,157,138,0.04); }
.ci-ytab--active {
  color: #2a9d8a;
  border-bottom-color: #2a9d8a;
  font-weight: 700;
}

/* ── Curriculum card padding ────────────────────────────── */
.ci-layout { padding: 0 20px 24px; }
.ci-year-banner { margin-top: 20px; }


/* ═══════════════════════════════════════════════════════════
   FIX: Lesson sticky sidebars must sit below the mega-menu
   ═══════════════════════════════════════════════════════════ */
.lesson-sidebar,
.lesson-tools {
  z-index: 10;
}

.mega-menu {
  z-index: 200;
}

.top-header {
  z-index: 150;
}

/* ═══════════════════════════════════════════════════════════
   SUB-HEADER — contextual navigation strip (premium)
   ═══════════════════════════════════════════════════════════ */
.sub-header {
  display: block;
  position: relative;
  top: auto;
  z-index: 140;
  height: 44px;
  background: #fff;
  border-bottom: 1px solid #e8eef6;
  box-shadow: 0 1px 0 #e8eef6, 0 4px 20px rgba(7,40,90,0.055);
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0c2855 0%, #2a9d8a 55%, #34c5ad 100%);
  opacity: 0.55;
  pointer-events: none;
}
.sub-header::-webkit-scrollbar { display: none; }

/* Inner flex container */
.sh-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 64px;
  gap: 0;
  white-space: nowrap;
  min-width: max-content;
}

/* Section label (icon + text) */
.sh-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  flex-shrink: 0;
}
.sh-lbl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(42, 157, 138, 0.1);
  flex-shrink: 0;
}
.sh-lbl-icon svg {
  stroke: var(--sh-lbl-color, #2a9d8a);
  flex-shrink: 0;
}
.sh-lbl-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sh-lbl-color, #2a9d8a);
  line-height: 1;
}

/* Separator */
.sh-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, #cdd9e8 30%, #cdd9e8 70%, transparent);
  margin: 0 12px;
  flex-shrink: 0;
}

/* Nav links */
.sh-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  margin: 0 1px;
  font-size: 12.5px;
  font-weight: 500;
  color: #4a6280;
  border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.14s, color 0.14s, border-color 0.14s, box-shadow 0.14s;
  flex-shrink: 0;
}
.sh-link:hover {
  background: #f0f6fb;
  color: #0c2855;
  border-color: #dae5f0;
}
.sh-link.sh-active {
  background: #2a9d8a;
  color: #fff;
  font-weight: 700;
  border-color: #2a9d8a;
  box-shadow: 0 2px 8px rgba(42,157,138,0.28);
}
.sh-link.sh-active:hover {
  background: #228f7e;
  border-color: #228f7e;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .sub-header { top: auto; }
  .sh-inner { padding: 0 20px; }
  .sh-sep:last-of-type + .sh-link,
  .sh-sep:last-of-type ~ .sh-link { display: none; }
}

/* ============================================================
   RESOURCES PAGE FOOTER  (.resources-page-footer)
   Two-row grid: Study Resources + Information & Legal
   ============================================================ */
.resources-page-footer {
  background: #0b1d3a;
  color: #c8d6e8;
  margin-top: 0;
  padding: 0;
}

.rpf-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 32px 36px;
}

/* Brand strip */
.rpf-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.rpf-logo {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.rpf-logo svg {
  width: 42px;
  height: 42px;
  display: block;
}

.rpf-brand strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rpf-brand span {
  display: block;
  font-size: 12px;
  color: #7da4c4;
  margin-top: 2px;
}

/* Tagline */
.rpf-tagline {
  font-size: 13.5px;
  line-height: 1.65;
  color: #a0bad4;
  max-width: 680px;
  margin: 0 0 40px;
}

/* Row section labels */
.rpf-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a9d8a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42, 157, 138, 0.2);
}

.rpf-row-label svg {
  width: 14px;
  height: 14px;
  stroke: #2a9d8a;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Grid rows */
.rpf-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.rpf-grid--study {
  grid-template-columns: repeat(3, 1fr);
}

.rpf-grid--info {
  grid-template-columns: repeat(5, 1fr);
}

/* Cards */
.rpf-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 18px 16px 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  cursor: pointer;
}

.rpf-card:hover {
  background: rgba(42, 157, 138, 0.1);
  border-color: rgba(42, 157, 138, 0.35);
  transform: translateY(-2px);
}

.rpf-card--quiz {
  background: rgba(42, 157, 138, 0.07);
  border-color: rgba(42, 157, 138, 0.2);
}

.rpf-card--info {
  background: rgba(255, 255, 255, 0.03);
}

/* Card icon */
.rpf-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(42, 157, 138, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rpf-card-icon svg {
  width: 17px;
  height: 17px;
  stroke: #2a9d8a;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rpf-card--info .rpf-card-icon {
  background: rgba(124, 179, 214, 0.12);
}

.rpf-card--info .rpf-card-icon svg {
  stroke: #7cb3d6;
}

/* Card body */
.rpf-card-body h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #e8f0fa;
  margin: 0 0 5px;
  line-height: 1.3;
}

.rpf-card-body p {
  font-size: 12px;
  line-height: 1.6;
  color: #7da4c4;
  margin: 0;
}

/* Card CTA */
.rpf-card-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #2a9d8a;
  margin-top: auto;
}

.rpf-card:hover .rpf-card-cta {
  color: #3bbdaa;
}

.rpf-card-cta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.rpf-card:hover .rpf-card-cta svg {
  transform: translateX(3px);
}

/* Bottom bar */
.rpf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.rpf-copy {
  font-size: 12px;
  color: #5a7a99;
}

.rpf-bottom-links {
  display: flex;
  gap: 20px;
}

.rpf-bottom-links a {
  font-size: 12px;
  color: #5a7a99;
  text-decoration: none;
  transition: color 0.15s;
}

.rpf-bottom-links a:hover {
  color: #2a9d8a;
}

/* Responsive: tablet */
@media (max-width: 900px) {
  .rpf-grid--study {
    grid-template-columns: repeat(2, 1fr);
  }
  .rpf-grid--info {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive: mobile */
@media (max-width: 600px) {
  .rpf-inner {
    padding: 40px 20px 28px;
  }
  .rpf-grid--study,
  .rpf-grid--info {
    grid-template-columns: 1fr 1fr;
  }
  .rpf-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .rpf-bottom-links {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

/* ============================================================
   FULL CURRICULUM PAGE VIEW  (.cpv-*)
   ============================================================ */

#curriculumPageView {
  min-height: 100vh;
  background: #f4f7fb;
}

#curriculumPageContent {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.cpv-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #0b2142 0%, #0f3460 60%, #1a5276 100%);
  padding: 20px 40px;
  flex-wrap: wrap;
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.cpv-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cpv-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: fit-content;
}
.cpv-back-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.cpv-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cpv-header-icon {
  width: 40px;
  height: 40px;
  background: rgba(42,157,138,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cpv-header-icon svg {
  width: 20px;
  height: 20px;
  stroke: #2a9d8a;
}

.cpv-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.cpv-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin: 2px 0 0;
}

/* Stats chips */
.cpv-header-stats {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.cpv-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 14px;
  white-space: nowrap;
}
.cpv-stat svg {
  width: 16px;
  height: 16px;
  stroke: #2a9d8a;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.cpv-stat span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cpv-stat b {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.cpv-stat:first-child b {
  max-width: 132px;
  white-space: normal;
  font-size: 13px;
  line-height: 1.15;
}
.cpv-stat small {
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* Progress ring */
.cpv-progress-ring {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cpv-ring-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cpv-ring-label b {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.cpv-ring-label small {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

/* Year tabs */
.cpv-year-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 2px solid #e4ecf5;
  padding: 0 40px;
  position: sticky;
  top: calc(72px + 80px);
  z-index: 99;
}

.cpv-year-tab {
  padding: 14px 28px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5a7a99;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.cpv-year-tab:hover {
  color: #0c2855;
}
.cpv-year-tab--active {
  color: #2a9d8a;
  border-bottom-color: #2a9d8a;
  font-weight: 700;
}

/* Year panels */
.cpv-year-panel {
  display: none;
}
.cpv-year-active {
  display: block;
}

/* Body */
.cpv-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px 64px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Curriculum page: ci-* content accordion ─────────────── */
/* Scoped to .cpv-curriculum-body so regular curriculum tab is unaffected */
.cpv-curriculum-body .ci-cc-body { display: none; }
.cpv-curriculum-body .ci-course-card.ci-cc-open .ci-cc-body { display: block; }
.cpv-curriculum-body .ci-cc-hd {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.cpv-curriculum-body .ci-cc-hd:hover { background: #f4f8fc; }
.cpv-curriculum-body .ci-cc-chevron svg { transition: transform 0.2s ease; }
.cpv-curriculum-body .ci-course-card.ci-cc-open .ci-cc-chevron svg { transform: rotate(180deg); }

/* Grid spacing tweaks inside cpv body */
.cpv-curriculum-body .ci-sems-grid { margin-top: 0; }
.cpv-curriculum-body .ci-sem-col { gap: 8px; }

/* Semester section */
.cpv-semester {
  margin-bottom: 36px;
}

.cpv-sem-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2a9d8a;
}

.cpv-sem-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #2a9d8a;
  margin: 0;
}

.cpv-sem-pill {
  font-size: 11px;
  font-weight: 600;
  color: #2a9d8a;
  background: rgba(42,157,138,0.1);
  border: 1px solid rgba(42,157,138,0.25);
  border-radius: 20px;
  padding: 2px 10px;
}

/* Course rows */
.cpv-courses {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4ecf5;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(7,58,112,0.05);
}

.cpv-course-row {
  border-bottom: 1px solid #eef3f9;
}
.cpv-course-row:last-child {
  border-bottom: none;
}

.cpv-course-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.cpv-course-hd:hover {
  background: #f7fafd;
}

/* Status circle */
.cpv-course-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #c5d5e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cpv-course-done {
  background: #2a9d8a;
  border-color: #2a9d8a;
}
.cpv-course-done svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
}

.cpv-course-code {
  font-size: 12px;
  font-weight: 700;
  color: #2a9d8a;
  min-width: 52px;
  flex-shrink: 0;
}

.cpv-course-title {
  font-size: 14px;
  font-weight: 600;
  color: #0c2855;
  flex: 1;
  line-height: 1.35;
}

.cpv-course-lessons {
  font-size: 12.5px;
  color: #5a7a99;
  flex-shrink: 0;
  white-space: nowrap;
}

.cpv-lessons-locked {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9aafca;
}

.cpv-course-chevron {
  flex-shrink: 0;
  color: #9aafca;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}
.cpv-course-chevron svg {
  width: 16px;
  height: 16px;
}
.cpv-course-open .cpv-course-chevron {
  transform: rotate(180deg);
}

/* Badge */
.cpv-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.cpv-badge--core { background: #e8f4f2; color: #1a7a6e; border: 1px solid rgba(42,157,138,0.25); }
.cpv-badge--practical { background: #fff0e6; color: #c26200; border: 1px solid rgba(194,98,0,0.2); }
.cpv-badge--clinical { background: #e8f0ff; color: #2952c8; border: 1px solid rgba(41,82,200,0.2); }
.cpv-badge--theory { background: #f3eeff; color: #6935c8; border: 1px solid rgba(105,53,200,0.2); }

/* Lesson list */
.cpv-lesson-list {
  display: none;
  border-top: 1px solid #eef3f9;
  background: #f9fbfd;
}
.cpv-course-open .cpv-lesson-list {
  display: block;
}

.cpv-lesson-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 50px;
  border-bottom: 1px solid #eef3f9;
  transition: background 0.12s;
}
.cpv-lesson-row:last-child {
  border-bottom: none;
}
.cpv-lesson-row:hover {
  background: #f0f5fb;
}

.cpv-lesson-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0dcea;
  flex-shrink: 0;
}
.cpv-dot-done {
  background: #2a9d8a;
}

.cpv-lesson-num {
  font-size: 12px;
  color: #9aafca;
  font-weight: 600;
  min-width: 20px;
  flex-shrink: 0;
}

.cpv-lesson-name {
  flex: 1;
  font-size: 13.5px;
  color: #3a5270;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  cursor: default;
  line-height: 1.4;
}
.cpv-lesson-name.cpv-has-note {
  color: #0c2855;
  cursor: pointer;
  font-weight: 500;
}
.cpv-lesson-name.cpv-has-note:hover {
  color: #2a9d8a;
  text-decoration: underline;
}

.cpv-lesson-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.cpv-lesson-note-btn,
.cpv-lesson-quiz-btn {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cpv-lesson-note-btn {
  background: #e8f4f2;
  color: #1a7a6e;
  border: 1px solid rgba(42,157,138,0.3);
}
.cpv-lesson-note-btn:hover {
  background: #2a9d8a;
  color: #fff;
}
.cpv-lesson-quiz-btn {
  background: #ede8ff;
  color: #5b21b6;
  border: 1px solid rgba(91,33,182,0.2);
}
.cpv-lesson-quiz-btn:hover {
  background: #5b21b6;
  color: #fff;
}
.cpv-quiz-soon {
  font-size: 11px;
  color: #b0c4d8;
}

/* Lesson status icon */
.cpv-lesson-status {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpv-status-done svg { width: 16px; height: 16px; stroke: #2a9d8a; }
.cpv-status-pending svg { width: 16px; height: 16px; stroke: #d0dcea; }
.cpv-status-lock svg { width: 14px; height: 14px; stroke: #b0c4d8; }

/* Responsive */
@media (max-width: 860px) {
  .cpv-header {
    padding: 16px 20px;
    top: 0;
  }
  .cpv-header-stats {
    margin-left: 0;
    order: 3;
    width: 100%;
    gap: 4px;
  }
  .cpv-stat { padding: 6px 10px; }
  .cpv-year-tabs { padding: 0 16px; top: 0; }
  .cpv-body { padding: 20px 16px 48px; }
  .cpv-lesson-row { padding-left: 32px; }
}

/* Hide sub-header on admin dashboard */
body.admin-mode .sub-header {
  display: none !important;
}

/* Let learning/detail pages scroll without a pinned site header. */
body.non-sticky-header-mode .top-header,
body.non-sticky-header-mode .sub-header {
  position: relative !important;
  top: auto !important;
}

/* Home hero/card refresh: compact, readable, and overlap-safe. */
.home-hero-split {
  min-height: 260px;
}

.home-hero-left {
  padding-bottom: 118px;
}

.home-course-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1040px, calc(100% - 48px));
  margin: -82px auto 30px;
}

.home-course-card {
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  min-height: 116px;
  padding: 12px;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(7, 58, 112, 0.09);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-course-card:hover {
  border-color: var(--course-border);
  box-shadow: 0 16px 34px rgba(7, 58, 112, 0.15);
  transform: translateY(-3px);
}

.home-course-icon {
  width: 40px;
  height: 40px;
  margin-top: 2px;
}

.home-course-icon svg {
  width: 20px;
  height: 20px;
}

.home-course-kicker {
  min-height: 20px;
  padding: 0 8px;
  font-size: 8.5px;
}

.home-course-card h2 {
  max-width: 20ch;
  font-size: 12.5px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-course-card p {
  display: none;
}

.home-course-card button {
  min-height: 30px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 10.5px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-course-card button:hover b {
  transform: translateX(2px);
}

.home-course-card button b {
  transition: transform 0.2s ease;
}

@media (max-width: 1180px) {
  .home-course-cards {
    width: min(980px, calc(100% - 32px));
    margin-top: -66px;
  }
}

@media (max-width: 1120px) {
  .home-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f5fbfd 100%);
  }

  .home-hero-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
    background: transparent;
  }

  .home-hero-split::after {
    display: none;
  }

  .home-hero-photo {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    height: clamp(210px, 34vw, 320px);
    overflow: hidden;
  }

  .home-hero-photo picture,
  .home-hero-photo img {
    width: 100%;
    height: 100%;
  }

  .home-hero-photo img {
    object-fit: cover;
    object-position: center 18%;
  }

  .home-hero-left {
    width: 100%;
    padding: 34px 24px 32px;
    background: linear-gradient(150deg, #edf8ff 0%, #ffffff 58%, #f6fcfb 100%);
  }

  .home-hero-left h1,
  .home-hero-left > p {
    width: min(680px, 100%);
    max-width: min(680px, 100%);
  }

  .home-course-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(218px, 1fr));
    gap: 10px;
    width: calc(100% - 28px);
    margin: 18px auto 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
}

@media (max-width: 760px) {
  .home-hero-left {
    padding: 28px 18px 26px;
  }

  .home-hero-left::before {
    width: 72px;
    height: 4px;
    margin-bottom: 18px;
  }

  .home-hero-left h1 {
    width: 100%;
    font-size: clamp(31px, 9.5vw, 42px);
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .home-hero-left > p {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.55;
  }

  .home-actions {
    width: 100%;
    margin-top: 20px;
    padding-bottom: 0;
    gap: 10px;
  }

  .home-actions .primary-button,
  .home-actions .ghost-button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }

  .home-course-cards {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    margin-top: 16px;
  }

  .home-course-card {
    min-height: 112px;
    padding: 12px;
  }

  .home-course-card h2 {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .home-hero-photo {
    height: 188px;
  }

  .home-hero-left {
    padding-top: 24px;
  }

  .home-hero-left h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .home-course-cards {
    width: calc(100% - 20px);
    grid-template-columns: repeat(4, minmax(205px, 1fr));
  }
}

/* Home arrangement pass: clearer flow after removing the hero action buttons. */
#homeView .home-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
  border-bottom: 1px solid rgba(194, 211, 226, 0.72);
}

#homeView .home-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(400px, 1.04fr);
  grid-template-rows: 300px;
  width: min(1420px, 100%);
  min-height: 0;
  margin: 0 auto;
  background: #ffffff;
  overflow: hidden;
}

#homeView .home-hero-left {
  min-width: 0;
  justify-content: center;
  padding: 24px clamp(30px, 5vw, 70px) 18px;
  background:
    linear-gradient(145deg, #f2fbfb 0%, #ffffff 55%, #eef6ff 100%),
    linear-gradient(90deg, rgba(42, 157, 138, 0.12), transparent 60%);
}

#homeView .home-hero-left::before {
  width: 82px;
  height: 4px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #2a9d8a, #1d4ed8);
  box-shadow: none;
}

#homeView .home-hero-left h1 {
  max-width: 680px;
  margin-bottom: 12px;
  color: #071f4f;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: 0;
}

#homeView .home-hero-left > p {
  max-width: 590px;
  color: #35516f;
  font-size: 16px;
  line-height: 1.6;
}

#homeView .home-hero-photo {
  min-height: 280px;
  max-height: 340px;
  background: #d8edf4;
}

#homeView .home-hero-photo::before {
  left: -10%;
  width: 20%;
  background: linear-gradient(180deg, #ffffff, #f6fbfd);
  box-shadow: 22px 0 48px rgba(255, 255, 255, 0.92);
}

#homeView .home-hero-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

#homeView .home-course-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, calc(100% - 48px));
  margin: -42px auto 26px;
  overflow: visible;
  padding: 0;
}

#homeView .home-course-card {
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  min-height: 132px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(7, 58, 112, 0.10);
}

#homeView .home-course-icon {
  width: 38px;
  height: 38px;
  margin-top: 0;
}

#homeView .home-course-icon svg {
  width: 19px;
  height: 19px;
}

#homeView .home-course-kicker {
  min-height: 19px;
  padding: 0 8px;
  font-size: 9px;
}

#homeView .home-course-card h2 {
  max-width: none;
  min-height: 32px;
  color: #09245a;
  font-size: 14px;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
}

#homeView .home-course-card button {
  min-height: 34px;
  margin-top: 11px;
  border-radius: 8px;
  font-size: 11px;
}

#homeView .home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 46px;
  padding: 0;
  background: transparent;
  border-top: 0;
}

#homeView .home-feature-grid button {
  grid-template-columns: 46px minmax(0, 1fr) 26px;
  min-height: 92px;
  padding: 15px 13px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(7, 58, 112, 0.05);
}

#homeView .home-feature-grid .feat-icon {
  width: 42px;
  height: 42px;
}

#homeView .home-feature-grid .feat-icon svg {
  width: 21px;
  height: 21px;
}

#homeView .home-feature-grid strong {
  font-size: 14px;
}

#homeView .home-feature-grid small {
  font-size: 12px;
}

#homeView .home-feature-grid button::after {
  width: 24px;
  height: 24px;
}

#homeView .home-section {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  padding: 56px 0;
}

#homeView .notes-panel {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px 20px;
  align-items: stretch;
  padding-top: 48px;
  border-top: 1px solid rgba(194, 211, 226, 0.85);
  border-bottom: 1px solid rgba(194, 211, 226, 0.85);
  background: transparent;
}

#homeView .notes-copy {
  align-self: start;
  padding: 10px 0 0;
}

#homeView .notes-copy h2,
#homeView .section-heading h2 {
  letter-spacing: 0;
}

#homeView .notes-copy p,
#homeView .section-heading p {
  max-width: 640px;
}

#homeView .home-outline-table {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 100%;
}

#homeView .latest-lessons {
  grid-column: 1;
  grid-row: 2;
}

#homeView .home-outline-table,
#homeView .latest-lessons {
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(7, 58, 112, 0.07);
}

#homeView .home-lesson-list button {
  border-radius: 8px;
}

#homeView .instruments-home,
#homeView .home-blog-promo,
#homeView .home-study-highlights,
#homeView .home-newsletter,
#homeView .home-seo-hubs,
#homeView .resource-links-home {
  margin-top: 0;
}

#homeView .home-study-highlights {
  width: 100%;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
}

#homeView .home-study-highlights > * {
  max-width: 1180px;
}

#homeView .home-newsletter {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  padding: 38px 40px;
  border: 1px solid rgba(22, 64, 99, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 10%, rgba(42, 157, 138, 0.22), transparent 30%),
    linear-gradient(135deg, #0b2a4f 0%, #104f61 58%, #0b335d 100%);
  box-shadow: 0 18px 40px rgba(7, 58, 112, 0.14);
}

#homeView .home-newsletter .section-tag {
  margin-bottom: 16px;
  padding: 4px 14px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  font-size: 10px;
  letter-spacing: 0.08em;
}

#homeView .home-newsletter h2 {
  max-width: 560px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

#homeView .home-newsletter p {
  max-width: 590px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.62;
}

#homeView .home-newsletter .newsletter-form {
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(4, 18, 50, 0.22);
}

#homeView .home-newsletter .newsletter-form label {
  gap: 8px;
  color: #536982;
  font-size: 11px;
}

#homeView .home-newsletter .newsletter-form input {
  min-height: 46px;
  border-radius: 8px;
  font-size: 14px;
}

#homeView .home-newsletter .newsletter-form button {
  min-height: 48px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(10, 114, 120, 0.26);
}

#homeView .home-newsletter .newsletter-form small {
  color: #52677f;
  font-size: 12px;
}

@media (max-width: 1120px) {
  #homeView .home-hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #homeView .home-hero-photo {
    order: -1;
    min-height: 0;
    height: 300px;
  }

  #homeView .home-hero-left {
    padding: 36px 24px 34px;
  }

  #homeView .home-hero-left h1 {
    width: 100%;
    max-width: 760px;
    font-size: 42px;
  }

  #homeView .home-hero-left > p {
    width: 100%;
    max-width: 720px;
  }

  #homeView .home-course-cards {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    width: calc(100% - 32px);
    margin: 18px auto 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  #homeView .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 32px);
    margin-bottom: 34px;
  }

  #homeView .home-section {
    width: calc(100% - 32px);
    padding: 44px 0;
  }

  #homeView .notes-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  #homeView .home-outline-table,
  #homeView .latest-lessons {
    grid-column: 1;
    grid-row: auto;
  }

  #homeView .home-newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 32px);
    padding: 34px 28px;
  }
}

@media (max-width: 760px) {
  #homeView .home-hero-photo {
    height: 220px;
  }

  #homeView .home-hero-photo img {
    object-position: center 42%;
  }

  #homeView .home-hero-left {
    padding: 28px 18px 26px;
  }

  #homeView .home-hero-left::before {
    width: 64px;
    margin-bottom: 16px;
  }

  #homeView .home-hero-left h1 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  #homeView .home-hero-left > p {
    font-size: 14px;
    line-height: 1.58;
  }

  #homeView .home-course-cards {
    grid-template-columns: repeat(4, minmax(218px, 1fr));
    width: calc(100% - 20px);
    gap: 10px;
    margin-top: 14px;
  }

  #homeView .home-course-card {
    min-height: 124px;
  }

  #homeView .home-course-card h2 {
    font-size: 13px;
  }

  #homeView .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 20px);
    gap: 10px;
    margin-bottom: 24px;
  }

  #homeView .home-feature-grid button {
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    min-height: 76px;
    padding: 10px;
    column-gap: 9px;
  }

  #homeView .home-feature-grid .feat-icon {
    width: 34px;
    height: 34px;
  }

  #homeView .home-feature-grid .feat-icon svg {
    width: 18px;
    height: 18px;
  }

  #homeView .home-feature-grid strong {
    font-size: 12.5px;
    line-height: 1.18;
  }

  #homeView .home-feature-grid small {
    display: none;
  }

  #homeView .home-feature-grid button::after {
    width: 20px;
    height: 20px;
    font-size: 15px;
  }

  #homeView .home-section {
    width: calc(100% - 20px);
    padding: 36px 0;
  }

  #homeView .home-newsletter {
    width: calc(100% - 20px);
    padding: 26px 18px;
  }

  #homeView .home-newsletter h2 {
    font-size: 28px;
  }

  #homeView .home-newsletter p {
    font-size: 14px;
  }

  #homeView .resource-links-home {
    grid-template-columns: 1fr;
  }
}

/* Full curriculum pages: compact, non-sticky header for every course. */
.cpv-header {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 42px);
  position: relative;
  top: auto;
  z-index: 2;
  background: linear-gradient(135deg, #0b2448 0%, #123f63 62%, #15586e 100%);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cpv-header-left {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.cpv-back-btn {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.cpv-header-title {
  min-width: 0;
  gap: 10px;
}

.cpv-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(42, 157, 138, 0.2);
}

.cpv-title {
  font-size: 22px;
  letter-spacing: 0;
}

.cpv-subtitle {
  max-width: 260px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpv-header-stats {
  justify-content: flex-end;
  gap: 8px;
  margin-left: 0;
}

.cpv-stat {
  min-height: 48px;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.cpv-stat b,
.cpv-stat:first-child b {
  max-width: none;
  font-size: 14px;
  line-height: 1.18;
}

.cpv-stat:first-child {
  min-width: 168px;
}

.cpv-stat small {
  font-size: 10px;
}

.cpv-progress-ring {
  gap: 8px;
}

.cpv-progress-ring svg {
  width: 48px;
  height: 48px;
}

.cpv-ring-label b {
  font-size: 18px;
}

.cpv-year-tabs {
  position: relative;
  top: auto;
  z-index: 1;
  overflow-x: auto;
  padding: 0 clamp(18px, 4vw, 42px);
}

@media (max-width: 1180px) {
  .cpv-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cpv-header-stats {
    justify-content: flex-start;
  }

  .cpv-progress-ring {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .cpv-header {
    padding: 16px;
  }

  .cpv-header-left {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cpv-header-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .cpv-stat,
  .cpv-stat:first-child {
    min-width: 0;
    white-space: normal;
  }

  .cpv-progress-ring {
    display: none;
  }

  .cpv-year-tabs {
    padding: 0 16px;
  }

  .cpv-year-tab {
    padding: 13px 18px;
  }
}

/* Curriculum page polish: lighter header, clearer tabs, calmer module cards. */
#curriculumPageView {
  background: linear-gradient(180deg, #f6f9fc 0%, #eef4f9 100%);
}

.cpv-header {
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr) auto;
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 18px;
  border: 1px solid rgba(194, 211, 226, 0.9);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(7, 58, 112, 0.08);
}

.cpv-back-btn {
  min-height: 34px;
  border-color: #d5e2ee;
  color: #16345f;
  background: #f7fafc;
}

.cpv-back-btn:hover {
  color: #0b2448;
  background: #eef6f8;
}

.cpv-header-icon {
  color: #2a9d8a;
  background: #e8f6f3;
}

.cpv-title {
  color: #071f4f;
}

.cpv-subtitle {
  color: #566f8a;
}

.cpv-stat {
  border-color: #dbe8f3;
  background: #f8fbfd;
}

.cpv-stat svg {
  stroke: #2a9d8a;
}

.cpv-stat b,
.cpv-stat:first-child b,
.cpv-ring-label b {
  color: #09245a;
}

.cpv-stat small,
.cpv-ring-label small {
  color: #60748b;
}

.cpv-progress-ring circle:first-child {
  stroke: #dfe9f2;
}

.cpv-progress-ring circle:last-child {
  stroke: #2a9d8a;
}

.cpv-year-tabs {
  width: min(1180px, calc(100% - 48px));
  margin: 14px auto 0;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dfe8f1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(7, 58, 112, 0.05);
}

.cpv-year-tab {
  min-height: 42px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #48627e;
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cpv-year-tab:hover {
  color: #075f63;
  border-color: #a8d9dc;
  background: #edfafa;
  box-shadow: 0 8px 18px rgba(15, 146, 146, 0.12);
  transform: translateY(-1px);
}

.cpv-year-tab--active {
  color: #ffffff;
  border-color: #0f9292;
  background: #0f9292;
  box-shadow: 0 10px 22px rgba(15, 146, 146, 0.22);
}

.cpv-year-tab--active:hover {
  color: #ffffff;
  border-color: #08787a;
  background: #08787a;
}

/* Keep navigation tabs rectangular with a small radius instead of pill-shaped. */
.sh-link,
.cpv-year-tab,
.library-chip,
.courses-library-chips button,
.global-search-tabs button,
.instrument-category-pills button,
.nd-filter-btn,
[data-auth-tab],
[data-admin-auth-tab],
[data-login-method],
#programView .tabs button {
  border-radius: 7px;
}

.chip-count,
.library-chip .chip-count,
.courses-library-chips button span,
.instrument-category-pills button span {
  border-radius: 5px;
}

.cpv-body {
  max-width: 1180px;
  padding: 30px 24px 68px;
}

.cpv-curriculum-body .ci-sems-grid {
  gap: 24px;
  align-items: start;
}

.cpv-curriculum-body .ci-sem-hd {
  margin-bottom: 14px;
  padding: 0 0 12px;
}

.cpv-curriculum-body .ci-sem-count-pill {
  color: #ffffff;
  background: #0f766e;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.cpv-curriculum-body .ci-sem-title {
  letter-spacing: 0.05em;
}

.cpv-curriculum-body .ci-course-card {
  border-color: #b8dbe2;
  border-radius: 10px;
  background: #eaf7f6;
  box-shadow: 0 12px 26px rgba(7, 58, 112, 0.08);
}

.cpv-curriculum-body .ci-cc-hd {
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #e0f3f2 0%, #f2fbfa 100%);
  border-bottom: 1px solid #cce6e8;
}

.cpv-curriculum-body .ci-cc-hd:hover {
  background: linear-gradient(135deg, #d2eeec 0%, #e9f8f7 100%);
}

.cpv-curriculum-body .ci-item-label--module {
  color: #ffffff;
  background: #1f3f6d;
}

.cpv-curriculum-body .ci-cc-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.cpv-curriculum-body .ci-cc-body {
  padding: 14px 18px 16px;
  background: #f7fcfc;
}

.cpv-curriculum-body .ci-topic-hd {
  padding: 9px 0;
}

.cpv-curriculum-body .ci-lesson-item {
  padding: 7px 8px;
}

@media (max-width: 1180px) {
  .cpv-header,
  .cpv-year-tabs {
    width: calc(100% - 32px);
  }

  .cpv-header {
    grid-template-columns: 1fr;
  }

  .cpv-header-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .cpv-header,
  .cpv-year-tabs {
    width: calc(100% - 20px);
  }

  .cpv-header {
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
  }

  .cpv-header-left {
    grid-template-columns: 1fr;
  }

  .cpv-header-title {
    align-items: flex-start;
  }

  .cpv-subtitle {
    max-width: 100%;
    white-space: normal;
  }

  .cpv-header-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cpv-stat {
    min-height: 54px;
    padding: 9px 10px;
  }

  .cpv-year-tabs {
    margin-top: 10px;
  }

  .cpv-body {
    padding: 22px 10px 56px;
  }

  .cpv-curriculum-body .ci-cc-hd {
    padding: 14px;
  }
}

/* Lesson previous/next navigation: clearer cards and reliable states. */
.lesson-premium-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 42px 0 0;
  padding-top: 24px;
  border-top: 1px solid #dbe8f2;
}

.lesson-nav-card {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid #d5e3ee;
  border-radius: 14px;
  color: #0b2a5b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.98));
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(7, 58, 112, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.lesson-nav-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #b9c9d8;
}

.lesson-nav-card--next {
  grid-template-columns: minmax(0, 1fr) 52px;
  border-color: rgba(42, 157, 138, 0.42);
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 157, 138, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f2fbfa 100%);
  box-shadow: 0 16px 38px rgba(42, 157, 138, 0.16);
}

.lesson-nav-card--next::before {
  right: 0;
  left: auto;
  background: linear-gradient(180deg, #2a9d8a, #0f766e);
}

.lesson-nav-card:not(:disabled):hover {
  border-color: #2a9d8a;
  box-shadow: 0 18px 38px rgba(7, 58, 112, 0.13);
  transform: translateY(-2px);
}

.lesson-nav-card--next:not(:disabled):hover {
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 157, 138, 0.22), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #eaf8f7 100%);
}

.lesson-nav-card:focus-visible {
  outline: 3px solid rgba(42, 157, 138, 0.26);
  outline-offset: 3px;
}

.lesson-nav-card:disabled {
  cursor: not-allowed;
  color: #8899aa;
  background: #fbfdff;
  border-color: #dce7f0;
  box-shadow: none;
  opacity: 1;
}

.lesson-nav-card:disabled::before {
  background: #dbe4ed;
}

.lesson-nav-card:disabled .lesson-nav-icon {
  color: #a7b7c7;
  background: #eef3f7;
  box-shadow: none;
}

.lesson-nav-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #2a9d8a;
  background: #e8f6f3;
  box-shadow: inset 0 0 0 1px rgba(42, 157, 138, 0.18);
}

.lesson-nav-card--next .lesson-nav-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #2a9d8a, #0f766e);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.lesson-nav-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lesson-nav-copy {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.lesson-nav-copy small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #506982;
  background: #eef5fb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 1;
}

.lesson-nav-card--next .lesson-nav-copy small {
  color: #0f766e;
  background: #dff4f2;
}

.lesson-nav-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: currentColor;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lesson-nav-card:disabled .lesson-nav-copy small,
.lesson-nav-card:disabled .lesson-nav-copy strong {
  color: #8b9aaa;
}

@media (max-width: 760px) {
  .lesson-premium-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .lesson-nav-card,
  .lesson-nav-card--next {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 92px;
    padding: 16px;
  }

  .lesson-nav-card--next .lesson-nav-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .lesson-nav-card--next .lesson-nav-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .lesson-nav-icon {
    width: 46px;
    height: 46px;
  }

  .lesson-nav-copy strong {
    font-size: 15px;
  }
}

/* Quiz Banks catalog: image-style category cards with working actions. */
.quiz-banks-content {
  max-width: 1640px;
  padding: 34px 22px 72px;
}

.quiz-banks-hero {
  min-height: 210px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  padding: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #0b2448 0%, #0f5d66 100%);
}

.quiz-banks-hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0;
}

.quiz-banks-hero p {
  max-width: 760px;
}

.quiz-bank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.quiz-bank-card {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dde8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(7, 58, 112, 0.08);
}

.quiz-bank-visual {
  min-height: 150px;
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #2455b8 0%, #55b8c5 100%);
}

.quiz-bank-visual::after {
  content: "";
  position: absolute;
  inset: auto -42px -62px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.quiz-bank-index {
  position: absolute;
  top: 18px;
  right: 18px;
  width: auto;
  height: auto;
  min-width: 42px;
  min-height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
}

.quiz-bank-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.quiz-bank-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz-bank-visual strong {
  max-width: 230px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.quiz-bank-card-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 24px;
}

.quiz-bank-category {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #e8f6f3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-bank-card h2 {
  max-width: 100%;
  margin: 0;
  color: #10233f;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.2;
  letter-spacing: 0;
}

.quiz-bank-card p {
  margin: 0;
  color: #405a76;
  font-size: 14px;
  line-height: 1.58;
}

.quiz-bank-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz-bank-card li {
  position: relative;
  padding-left: 18px;
  color: #183b63;
  font-size: 13px;
  line-height: 1.45;
}

.quiz-bank-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a9d8a;
}

.quiz-bank-meta {
  grid-column: auto;
  gap: 8px;
  margin-top: 2px;
}

.quiz-bank-meta span {
  min-height: 30px;
  border-radius: 999px;
  background: #f0f6fb;
  color: #425c77;
  font-size: 12px;
}

.quiz-bank-meta b {
  color: #09245a;
}

.quiz-bank-action {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  background: transparent;
}

.quiz-bank-action .primary-button,
.quiz-bank-action .ghost-button {
  min-height: 46px;
  border-radius: 8px;
  font-size: 13px;
}

.quiz-bank-action .ghost-button {
  border-color: #c8d9e8;
  color: #15365f;
  background: #ffffff;
}

.quiz-bank-action svg {
  width: 19px;
  height: 19px;
}

.quiz-bank-card--navy-cyan .quiz-bank-visual { background: linear-gradient(135deg, #102a5c 0%, #1aa6b7 100%); }
.quiz-bank-card--violet-rose .quiz-bank-visual { background: linear-gradient(135deg, #7c3aed 0%, #ec8faf 100%); }
.quiz-bank-card--rose-gold .quiz-bank-visual { background: linear-gradient(135deg, #e11d48 0%, #d6a958 100%); }
.quiz-bank-card--indigo-sky .quiz-bank-visual { background: linear-gradient(135deg, #3730a3 0%, #5bb6e8 100%); }
.quiz-bank-card--green-slate .quiz-bank-visual { background: linear-gradient(135deg, #0f766e 0%, #64748b 100%); }
.quiz-bank-card--teal-amber .quiz-bank-visual { background: linear-gradient(135deg, #0f9488 0%, #d9a441 100%); }
.quiz-bank-card--blue-violet .quiz-bank-visual { background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%); }
.quiz-bank-card--cyan-green .quiz-bank-visual { background: linear-gradient(135deg, #0891b2 0%, #22c55e 100%); }
.quiz-bank-card--sky-lime .quiz-bank-visual { background: linear-gradient(135deg, #38bdf8 0%, #9fca6b 100%); }
.quiz-bank-card--purple-blue .quiz-bank-visual { background: linear-gradient(135deg, #7e22ce 0%, #1d4ed8 100%); }
.quiz-bank-card--slate-teal .quiz-bank-visual { background: linear-gradient(135deg, #334155 0%, #14b8a6 100%); }
.quiz-bank-card--red-navy .quiz-bank-visual { background: linear-gradient(135deg, #b91c1c 0%, #12345f 100%); }
.quiz-bank-card--orange-teal .quiz-bank-visual { background: linear-gradient(135deg, #ea7a1a 0%, #0f9488 100%); }

@media (max-width: 1180px) {
  .quiz-banks-hero {
    grid-template-columns: 1fr;
  }

  .quiz-bank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 620px) {
  .quiz-banks-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quiz-banks-hero {
    padding: 26px 20px;
  }

  .quiz-bank-visual {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 132px;
    gap: 16px;
    padding: 22px 20px;
  }

  .quiz-bank-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .quiz-bank-icon svg {
    width: 31px;
    height: 31px;
  }

  .quiz-bank-visual strong {
    font-size: 20px;
  }

  .quiz-bank-card-main {
    padding: 22px 20px;
  }

  .quiz-bank-action {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE POLISH
   ═══════════════════════════════════════════════════════════════ */

/* 1. Hero — richer layered background */
.home-hero {
  background:
    radial-gradient(ellipse at 4% 0%, rgba(49, 87, 213, 0.055), transparent 44%),
    radial-gradient(ellipse at 97% 100%, rgba(42, 157, 138, 0.07), transparent 38%),
    linear-gradient(180deg, #f6faff 0%, #edf4fb 50%, #f0f8f6 100%);
}

/* 2. Inline stat row in hero-left */
.home-hero-stat-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border: 1.5px solid rgba(194, 211, 226, 0.85);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  max-width: 420px;
  box-shadow: 0 4px 16px rgba(7, 58, 112, 0.07);
}

.home-hero-stat-row li {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 14px;
  border-right: 1px solid rgba(194, 211, 226, 0.85);
}

.home-hero-stat-row li:last-child {
  border-right: none;
}

.home-hero-stat-row strong {
  display: block;
  color: #09245a;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.home-hero-stat-row span {
  display: block;
  margin-top: 3px;
  color: #62748a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 3. Course cards — filled premium curriculum cards */
#homeView .home-course-card.course-certificate {
  --course-accent: #187c4e;
  --course-accent-deep: #0c5a38;
  --course-soft: rgba(232, 255, 244, 0.9);
  --course-bg:
    radial-gradient(circle at 94% 90%, rgba(255, 255, 255, 0.13) 0 18%, transparent 19%),
    radial-gradient(circle at 88% 5%, rgba(255, 255, 255, 0.18) 0 24%, transparent 25%),
    linear-gradient(145deg, #58cb72 0%, #16824e 48%, #0d5b39 100%);
  --course-shadow: rgba(18, 116, 72, 0.28);
}

#homeView .home-course-card.course-diploma-nursing {
  --course-accent: #175db7;
  --course-accent-deep: #0f4391;
  --course-soft: rgba(235, 244, 255, 0.92);
  --course-bg:
    radial-gradient(circle at 88% 88%, rgba(255, 255, 255, 0.13) 0 25%, transparent 26%),
    radial-gradient(circle at 7% 7%, rgba(255, 255, 255, 0.13) 0 24%, transparent 25%),
    linear-gradient(145deg, #3579df 0%, #1158bc 48%, #0b3c95 100%);
  --course-shadow: rgba(19, 86, 179, 0.30);
}

#homeView .home-course-card.course-diploma-midwifery {
  --course-accent: #4435c5;
  --course-accent-deep: #30269c;
  --course-soft: rgba(242, 239, 255, 0.93);
  --course-bg:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.13) 0 21%, transparent 22%),
    radial-gradient(circle at 86% 90%, rgba(255, 255, 255, 0.12) 0 25%, transparent 26%),
    linear-gradient(145deg, #6758e8 0%, #3930bd 52%, #27208a 100%);
  --course-shadow: rgba(60, 49, 183, 0.30);
}

#homeView .home-course-card.course-bachelor {
  --course-accent: #8b365f;
  --course-accent-deep: #672442;
  --course-soft: rgba(255, 239, 246, 0.93);
  --course-bg:
    radial-gradient(circle at 93% 88%, rgba(255, 255, 255, 0.12) 0 24%, transparent 25%),
    radial-gradient(circle at 8% 7%, rgba(255, 255, 255, 0.14) 0 24%, transparent 25%),
    linear-gradient(145deg, #b2497a 0%, #88375f 50%, #61223f 100%);
  --course-shadow: rgba(132, 48, 88, 0.28);
}

#homeView .home-course-card[class*="course-"] {
  position: relative;
  isolation: isolate;
  min-height: 244px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-items: start;
  column-gap: 14px;
  padding: 24px 22px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 0;
  border-radius: 8px;
  background: var(--course-bg);
  box-shadow:
    0 24px 54px rgba(9, 36, 72, 0.16),
    0 8px 20px var(--course-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

#homeView .home-course-card[class*="course-"]::before,
#homeView .home-course-card[class*="course-"]::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

#homeView .home-course-card[class*="course-"]::before {
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 36%),
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.07) 0 1.6px, transparent 2px) 0 0 / 14px 14px;
  opacity: 0.72;
}

#homeView .home-course-card[class*="course-"]::after {
  right: -54px;
  bottom: -66px;
  width: 238px;
  height: 168px;
  border-radius: 56% 44% 0 0;
  border: 28px solid rgba(255, 255, 255, 0.09);
  opacity: 0.8;
}

#homeView .home-course-card[class*="course-"]:hover {
  box-shadow:
    0 30px 60px rgba(9, 36, 72, 0.20),
    0 10px 24px var(--course-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

#homeView .home-course-card[class*="course-"] .home-course-icon {
  width: 54px;
  height: 54px;
  grid-column: 1;
  grid-row: 1;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 8px;
  color: var(--course-accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
  box-shadow:
    0 12px 28px rgba(8, 28, 58, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#homeView .home-course-card[class*="course-"] .home-course-icon svg {
  width: 24px;
  height: 24px;
}

#homeView .home-course-card[class*="course-"] .home-course-kicker {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  min-height: 28px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--course-accent-deep);
  background: var(--course-soft);
  box-shadow: 0 10px 24px rgba(8, 28, 58, 0.10);
  font-size: 12px;
}

#homeView .home-course-card[class*="course-"] h2 {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  max-width: 92%;
  margin-top: 26px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.16;
  text-shadow: 0 2px 18px rgba(7, 24, 48, 0.18);
}

#homeView .home-course-card[class*="course-"] button {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 54px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: var(--course-accent-deep);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 34px rgba(8, 28, 58, 0.12),
    inset 0 1px 0 #ffffff;
  font-size: 15px;
}

#homeView .home-course-card[class*="course-"] button:hover,
#homeView .home-course-card[class*="course-"] button:focus-visible {
  border-color: rgba(255, 255, 255, 0.96);
  color: var(--course-accent-deep);
  background: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

#homeView .home-course-card[class*="course-"] button:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--course-accent) 24%, transparent);
}

@media (max-width: 760px) {
  #homeView .home-course-card[class*="course-"] {
    min-height: 220px;
    padding: 22px 20px 18px;
  }

  #homeView .home-course-card[class*="course-"] h2 {
    font-size: 21px;
  }
}

/* 4. Feature grid — per-card tinted backgrounds */
.home-feature-grid button:nth-child(1) {
  background: linear-gradient(160deg, #eafaf8 0%, #ffffff 68%);
}
.home-feature-grid button:nth-child(2) {
  background: linear-gradient(160deg, #eef1ff 0%, #ffffff 68%);
}
.home-feature-grid button:nth-child(3) {
  background: linear-gradient(160deg, #edfdf5 0%, #ffffff 68%);
}
.home-feature-grid button:nth-child(4) {
  background: linear-gradient(160deg, #fef8ec 0%, #ffffff 68%);
}
.home-feature-grid button:nth-child(5) {
  background: linear-gradient(160deg, #fff1f2 0%, #ffffff 68%);
}
.home-feature-grid button:nth-child(6) {
  background: linear-gradient(160deg, #f5f3ff 0%, #ffffff 68%);
}

/* 5. Notes panel — warmer blue-gray wash */
.notes-panel {
  background: linear-gradient(180deg, #f5f9fc 0%, #eef4f9 100%);
}

/* 6. Blog promo — lift over plain white with borders */
.home-blog-promo {
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8fc 100%);
  border-top: 1px solid rgba(203, 215, 229, 0.55);
  border-bottom: 1px solid rgba(203, 215, 229, 0.55);
}

/* 7. Study highlights articles — shadow + gradient */
.home-highlight-layout > article {
  background: linear-gradient(170deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 8px 24px rgba(7, 58, 112, 0.06);
}

/* 8. Hub grid — subtle card gradient */
.home-hub-grid button {
  background: linear-gradient(145deg, #ffffff 0%, #f6f9fc 100%);
}

/* 9. Resource links — tinted row background */
.resource-links-home {
  background: linear-gradient(180deg, #f1f6fb 0%, #e9f1f8 100%);
}

/* 10. SEO hubs — top separator */
.home-seo-hubs {
  border-top: 1px solid rgba(203, 215, 229, 0.55);
}

/* Keep the Home instrument preview as one focused row at every viewport. */
#homeView .instrument-preview-grid {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 16px;
  scroll-snap-type: inline proximity;
  scrollbar-color: #8fb8c8 transparent;
  scrollbar-width: thin;
}

#homeView .instrument-preview-grid article {
  scroll-snap-align: start;
}

#homeView .instrument-preview-grid::-webkit-scrollbar {
  height: 7px;
}

#homeView .instrument-preview-grid::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background: #8fb8c8;
}

#homeView .instrument-preview-grid::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 760px) {
  #homeView .instrument-preview-grid {
    grid-template-columns: repeat(4, minmax(244px, 82vw));
    gap: 12px;
  }
}

/* Stat row: hide on mobile hero (photo overlaps left column) */
@media (max-width: 1120px) {
  .home-hero-stat-row {
    max-width: 56%;
  }
}

@media (max-width: 760px) {
  .home-hero-stat-row {
    display: none;
  }
}

/* ============================================================
   Admin Light Workspace Redesign
   ============================================================ */
#adminDashboardView {
  --admin-bg: #f6f8fb;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f8fbfd;
  --admin-border: #dce7ef;
  --admin-border-strong: #cbd9e5;
  --admin-text: #13233b;
  --admin-muted: #64748b;
  --admin-blue: #2563eb;
  --admin-teal: #0f8f8c;
  --admin-green: #16a34a;
  --admin-amber: #d97706;
  --admin-pink: #db2777;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8fbfd 0%, #f2f6fa 48%, #eef4f8 100%);
  color: var(--admin-text);
}

body.admin-mode {
  background: #f2f6fa;
}

#adminDashboardView .content {
  max-width: none;
  margin-left: 286px;
  padding: 88px 30px 38px;
}

.dashboard-heading-spacer {
  display: none;
}

.admin-side-rail {
  width: 286px;
  padding: 18px 14px;
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--admin-border);
  box-shadow: 12px 0 32px rgba(15, 35, 63, 0.08);
}

.admin-side-brand {
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 10px 18px;
  border-bottom: 1px solid #edf2f7;
}

.admin-side-mark {
  width: 44px;
  height: 44px;
  border: 1px solid #b8dce4;
  border-radius: 8px;
  color: #075985;
  background: linear-gradient(135deg, #e8f7fa 0%, #f5fbff 100%);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.admin-side-brand strong {
  color: #10233f;
  font-size: 15px;
}

.admin-side-brand small {
  color: #6b7d93;
  font-size: 10px;
}

.admin-side-rail nav {
  gap: 4px;
  padding: 0 2px 8px 0;
}

.admin-side-rail nav::-webkit-scrollbar-thumb {
  background: #cbd9e5;
}

.admin-nav-group-label {
  padding: 14px 10px 6px;
  color: #93a4b8;
}

.admin-side-rail nav button {
  min-height: 44px;
  gap: 11px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344967;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.admin-side-rail nav button svg {
  width: 17px;
  height: 17px;
  color: #71839a;
  opacity: 1;
}

.admin-side-rail nav button span {
  min-width: 0;
}

.admin-side-rail nav button small {
  color: #8da0b5;
  font-size: 10px;
  font-weight: 700;
}

.admin-side-rail nav button:hover {
  color: #0f4c81;
  background: #f3f8fb;
  border-color: #dbe8f0;
}

.admin-side-rail nav button.is-active {
  color: #075985;
  background: #eaf8fb;
  border-color: #bfe5ea;
  box-shadow: inset 3px 0 0 #0f8f8c;
}

.admin-side-rail nav button.is-active svg,
.admin-side-rail nav button.is-active small {
  color: #0f8f8c;
}

.admin-side-footer {
  padding: 14px 10px 4px;
  border-top: 1px solid #edf2f7;
}

.admin-side-status {
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f8fbfd;
  color: #51667f;
}

.admin-side-status .admin-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
}

.admin-side-status span:not(.admin-status-dot) {
  flex: 1;
}

.admin-side-status strong {
  color: #13233b;
}

.admin-side-footer > small {
  color: #8da0b5;
}

.admin-topbar {
  left: 286px;
  height: 74px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--admin-border);
  box-shadow: 0 8px 28px rgba(15, 35, 63, 0.06);
  backdrop-filter: blur(14px);
}

.admin-topbar-left {
  display: grid;
  gap: 3px;
}

.admin-topbar-crumb {
  margin-bottom: 0;
  color: #8192a8;
}

.admin-topbar h1 {
  color: #10233f;
  font-size: 24px;
  letter-spacing: 0;
}

.admin-topbar-subtitle {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.admin-topbar-right .ghost-button,
.admin-topbar-right .primary-button {
  min-height: 38px;
  border-radius: 8px;
  box-shadow: none;
}

.admin-topbar-right .ghost-button {
  border-color: #cbd9e5;
  background: #ffffff;
}

.admin-topbar-right .primary-button {
  background: #0f8f8c;
}

.admin-dashboard-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.admin-module-card {
  align-items: flex-start;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--admin-border);
  border-left-width: 4px;
  border-bottom-width: 1px;
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: 0 12px 26px rgba(15, 35, 63, 0.06);
}

.admin-module-card[data-admin-panel]:hover,
.admin-module-card[data-admin-panel].is-active {
  transform: translateY(-3px);
  border-color: #bed1df;
  box-shadow: 0 18px 34px rgba(15, 35, 63, 0.1);
}

.admin-module-card[data-admin-panel].is-active {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.amc--blue { border-left-color: var(--admin-blue); border-bottom-color: var(--admin-border); }
.amc--green { border-left-color: var(--admin-green); border-bottom-color: var(--admin-border); }
.amc--cyan,
.amc--teal { border-left-color: var(--admin-teal); border-bottom-color: var(--admin-border); }
.amc--orange,
.amc--amber { border-left-color: var(--admin-amber); border-bottom-color: var(--admin-border); }
.amc--pink { border-left-color: var(--admin-pink); border-bottom-color: var(--admin-border); }

.amc-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.amc-icon svg {
  width: 21px;
  height: 21px;
}

.amc-label {
  margin-bottom: 6px;
  color: #6a7c92;
  font-size: 10px;
}

.amc-value {
  color: #10233f;
  font-size: 23px;
}

.amc-desc {
  display: block;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.maintenance-card {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #fff8ed 100%);
}

.amc-toggle {
  top: 18px;
  right: 18px;
}

.admin-workbench {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: 0 16px 36px rgba(15, 35, 63, 0.07);
}

.admin-workbench-summary {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  color: #52677f;
  background: #f8fbfd;
  font-size: 13px;
  font-weight: 750;
}

#adminDashboardView.is-panel-mode .admin-dashboard-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

#adminDashboardView.is-panel-mode .admin-module-card {
  min-height: 76px;
  padding: 12px;
  border-left-width: 3px;
}

#adminDashboardView.is-panel-mode .admin-module-card .amc-desc {
  display: none;
}

#adminDashboardView.is-panel-mode .amc-icon {
  display: grid;
  width: 30px;
  height: 30px;
}

#adminDashboardView.is-panel-mode .amc-value {
  font-size: 15px;
}

#adminDashboardView.is-panel-mode .amc-label {
  font-size: 9px;
  white-space: normal;
}

#adminDashboardView.is-panel-mode .maintenance-card {
  grid-column: span 2;
}

.admin-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-ql-card,
.admin-activity-bars,
.admin-status-cards,
.admin-analytics-grid article,
.admin-analytics-stat,
.admin-table-wrap,
.admin-editor-form,
.admin-media-upload,
.admin-media-card,
.admin-empty-state {
  border-radius: 8px;
}

.admin-ql-card {
  min-height: 78px;
  padding: 14px;
  border-color: var(--admin-border);
  box-shadow: 0 8px 20px rgba(15, 35, 63, 0.04);
}

.admin-ql-card:hover {
  box-shadow: 0 14px 26px rgba(15, 35, 63, 0.08);
}

.admin-ql-icon {
  border-radius: 8px;
}

.admin-overview-meta {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
}

.admin-activity-bars,
.admin-status-cards {
  border-color: var(--admin-border);
  box-shadow: 0 8px 20px rgba(15, 35, 63, 0.04);
}

.admin-table-wrap {
  border-color: var(--admin-border);
  box-shadow: none;
}

.admin-table th {
  background: #f6f9fc;
  color: #53667d;
}

.admin-table td {
  color: #22364f;
}

.admin-empty-state {
  border-color: #cbd9e5;
  background: #f8fbfd;
}

.admin-tools-strip,
.admin-editor-toolbar {
  border-color: var(--admin-border);
  border-radius: 8px;
  background: #f8fbfd;
}

.admin-inline-search input,
.admin-inline-search select,
.admin-inline-input,
.admin-mini-select,
.admin-editor-toolbar select,
.admin-editor-form input,
.admin-editor-form select,
.admin-editor-form textarea,
.admin-media-upload input {
  border-color: #cbd9e5;
  border-radius: 8px;
  background: #ffffff;
}

.admin-analytics-panel {
  gap: 16px;
}

.admin-analytics-stat-grid {
  gap: 14px;
}

.admin-analytics-stat {
  border-color: var(--admin-border);
  background: #ffffff;
}

.admin-analytics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-analytics-grid article {
  border-color: var(--admin-border);
  box-shadow: 0 8px 20px rgba(15, 35, 63, 0.04);
}

.admin-menu-btn {
  background: #ffffff;
}

@media (max-width: 1240px) {
  .admin-dashboard-grid,
  .admin-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminDashboardView.is-panel-mode .admin-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .admin-topbar {
    left: 0;
  }

  #adminDashboardView .content {
    margin-left: 0;
    padding: 88px 16px 34px;
  }

  .admin-side-rail {
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 210;
  }

  .admin-side-rail.is-open {
    transform: translateX(0);
  }

  .admin-menu-btn {
    display: flex;
  }

  .admin-rail-backdrop {
    display: block;
    pointer-events: none;
  }

  .admin-rail-backdrop.is-visible {
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .admin-topbar {
    min-height: 74px;
    padding: 0 14px;
  }

  .admin-topbar-subtitle,
  .admin-topbar-crumb {
    display: none;
  }

  .admin-topbar h1 {
    font-size: 20px;
  }

  .admin-topbar-right {
    gap: 6px;
  }

  #adminDashboardView .content {
    padding: 88px 12px 28px;
  }

  .admin-dashboard-grid,
  #adminDashboardView.is-panel-mode .admin-dashboard-grid,
  .admin-overview-grid,
  .admin-overview-meta,
  .admin-analytics-grid,
  .admin-analytics-stat-grid,
  .admin-editorial-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-card,
  #adminDashboardView.is-panel-mode .maintenance-card {
    grid-column: span 1;
  }

  .admin-module-card,
  #adminDashboardView.is-panel-mode .admin-module-card {
    min-height: 118px;
    padding: 15px;
  }

  #adminDashboardView.is-panel-mode .admin-dashboard-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 0 10px;
    scrollbar-width: thin;
  }

  #adminDashboardView.is-panel-mode .admin-dashboard-grid::-webkit-scrollbar {
    height: 6px;
  }

  #adminDashboardView.is-panel-mode .admin-dashboard-grid::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #b7c9d8;
  }

  #adminDashboardView.is-panel-mode .admin-module-card {
    flex: 0 0 160px;
    min-height: 74px;
    padding: 12px;
  }

  #adminDashboardView.is-panel-mode .amc-icon,
  #adminDashboardView.is-panel-mode .amc-desc,
  #adminDashboardView.is-panel-mode .amc-toggle {
    display: none;
  }

  #adminDashboardView.is-panel-mode .amc-value {
    font-size: 16px;
  }

  #adminDashboardView.is-panel-mode .maintenance-card {
    grid-column: auto;
  }

  .admin-workbench {
    padding: 14px;
  }
}

/* ============================================================
   Admin Dashboard Spacious Layout Pass
   ============================================================ */
#adminDashboardView .content {
  width: calc(100% - 286px);
  max-width: 1540px;
  padding: 102px 42px 52px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.admin-dashboard-section {
  display: grid;
  gap: 16px;
}

.admin-dashboard-section--metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard-section--operations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-dashboard-section--system {
  grid-template-columns: minmax(340px, 0.46fr);
}

.admin-module-card {
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  column-gap: 16px;
  min-height: 138px;
  padding: 20px;
  border-left-width: 1px;
  border-top: 4px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 253, 255, 0.96) 100%);
  box-shadow: 0 14px 32px rgba(15, 35, 63, 0.055);
}

.admin-module-card[data-admin-panel]:hover,
.admin-module-card[data-admin-panel].is-active {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 35, 63, 0.095);
}

.amc--blue { border-top-color: var(--admin-blue); border-left-color: var(--admin-border); }
.amc--green { border-top-color: var(--admin-green); border-left-color: var(--admin-border); }
.amc--cyan,
.amc--teal { border-top-color: var(--admin-teal); border-left-color: var(--admin-border); }
.amc--orange,
.amc--amber { border-top-color: var(--admin-amber); border-left-color: var(--admin-border); }
.amc--pink { border-top-color: var(--admin-pink); border-left-color: var(--admin-border); }

.admin-dashboard-section--metrics .admin-module-card {
  min-height: 126px;
  align-items: center;
}

.admin-dashboard-section--metrics .amc-desc {
  display: none;
}

.admin-dashboard-section--operations .admin-module-card {
  min-height: 132px;
}

.amc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.amc-label {
  max-width: 100%;
  color: #53667d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amc-value {
  display: block;
  max-width: 100%;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.amc-desc {
  max-width: 34rem;
  color: #728197;
}

.amc-arrow {
  align-self: center;
  justify-self: end;
  color: #9aabba;
  font-size: 20px;
}

.maintenance-card {
  grid-column: auto;
  min-height: 126px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.admin-workbench {
  margin-top: 26px;
  padding: 24px 28px 28px;
}

@media (min-width: 1500px) {
  .admin-dashboard-section--operations {
    max-width: 1180px;
  }
}

@media (max-width: 1320px) {
  #adminDashboardView .content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .admin-dashboard-section--metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-section--operations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  #adminDashboardView .content {
    width: 100%;
    padding: 92px 18px 36px;
  }
}

@media (max-width: 760px) {
  .admin-dashboard-section,
  .admin-dashboard-section--metrics,
  .admin-dashboard-section--operations,
  .admin-dashboard-section--system {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-grid {
    gap: 14px;
  }

  .admin-module-card,
  #adminDashboardView.is-panel-mode .admin-module-card {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    min-height: 104px;
    padding: 16px;
  }

  .admin-dashboard-section--metrics .admin-module-card {
    min-height: 96px;
  }

  .amc-icon {
    width: 42px;
    height: 42px;
  }

  .maintenance-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }
}

#adminDashboardView.is-panel-mode .admin-dashboard-section {
  display: contents;
}

#adminDashboardView.is-panel-mode .admin-dashboard-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

#adminDashboardView.is-panel-mode .admin-module-card {
  min-height: 78px;
  border-top-width: 3px;
}

#adminDashboardView.is-panel-mode .admin-module-card .amc-desc,
#adminDashboardView.is-panel-mode .amc-arrow {
  display: none;
}

@media (max-width: 760px) {
  #adminDashboardView.is-panel-mode .admin-dashboard-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 10px;
  }

  #adminDashboardView.is-panel-mode .admin-dashboard-section {
    display: contents;
  }

  #adminDashboardView.is-panel-mode .admin-module-card {
    flex: 0 0 168px;
  }
}

#adminDashboardView .admin-workbench-summary {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #53667d;
  font-size: 14px;
  line-height: 1.5;
}

#adminDashboardView .admin-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#adminDashboardView .admin-ql-card {
  min-height: 92px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(15, 35, 63, 0.045);
}

@media (max-width: 760px) {
  #adminDashboardView .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Admin hPanel Navigation Model
   ============================================================ */
#adminDashboardView {
  --admin-globalbar: 72px;
  --admin-app-rail: 82px;
  --admin-site-rail: 314px;
  background: #f4f4f5;
}

.admin-topbar {
  left: 0;
  height: var(--admin-globalbar);
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #dedede;
  box-shadow: none;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-global-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #111827;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.admin-global-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #5f35e8;
  background: #eee7ff;
  font-size: 14px;
  font-weight: 800;
}

.admin-topbar-right {
  margin-left: auto;
}

.admin-app-rail {
  position: fixed;
  inset: var(--admin-globalbar) auto 0 0;
  z-index: 190;
  display: flex;
  width: var(--admin-app-rail);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  border-right: 1px solid #dedede;
  background: #ffffff;
}

.admin-app-logo {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  place-items: center;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.admin-app-rail button {
  display: grid;
  width: 62px;
  min-height: 58px;
  place-items: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  color: #555a64;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.admin-app-rail button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.admin-app-rail button:hover,
.admin-app-rail button.is-active {
  color: #111827;
  background: #ececec;
}

.admin-side-rail {
  top: var(--admin-globalbar);
  left: var(--admin-app-rail);
  width: var(--admin-site-rail);
  height: calc(100vh - var(--admin-globalbar));
  padding: 18px 14px;
  border-right: 1px solid #dedede;
  background: #ffffff;
  box-shadow: none;
}

.admin-side-brand {
  margin-bottom: 12px;
  padding: 0 4px 16px;
}

.admin-site-tools {
  display: grid;
  gap: 12px;
  padding: 0 0 16px;
}

.admin-site-tools > label:not(.admin-site-search) {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.admin-site-select,
.admin-site-search {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #ffffff;
  color: #25272d;
}

.admin-site-select {
  justify-content: space-between;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-site-select span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-site-select svg,
.admin-site-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.admin-site-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #25272d;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.admin-side-rail nav button {
  min-height: 48px;
  border-radius: 8px;
  color: #20242c;
  font-size: 14px;
}

.admin-side-rail nav button.is-active,
.admin-side-rail nav button:hover {
  color: #111827;
  background: #ececec;
  border-color: transparent;
  box-shadow: none;
}

.admin-side-rail nav button.is-active svg,
.admin-side-rail nav button.is-active small {
  color: #111827;
}

#adminDashboardView .content {
  width: calc(100% - (var(--admin-app-rail) + var(--admin-site-rail)));
  max-width: none;
  margin-left: calc(var(--admin-app-rail) + var(--admin-site-rail));
  padding: 112px 88px 56px;
}

.admin-page-heading {
  display: grid;
  max-width: 1370px;
  gap: 12px;
  margin: 0 0 22px;
}

.admin-page-heading .admin-topbar-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6570;
  font-size: 14px;
  font-weight: 700;
}

.admin-page-heading .admin-topbar-crumb svg {
  width: 14px;
  height: 14px;
}

.admin-page-heading h1 {
  margin: 0;
  color: #20242c;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
}

.admin-page-heading .admin-topbar-subtitle {
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

#adminDashboardView:not(.is-panel-mode) .admin-dashboard-grid {
  display: none;
}

#adminDashboardView:not(.is-panel-mode) .admin-workbench {
  max-width: 1370px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#adminDashboardView:not(.is-panel-mode) .admin-workbench-summary {
  display: none;
}

.admin-hpanel-board {
  display: grid;
  gap: 22px;
}

.admin-site-card,
.admin-hpanel-card {
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.admin-site-card {
  overflow: hidden;
}

.admin-site-card-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}

.admin-site-card-icon,
.admin-action-icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #111827;
  background: #f0f0f1;
}

.admin-site-card-icon {
  width: 58px;
  height: 58px;
}

.admin-site-card-icon svg,
.admin-action-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.admin-site-card-main strong {
  color: #20242c;
  font-size: 17px;
}

.admin-site-card-main p {
  margin: 5px 0 0;
  color: #5f6570;
  font-size: 14px;
  font-weight: 700;
}

.admin-site-actions,
.admin-site-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 28px;
  border-top: 1px solid #dedede;
}

.admin-site-actions button,
.admin-hpanel-card-head button,
.admin-action-row b {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #dedede;
  border-radius: 8px;
  color: #20242c;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.admin-site-actions button:hover,
.admin-hpanel-card-head button:hover {
  border-color: #6d4aff;
  color: #5f35e8;
}

.admin-site-pills {
  justify-content: flex-end;
}

.admin-site-pills span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #dcf1e4;
  border-radius: 999px;
  color: #2f6d47;
  background: #f8fffb;
  font-size: 12px;
  font-weight: 850;
}

.admin-site-pills b,
.admin-system-list b {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22a55a;
}

.admin-hpanel-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.admin-hpanel-card {
  padding: 22px;
}

.admin-hpanel-card h3 {
  margin: 0 0 18px;
  color: #20242c;
  font-size: 18px;
}

.admin-action-list {
  display: grid;
  margin: 0 -22px -22px;
}

.admin-action-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 80px;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 0;
  border-top: 1px solid #eeeeef;
  background: transparent;
  color: #20242c;
  text-align: left;
  cursor: pointer;
}

.admin-action-row:hover {
  background: #fafafa;
}

.admin-action-icon {
  width: 36px;
  height: 36px;
}

.admin-action-icon svg {
  width: 20px;
  height: 20px;
}

.admin-action-row strong,
.admin-action-row em {
  display: block;
}

.admin-action-row strong {
  color: #20242c;
  font-size: 15px;
}

.admin-action-row em {
  margin-top: 3px;
  color: #656b76;
  font-style: normal;
  font-size: 14px;
}

.admin-action-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  font-weight: 850;
}

.admin-hpanel-stack {
  display: grid;
  gap: 22px;
}

.admin-hpanel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-hpanel-card-head h3 {
  margin: 0;
}

.admin-performance-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-score-ring {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 9px solid #39a863;
  border-radius: 999px;
  color: #24914f;
  font-size: 18px;
  font-weight: 900;
}

.admin-performance-row strong {
  color: #20242c;
  font-size: 16px;
}

.admin-performance-row p {
  margin: 6px 0 0;
  color: #656b76;
  font-size: 14px;
  font-weight: 700;
}

.admin-system-list {
  display: grid;
  gap: 14px;
}

.admin-system-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #555a64;
  font-size: 14px;
  font-weight: 800;
}

.admin-system-list strong {
  margin-left: auto;
  color: #20242c;
}

.admin-system-list .is-ok {
  background: #22a55a;
}

.admin-system-list .is-warn {
  background: #d97706;
}

.admin-system-list .is-muted {
  background: #9ca3af;
}

@media (max-width: 1280px) {
  #adminDashboardView .content {
    padding-right: 40px;
    padding-left: 40px;
  }

  .admin-hpanel-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .admin-app-rail {
    display: none;
  }

  .admin-topbar {
    height: 72px;
  }

  .admin-side-rail {
    top: 72px;
    left: 0;
    width: 314px;
    height: calc(100vh - 72px);
  }

  #adminDashboardView .content {
    width: 100%;
    margin-left: 0;
    padding: 98px 18px 36px;
  }

  .admin-page-heading {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .admin-global-pill {
    display: none;
  }

  .admin-topbar {
    min-height: 72px;
    padding: 0 14px;
  }

  .admin-page-heading .admin-topbar-crumb {
    display: none;
  }

  .admin-page-heading h1 {
    font-size: 24px;
  }

  .admin-site-card-main,
  .admin-site-actions,
  .admin-site-pills,
  .admin-hpanel-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .admin-action-list {
    margin-right: -16px;
    margin-left: -16px;
  }

  .admin-action-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .admin-action-row b {
    grid-column: 2;
    justify-self: start;
    min-height: 32px;
  }
}

/* ============================================================
   Admin Workflow Cleanup
   ============================================================ */
#adminDashboardView .admin-dashboard-grid {
  display: none;
}

#adminDashboardView .admin-side-brand {
  display: none;
}

#adminDashboardView .admin-global-pill {
  color: #20242c;
  background: #f0f0f1;
}

#adminDashboardView.is-panel-mode .admin-workbench,
#adminDashboardView:not(.is-panel-mode) .admin-workbench {
  max-width: 1370px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#adminDashboardView .admin-workbench-summary {
  display: none;
}

#adminDashboardView.is-panel-mode .admin-panel-body {
  display: grid;
  gap: 16px;
}

.admin-task-card {
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #ffffff;
}

.admin-task-head {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.admin-task-head strong,
.admin-task-head span {
  display: block;
}

.admin-task-head strong {
  color: #20242c;
  font-size: 17px;
}

.admin-task-head span {
  margin-top: 4px;
  color: #667085;
  font-size: 14px;
  font-weight: 750;
}

#adminDashboardView .admin-inline-search--large {
  display: flex;
  min-width: min(520px, 52vw);
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d5d5d8;
  border-radius: 8px;
  color: #4b5563;
  background: #ffffff;
  font-size: 0;
}

#adminDashboardView .admin-inline-search--large::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: 7px 7px 0 -5px currentColor;
  opacity: 0.85;
}

#adminDashboardView .admin-inline-search--large input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #20242c;
  background: transparent;
  font: inherit;
  font-size: 15px;
}

#adminDashboardView .admin-table-wrap {
  overflow: auto;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

#adminDashboardView .admin-table {
  min-width: 980px;
}

#adminDashboardView .admin-table th {
  height: 48px;
  background: #fafafa;
  color: #667085;
  font-size: 11px;
}

#adminDashboardView .admin-table td {
  height: 58px;
  border-color: #eeeeef;
}

#adminDashboardView .admin-row-actions {
  flex-wrap: nowrap;
}

#adminDashboardView .admin-row-actions button,
#adminDashboardView .admin-mini-button {
  min-height: 34px;
  border-radius: 8px;
}

@media (max-width: 960px) {
  #adminDashboardView .admin-side-brand {
    display: flex;
  }

  .admin-task-head {
    align-items: stretch;
    flex-direction: column;
  }

  #adminDashboardView .admin-inline-search--large {
    min-width: 0;
    width: 100%;
  }
}

/* ============================================================
   Admin Neutral Outline Pass
   ============================================================ */
#adminDashboardView {
  --admin-ink: #111111;
  --admin-line: #111111;
  --admin-soft-line: #d8d8d8;
  --admin-panel-bg: #f5f5f5;
  --admin-surface: #ffffff;
  --admin-muted-neutral: #666666;
  background: var(--admin-panel-bg);
  color: var(--admin-ink);
}

#adminDashboardView .admin-global-mark,
#adminDashboardView .admin-app-logo,
#adminDashboardView .admin-side-brand,
#adminDashboardView .admin-site-card-icon {
  display: none;
}

#adminDashboardView .admin-topbar,
#adminDashboardView .admin-app-rail,
#adminDashboardView .admin-side-rail {
  border-color: var(--admin-line);
  background: var(--admin-surface);
}

#adminDashboardView .admin-topbar {
  border-bottom-width: 1px;
}

#adminDashboardView .admin-global-pill {
  min-height: 36px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  color: var(--admin-ink);
  background: var(--admin-surface);
}

#adminDashboardView .admin-app-rail {
  padding-top: 20px;
}

#adminDashboardView .admin-app-rail button,
#adminDashboardView .admin-side-rail nav button {
  color: var(--admin-ink);
  background: transparent;
}

#adminDashboardView .admin-app-rail button:hover,
#adminDashboardView .admin-app-rail button.is-active,
#adminDashboardView .admin-side-rail nav button:hover,
#adminDashboardView .admin-side-rail nav button.is-active {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: #eeeeee;
  box-shadow: none;
}

#adminDashboardView .admin-app-rail button.is-active {
  outline: 1px solid var(--admin-line);
}

#adminDashboardView .admin-side-rail nav button svg,
#adminDashboardView .admin-side-rail nav button small,
#adminDashboardView .admin-app-rail button svg {
  color: var(--admin-ink);
  stroke: currentColor;
}

#adminDashboardView .admin-nav-group-label,
#adminDashboardView .admin-page-heading .admin-topbar-crumb,
#adminDashboardView .admin-page-heading .admin-topbar-subtitle,
#adminDashboardView .admin-site-card-main p,
#adminDashboardView .admin-action-row em,
#adminDashboardView .admin-performance-row p,
#adminDashboardView .admin-task-head span {
  color: var(--admin-muted-neutral);
}

#adminDashboardView .admin-site-select,
#adminDashboardView .admin-site-search,
#adminDashboardView .admin-side-status,
#adminDashboardView .admin-site-card,
#adminDashboardView .admin-hpanel-card,
#adminDashboardView .admin-task-card,
#adminDashboardView .admin-table-wrap,
#adminDashboardView .admin-empty-state,
#adminDashboardView .admin-tools-strip,
#adminDashboardView .admin-analytics-stat,
#adminDashboardView .admin-analytics-grid article,
#adminDashboardView .admin-editor-form,
#adminDashboardView .admin-media-upload,
#adminDashboardView .admin-media-card {
  border: 1px solid var(--admin-line);
  background: var(--admin-surface);
  box-shadow: none;
}

#adminDashboardView .admin-site-actions,
#adminDashboardView .admin-site-pills,
#adminDashboardView .admin-action-row,
#adminDashboardView .admin-table th,
#adminDashboardView .admin-table td {
  border-color: var(--admin-soft-line);
}

#adminDashboardView .admin-site-actions button,
#adminDashboardView .admin-hpanel-card-head button,
#adminDashboardView .admin-action-row b,
#adminDashboardView .admin-topbar-right .ghost-button,
#adminDashboardView .admin-topbar-right .primary-button,
#adminDashboardView .admin-row-actions button,
#adminDashboardView .admin-mini-button,
#adminDashboardView .ghost-button,
#adminDashboardView .primary-button {
  border: 1px solid var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-surface);
  box-shadow: none;
}

#adminDashboardView .admin-site-actions button:hover,
#adminDashboardView .admin-hpanel-card-head button:hover,
#adminDashboardView .admin-action-row:hover,
#adminDashboardView .admin-row-actions button:hover,
#adminDashboardView .ghost-button:hover,
#adminDashboardView .primary-button:hover {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: #eeeeee;
}

#adminDashboardView .admin-site-pills {
  background: #fafafa;
}

#adminDashboardView .admin-site-pills span {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-surface);
}

#adminDashboardView .admin-site-pills b,
#adminDashboardView .admin-system-list b,
#adminDashboardView .admin-system-list .is-ok,
#adminDashboardView .admin-system-list .is-warn,
#adminDashboardView .admin-system-list .is-muted,
#adminDashboardView .admin-side-status .admin-status-dot {
  background: var(--admin-ink);
}

#adminDashboardView .admin-score-ring {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-surface);
}

#adminDashboardView .admin-action-icon,
#adminDashboardView .amc-icon,
#adminDashboardView .admin-ql-icon {
  border: 1px solid var(--admin-line);
  color: var(--admin-ink) !important;
  background: var(--admin-surface) !important;
}

#adminDashboardView .admin-action-icon svg,
#adminDashboardView .amc-icon svg,
#adminDashboardView .admin-ql-icon svg {
  stroke: currentColor !important;
}

#adminDashboardView .admin-inline-search--large,
#adminDashboardView .admin-inline-search input,
#adminDashboardView .admin-inline-search select,
#adminDashboardView .admin-inline-input,
#adminDashboardView .admin-mini-select,
#adminDashboardView .admin-editor-toolbar select,
#adminDashboardView .admin-editor-form input,
#adminDashboardView .admin-editor-form select,
#adminDashboardView .admin-editor-form textarea,
#adminDashboardView .admin-media-upload input {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-surface);
}

#adminDashboardView .admin-table th {
  color: var(--admin-ink);
  background: #eeeeee;
}

#adminDashboardView .admin-table td {
  color: var(--admin-ink);
}

#adminDashboardView .admin-side-rail nav {
  padding-top: 2px;
}

#adminDashboardView .admin-side-status,
#adminDashboardView .admin-side-footer > small {
  color: var(--admin-ink);
}

#adminDashboardView .admin-side-status strong {
  color: var(--admin-ink);
}

#adminDashboardView .status-badge,
#adminDashboardView .sb--active,
#adminDashboardView .sb--inactive,
#adminDashboardView .sb--pending {
  border: 1px solid var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-surface);
}

/* ============================================================
   Admin Light Cyan Palette Pass
   ============================================================ */
#adminDashboardView {
  --deep-twilight: #03045e;
  --bright-teal-blue: #0077b6;
  --turquoise-surf: #00b4d8;
  --frosted-blue: #90e0ef;
  --light-cyan: #caf0f8;
  --admin-ink: var(--deep-twilight);
  --admin-line: #73cfe2;
  --admin-soft-line: #c7edf5;
  --admin-panel-bg: #f5fcfe;
  --admin-surface: #ffffff;
  --admin-muted-neutral: #496579;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fcfe 42%, #eefaff 100%);
  color: var(--deep-twilight);
}

#adminDashboardView .admin-topbar,
#adminDashboardView .admin-app-rail,
#adminDashboardView .admin-side-rail {
  border-color: var(--frosted-blue);
  background: rgba(255, 255, 255, 0.96);
}

#adminDashboardView .admin-global-pill {
  border-color: var(--frosted-blue);
  color: var(--deep-twilight);
  background: var(--light-cyan);
}

#adminDashboardView .admin-app-rail button,
#adminDashboardView .admin-side-rail nav button {
  color: var(--deep-twilight);
}

#adminDashboardView .admin-app-rail button:hover,
#adminDashboardView .admin-app-rail button.is-active,
#adminDashboardView .admin-side-rail nav button:hover,
#adminDashboardView .admin-side-rail nav button.is-active {
  border-color: var(--turquoise-surf);
  color: var(--deep-twilight);
  background: var(--light-cyan);
}

#adminDashboardView .admin-app-rail button.is-active {
  outline-color: var(--bright-teal-blue);
}

#adminDashboardView .admin-nav-group-label,
#adminDashboardView .admin-page-heading .admin-topbar-crumb,
#adminDashboardView .admin-page-heading .admin-topbar-subtitle,
#adminDashboardView .admin-site-card-main p,
#adminDashboardView .admin-action-row em,
#adminDashboardView .admin-performance-row p,
#adminDashboardView .admin-task-head span {
  color: #496579;
}

#adminDashboardView .admin-page-heading h1,
#adminDashboardView .admin-site-card-main strong,
#adminDashboardView .admin-hpanel-card h3,
#adminDashboardView .admin-action-row strong,
#adminDashboardView .admin-performance-row strong,
#adminDashboardView .admin-system-list strong,
#adminDashboardView .admin-task-head strong {
  color: var(--deep-twilight);
}

#adminDashboardView .admin-side-status,
#adminDashboardView .admin-site-card,
#adminDashboardView .admin-hpanel-card,
#adminDashboardView .admin-task-card,
#adminDashboardView .admin-table-wrap,
#adminDashboardView .admin-empty-state,
#adminDashboardView .admin-tools-strip,
#adminDashboardView .admin-analytics-stat,
#adminDashboardView .admin-analytics-grid article,
#adminDashboardView .admin-editor-form,
#adminDashboardView .admin-media-upload,
#adminDashboardView .admin-media-card {
  border-color: var(--frosted-blue);
  background: rgba(255, 255, 255, 0.98);
}

#adminDashboardView .admin-site-actions,
#adminDashboardView .admin-site-pills,
#adminDashboardView .admin-action-row,
#adminDashboardView .admin-table th,
#adminDashboardView .admin-table td {
  border-color: var(--admin-soft-line);
}

#adminDashboardView .admin-site-actions button,
#adminDashboardView .admin-hpanel-card-head button,
#adminDashboardView .admin-action-row b,
#adminDashboardView .admin-topbar-right .ghost-button,
#adminDashboardView .admin-topbar-right .primary-button,
#adminDashboardView .admin-row-actions button,
#adminDashboardView .admin-mini-button,
#adminDashboardView .ghost-button,
#adminDashboardView .primary-button {
  border-color: var(--bright-teal-blue);
  color: var(--deep-twilight);
  background: #ffffff;
}

#adminDashboardView .admin-site-actions button:hover,
#adminDashboardView .admin-hpanel-card-head button:hover,
#adminDashboardView .admin-action-row:hover,
#adminDashboardView .admin-row-actions button:hover,
#adminDashboardView .ghost-button:hover,
#adminDashboardView .primary-button:hover {
  border-color: var(--turquoise-surf);
  color: var(--deep-twilight);
  background: var(--light-cyan);
}

#adminDashboardView .admin-site-pills {
  background: #f7fdff;
}

#adminDashboardView .admin-site-pills span,
#adminDashboardView .status-badge,
#adminDashboardView .sb--active,
#adminDashboardView .sb--inactive,
#adminDashboardView .sb--pending {
  border-color: var(--frosted-blue);
  color: var(--deep-twilight);
  background: #f7fdff;
}

#adminDashboardView .admin-site-pills b,
#adminDashboardView .admin-system-list b,
#adminDashboardView .admin-system-list .is-ok,
#adminDashboardView .admin-system-list .is-warn,
#adminDashboardView .admin-system-list .is-muted,
#adminDashboardView .admin-side-status .admin-status-dot {
  background: var(--bright-teal-blue);
}

#adminDashboardView .admin-score-ring {
  border-color: var(--turquoise-surf);
  color: var(--deep-twilight);
  background: #ffffff;
}

#adminDashboardView .admin-action-icon,
#adminDashboardView .amc-icon,
#adminDashboardView .admin-ql-icon {
  border-color: var(--frosted-blue);
  color: var(--bright-teal-blue) !important;
  background: #f7fdff !important;
}

#adminDashboardView .admin-inline-search--large,
#adminDashboardView .admin-inline-search input,
#adminDashboardView .admin-inline-search select,
#adminDashboardView .admin-inline-input,
#adminDashboardView .admin-mini-select,
#adminDashboardView .admin-editor-toolbar select,
#adminDashboardView .admin-editor-form input,
#adminDashboardView .admin-editor-form select,
#adminDashboardView .admin-editor-form textarea,
#adminDashboardView .admin-media-upload input {
  border-color: var(--frosted-blue);
  color: var(--deep-twilight);
  background: #ffffff;
}

#adminDashboardView .admin-table th {
  color: var(--deep-twilight);
  background: #eaf9fd;
}

#adminDashboardView .admin-table td,
#adminDashboardView .admin-side-status,
#adminDashboardView .admin-side-status strong,
#adminDashboardView .admin-side-footer > small {
  color: var(--deep-twilight);
}

/* ============================================================
   Admin Single Collapsible Sidebar
   ============================================================ */
#adminDashboardView {
  --admin-app-rail: 0px;
  --admin-site-rail: 318px;
}

#adminDashboardView .admin-app-rail {
  display: none;
}

#adminDashboardView .admin-side-rail {
  left: 0;
  width: var(--admin-site-rail);
  padding: 16px 14px;
  transition: width 0.22s ease, padding 0.22s ease, transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

#adminDashboardView .content {
  width: calc(100% - var(--admin-site-rail));
  margin-left: var(--admin-site-rail);
  transition: width 0.22s ease, margin-left 0.22s ease;
}

#adminDashboardView .admin-sidebar-tools {
  display: flex;
  margin-bottom: 12px;
}

#adminDashboardView .admin-sidebar-toggle {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid var(--frosted-blue);
  border-radius: 8px;
  color: var(--deep-twilight);
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

#adminDashboardView .admin-sidebar-toggle:hover {
  border-color: var(--turquoise-surf);
  background: var(--light-cyan);
}

#adminDashboardView .admin-sidebar-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

#adminDashboardView.admin-sidebar-collapsed {
  --admin-site-rail: 86px;
}

#adminDashboardView.admin-sidebar-collapsed .admin-side-rail {
  padding-right: 10px;
  padding-left: 10px;
}

#adminDashboardView.admin-sidebar-collapsed .admin-sidebar-toggle {
  justify-content: center;
  padding: 0;
}

#adminDashboardView.admin-sidebar-collapsed .admin-sidebar-toggle svg {
  transform: rotate(180deg);
}

#adminDashboardView.admin-sidebar-collapsed .admin-sidebar-toggle span,
#adminDashboardView.admin-sidebar-collapsed .admin-nav-group-label,
#adminDashboardView.admin-sidebar-collapsed .admin-side-rail nav button span,
#adminDashboardView.admin-sidebar-collapsed .admin-side-footer span:not(.admin-status-dot),
#adminDashboardView.admin-sidebar-collapsed .admin-side-footer > small {
  display: none;
}

#adminDashboardView.admin-sidebar-collapsed .admin-side-rail nav {
  align-items: center;
}

#adminDashboardView.admin-sidebar-collapsed .admin-side-rail nav button {
  width: 48px;
  justify-content: center;
  padding: 0;
}

#adminDashboardView.admin-sidebar-collapsed .admin-side-rail nav button svg {
  width: 20px;
  height: 20px;
}

#adminDashboardView.admin-sidebar-collapsed .admin-side-footer {
  padding-right: 0;
  padding-left: 0;
}

#adminDashboardView.admin-sidebar-collapsed .admin-side-status {
  justify-content: center;
  min-height: 40px;
  padding: 0;
}

@media (max-width: 960px) {
  #adminDashboardView {
    --admin-site-rail: 314px;
  }

  #adminDashboardView.admin-sidebar-collapsed {
    --admin-site-rail: 314px;
  }

  #adminDashboardView .content,
  #adminDashboardView.admin-sidebar-collapsed .content {
    width: 100%;
    margin-left: 0;
  }

  #adminDashboardView.admin-sidebar-collapsed .admin-side-rail nav button span,
  #adminDashboardView.admin-sidebar-collapsed .admin-nav-group-label,
  #adminDashboardView.admin-sidebar-collapsed .admin-side-footer span:not(.admin-status-dot),
  #adminDashboardView.admin-sidebar-collapsed .admin-side-footer > small {
    display: block;
  }

  #adminDashboardView.admin-sidebar-collapsed .admin-side-rail nav button {
    width: 100%;
    justify-content: flex-start;
    padding: 0 11px;
  }
}

/* ============================================================
   Admin Final UX Polish
   ============================================================ */
#adminDashboardView {
  --admin-globalbar: 0px;
  --admin-site-rail: 292px;
}

#adminDashboardView .admin-topbar {
  height: var(--admin-globalbar);
  min-height: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 0;
  backdrop-filter: blur(10px);
}

#adminDashboardView .admin-menu-btn {
  display: none;
}

#adminDashboardView .admin-topbar-left:empty {
  display: none;
}

#adminDashboardView .admin-topbar-right {
  margin-left: auto;
}

#adminDashboardView .admin-topbar-right:empty {
  display: none;
}

#adminDashboardView .admin-side-rail {
  top: var(--admin-globalbar);
  height: calc(100vh - var(--admin-globalbar));
  padding: 14px 12px;
}

#adminDashboardView .content {
  padding-top: 38px;
  padding-right: clamp(28px, 5vw, 76px);
  padding-left: clamp(28px, 5vw, 76px);
}

#adminDashboardView .admin-sidebar-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--admin-soft-line);
}

#adminDashboardView .admin-sidebar-header strong {
  color: var(--deep-twilight);
  font-size: 15px;
  letter-spacing: 0;
}

#adminDashboardView .admin-sidebar-tools {
  display: none;
}

#adminDashboardView .admin-sidebar-toggle {
  width: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: #ffffff;
}

#adminDashboardView .admin-sidebar-toggle svg {
  width: 17px;
  height: 17px;
}

#adminDashboardView .admin-side-rail nav {
  gap: 2px;
  padding-top: 0;
}

#adminDashboardView .admin-nav-group-label {
  padding: 13px 10px 5px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

#adminDashboardView .admin-side-rail nav button {
  min-height: 44px;
  padding: 0 10px;
}

#adminDashboardView .admin-side-rail nav button span {
  gap: 1px;
}

#adminDashboardView .admin-side-rail nav button small {
  font-size: 9px;
}

#adminDashboardView .admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 22px;
}

#adminDashboardView .admin-page-heading > div:first-child {
  display: grid;
  gap: 9px;
}

#adminDashboardView .admin-page-heading .admin-topbar-crumb {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#adminDashboardView .admin-page-heading h1 {
  font-size: clamp(28px, 2.4vw, 36px);
}

#adminDashboardView .admin-site-card,
#adminDashboardView .admin-hpanel-card,
#adminDashboardView .admin-task-card,
#adminDashboardView .admin-table-wrap {
  border-radius: 10px;
}

#adminDashboardView .admin-site-card-main,
#adminDashboardView .admin-site-actions,
#adminDashboardView .admin-site-pills {
  padding-right: 22px;
  padding-left: 22px;
}

#adminDashboardView .admin-site-card-main {
  padding-top: 20px;
  padding-bottom: 20px;
}

#adminDashboardView .admin-site-card-main strong {
  font-size: 16px;
}

#adminDashboardView .admin-site-card-main p {
  max-width: 760px;
}

#adminDashboardView .admin-hpanel-board,
#adminDashboardView .admin-hpanel-columns,
#adminDashboardView .admin-hpanel-stack {
  gap: 18px;
}

#adminDashboardView .admin-hpanel-card {
  padding: 20px 22px;
}

#adminDashboardView .admin-hpanel-card h3 {
  font-size: 17px;
}

#adminDashboardView .admin-action-list {
  margin: 0 -22px -20px;
}

#adminDashboardView .admin-action-row {
  min-height: 70px;
  padding: 12px 22px;
}

#adminDashboardView .admin-action-row b,
#adminDashboardView .admin-site-actions button,
#adminDashboardView .admin-hpanel-card-head button {
  min-height: 34px;
  padding: 0 16px;
}

#adminDashboardView .admin-side-footer {
  padding-right: 8px;
  padding-left: 8px;
}

#adminDashboardView.admin-sidebar-collapsed {
  --admin-site-rail: 78px;
}

#adminDashboardView.admin-sidebar-collapsed .admin-sidebar-header {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

#adminDashboardView.admin-sidebar-collapsed .admin-sidebar-header strong {
  display: none;
}

#adminDashboardView.admin-sidebar-collapsed .admin-sidebar-toggle svg {
  transform: rotate(180deg);
}

@media (max-width: 960px) {
  #adminDashboardView {
    --admin-globalbar: 64px;
    --admin-site-rail: 314px;
  }

  #adminDashboardView .admin-topbar {
    height: var(--admin-globalbar);
    min-height: var(--admin-globalbar);
    padding: 0 14px;
    border-bottom: 1px solid var(--frosted-blue);
  }

  #adminDashboardView .admin-menu-btn {
    display: flex;
  }

  #adminDashboardView .admin-side-rail {
    top: var(--admin-globalbar);
    height: calc(100vh - var(--admin-globalbar));
  }

  #adminDashboardView .content {
    padding-top: 92px;
    padding-right: 18px;
    padding-left: 18px;
  }

  #adminDashboardView .admin-page-heading {
    display: grid;
    align-items: start;
  }
}

/* ============================================================
   Admin Black Typography Pass
   ============================================================ */
#adminDashboardView {
  --admin-text-black: #050505;
  --admin-muted-black: #333333;
  color: var(--admin-text-black);
}

#adminDashboardView .admin-page-heading h1,
#adminDashboardView .admin-page-heading .admin-topbar-crumb,
#adminDashboardView .admin-page-heading .admin-topbar-subtitle,
#adminDashboardView .admin-sidebar-header strong,
#adminDashboardView .admin-side-rail nav button,
#adminDashboardView .admin-side-rail nav button svg,
#adminDashboardView .admin-side-rail nav button small,
#adminDashboardView .admin-site-card-main strong,
#adminDashboardView .admin-site-card-main p,
#adminDashboardView .admin-hpanel-card h3,
#adminDashboardView .admin-action-row strong,
#adminDashboardView .admin-action-row em,
#adminDashboardView .admin-action-row b,
#adminDashboardView .admin-performance-row strong,
#adminDashboardView .admin-performance-row p,
#adminDashboardView .admin-system-list span,
#adminDashboardView .admin-system-list strong,
#adminDashboardView .admin-task-head strong,
#adminDashboardView .admin-task-head span,
#adminDashboardView .admin-table th,
#adminDashboardView .admin-table td,
#adminDashboardView .admin-side-status,
#adminDashboardView .admin-side-status strong,
#adminDashboardView .admin-side-footer > small,
#adminDashboardView .admin-site-actions button,
#adminDashboardView .admin-hpanel-card-head button,
#adminDashboardView .admin-row-actions button,
#adminDashboardView .admin-mini-button,
#adminDashboardView .ghost-button,
#adminDashboardView .primary-button,
#adminDashboardView .status-badge,
#adminDashboardView .sb--active,
#adminDashboardView .sb--inactive,
#adminDashboardView .sb--pending {
  color: var(--admin-text-black);
}

#adminDashboardView .admin-nav-group-label,
#adminDashboardView .admin-action-row em,
#adminDashboardView .admin-performance-row p,
#adminDashboardView .admin-task-head span,
#adminDashboardView .admin-page-heading .admin-topbar-subtitle,
#adminDashboardView .admin-site-card-main p {
  color: var(--admin-muted-black);
}

/* ============================================================
   Admin Reference Dashboard Layout
   ============================================================ */
#adminDashboardView {
  --admin-blue: #0b5ee8;
  --admin-blue-soft: #eaf4ff;
  --admin-blue-line: #bfd9ff;
  --admin-bg: #f7fbff;
  background:
    radial-gradient(circle at 80% 0%, rgba(202, 240, 248, 0.95) 0 170px, transparent 360px),
    linear-gradient(180deg, #ffffff 0%, var(--admin-bg) 100%);
}

#adminDashboardView .content {
  max-width: none;
}

#adminDashboardView .admin-page-heading {
  margin-bottom: 18px;
}

#adminDashboardView .admin-page-heading h1 {
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
}

#adminDashboardView .admin-page-heading .admin-topbar-subtitle {
  max-width: 620px;
  color: #343434;
  font-size: 17px;
  font-weight: 600;
}

#adminDashboardView .admin-topbar-crumb a,
#adminDashboardView .admin-page-heading .admin-topbar-crumb {
  color: #050505;
  font-weight: 800;
}

#adminDashboardView .admin-side-rail {
  border-right: 1px solid #d8e7f7;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 8px 0 32px rgba(3, 4, 94, 0.04);
}

#adminDashboardView .admin-sidebar-header {
  min-height: 58px;
  padding-bottom: 18px;
}

#adminDashboardView .admin-sidebar-header strong {
  font-size: 24px;
  font-weight: 900;
}

#adminDashboardView .admin-sidebar-toggle {
  border-color: #d5e7fb;
  color: var(--admin-blue);
  box-shadow: 0 8px 20px rgba(3, 4, 94, 0.08);
}

#adminDashboardView .admin-side-rail nav {
  gap: 6px;
}

#adminDashboardView .admin-side-rail nav button {
  min-height: 60px;
  border: 1px solid transparent;
  border-radius: 12px;
}

#adminDashboardView .admin-side-rail nav button.is-active {
  border-color: #afcffd;
  background: linear-gradient(135deg, #eaf4ff 0%, #f7fbff 100%);
  box-shadow: inset 4px 0 0 var(--admin-blue);
}

#adminDashboardView .admin-side-rail nav button svg {
  color: #0a1326;
}

#adminDashboardView .admin-side-rail nav button.is-active svg,
#adminDashboardView .admin-side-rail nav button.is-active span {
  color: var(--admin-blue);
}

#adminDashboardView .admin-nav-group-label {
  color: #2f3b52;
  font-size: 11px;
  font-weight: 900;
}

#adminDashboardView .admin-side-footer {
  border-top: 1px solid #e4eef8;
}

#adminDashboardView .admin-side-status {
  border: 1px solid #d8e7f7;
  border-radius: 12px;
  background: #ffffff;
}

#adminDashboardView:not(.is-panel-mode) .admin-workbench {
  max-width: 1500px;
}

.admin-reference-dashboard {
  display: grid;
  gap: 18px;
}

#adminDashboardView .admin-overview-hero {
  display: grid;
  grid-template-columns: minmax(600px, 1.05fr) minmax(480px, 0.95fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--admin-blue-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(3, 4, 94, 0.08);
}

.admin-overview-hero-main {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px 36px;
}

#adminDashboardView .admin-site-card-icon {
  display: grid !important;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border: 1px solid #d7e9ff;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(145deg, #1f75ff 0%, #0747d9 100%);
  box-shadow: 0 16px 36px rgba(11, 94, 232, 0.22);
}

#adminDashboardView .admin-site-card-icon svg {
  width: 46px;
  height: 46px;
  stroke-width: 1.8;
}

.admin-overview-copy {
  min-width: 0;
  max-width: 100%;
}

.admin-overview-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#adminDashboardView .admin-overview-title-row strong {
  color: #050505;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 900;
  line-height: 1.12;
}

.admin-overview-title-row em {
  padding: 6px 10px;
  border-radius: 8px;
  color: #0b5ee8;
  background: #eaf4ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

#adminDashboardView .admin-overview-copy p {
  max-width: 560px;
  margin: 10px 0 26px;
  color: #333333;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

#adminDashboardView .admin-site-actions {
  padding: 0;
  border: 0;
}

#adminDashboardView .admin-site-actions button:first-child {
  border-color: var(--admin-blue);
  color: #ffffff;
  background: linear-gradient(135deg, #0b5ee8 0%, #0644c7 100%);
  box-shadow: 0 10px 24px rgba(11, 94, 232, 0.22);
}

#adminDashboardView .admin-site-actions button {
  min-width: 132px;
  min-height: 48px;
  border-color: #aecdff;
  border-radius: 9px;
  color: #0b2a6f;
  font-weight: 900;
}

.admin-overview-metrics {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px 36px;
  border-left: 1px solid #d8e7f7;
}

.admin-overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-overview-stat {
  display: grid;
  gap: 5px;
}

.admin-overview-stat i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--admin-blue);
  background: #eaf4ff;
  font-style: normal;
}

.admin-overview-stat svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.admin-overview-stat strong {
  color: #050505;
  font-size: 24px;
  font-weight: 900;
}

.admin-overview-stat em,
.admin-overview-stat small {
  color: #333333;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.admin-overview-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  height: 74px;
  padding: 10px 0 0;
  border-top: 1px solid #e0eaf6;
  background-image: linear-gradient(#eef4fb 1px, transparent 1px);
  background-size: 100% 24px;
}

.admin-overview-chart span {
  position: relative;
  height: 2px;
  background: var(--admin-blue);
}

.admin-overview-chart span::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--admin-blue);
}

.admin-overview-chart span:nth-child(1) { transform: translateY(-8px); }
.admin-overview-chart span:nth-child(2) { transform: translateY(-8px); }
.admin-overview-chart span:nth-child(3) { transform: translateY(-10px); }
.admin-overview-chart span:nth-child(4) { transform: translateY(-9px); }
.admin-overview-chart span:nth-child(5) { transform: translateY(-10px); }
.admin-overview-chart span:nth-child(6) { transform: translateY(-8px); }

#adminDashboardView .admin-site-pills {
  grid-column: 1 / -1;
  justify-content: center;
  gap: clamp(18px, 4vw, 72px);
  padding: 16px 28px;
  border-top: 1px solid #d8e7f7;
  background: rgba(247, 251, 255, 0.9);
}

#adminDashboardView .admin-site-pills span {
  border: 0;
  color: #06357f;
  background: transparent;
}

#adminDashboardView .admin-site-pills b {
  background: var(--admin-blue);
  box-shadow: 0 0 0 5px #eaf4ff;
}

#adminDashboardView .admin-reference-grid {
  grid-template-columns: minmax(560px, 1.05fr) minmax(420px, 0.95fr);
}

#adminDashboardView .admin-hpanel-card {
  border: 1px solid #d8e7f7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(3, 4, 94, 0.05);
}

#adminDashboardView .admin-hpanel-card-head {
  margin-bottom: 16px;
}

#adminDashboardView .admin-hpanel-card-head h3 {
  color: #050505;
  font-size: 22px;
  font-weight: 900;
}

#adminDashboardView .admin-hpanel-card-head p {
  margin: 4px 0 0;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
}

#adminDashboardView .admin-hpanel-card-head button,
#adminDashboardView .admin-action-row b {
  border-color: #b9d3fb;
  color: #0b5ee8;
  background: #ffffff;
}

#adminDashboardView .admin-action-row {
  grid-template-columns: 48px minmax(210px, 1fr) minmax(110px, 0.28fr) 92px auto;
  min-height: 82px;
}

#adminDashboardView .admin-action-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  color: var(--admin-blue) !important;
  background: #eaf4ff !important;
}

#adminDashboardView .admin-action-row strong {
  color: #050505;
  font-size: 16px;
}

#adminDashboardView .admin-action-row em {
  color: #333333;
  font-size: 13px;
}

.admin-action-metric {
  display: grid;
  gap: 2px;
  justify-self: start;
}

#adminDashboardView .admin-action-metric strong {
  font-size: 18px;
}

.admin-mini-spark {
  width: 82px;
  height: 30px;
  background:
    radial-gradient(circle at 12% 70%, #0b5ee8 0 2px, transparent 3px),
    radial-gradient(circle at 35% 48%, #0b5ee8 0 2px, transparent 3px),
    radial-gradient(circle at 58% 35%, #0b5ee8 0 2px, transparent 3px),
    radial-gradient(circle at 83% 58%, #0b5ee8 0 2px, transparent 3px),
    linear-gradient(155deg, transparent 0 18%, #0b5ee8 19% 21%, transparent 22% 42%, #0b5ee8 43% 45%, transparent 46% 66%, #0b5ee8 67% 69%, transparent 70%);
  opacity: 0.85;
}

.admin-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-insight-grid span {
  display: grid;
  gap: 4px;
  min-height: 114px;
  align-content: end;
  padding: 16px;
  border: 1px solid #d8e7f7;
  border-radius: 10px;
  background: #fbfdff;
}

.admin-insight-grid strong {
  color: #050505;
  font-size: 24px;
  font-weight: 900;
}

.admin-insight-grid em,
.admin-insight-grid small {
  color: #333333;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

#adminDashboardView .admin-system-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid #d8e7f7;
  border-radius: 10px;
}

#adminDashboardView .admin-system-list span {
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #e4eef8;
  color: #050505;
}

#adminDashboardView .admin-system-list span:last-child {
  border-bottom: 0;
}

#adminDashboardView.admin-sidebar-collapsed .admin-side-rail nav button {
  justify-content: center;
}

@media (max-width: 1280px) {
  #adminDashboardView .admin-overview-hero,
  #adminDashboardView .admin-reference-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-metrics {
    border-top: 1px solid #d8e7f7;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  #adminDashboardView .admin-page-heading h1 {
    font-size: 36px;
  }

  .admin-overview-hero-main,
  .admin-overview-metrics {
    padding: 22px;
  }

  .admin-overview-hero-main {
    display: grid;
  }

  .admin-overview-stat-grid,
  .admin-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminDashboardView .admin-action-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .admin-action-metric,
  .admin-mini-spark {
    display: none;
  }

  #adminDashboardView .admin-site-actions button {
    width: 100%;
  }
}

/* ============================================================
   Admin Density + Device Optimization
   ============================================================ */
#adminDashboardView {
  --admin-site-rail: 260px;
  --admin-blue: #0865d8;
  --admin-blue-line: #c8ddf8;
  --admin-bg: #f8fbff;
}

#adminDashboardView .content {
  padding-top: 28px;
  padding-right: clamp(18px, 3.5vw, 56px);
  padding-left: clamp(18px, 3.5vw, 56px);
}

#adminDashboardView .admin-page-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}

#adminDashboardView .admin-page-heading > div:first-child {
  gap: 6px;
}

#adminDashboardView .admin-page-heading h1 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1;
}

#adminDashboardView .admin-page-heading .admin-topbar-subtitle {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.45;
}

#adminDashboardView .admin-page-heading .admin-topbar-crumb {
  font-size: 11px;
}

#adminDashboardView .admin-side-rail {
  padding: 12px;
}

#adminDashboardView .admin-sidebar-header {
  min-height: 48px;
  margin-bottom: 8px;
  padding-bottom: 12px;
}

#adminDashboardView .admin-sidebar-header strong {
  font-size: 20px;
}

#adminDashboardView .admin-sidebar-toggle {
  width: 32px;
  min-height: 32px;
  flex-basis: 32px;
}

#adminDashboardView .admin-nav-group-label {
  padding: 10px 10px 4px;
  font-size: 10px;
}

#adminDashboardView .admin-side-rail nav {
  gap: 3px;
}

#adminDashboardView .admin-side-rail nav button {
  min-height: 50px;
  padding: 0 10px;
  border-radius: 10px;
}

#adminDashboardView .admin-side-rail nav button span {
  font-size: 13px;
}

#adminDashboardView .admin-side-rail nav button small {
  margin-top: 1px;
  font-size: 9px;
}

#adminDashboardView .admin-side-footer {
  padding: 12px 8px 0;
}

#adminDashboardView .admin-side-status {
  min-height: 42px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-reference-dashboard {
  gap: 14px;
}

#adminDashboardView .admin-overview-hero {
  grid-template-columns: minmax(500px, 0.95fr) minmax(420px, 1.05fr);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(3, 4, 94, 0.055);
}

.admin-overview-hero-main {
  gap: 18px;
  padding: 24px 28px;
}

#adminDashboardView .admin-site-card-icon {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(11, 94, 232, 0.18);
}

#adminDashboardView .admin-site-card-icon svg {
  width: 34px;
  height: 34px;
}

#adminDashboardView .admin-overview-title-row {
  gap: 8px;
}

#adminDashboardView .admin-overview-title-row strong {
  font-size: clamp(18px, 1.45vw, 22px);
}

.admin-overview-title-row em {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 10px;
}

#adminDashboardView .admin-overview-copy p {
  max-width: 520px;
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

#adminDashboardView .admin-site-actions {
  gap: 8px;
}

#adminDashboardView .admin-site-actions button {
  min-width: 122px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-overview-metrics {
  align-content: center;
  padding: 24px 28px;
}

.admin-overview-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-overview-stat {
  gap: 4px;
  min-width: 0;
}

.admin-overview-stat i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.admin-overview-stat svg {
  width: 17px;
  height: 17px;
}

.admin-overview-stat strong {
  font-size: 20px;
  line-height: 1.05;
}

.admin-overview-stat em {
  font-size: 11px;
  line-height: 1.25;
}

.admin-overview-stat small,
.admin-overview-chart {
  display: none;
}

#adminDashboardView .admin-site-pills {
  gap: clamp(12px, 3vw, 42px);
  padding: 11px 20px;
}

#adminDashboardView .admin-site-pills span {
  min-height: 24px;
  font-size: 11px;
}

#adminDashboardView .admin-site-pills b {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px #eaf4ff;
}

#adminDashboardView .admin-reference-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 14px;
}

#adminDashboardView .admin-hpanel-stack {
  gap: 14px;
}

#adminDashboardView .admin-hpanel-card {
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(3, 4, 94, 0.035);
}

#adminDashboardView .admin-hpanel-card-head {
  margin-bottom: 12px;
}

#adminDashboardView .admin-hpanel-card-head h3 {
  font-size: 18px;
  line-height: 1.15;
}

#adminDashboardView .admin-hpanel-card-head p {
  font-size: 12px;
}

#adminDashboardView .admin-hpanel-card-head button,
#adminDashboardView .admin-action-row b {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12px;
}

#adminDashboardView .admin-action-list {
  margin: 0 -20px -18px;
}

#adminDashboardView .admin-action-row {
  grid-template-columns: 38px minmax(180px, 1fr) minmax(92px, 0.22fr) auto;
  min-height: 64px;
  gap: 12px;
  padding: 10px 20px;
}

#adminDashboardView .admin-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

#adminDashboardView .admin-action-icon svg {
  width: 18px;
  height: 18px;
}

#adminDashboardView .admin-action-row strong {
  font-size: 14px;
}

#adminDashboardView .admin-action-row em {
  font-size: 12px;
  line-height: 1.35;
}

#adminDashboardView .admin-action-metric strong {
  font-size: 15px;
}

.admin-mini-spark {
  display: none;
}

.admin-insight-grid {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d8e7f7;
  border-radius: 10px;
}

.admin-insight-grid span {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 48px;
  align-content: center;
  align-items: center;
  gap: 0 10px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #e4eef8;
  border-radius: 0;
  background: #ffffff;
}

.admin-insight-grid span:last-child {
  border-bottom: 0;
}

.admin-insight-grid strong {
  grid-row: span 2;
  font-size: 18px;
}

.admin-insight-grid em,
.admin-insight-grid small {
  font-size: 11px;
  line-height: 1.25;
}

#adminDashboardView .admin-system-list span {
  min-height: 46px;
  padding: 0 12px;
  font-size: 12px;
}

#adminDashboardView.admin-sidebar-collapsed {
  --admin-site-rail: 74px;
}

@media (max-width: 1320px) {
  #adminDashboardView {
    --admin-site-rail: 238px;
  }

  #adminDashboardView .admin-overview-hero,
  #adminDashboardView .admin-reference-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-metrics {
    border-top: 1px solid #d8e7f7;
    border-left: 0;
  }
}

@media (max-width: 960px) {
  #adminDashboardView {
    --admin-site-rail: 300px;
  }

  #adminDashboardView .content {
    padding-top: 82px;
  }

  #adminDashboardView .admin-page-heading .admin-topbar-crumb {
    display: none;
  }

  #adminDashboardView .admin-reference-grid {
    gap: 12px;
  }
}

@media (max-width: 720px) {
  #adminDashboardView .content {
    padding-right: 14px;
    padding-left: 14px;
  }

  #adminDashboardView .admin-page-heading h1 {
    font-size: 30px;
  }

  #adminDashboardView .admin-page-heading .admin-topbar-subtitle {
    font-size: 13px;
  }

  .admin-overview-hero-main,
  .admin-overview-metrics {
    padding: 18px;
  }

  #adminDashboardView .admin-site-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  #adminDashboardView .admin-site-card-icon svg {
    width: 28px;
    height: 28px;
  }

  #adminDashboardView .admin-overview-title-row strong {
    font-size: 18px;
  }

  #adminDashboardView .admin-overview-copy p {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .admin-overview-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminDashboardView .admin-site-pills {
    justify-content: flex-start;
    gap: 10px 18px;
  }

  #adminDashboardView .admin-hpanel-card {
    padding: 16px;
  }

  #adminDashboardView .admin-action-list {
    margin: 0 -16px -16px;
  }

  #adminDashboardView .admin-action-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 10px 16px;
  }

  #adminDashboardView .admin-action-metric {
    display: none;
  }

  #adminDashboardView .admin-hpanel-card-head {
    align-items: flex-start;
  }
}

/* ============================================================
   Admin Sidebar Full-Height Fit
   ============================================================ */
@media (min-width: 961px) {
  #adminDashboardView {
    --admin-site-rail: 252px;
  }

  #adminDashboardView .admin-side-rail {
    overflow: hidden;
    padding: 10px 10px 8px;
  }

  #adminDashboardView .admin-sidebar-header {
    min-height: 38px;
    margin-bottom: 4px;
    padding: 0 2px 7px;
  }

  #adminDashboardView .admin-sidebar-header strong {
    font-size: 18px;
  }

  #adminDashboardView .admin-sidebar-toggle {
    width: 30px;
    min-height: 30px;
    flex-basis: 30px;
  }

  #adminDashboardView .admin-sidebar-toggle svg {
    width: 15px;
    height: 15px;
  }

  #adminDashboardView .admin-side-rail nav {
    flex: 0 0 auto;
    gap: 1px;
    overflow: visible;
    padding: 0;
  }

  #adminDashboardView .admin-nav-group-label {
    padding: 7px 8px 2px;
    font-size: 9px;
    line-height: 1.15;
  }

  #adminDashboardView .admin-side-rail nav button {
    min-height: 32px;
    gap: 8px;
    padding: 0 8px;
    border-radius: 8px;
  }

  #adminDashboardView .admin-side-rail nav button svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  #adminDashboardView .admin-side-rail nav button span {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminDashboardView .admin-side-rail nav button small {
    display: none;
  }

  #adminDashboardView .admin-side-footer {
    margin-top: auto;
    padding: 7px 6px 0;
  }

  #adminDashboardView .admin-side-status {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 11px;
  }

  #adminDashboardView .admin-side-footer > small {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    line-height: 1.2;
  }

  #adminDashboardView.admin-sidebar-collapsed {
    --admin-site-rail: 68px;
  }

  #adminDashboardView.admin-sidebar-collapsed .admin-side-rail {
    padding-right: 8px;
    padding-left: 8px;
  }

  #adminDashboardView.admin-sidebar-collapsed .admin-side-rail nav button {
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 960px) {
  #adminDashboardView .admin-side-rail {
    overflow: hidden;
    padding: 10px 10px 8px;
  }

  #adminDashboardView .admin-sidebar-header {
    min-height: 38px;
    margin-bottom: 4px;
    padding: 0 2px 7px;
  }

  #adminDashboardView .admin-sidebar-header strong {
    font-size: 18px;
  }

  #adminDashboardView .admin-side-rail nav {
    flex: 0 0 auto;
    gap: 1px;
    overflow: visible;
    padding: 0;
  }

  #adminDashboardView .admin-nav-group-label {
    padding: 7px 8px 2px;
    font-size: 9px;
    line-height: 1.15;
  }

  #adminDashboardView .admin-side-rail nav button {
    min-height: 32px;
    gap: 8px;
    padding: 0 8px;
    border-radius: 8px;
  }

  #adminDashboardView .admin-side-rail nav button svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  #adminDashboardView .admin-side-rail nav button span {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminDashboardView .admin-side-rail nav button small {
    display: none;
  }

  #adminDashboardView .admin-side-footer {
    margin-top: auto;
    padding: 7px 6px 0;
  }

  #adminDashboardView .admin-side-status {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 11px;
  }

  #adminDashboardView .admin-side-footer > small {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    line-height: 1.2;
  }
}

@media (max-height: 700px) and (max-width: 960px) {
  #adminDashboardView .admin-nav-group-label {
    display: none;
  }

  #adminDashboardView .admin-side-rail nav {
    gap: 2px;
  }

  #adminDashboardView .admin-side-rail nav button {
    min-height: 30px;
  }

  #adminDashboardView .admin-side-footer > small {
    display: none;
  }
}

/* ============================================================
   Global Visual Refresh: midnight, azure, mint
   ============================================================ */
:root {
  --ink-950: #07111f;
  --ink-900: #102033;
  --ink-800: #1f2f46;
  --ink-700: #34455f;
  --slate-600: #667085;
  --slate-500: #7a8699;
  --line-clean: #dce5ef;
  --surface-clean: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-mint: #ecfdf5;
  --surface-blue: #eff6ff;
  --azure: #2563eb;
  --azure-dark: #1d4ed8;
  --mint: #0f766e;
  --mint-bright: #14b8a6;
  --gold: #f59e0b;
  --clean-shadow: 0 18px 48px rgba(16, 32, 51, 0.11);
  --clean-shadow-sm: 0 8px 22px rgba(16, 32, 51, 0.08);
}

body {
  color: var(--ink-900);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f5f8fb 42%, #ffffff 100%);
  font-family: var(--sans);
  font-weight: 500;
}

h1,
h2,
h3,
h4,
.home-hero-left h1,
.resources-hero h1,
.quiz-banks-hero h1,
.blog-hero h1,
.blog-category-hero h1,
.blog-article-header h1,
.lesson-article h1 {
  color: var(--ink-950);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
}

p,
li,
.lesson-note-section p,
.lesson-note-section li,
.blog-article-body p {
  color: #24364e;
}

.site-shell {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(16, 32, 51, 0.06), 0 18px 60px rgba(16, 32, 51, 0.08);
}

.top-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(220, 229, 239, 0.92);
  box-shadow: 0 12px 36px rgba(16, 32, 51, 0.09);
}

.top-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 42px rgba(16, 32, 51, 0.12);
}

.top-header::before {
  background: linear-gradient(90deg, var(--ink-950) 0%, var(--azure) 48%, var(--mint-bright) 100%);
}

.main-nav a,
.nav-drop-toggle {
  color: var(--ink-800);
}

.main-nav a:hover:not(.is-active):not(.nav-cta),
.nav-dropdown:hover .nav-drop-toggle,
.nav-dropdown[open] .nav-drop-toggle {
  color: var(--azure-dark);
  border-color: rgba(37, 99, 235, 0.18);
  background: #f4f8ff;
}

.main-nav a.is-active,
.nav-dropdown:has(a.is-active) .nav-drop-toggle {
  color: var(--azure-dark);
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, #eef6ff, #ffffff);
  box-shadow: inset 0 -2px 0 var(--mint-bright);
}

.nav-search-btn,
.icon-button {
  border-color: rgba(176, 193, 214, 0.72);
  color: var(--ink-900);
  background: #ffffff;
}

.nav-search-btn:hover,
.icon-button:hover {
  color: var(--azure-dark);
  border-color: rgba(37, 99, 235, 0.28);
  background: #f4f8ff;
}

#loginNavLink {
  color: var(--ink-900) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
}

#loginNavLink:hover {
  background: var(--ink-950) !important;
  border-color: var(--ink-950) !important;
}

body:not(.admin-mode) .primary-button,
body:not(.admin-mode) .cookie-btn-primary,
body:not(.admin-mode) .lesson-header-actions .primary-button,
body:not(.admin-mode) .home-actions .primary-button,
body:not(.admin-mode) .resources-hero-actions .primary-button,
body:not(.admin-mode) .quiz-bank-action .primary-button,
body:not(.admin-mode) .course-hero-actions .primary-button,
body:not(.admin-mode) .course-library-actions .primary-button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--azure-dark), var(--mint));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

body:not(.admin-mode) .primary-button:hover,
body:not(.admin-mode) .cookie-btn-primary:hover,
body:not(.admin-mode) .lesson-header-actions .primary-button:hover,
body:not(.admin-mode) .home-actions .primary-button:hover,
body:not(.admin-mode) .resources-hero-actions .primary-button:hover,
body:not(.admin-mode) .quiz-bank-action .primary-button:hover,
body:not(.admin-mode) .course-hero-actions .primary-button:hover,
body:not(.admin-mode) .course-library-actions .primary-button:hover {
  background: linear-gradient(135deg, var(--ink-950), var(--azure-dark));
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.22);
}

body:not(.admin-mode) .ghost-button,
body:not(.admin-mode) .outline-accent,
body:not(.admin-mode) .cookie-btn-secondary,
body:not(.admin-mode) .cookie-btn-manage,
body:not(.admin-mode) .lesson-header-actions .ghost-button,
body:not(.admin-mode) .resources-hero-actions .ghost-button,
body:not(.admin-mode) .quiz-bank-action .ghost-button,
body:not(.admin-mode) .course-hero-actions .ghost-button {
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--ink-900);
  background: #ffffff;
}

body:not(.admin-mode) .ghost-button:hover,
body:not(.admin-mode) .outline-accent:hover,
body:not(.admin-mode) .cookie-btn-secondary:hover,
body:not(.admin-mode) .cookie-btn-manage:hover,
body:not(.admin-mode) .lesson-header-actions .ghost-button:hover,
body:not(.admin-mode) .resources-hero-actions .ghost-button:hover,
body:not(.admin-mode) .quiz-bank-action .ghost-button:hover,
body:not(.admin-mode) .course-hero-actions .ghost-button:hover {
  border-color: rgba(20, 184, 166, 0.42);
  color: var(--azure-dark);
  background: #f4f8ff;
}

.home-hero,
#homeView .home-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(20, 184, 166, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 46%, #eefdf9 100%);
}

.home-hero-left::before,
#homeView .home-hero-left::before,
.home-curriculum-inline-head::before,
.section-heading::before {
  background: linear-gradient(90deg, var(--azure), var(--mint-bright));
}

.home-hero-left h1 span,
#homeView .home-hero-left h1 span {
  background: linear-gradient(120deg, var(--azure-dark), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-left > p,
#homeView .home-hero-left > p,
.section-heading p,
.program-heading p,
.courses-library-copy p {
  color: var(--ink-700);
}

.resources-hero,
.quiz-banks-hero,
.blog-hero,
.blog-category-hero,
.blog-article-header,
.courses-library-hero {
  border: 1px solid rgba(37, 99, 235, 0.14);
  background:
    radial-gradient(circle at 88% 16%, rgba(20, 184, 166, 0.22), transparent 32%),
    linear-gradient(135deg, var(--ink-950) 0%, #123b73 56%, var(--mint) 100%);
  box-shadow: var(--clean-shadow);
}

.resources-hero h1,
.resources-hero p,
.quiz-banks-hero h1,
.quiz-banks-hero p,
.blog-hero h1,
.blog-hero p,
.blog-category-hero h1,
.blog-category-hero p,
.blog-article-header h1,
.blog-article-header p,
.courses-library-hero h1,
.courses-library-hero p {
  color: #ffffff;
}

.resources-hero-panel div {
  border-color: rgba(37, 99, 235, 0.16);
  background: #eff6ff;
}

.resources-hero-panel strong {
  color: var(--azure-dark);
}

.resources-hero-panel span {
  color: var(--ink-700);
}

.quiz-banks-hero-stats {
  background: rgba(255, 255, 255, 0.92);
}

.quiz-banks-hero-stats strong {
  color: var(--azure-dark);
}

.quiz-banks-hero-stats span {
  color: var(--ink-700);
}

.blog-search,
.courses-library-search,
.search-field,
.library-content input,
.library-content select,
.resources-hero-panel,
.quiz-banks-hero-stats {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--clean-shadow-sm);
}

.hcc,
.library-card,
.course-library-card,
.resource-directory-card,
.quiz-bank-card,
.blog-card,
.blog-featured,
.blog-section,
.blog-side-card,
.blog-takeaways,
.blog-toc,
.blog-faq,
.blog-references,
.blog-related,
.pdf-resource-card,
.resources-soon-grid article {
  border-color: rgba(185, 199, 218, 0.7);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.07);
}

.hcc:hover,
.library-card:hover,
.course-library-card:hover,
.resource-directory-card:hover,
.quiz-bank-card:hover,
.blog-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 18px 44px rgba(16, 32, 51, 0.12);
}

.library-card[data-note-theme],
.resource-directory-card--teal,
.resource-directory-card--blue,
.resource-directory-card--green,
.resource-directory-card--navy,
.resource-directory-card--amber,
.resource-directory-card--purple {
  --resource-accent: var(--azure-dark);
  --resource-soft: #eff6ff;
  --resource-glow: rgba(37, 99, 235, 0.13);
}

.library-card[data-note-theme="teal"],
.library-card[data-note-theme="emerald"],
.resource-directory-card--green,
.resource-directory-card--teal {
  --resource-accent: var(--mint);
  --resource-soft: #ecfdf5;
  --resource-glow: rgba(15, 118, 110, 0.14);
}

.library-card[data-note-theme="amber"],
.resource-directory-card--amber {
  --resource-accent: var(--gold);
  --resource-soft: #fff7ed;
  --resource-glow: rgba(245, 158, 11, 0.14);
}

.library-card h2,
.course-library-card h2,
.resource-directory-card h2,
.quiz-bank-card h2,
.blog-card h2,
.blog-card h2 a {
  color: var(--ink-950);
}

.library-card p,
.course-library-card p,
.resource-directory-card p,
.quiz-bank-card p,
.blog-card p {
  color: var(--slate-600);
}

.quiz-bank-card--navy-cyan .quiz-bank-visual,
.quiz-bank-card--indigo-sky .quiz-bank-visual,
.quiz-bank-card--blue-violet .quiz-bank-visual,
.quiz-bank-card--purple-blue .quiz-bank-visual {
  background: linear-gradient(135deg, var(--ink-950), var(--azure));
}

.quiz-bank-card--green-slate .quiz-bank-visual,
.quiz-bank-card--teal-amber .quiz-bank-visual,
.quiz-bank-card--cyan-green .quiz-bank-visual,
.quiz-bank-card--slate-teal .quiz-bank-visual {
  background: linear-gradient(135deg, var(--ink-900), var(--mint-bright));
}

.quiz-bank-card--violet-rose .quiz-bank-visual,
.quiz-bank-card--rose-gold .quiz-bank-visual,
.quiz-bank-card--red-navy .quiz-bank-visual,
.quiz-bank-card--orange-teal .quiz-bank-visual,
.quiz-bank-card--sky-lime .quiz-bank-visual {
  background: linear-gradient(135deg, var(--ink-900), var(--gold));
}

.blog-category-badge,
.quiz-bank-category,
.library-card-meta span,
.home-hero-stat-row li,
.resources-hero-panel div,
.lesson-article .lesson-chip,
.lesson-top .lesson-chip {
  background: #eff6ff;
  color: var(--azure-dark);
  border-color: rgba(37, 99, 235, 0.14);
}

.blue-bar,
.crumbs {
  background: linear-gradient(90deg, var(--ink-950), #123b73);
  color: #ffffff;
}

.crumbs a,
.blue-bar a {
  color: #ffffff;
}

.lesson-layout.is-visible {
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff, #ffffff);
}

.lesson-article h1 {
  color: var(--ink-950);
}

.lesson-quick-summary,
.lesson-outcomes,
.lesson-toc-panel,
.lesson-note-section,
.lesson-tools > *,
.lesson-on-page-card,
.lesson-study-tools-card {
  border-color: rgba(185, 199, 218, 0.72);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.06);
}

.lesson-note-section:nth-child(even) {
  background: #fbfdff;
}

.lesson-heading-number,
.lesson-note-section .lesson-heading-number {
  background: linear-gradient(135deg, var(--azure), var(--mint));
  color: #ffffff;
}

.lesson-on-page-card a.active,
.lesson-on-page-card a:hover {
  color: var(--azure-dark);
  background: #eff6ff;
}

.lesson-learning-box {
  border-color: rgba(20, 184, 166, 0.26);
  background: #effdf9;
}

.cookie-banner {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(185, 199, 218, 0.8);
  box-shadow: 0 -16px 36px rgba(16, 32, 51, 0.12);
}

.cookie-icon {
  color: var(--azure-dark);
  background: #eff6ff;
}

@media (max-width: 760px) {
  body {
    background: #f8fbff;
  }

  .top-header {
    background: rgba(255, 255, 255, 0.96);
  }

  .resources-hero,
  .quiz-banks-hero,
  .blog-hero,
  .blog-category-hero,
  .blog-article-header,
  .courses-library-hero {
    border-radius: 14px;
  }

  .lesson-header-actions .primary-button,
  .lesson-header-actions .ghost-button {
    box-shadow: none;
  }
}

.hcc,
.home-curriculum-inline .hcc {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.14);
}

.hcc--green {
  background: linear-gradient(148deg, #2b7a3f 0%, #43a55d 100%);
}

.hcc--blue {
  background: linear-gradient(148deg, #2b4ba9 0%, #4b6fdc 100%);
}

.hcc--purple {
  background: linear-gradient(148deg, #5528aa 0%, #7d43df 100%);
}

.hcc--rose {
  background: linear-gradient(148deg, #8f2856 0%, #bd3a75 100%);
}

.hcc h3,
.hcc > p,
.hcc .hcc-badge {
  color: #ffffff;
}

.hcc > p {
  opacity: 0.9;
}

.hcc-icon,
.hcc-badge {
  background: rgba(255, 255, 255, 0.16);
}

.hcc button {
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hcc button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

/* Desktop header alignment refinement */
@media (min-width: 901px) {
  .top-header {
    height: 70px;
    align-items: center;
    column-gap: 18px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .top-header.is-scrolled {
    height: 62px;
  }

  .brand {
    height: 44px;
    align-items: center;
    margin-right: 4px;
  }

  .brand img {
    display: block;
    max-height: 42px;
  }

  .top-header > .nav-search-btn.icon-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px 0 2px;
    border-radius: 50%;
  }

  .top-header.is-scrolled > .nav-search-btn.icon-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .main-nav {
    height: 100%;
    align-items: center;
    gap: 10px;
    line-height: 1;
  }

  .main-nav > a,
  .main-nav > .nav-dropdown,
  .main-nav > .nav-account {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
  }

  .main-nav > a,
  .nav-drop-toggle {
    height: 40px;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
  }

  .top-header.is-scrolled .main-nav > a,
  .top-header.is-scrolled .nav-drop-toggle {
    height: 38px;
    min-height: 38px;
  }

  .nav-dropdown {
    height: auto;
  }

  .nav-drop-toggle {
    appearance: none;
    -webkit-appearance: none;
  }

  .nav-drop-toggle::marker {
    content: "";
    font-size: 0;
  }

  .nav-drop-toggle::-webkit-details-marker {
    display: none;
  }

  .nav-drop-toggle span,
  .main-nav > a {
    display: inline-flex;
    align-items: center;
  }

  .nav-drop-toggle svg {
    display: block;
    flex: 0 0 auto;
    margin-top: 1px;
  }

  .nav-divider {
    align-self: center;
    margin: 0 4px;
  }

  .nav-account-btn {
    height: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  .top-header.is-scrolled .nav-account-btn {
    height: 40px;
    min-height: 40px;
  }
}

/* Courses page simplification */
#coursesView {
  background: #f7fafc;
}

#coursesView .courses-library-hero {
  max-width: 1340px;
  min-height: 0;
  display: block;
  margin: 24px auto 0;
  padding: 38px clamp(22px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(202, 240, 248, 0.68), rgba(255, 255, 255, 0.96) 42%, rgba(144, 224, 239, 0.28)),
    #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

#coursesView .courses-library-media {
  display: none;
}

#coursesView .courses-library-copy {
  max-width: 780px;
}

#coursesView .courses-library-copy h1 {
  max-width: 680px;
  color: #03045e;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

#coursesView .courses-library-copy p {
  max-width: 620px;
  margin-top: 12px;
  color: #24364e;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

#coursesView .courses-country-pill {
  margin-top: 18px;
  border-color: rgba(0, 119, 182, 0.2);
  color: #03045e;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

#coursesView .courses-library-shell {
  max-width: 1340px;
  padding: 22px clamp(16px, 4vw, 48px) 58px;
}

#coursesView .courses-library-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#coursesView .courses-library-search,
#coursesView .courses-library-sort select {
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

#coursesView .courses-library-search input,
#coursesView .courses-library-sort select {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

#coursesView .courses-library-sort {
  color: #34455f;
}

#coursesView .courses-library-chips {
  margin: 14px 0 18px;
  gap: 8px;
}

#coursesView .courses-library-chips button {
  min-height: 36px;
  padding: 0 14px;
  border-color: rgba(15, 23, 42, 0.14);
  color: #1f2937;
  background: #ffffff;
  box-shadow: none;
}

#coursesView .courses-library-chips button:hover,
#coursesView .courses-library-chips button.is-active {
  border-color: #0077b6;
  color: #03045e;
  background: #caf0f8;
  transform: none;
  box-shadow: none;
}

#coursesView .courses-library-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#coursesView .course-library-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--course-accent) 24%, #d7e2ee);
  border-radius: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--course-accent-soft) 72%, transparent) 0 5px, transparent 5px),
    #ffffff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--course-accent) 10%, rgba(15, 23, 42, 0.06));
  transform: none;
}

#coursesView .course-library-card:hover {
  border-color: color-mix(in srgb, var(--course-accent) 42%, #d7e2ee);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--course-accent) 16%, rgba(15, 23, 42, 0.08));
  transform: none;
}

#coursesView .course-library-card figure {
  width: 100%;
  height: 100%;
  min-height: 178px;
  aspect-ratio: auto;
  border-radius: 0;
}

#coursesView .course-library-card figure::before {
  background:
    linear-gradient(180deg, rgba(3, 4, 94, 0.01), rgba(3, 4, 94, 0.18)),
    linear-gradient(135deg, color-mix(in srgb, var(--course-accent) 30%, transparent), transparent 58%);
}

#coursesView .course-library-card figure::after {
  display: none;
}

#coursesView .course-library-card:hover figure img {
  filter: none;
  transform: none;
}

#coursesView .course-lib-badge {
  top: 12px;
  left: 12px;
  background: var(--course-accent-dark);
  box-shadow: none;
}

#coursesView .course-library-body {
  padding: 22px 22px;
  gap: 10px;
}

#coursesView .course-library-title-row h2 {
  max-width: 420px;
  color: #111827;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.2;
  text-transform: none;
}

#coursesView .course-library-body > p {
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

#coursesView .course-library-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}

#coursesView .course-library-stats div {
  min-width: 82px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 119, 182, 0.14);
  border-radius: 9px;
  background: #f8fcff;
}

#coursesView .course-library-stats dt {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

#coursesView .course-library-stats dd {
  margin: 4px 0 0;
  color: #03045e;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

#coursesView .course-library-actions {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 22px 22px 22px 0;
}

#coursesView .course-library-actions .primary-button {
  width: auto;
  min-width: 104px;
  min-height: 42px;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--course-accent-dark);
  border-radius: 10px;
  color: #ffffff;
  background: var(--course-accent-dark);
  box-shadow: none;
}

#coursesView .course-library-actions .primary-button:hover {
  border-color: var(--course-accent);
  color: #ffffff;
  background: var(--course-accent);
  transform: none;
}

#coursesView .course-library-actions .primary-button b {
  width: auto;
  height: auto;
  background: transparent;
}

@media (max-width: 1120px) {
  #coursesView .courses-library-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #coursesView .courses-library-hero {
    margin-top: 14px;
    padding: 28px 18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  #coursesView .courses-library-shell {
    padding: 18px 14px 44px;
  }

  #coursesView .courses-library-controls {
    grid-template-columns: 1fr;
  }

  #coursesView .courses-library-sort {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #coursesView .courses-library-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  #coursesView .courses-library-chips button {
    flex: 0 0 auto;
  }

  #coursesView .course-library-card {
    grid-template-columns: 1fr;
  }

  #coursesView .course-library-card figure {
    height: 148px;
    min-height: 148px;
  }

  #coursesView .course-library-actions {
    padding: 0 18px 18px;
  }

  #coursesView .course-library-actions .primary-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #coursesView .courses-country-pill {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  #coursesView .course-library-body {
    padding: 18px;
  }

  #coursesView .course-library-stats div {
    flex: 1 1 84px;
  }
}

/* Light lesson breadcrumbs */
#lessonView .blue-bar {
  min-height: 46px;
  height: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: #34455f;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

#lessonView .lesson-layout .crumbs,
#lessonView .crumbs {
  max-width: 1180px;
  min-height: 46px;
  gap: 0;
  padding: 0 clamp(16px, 3vw, 36px);
  overflow: hidden;
  color: #34455f;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

#lessonView .lbc-home {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 119, 182, 0.18);
  border-radius: 9px;
  color: #0077b6;
  background: #f3fbff;
}

#lessonView .lbc-home:hover {
  color: #03045e;
  background: #caf0f8;
}

#lessonView .lbc-home::before {
  display: none;
}

#lessonView .lbc-sep {
  margin: 0 9px;
  color: #90a4b8;
  font-size: 12px;
  font-weight: 800;
}

#lessonView .lbc-item,
#lessonView .lbc-current {
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#lessonView .lbc-item {
  max-width: clamp(86px, 14vw, 210px);
  color: #4b647d;
  text-decoration: none;
}

#lessonView a.lbc-item:hover {
  color: #0077b6;
  text-decoration: none;
}

#lessonView .lbc-dim {
  max-width: clamp(58px, 8vw, 140px);
  color: #667085;
  font-weight: 700;
}

#lessonView .lbc-course {
  max-width: clamp(100px, 18vw, 260px);
}

#lessonView .lbc-current {
  max-width: clamp(120px, 22vw, 320px);
  color: #03045e;
  font-size: 12px;
  font-weight: 900;
}

#lessonView .lesson-top {
  background: transparent;
}

#lessonView .topic-pill {
  color: #03045e;
  background: #caf0f8;
  border: 1px solid rgba(0, 119, 182, 0.18);
  box-shadow: none;
}

@media (max-width: 760px) {
  #lessonView .lesson-layout .crumbs,
  #lessonView .crumbs {
    min-height: 44px;
    padding: 0 14px;
  }

  #lessonView .lbc-item:not(.lbc-course),
  #lessonView .lbc-dim {
    display: none;
  }

  #lessonView .lbc-sep {
    display: none;
  }

  #lessonView .lbc-course {
    max-width: 42vw;
  }

  #lessonView .lbc-course::before,
  #lessonView .lbc-current::before {
    content: "/";
    display: inline-block;
    margin: 0 7px;
    color: #90a4b8;
    font-weight: 800;
  }

  #lessonView .lbc-current {
    max-width: 36vw;
  }
}

/* Blog home refinement */
#blogView {
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f6fbfc 100%);
}

#blogView .blog-page-shell {
  max-width: 1360px;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 3vw, 32px) 64px;
}

#blogView .blog-home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  border: 1px solid rgba(15, 45, 90, 0.1);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 42px);
  color: #111827;
  background:
    linear-gradient(90deg, rgba(0, 180, 216, 0.11), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f4fbff 54%, #ecfeff 100%);
  box-shadow: 0 22px 60px rgba(16, 32, 51, 0.09);
}

#blogView .blog-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 4, 94, 0.08), transparent 1px),
    linear-gradient(180deg, rgba(3, 4, 94, 0.06), transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, transparent 82%);
  opacity: 0.28;
}

#blogView .blog-hero-copy,
#blogView .blog-hero-panel {
  position: relative;
  z-index: 1;
}

#blogView .blog-home-hero .blog-kicker,
#blogView .blog-featured-modern .blog-kicker,
#blogView .blog-section .blog-kicker,
#blogView .blog-newsletter-card .blog-kicker,
#blogView .blog-side-card .blog-kicker {
  margin: 0 0 10px;
  color: #0077b6;
  font-size: 11px;
  letter-spacing: 0.1em;
}

#blogView .blog-home-hero h1 {
  max-width: 780px;
  color: #03045e;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
}

#blogView .blog-home-hero p {
  max-width: 680px;
  color: #344054;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

#blogView .blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

#blogView .blog-hero-actions a,
#blogView .blog-featured-modern .blog-section-head > a,
#blogView .blog-newsletter-card .newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(0, 119, 182, 0.22);
  border-radius: 12px;
  padding: 0 16px;
  color: #03045e;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.06);
}

#blogView .blog-hero-actions a:first-child,
#blogView .blog-newsletter-card .newsletter-form button {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
}

#blogView .blog-hero-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid rgba(0, 119, 182, 0.14);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.08);
  backdrop-filter: blur(12px);
}

#blogView .blog-search {
  min-height: 54px;
  border-color: rgba(3, 4, 94, 0.16);
  border-radius: 14px;
  color: #03045e;
  background: #ffffff;
  box-shadow: none;
}

#blogView .blog-search input {
  color: #111827;
  font-size: 14px;
}

#blogView .blog-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#blogView .blog-home-stats span {
  display: grid;
  gap: 3px;
  min-height: 74px;
  border: 1px solid rgba(0, 119, 182, 0.12);
  border-radius: 14px;
  padding: 12px;
  color: #667085;
  background: #f8fbff;
  font-size: 11px;
  font-weight: 800;
}

#blogView .blog-home-stats strong {
  color: #03045e;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.1;
}

#blogView .blog-category-quicklinks {
  grid-column: auto;
  gap: 8px;
  margin: 0;
}

#blogView .blog-category-quicklinks a {
  border-color: rgba(0, 119, 182, 0.18);
  color: #03045e;
  background: #eef9fc;
  font-size: 11px;
}

#blogView .blog-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 24px;
  margin-top: 24px;
}

#blogView .blog-featured,
#blogView .blog-section,
#blogView .blog-side-card,
#blogView .blog-newsletter-card {
  border-color: rgba(15, 45, 90, 0.11);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.065);
}

#blogView .blog-featured,
#blogView .blog-section,
#blogView .blog-side-card {
  padding: clamp(18px, 2.3vw, 24px);
}

#blogView .blog-section {
  margin-top: 18px;
}

#blogView .blog-section-head {
  align-items: center;
  margin-bottom: 16px;
}

#blogView .blog-section-head h2,
#blogView .blog-side-card h2 {
  color: #111827;
  font-size: clamp(19px, 2vw, 24px);
}

#blogView .blog-section-head p {
  color: #667085;
  font-size: 13px;
}

#blogView .blog-featured-modern .blog-card-featured {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: none;
}

#blogView .blog-featured-modern .blog-card-featured .blog-card-media {
  min-height: 290px;
}

#blogView .blog-featured-modern .blog-card-featured .blog-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

#blogView .blog-featured-modern .blog-card-featured h2 {
  font-size: clamp(26px, 3.3vw, 40px);
}

#blogView .blog-grid-modern {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#blogView .blog-card {
  border-radius: 16px;
  box-shadow: none;
}

#blogView .blog-card:hover {
  transform: translateY(-3px);
}

#blogView .blog-card-media {
  aspect-ratio: 16 / 10;
  background: #eaf7fb;
}

#blogView .blog-card-body {
  padding: 16px;
}

#blogView .blog-category-badge {
  border: 1px solid rgba(0, 119, 182, 0.16);
  color: #0077b6;
  background: #eef9fc;
  font-size: 10px;
}

#blogView .blog-card h2 {
  color: #111827;
  font-size: 18px;
  line-height: 1.22;
}

#blogView .blog-card p {
  color: #475467;
  font-size: 13px;
  line-height: 1.58;
}

#blogView .blog-meta {
  color: #667085;
  font-size: 11px;
}

#blogView .blog-read-link {
  color: #0077b6;
}

#blogView .blog-category-showcase-modern {
  gap: 12px;
}

#blogView .blog-category-row {
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr);
  border-color: rgba(15, 45, 90, 0.09);
  border-radius: 14px;
  background: #fbfdff;
}

#blogView .blog-category-row h3 {
  color: #111827;
  font-size: 16px;
}

#blogView .blog-category-row p,
#blogView .blog-category-row > div:last-child a {
  font-size: 12.5px;
}

#blogView .blog-newsletter-card {
  border-color: rgba(0, 180, 216, 0.18);
  background:
    linear-gradient(135deg, #ffffff 0%, #eefbff 100%);
}

#blogView .blog-newsletter-card h2 {
  color: #03045e;
  font-size: clamp(24px, 3vw, 34px);
}

#blogView .blog-sidebar,
#blogView .blog-article-sidebar {
  top: 88px;
  gap: 14px;
}

#blogView .blog-side-card {
  gap: 9px;
}

#blogView .blog-side-card a,
#blogView .blog-side-card button {
  min-height: 38px;
  border-color: rgba(15, 45, 90, 0.1);
  border-radius: 12px;
  color: #111827;
  background: #fbfdff;
  font-size: 12px;
}

#blogView .blog-side-card a span {
  color: #667085;
}

#blogView .blog-study-routes a {
  display: grid;
  justify-content: stretch;
  gap: 3px;
  min-height: 58px;
}

#blogView .blog-study-routes a:first-of-type {
  color: #ffffff;
  background: linear-gradient(135deg, #03045e, #0077b6);
}

#blogView .blog-study-routes a:first-of-type span {
  color: rgba(255, 255, 255, 0.78);
}

#blogView .blog-sidebar-newsletter .newsletter-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 1180px) {
  #blogView .blog-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #blogView .blog-home-hero,
  #blogView .blog-layout,
  #blogView .blog-featured-modern .blog-card-featured,
  #blogView .blog-category-row,
  #blogView .blog-newsletter-card {
    grid-template-columns: 1fr;
  }

  #blogView .blog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #blogView .blog-page-shell {
    padding: 18px 12px 44px;
  }

  #blogView .blog-home-hero,
  #blogView .blog-featured,
  #blogView .blog-section,
  #blogView .blog-side-card,
  #blogView .blog-newsletter-card {
    border-radius: 14px;
  }

  #blogView .blog-home-hero {
    padding: 20px;
  }

  #blogView .blog-hero-actions,
  #blogView .blog-home-stats,
  #blogView .blog-grid-modern,
  #blogView .blog-sidebar {
    grid-template-columns: 1fr;
  }

  #blogView .blog-hero-actions {
    display: grid;
  }

  #blogView .blog-featured-modern .blog-card-featured .blog-card-media {
    min-height: auto;
  }

  #blogView .blog-section-head {
    display: grid;
    align-items: start;
  }
}

/* Continuous note reader: keep headings anchorable without turning every section into a separate card. */
.lesson-layout .lesson-note-section,
.lesson-layout .lesson-note-section:nth-child(even) {
  max-width: 980px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lesson-layout .lesson-note-section:hover {
  border-color: transparent;
  box-shadow: none;
}

.lesson-layout .lesson-note-section + .lesson-note-section {
  margin-top: 18px;
}

.lesson-layout .lesson-note-section h2 {
  margin: 30px 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(185, 199, 218, 0.7);
  color: #07111f;
  font-size: 20px;
  line-height: 1.35;
}

.lesson-layout .lesson-note-section:first-of-type h2 {
  margin-top: 0;
}

.lesson-layout .lesson-note-section h3 {
  margin: 22px 0 8px;
  color: #102a43;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.lesson-layout .lesson-note-section p,
.lesson-layout .lesson-note-section li {
  max-width: 900px;
  color: #172334;
  font-size: 15px;
  line-height: 1.8;
}

.lesson-layout .lesson-note-section p {
  margin: 10px 0 0;
}

.lesson-layout .lesson-key-list {
  margin: 12px 0 0;
  padding-left: 22px;
}

.lesson-layout .lesson-key-list li + li {
  margin-top: 8px;
}

@media (max-width: 680px) {
  .lesson-layout .lesson-note-section h2 {
    margin-top: 24px;
    font-size: 18px;
  }

  .lesson-layout .lesson-note-section h3,
  .lesson-layout .lesson-note-section p,
  .lesson-layout .lesson-note-section li {
    font-size: 14px;
  }
}

/* Notes page organization pass: compact header, calmer navigation, and one readable article surface. */
#lessonView .lesson-layout.is-visible {
  grid-template-columns: minmax(0, 920px) minmax(220px, 280px);
  gap: 0 24px;
  align-items: start;
  padding: 0 clamp(14px, 2vw, 28px);
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 119, 182, 0.07), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 44%);
}

#lessonView .lesson-layout .blue-bar {
  min-height: 48px;
  height: auto;
  margin-top: 12px;
  border: 1px solid rgba(185, 199, 218, 0.58);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.84);
}

#lessonView .lesson-layout .crumbs {
  min-height: 48px;
  padding: 0 14px;
}

#lessonView .lbc-current {
  color: #03045e;
}

#lessonView .topic-pill {
  height: 24px;
  padding: 0 13px;
  color: #03045e;
  background: #caf0f8;
  border: 1px solid #90e0ef;
  font-size: 11px;
}

#lessonView .lesson-article {
  padding: 30px 0 54px;
  background: transparent;
}

#lessonView .lesson-article h1 {
  max-width: 900px;
  margin-top: 18px;
  color: #07111f;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.03;
}

#lessonView .lesson-article .meta-row {
  max-width: 900px;
  gap: 10px 22px;
  margin-top: 20px;
  padding-bottom: 18px;
  border-bottom: 0;
  color: #23364f;
}

#lessonView .lesson-source-content {
  max-width: 900px;
  margin-top: 18px;
  padding: 24px 28px 30px;
  border: 1px solid rgba(185, 199, 218, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(16, 32, 51, 0.07);
}

#lessonView .lesson-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(185, 199, 218, 0.62);
}

#lessonView .lesson-header-actions .primary-button,
#lessonView .lesson-header-actions .ghost-button {
  min-height: 40px;
  min-width: 0;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: none;
}

#lessonView .lesson-note-section h2 {
  display: block;
  margin: 28px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(144, 224, 239, 0.75);
  color: #03045e;
  font-size: 20px;
  text-decoration: underline;
  text-decoration-color: rgba(0, 180, 216, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

#lessonView .lesson-note-section:first-of-type h2 {
  margin-top: 0;
}

#lessonView .lesson-note-section h3 {
  display: block;
  margin-top: 22px;
  color: #0a2038;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-color: rgba(0, 119, 182, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

#lessonView .lesson-note-section p,
#lessonView .lesson-note-section li {
  max-width: 820px;
  color: #172334;
  font-size: 15.5px;
  line-height: 1.82;
}

#lessonView .lesson-note-section p strong,
#lessonView .lesson-note-section li strong,
#lessonView .lesson-source-content strong {
  color: #03045e;
  font-weight: 850;
}

#lessonView .lesson-section-number {
  display: none;
  width: 34px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(0, 119, 182, 0.28);
  border-radius: 7px;
  color: #03045e;
  background: #caf0f8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

#lessonView .lesson-note-section h3 .lesson-section-number {
  width: 30px;
  height: 26px;
  background: #f0fbff;
  font-size: 11px;
}

#lessonView .lesson-note-section h2 > span:last-child,
#lessonView .lesson-note-section h3 > span:last-child {
  min-width: 0;
}

#lessonView .lesson-key-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
}

#lessonView .lesson-key-list li {
  position: relative;
  min-height: 34px;
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

#lessonView .lesson-key-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0f9292;
}

#lessonView .lesson-key-list li:last-child {
  border-bottom: 0;
}

#lessonView .lesson-inline-list {
  max-width: 88ch;
  margin: 16px 0 24px;
  gap: 0;
  border-top: 1px solid rgba(209, 221, 232, 0.85);
}

#lessonView .lesson-inline-list li {
  padding-top: 12px;
  padding-bottom: 12px;
}

#lessonView .lesson-list-alpha li::before,
#lessonView .lesson-list-numbered li::before {
  position: absolute;
  top: 9px;
  left: 0;
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(0, 119, 182, 0.25);
  border-radius: 999px;
  color: #03045e;
  background: #f0fbff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

#lessonView .lesson-list-alpha li::before {
  content: "";
}

#lessonView .lesson-list-numbered {
  counter-reset: note-step;
}

#lessonView .lesson-list-numbered li {
  counter-increment: note-step;
}

#lessonView .lesson-list-numbered li::before {
  content: "";
}

#lessonView .lesson-care-plan-wrap {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(185, 199, 218, 0.86);
  border-radius: 8px;
  background: #ffffff;
  scrollbar-color: #9ab6c4 #eef5f7;
  scrollbar-width: thin;
}

#lessonView .lesson-care-plan-table {
  width: max-content;
  min-width: 980px;
  border-collapse: collapse;
  color: #172334;
  font-size: 13.5px;
  line-height: 1.55;
  table-layout: fixed;
}

#lessonView .lesson-care-plan-table th,
#lessonView .lesson-care-plan-table td {
  width: 170px;
  min-width: 170px;
  max-width: 210px;
  padding: 12px 13px;
  border: 1px solid rgba(209, 221, 232, 0.88);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

#lessonView .lesson-care-plan-table th {
  color: #03045e;
  background: #e9f8fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

#lessonView .lesson-care-plan-table td:first-child {
  color: #0b6464;
  font-weight: 800;
}

#lessonView .lesson-procedure-wrap {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(185, 199, 218, 0.86);
  border-radius: 8px;
  background: #ffffff;
  scrollbar-color: #9ab6c4 #eef5f7;
  scrollbar-width: thin;
}

#lessonView .lesson-procedure-table {
  width: max-content;
  min-width: 760px;
  border-collapse: collapse;
  color: #172334;
  font-size: 14px;
  line-height: 1.58;
  table-layout: fixed;
}

#lessonView .lesson-procedure-table th,
#lessonView .lesson-procedure-table td {
  min-width: 210px;
  padding: 12px 14px;
  border: 1px solid rgba(209, 221, 232, 0.88);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

#lessonView .lesson-procedure-table th {
  color: #03045e;
  background: #e9f8fd;
  font-size: 12px;
  font-weight: 900;
}

#lessonView .lesson-procedure-table th:first-child,
#lessonView .lesson-procedure-table td:first-child {
  width: 64px;
  text-align: center;
  color: #0b6464;
  font-weight: 900;
}

#lessonView .lesson-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-color: #9ab6c4 #eef5f7;
  scrollbar-width: thin;
}

#lessonView .lesson-table {
  width: max-content;
  min-width: 680px;
}

#lessonView .lesson-table th,
#lessonView .lesson-table td {
  min-width: 170px;
  max-width: 240px;
  overflow-wrap: anywhere;
}

#lessonView .lesson-key-list li::marker {
  color: #0077b6;
  font-size: 16px;
}

#lessonView .ltoc-num {
  display: inline-grid;
  width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  color: #03045e;
  background: #e9f8fd;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

#lessonView .lesson-tools {
  top: 92px;
  margin-top: 54px;
}

#lessonView .lesson-toc-sidebar {
  overflow: hidden;
  border: 1px solid rgba(185, 199, 218, 0.74);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.07);
}

#lessonView .lesson-on-page-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#lessonView .lesson-on-page-card h3,
#lessonView .lesson-toc-sidebar .toc-title,
#lessonView .lesson-toc-sidebar h3 {
  color: #07111f;
  background: #ffffff;
}

#lessonView .lesson-on-page-card a {
  padding: 8px 12px 8px 22px;
  color: #324761;
  font-size: 12px;
  line-height: 1.35;
}

#lessonView .lesson-on-page-card a::before {
  left: 8px;
  width: 5px;
  height: 5px;
  background: #90a4b8;
}

#lessonView .lesson-on-page-card a.active,
#lessonView .lesson-on-page-card a:hover {
  color: #03045e;
  background: #f3fbfd;
}

#lessonView .lesson-on-page-card a.active::before,
#lessonView .lesson-on-page-card a:hover::before {
  background: #0077b6;
}

@media (max-width: 980px) {
  #lessonView .lesson-layout.is-visible {
    grid-template-columns: minmax(0, 1fr);
  }

  #lessonView .lesson-tools {
    display: none;
  }
}

@media (max-width: 680px) {
  #lessonView .lesson-article {
    padding-top: 20px;
  }

  #lessonView .lesson-article h1 {
    font-size: 34px;
  }

  #lessonView .lesson-article .meta-row {
    display: grid;
    gap: 10px;
  }

  #lessonView .lesson-source-content {
    padding: 18px 16px 24px;
    border-radius: 8px;
  }

  #lessonView .lesson-header-actions {
    display: grid;
  }

  #lessonView .lesson-header-actions .primary-button,
  #lessonView .lesson-header-actions .ghost-button {
    width: 100%;
  }
}

/* Notes header polish: make the top area feel composed and easier to scan. */
#lessonView .lesson-layout.is-visible {
  grid-template-columns: minmax(0, 940px) minmax(240px, 300px);
  gap: 0 28px;
}

#lessonView .lesson-layout .blue-bar {
  width: min(100%, 940px);
  min-height: 54px;
  margin-top: 16px;
  border-color: rgba(185, 199, 218, 0.66);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.94));
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.06);
}

#lessonView .lesson-layout .crumbs {
  min-height: 54px;
  padding: 0 18px;
  font-size: 12px;
}

#lessonView .lbc-home {
  width: 30px;
  height: 30px;
  color: #0077b6;
  background: #eef9fd;
  border: 1px solid #bde9f4;
}

#lessonView .lbc-sep {
  margin: 0 9px;
  color: #8ea3bb;
  font-weight: 700;
}

#lessonView .lbc-item,
#lessonView .lbc-current {
  max-width: 185px;
}

#lessonView .lesson-article {
  padding-top: 24px;
}

#lessonView .lesson-top {
  margin-bottom: 12px;
}

#lessonView .topic-pill {
  height: 26px;
  padding: 0 14px;
  border-color: #8bddeb;
  background: #dff8fd;
  box-shadow: 0 8px 18px rgba(0, 119, 182, 0.08);
}

#lessonView .lesson-article h1 {
  max-width: 880px;
  margin-top: 14px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.06;
}

#lessonView .lesson-article .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 16px;
}

#lessonView .lesson-article .meta-row span {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(185, 199, 218, 0.7);
  border-radius: 999px;
  color: #172334;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 750;
}

#lessonView .lesson-article .meta-row svg {
  color: #0077b6;
}

#lessonView .lesson-tools {
  top: 108px;
  margin-top: 116px;
}

#lessonView .lesson-toc-sidebar {
  max-height: calc(100vh - 132px);
  overflow: auto;
}

#lessonView .lesson-on-page-card a {
  padding-top: 9px;
  padding-bottom: 9px;
}

@media (max-width: 980px) {
  #lessonView .lesson-layout.is-visible {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  #lessonView .lesson-layout .blue-bar {
    margin-top: 10px;
    border-radius: 10px;
  }

  #lessonView .lesson-layout .crumbs {
    padding: 0 12px;
  }

  #lessonView .lesson-article h1 {
    font-size: 32px;
  }

  #lessonView .lesson-article .meta-row span {
    width: 100%;
    justify-content: flex-start;
  }
}

#lessonView .lesson-image-card {
  width: min(100%, 860px);
  margin: 24px 0 22px;
  padding: 12px;
  border: 1px solid rgba(185, 199, 218, 0.78);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.07);
  scroll-margin-top: 112px;
}

#lessonView .lesson-figure-link {
  color: #1f766f;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(42, 157, 143, 0.38);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

#lessonView .lesson-figure-link:hover,
#lessonView .lesson-figure-link:focus-visible {
  color: #12413d;
  text-decoration-color: currentColor;
}

#lessonView .lesson-image-card img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  border-radius: 7px;
  background: #f8fbff;
}

#lessonView .lesson-image-card figcaption {
  padding: 9px 4px 2px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 700px) {
  #lessonView .lesson-image-card {
    margin: 18px 0;
    padding: 8px;
    border-radius: 8px;
  }

  #lessonView .lesson-image-card img {
    max-height: 360px;
  }
}

/* Cleaner note contents rail. */
#lessonView .lesson-tools {
  top: 104px;
}

#lessonView .lesson-toc-sidebar {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

#lessonView .ltoc-hd {
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  color: #0f172a;
  background: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#lessonView .ltoc-hd svg {
  color: #0077b6;
}

#lessonView .ltoc-hd em {
  min-width: 24px;
  padding: 3px 7px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-align: center;
}

#lessonView .ltoc-nav {
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 6px;
}

#lessonView .ltoc-nav::-webkit-scrollbar {
  width: 7px;
}

#lessonView .ltoc-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

#lessonView .ltoc-item {
  position: relative;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border-left: 0;
  border-radius: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

#lessonView .ltoc-item:hover {
  color: #03045e;
  background: #f8fafc;
}

#lessonView .ltoc-item.is-active {
  color: #03045e;
  background: #edf8fc;
  box-shadow: inset 3px 0 0 #0077b6;
}

#lessonView .ltoc-bar {
  width: 8px;
}

#lessonView .ltoc-bar::before {
  width: 4px;
  height: 4px;
  background: #cbd5e1;
}

#lessonView .ltoc-item.is-active .ltoc-bar::before,
#lessonView .ltoc-item:hover .ltoc-bar::before {
  background: #0077b6;
  transform: scale(1.1);
}

#lessonView .ltoc-l3 {
  padding-left: 20px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
}

#lessonView .ltoc-l3 .ltoc-bar {
  width: 6px;
}

@media (max-width: 1180px) {
  #lessonView .lesson-layout.is-visible {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 0 20px;
  }
}

/* Medical notes reader handoff adoption: editorial card, dark header, serif body, slim outline. */
#lessonView.view.is-visible,
body:has(#lessonView.is-visible) {
  background: #eef1f5;
}

#lessonView.lesson-layout.is-visible {
  --nr-ink: #102033;
  --nr-muted: #5a6b7f;
  --nr-border: #dbe2ea;
  --nr-accent: #0e7c86;
  --nr-accent-soft: #e7f3f4;
  grid-template-columns: minmax(0, 1020px) 236px;
  gap: 0 48px;
  align-items: start;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 32px 24px 60px;
  color: var(--nr-ink);
  background: transparent;
  font-family: "IBM Plex Sans", "Plus Jakarta Sans", system-ui, sans-serif;
}

#lessonView .lesson-sidebar {
  display: none !important;
}

#lessonView .lesson-layout .blue-bar {
  grid-column: 1 / 2;
  width: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(120% 140% at 88% -10%, #1c3a55 0%, #102033 52%);
  box-shadow: none;
}

#lessonView .lesson-layout .crumbs {
  max-width: none;
  min-height: 48px;
  padding: 18px 56px 0;
  color: #8fa0b4;
  font-size: 12.5px;
  font-weight: 500;
}

#lessonView .lbc-home {
  width: auto;
  height: auto;
  border: 0;
  color: #8fa0b4;
  background: transparent;
}

#lessonView .lbc-home svg {
  display: none;
}

#lessonView .lbc-home::after {
  content: "Home";
}

#lessonView .lbc-sep {
  margin: 0 7px;
  color: #8fa0b4;
  font-size: 13px;
}

#lessonView .lbc-item,
#lessonView .lbc-current,
#lessonView .lbc-dim,
#lessonView .lbc-course {
  max-width: clamp(90px, 14vw, 220px);
  color: #8fa0b4;
  font-weight: 500;
}

#lessonView a.lbc-item:hover,
#lessonView .lbc-current {
  color: #6fd0d8;
}

#lessonView .lesson-article {
  grid-column: 1 / 2;
  overflow: hidden;
  margin-top: -1px;
  padding: 0;
  border: 1px solid var(--nr-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #ffffff;
  box-shadow: 0 30px 70px -40px rgba(16, 32, 51, 0.45);
}

#lessonView .lesson-top,
#lessonView .lesson-article > h1,
#lessonView .lesson-article > .meta-row {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  background:
    radial-gradient(circle at 91% -20%, rgba(14, 124, 134, 0.38) 0%, rgba(14, 124, 134, 0) 36%),
    radial-gradient(120% 140% at 88% -10%, #1c3a55 0%, #102033 52%);
}

#lessonView .lesson-top {
  display: flex;
  align-items: center;
  padding: 30px 56px 16px;
}

#lessonView .topic-pill {
  height: auto;
  padding: 0 0 0 46px;
  border: 0;
  border-radius: 0;
  color: #6fd0d8;
  background: transparent;
  box-shadow: none;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

#lessonView .topic-pill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 34px;
  height: 2px;
  background: #6fd0d8;
  transform: translateY(-50%);
}

#lessonView .lesson-article > h1 {
  padding: 0 56px 16px;
  color: #ffffff;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

#lessonView .lesson-article > .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 56px 40px;
  border: 0;
}

#lessonView .lesson-article > .meta-row span {
  min-height: 30px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  color: #d8e2ed;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 500;
}

#lessonView .lesson-article > .meta-row svg {
  color: #6fd0d8;
}

#lessonView .lesson-source-content {
  max-width: none;
  margin: 0;
  padding: 42px 56px 50px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #26364a;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
}

#lessonView .lesson-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0 0 24px;
  border-bottom: 1px solid #eef1f5;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

#lessonView .lesson-header-actions .primary-button,
#lessonView .lesson-header-actions .ghost-button,
#lessonView .lesson-header-actions .outline-accent {
  min-height: 39px;
  border-radius: 9px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

#lessonView .lesson-header-actions .primary-button {
  border-color: var(--nr-accent);
  background: var(--nr-accent);
}

#lessonView .lesson-header-actions .ghost-button {
  border: 1px solid #dbe2ea;
  color: var(--nr-ink);
  background: #ffffff;
}

#lessonView .lesson-note-section,
#lessonView .lesson-note-section:nth-child(even) {
  max-width: none;
  margin: 0;
}

#lessonView .lesson-note-section + .lesson-note-section {
  margin-top: 28px;
}

#lessonView .lesson-note-section h2,
#lessonView .lesson-note-section:first-of-type h2 {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 0;
  border-left: 4px solid var(--nr-accent);
  border-radius: 0 8px 8px 0;
  color: var(--nr-ink);
  background: linear-gradient(90deg, var(--nr-accent-soft) 0%, rgba(231, 243, 244, 0) 72%);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  scroll-margin-top: 90px;
}

#lessonView .lesson-note-section h3 {
  width: fit-content;
  margin: 28px 0 10px;
  padding: 4px 10px;
  border-left: 3px solid rgba(14, 124, 134, 0.55);
  border-radius: 0 7px 7px 0;
  color: var(--nr-ink);
  background: rgba(231, 243, 244, 0.72);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

#lessonView .lesson-note-section p,
#lessonView .lesson-note-section li {
  max-width: none;
  color: #26364a;
  font-size: 17px;
  line-height: 1.8;
}

#lessonView .lesson-note-section p {
  margin: 0 0 18px;
}

#lessonView .lesson-note-section p strong,
#lessonView .lesson-note-section li strong,
#lessonView .lesson-source-content strong {
  color: var(--nr-ink);
  font-weight: 600;
}

#lessonView .lesson-note-section .lesson-term-label,
#lessonView .lesson-source-content .lesson-term-label {
  color: var(--nr-ink);
  font-weight: 850;
}

#lessonView .lesson-key-list {
  gap: 0;
  margin: 0 0 24px;
  padding-left: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

#lessonView .lesson-key-list li {
  min-height: 0;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid #e4e9f0;
  color: #26364a;
  font-size: 15px;
  line-height: 1.8;
}

#lessonView .lesson-key-list li::before {
  top: 22px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--nr-accent);
}

#lessonView .lesson-care-plan-wrap,
#lessonView .lesson-procedure-wrap,
#lessonView .lesson-image-card {
  border-color: #e4e9f0;
  border-radius: 12px;
  box-shadow: none;
}

#lessonView .lesson-care-plan-table,
#lessonView .lesson-procedure-table {
  color: #26364a;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

#lessonView .lesson-care-plan-table th,
#lessonView .lesson-procedure-table th {
  color: var(--nr-ink);
  background: var(--nr-accent-soft);
}

#lessonView .lesson-premium-nav {
  max-width: none;
  margin-top: 36px;
  padding-top: 26px;
  border-top-color: #eef1f5;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

#lessonView .lesson-nav-card {
  min-height: 76px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-color: #dbe2ea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

#lessonView .lesson-nav-card::before {
  display: none;
}

#lessonView .lesson-nav-card--next {
  grid-template-columns: minmax(0, 1fr) 34px;
  border-color: var(--nr-ink);
  color: #ffffff;
  background: var(--nr-ink);
}

#lessonView .lesson-nav-icon,
#lessonView .lesson-nav-card--next .lesson-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--nr-accent);
  background: #f2f5f8;
  box-shadow: none;
}

#lessonView .lesson-nav-card--next .lesson-nav-icon {
  color: #ffffff;
  background: var(--nr-accent);
}

#lessonView .lesson-nav-icon svg {
  width: 18px;
  height: 18px;
}

#lessonView .lesson-nav-copy {
  gap: 3px;
}

#lessonView .lesson-nav-copy small,
#lessonView .lesson-nav-card--next .lesson-nav-copy small {
  padding: 0;
  border-radius: 0;
  color: #8a99ab;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

#lessonView .lesson-nav-card--next .lesson-nav-copy small {
  color: #6fd0d8;
}

#lessonView .lesson-nav-copy strong {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

#lessonView .lesson-tools {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0;
  padding-top: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

#lessonView .lesson-toc-sidebar {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#lessonView .ltoc-hd {
  padding: 0 0 12px;
  border-bottom: 0;
  color: #8a99ab;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#lessonView .ltoc-hd svg {
  display: none;
}

#lessonView .ltoc-nav {
  max-height: none;
  padding: 0;
  border-left: 2px solid #eef1f5;
}

#lessonView .ltoc-item {
  min-height: 0;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: var(--nr-muted);
  background: transparent;
  font-size: 13.5px;
  font-weight: 400;
}

#lessonView .ltoc-item:hover,
#lessonView .ltoc-item.is-active {
  color: var(--nr-accent);
  background: transparent;
  border-left-color: var(--nr-accent);
  box-shadow: none;
  font-weight: 600;
}

#lessonView .ltoc-bar {
  display: none;
}

#lessonView .ltoc-l3 {
  padding-left: 24px;
  font-size: 12.5px;
}

#lessonView .lst-card {
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  box-shadow: none;
}

#lessonView .lst-header {
  padding: 0 0 8px;
}

#lessonView .lst-header-icon {
  display: none;
}

#lessonView .lst-title {
  color: var(--nr-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#lessonView .lst-items {
  gap: 8px;
}

#lessonView .lst-item {
  min-height: 42px;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
  background: transparent;
}

#lessonView .lst-item:first-child {
  border-top: 0;
}

#lessonView .lst-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

#lessonView .lst-item-text strong {
  color: var(--nr-ink);
  font-size: 13px;
}

#lessonView .lst-item-text small {
  color: var(--nr-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  #lessonView.lesson-layout.is-visible {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 24px 20px 56px;
  }

  #lessonView .lesson-tools {
    display: none;
  }

  #lessonView .lesson-layout .blue-bar,
  #lessonView .lesson-article {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  #lessonView.lesson-layout.is-visible {
    padding: 18px 14px 48px;
  }

  #lessonView .lesson-layout .blue-bar {
    border-radius: 14px 14px 0 0;
  }

  #lessonView .lesson-layout .crumbs {
    padding: 16px 22px 0;
  }

  #lessonView .lesson-article {
    border-radius: 0 0 14px 14px;
  }

  #lessonView .lesson-top {
    padding: 26px 22px 14px;
  }

  #lessonView .lesson-article > h1 {
    padding: 0 22px 14px;
    font-size: 30px;
  }

  #lessonView .lesson-article > .meta-row {
    padding: 0 22px 28px;
  }

  #lessonView .lesson-article > .meta-row span {
    width: auto;
  }

  #lessonView .lesson-source-content {
    padding: 30px 22px 36px;
    font-size: 16px;
  }

  #lessonView .lesson-note-section h2 {
    font-size: 19px;
  }

  #lessonView .lesson-note-section p,
  #lessonView .lesson-note-section li {
    font-size: 16px;
  }

  #lessonView .lesson-header-actions,
  #lessonView .lesson-premium-nav {
    grid-template-columns: 1fr;
  }
}

#lessonView.lesson-layout .blue-bar {
  grid-column: 1 / 2;
  width: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(circle at 91% -20%, rgba(14, 124, 134, 0.38) 0%, rgba(14, 124, 134, 0) 36%),
    radial-gradient(120% 140% at 88% -10%, #1c3a55 0%, #102033 52%);
  box-shadow: none;
}

#lessonView.lesson-layout .crumbs {
  max-width: none;
  min-height: 48px;
  padding: 18px 56px 0;
  color: #8fa0b4;
  font-size: 12.5px;
  font-weight: 500;
}

@media (max-width: 980px) {
  #lessonView.lesson-layout .blue-bar {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  #lessonView.lesson-layout .blue-bar {
    border-radius: 14px 14px 0 0;
  }

  #lessonView.lesson-layout .crumbs {
    padding: 16px 22px 0;
  }
}

/* Notes hero refinement: match requested dark header, keep original site typography, remove tools card. */
#lessonView.lesson-layout.is-visible {
  grid-template-columns: minmax(0, 1fr) 236px;
  width: min(100%, 1360px);
  gap: 0 48px;
  padding: 32px 24px 60px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  --charcoal-blue: #264653;
  --verdigris: #2a9d8f;
  --tuscan-sun: #e9c46a;
  --sandy-brown: #f4a261;
  --burnt-peach: #e76f51;
}

#lessonView.lesson-layout .blue-bar,
#lessonView .lesson-top,
#lessonView .lesson-article > h1,
#lessonView .lesson-hero-summary,
#lessonView .lesson-article > .meta-row,
#lessonView .lesson-hero-actions {
  background:
    radial-gradient(circle at 92% 0%, rgba(50, 110, 138, 0.46) 0%, rgba(50, 110, 138, 0) 34%),
    linear-gradient(135deg, #142034 0%, #102033 54%, #173d52 100%);
}

#lessonView.lesson-layout .blue-bar {
  min-height: 72px;
  border-radius: 18px 18px 0 0;
}

#lessonView.lesson-layout .crumbs {
  min-height: 72px;
  padding: 38px 84px 0;
  color: #9fb2cc;
  font-size: 16px;
  font-weight: 500;
}

#lessonView .lbc-item,
#lessonView .lbc-current,
#lessonView .lbc-dim,
#lessonView .lbc-course {
  color: #9fb2cc;
}

#lessonView .lbc-current,
#lessonView a.lbc-item:hover {
  color: #74e1e8;
}

#lessonView .lesson-article {
  border: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 30px 70px -40px rgba(16, 32, 51, 0.45);
}

#lessonView .lesson-top {
  padding: 34px 84px 20px;
}

#lessonView .topic-pill {
  color: #74e1e8;
  font-size: 15px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#lessonView .topic-pill::before {
  width: 52px;
  background: #74e1e8;
}

#lessonView .lesson-article > h1 {
  max-width: none;
  padding: 0 84px 22px;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(44px, 5.4vw, 72px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

#lessonView .lesson-hero-summary {
  max-width: none;
  margin: 0;
  padding: 0 84px 28px;
  color: #d6e4f3;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.55;
}

#lessonView .lesson-article > .meta-row {
  gap: 14px;
  padding: 0 84px 36px;
}

#lessonView .lesson-article > .meta-row span {
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  font-size: 16px;
  font-weight: 700;
}

#lessonView .lesson-article > .meta-row svg {
  color: #74e1e8;
}

#lessonView .lesson-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 84px 58px;
}

#lessonView .lesson-hero-actions button {
  min-height: 58px;
  border-radius: 12px;
  padding: 0 24px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

#lessonView .lesson-hero-actions .primary-button {
  border-color: #2f8f9a;
  color: #ffffff;
  background: #2f8f9a;
  box-shadow: none;
}

#lessonView .lesson-hero-actions .ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

#lessonView .lesson-source-content {
  padding: 42px 56px 50px;
  color: #172334;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.82;
}

#lessonView .lesson-note-section p,
#lessonView .lesson-note-section li {
  color: #172334;
  font-size: 16px;
  line-height: 1.82;
}

#lessonView .lesson-note-section > p,
#lessonView .lesson-note-section > .lesson-key-list,
#lessonView .lesson-note-section > .lesson-learning-box {
  max-width: 88ch;
}

#lessonView .lesson-note-section h2,
#lessonView .lesson-note-section:first-of-type h2,
#lessonView .lesson-note-section h3,
#lessonView .lesson-key-list,
#lessonView .lesson-premium-nav,
#lessonView .lesson-tools,
#lessonView .lesson-care-plan-table,
#lessonView .lesson-procedure-table {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

#lessonView .lesson-header-actions,
#lessonView .lst-card {
  display: none !important;
}

#lessonView .lesson-note-section {
  --note-heading-ink: var(--charcoal-blue);
  --note-heading-fill: color-mix(in srgb, var(--verdigris) 15%, white);
  --note-heading-accent: var(--verdigris);
}

#lessonView .lesson-note-section:nth-of-type(5n + 1) {
  --note-heading-ink: var(--charcoal-blue);
  --note-heading-fill: color-mix(in srgb, var(--verdigris) 16%, white);
  --note-heading-accent: var(--verdigris);
}

#lessonView .lesson-note-section:nth-of-type(5n + 2) {
  --note-heading-ink: #5d4918;
  --note-heading-fill: color-mix(in srgb, var(--tuscan-sun) 28%, white);
  --note-heading-accent: var(--tuscan-sun);
}

#lessonView .lesson-note-section:nth-of-type(5n + 3) {
  --note-heading-ink: #6a3c18;
  --note-heading-fill: color-mix(in srgb, var(--sandy-brown) 22%, white);
  --note-heading-accent: var(--sandy-brown);
}

#lessonView .lesson-note-section:nth-of-type(5n + 4) {
  --note-heading-ink: #713523;
  --note-heading-fill: color-mix(in srgb, var(--burnt-peach) 17%, white);
  --note-heading-accent: var(--burnt-peach);
}

#lessonView .lesson-note-section:nth-of-type(5n) {
  --note-heading-ink: #ffffff;
  --note-heading-fill: #16313c;
  --note-heading-accent: var(--verdigris);
}

#lessonView .lesson-note-section h2,
#lessonView .lesson-note-section:first-of-type h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 8px 16px 8px 18px;
  border-left: 0;
  border-radius: 7px;
  color: var(--note-heading-ink);
  background:
    linear-gradient(90deg, var(--note-heading-fill), color-mix(in srgb, var(--note-heading-fill) 58%, white));
  box-shadow: inset 5px 0 0 var(--note-heading-accent);
}

#lessonView .lesson-note-section:nth-of-type(5n) h2 {
  background:
    linear-gradient(90deg, #16313c 0%, #214b57 100%);
  box-shadow: inset 5px 0 0 var(--verdigris);
}

#lessonView .lesson-note-section h3 {
  color: color-mix(in srgb, var(--note-heading-ink) 88%, #102033);
  background: color-mix(in srgb, var(--note-heading-fill) 68%, white);
  border-left-color: var(--note-heading-accent);
}

#lessonView .lesson-note-section h2 > span,
#lessonView .lesson-note-section h3 > span {
  color: inherit;
}

#lessonView .lesson-source-content em,
#lessonView .lesson-source-content i,
#lessonView .lesson-image-card figcaption {
  font-style: normal;
}

@media (max-width: 980px) {
  #lessonView.lesson-layout.is-visible {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px 56px;
  }
}

@media (max-width: 680px) {
  #lessonView.lesson-layout.is-visible {
    padding: 18px 14px 48px;
  }

  #lessonView.lesson-layout .blue-bar {
    min-height: 50px;
    border-radius: 14px 14px 0 0;
  }

  #lessonView.lesson-layout .crumbs {
    min-height: 50px;
    padding: 20px 22px 0;
    font-size: 12px;
  }

  #lessonView .lesson-top {
    padding: 26px 22px 14px;
  }

  #lessonView .topic-pill {
    padding-left: 42px;
    font-size: 11px;
  }

  #lessonView .topic-pill::before {
    width: 32px;
  }

  #lessonView .lesson-article > h1 {
    padding: 0 22px 16px;
    font-size: 34px;
  }

  #lessonView .lesson-hero-summary {
    padding: 0 22px 22px;
    font-size: 16px;
  }

  #lessonView .lesson-article > .meta-row {
    padding: 0 22px 26px;
  }

  #lessonView .lesson-article > .meta-row span {
    min-height: 36px;
    font-size: 12px;
  }

  #lessonView .lesson-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 22px 34px;
  }

  #lessonView .lesson-hero-actions button {
    min-height: 48px;
    font-size: 14px;
  }

  #lessonView .lesson-source-content {
    padding: 30px 22px 36px;
    font-size: 15.5px;
  }
}

/* Stretch the notes hero, then place the contents rail under it in the reading area. */
#lessonView.lesson-layout.is-visible {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 0 36px;
  width: min(100%, 1280px);
  padding: 30px clamp(18px, 3vw, 36px) 64px;
}

#lessonView.lesson-layout .blue-bar,
#lessonView .lesson-article {
  grid-column: 1 / -1;
}

#lessonView.lesson-layout .blue-bar {
  min-height: 52px;
}

#lessonView.lesson-layout .crumbs {
  min-height: 52px;
  padding: 26px clamp(42px, 5vw, 76px) 0;
  font-size: 14px;
}

#lessonView .lesson-article {
  display: block;
  position: relative;
}

#lessonView .lesson-top {
  padding: 24px clamp(42px, 5vw, 76px) 14px;
}

#lessonView .topic-pill {
  font-size: 13px;
}

#lessonView .lesson-article > h1 {
  padding: 0 clamp(42px, 5vw, 76px) 16px;
  font-size: clamp(40px, 4.8vw, 60px);
  line-height: 1.05;
}

#lessonView .lesson-hero-summary {
  max-width: none;
  padding: 0 clamp(42px, 5vw, 76px) 24px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
}

#lessonView .lesson-article > .meta-row {
  padding: 0 clamp(42px, 5vw, 76px) 24px;
}

#lessonView .lesson-article > .meta-row span {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

#lessonView .lesson-hero-actions {
  padding: 0 clamp(42px, 5vw, 76px) 42px;
}

#lessonView .lesson-hero-actions button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
}

#lessonView .lesson-article > .meta-row {
  display: none;
}

#lessonView.lesson-layout .crumbs {
  min-height: 40px;
  padding: 20px clamp(42px, 5vw, 76px) 0;
  gap: 0;
  overflow: hidden;
  color: rgba(213, 226, 241, 0.74);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

#lessonView .lbc-home,
#lessonView .lbc-item,
#lessonView .lbc-current,
#lessonView .lbc-course {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(213, 226, 241, 0.76);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}

#lessonView .lbc-home {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

#lessonView .lbc-home svg {
  display: none;
}

#lessonView .lbc-home::after {
  content: "Home";
}

#lessonView .lbc-course {
  max-width: clamp(145px, 28vw, 320px);
}

#lessonView .lbc-current {
  max-width: clamp(120px, 22vw, 280px);
  color: #74e1e8;
  font-weight: 800;
}

#lessonView .lbc-sep {
  width: auto !important;
  height: auto !important;
  margin: 0 8px;
  border: 0 !important;
  transform: none !important;
  color: rgba(213, 226, 241, 0.42);
  font-size: 11px;
  font-weight: 700;
  opacity: 1 !important;
}

#lessonView .lesson-source-content {
  width: calc(100% - 330px);
  min-height: 680px;
  padding: 48px clamp(42px, 5vw, 76px) 56px;
}

#lessonView .lesson-tools {
  grid-column: 2;
  grid-row: 2;
  z-index: 2;
  width: 100%;
  margin-top: 384px;
}

#lessonView .lesson-toc-sidebar {
  position: sticky;
  top: 96px;
  max-width: 260px;
  padding: 2px 0 4px;
}

#lessonView .ltoc-hd {
  padding: 0 0 14px;
  color: #7f8ea3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

#lessonView .ltoc-nav {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 4px 0 4px 16px;
  border-left: 1px solid #dde5ef;
}

#lessonView .ltoc-item {
  min-height: 0;
  margin-left: -17px;
  padding: 7px 8px 7px 21px;
  border-left: 2px solid transparent;
  border-radius: 0 7px 7px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

#lessonView .ltoc-label {
  display: block;
}

#lessonView .ltoc-item:hover {
  color: #264653;
  background: #f7fbfb;
}

#lessonView .ltoc-item.is-active {
  border-left-color: #2a9d8f;
  color: #1f766f;
  background: linear-gradient(90deg, rgba(42, 157, 143, 0.1), rgba(42, 157, 143, 0));
  font-weight: 800;
}

#lessonView .ltoc-bar {
  display: none;
}

#lessonView .ltoc-l3 {
  padding-left: 34px;
  color: #758399;
  font-size: 12px;
}

#lessonView .ltoc-l3.is-active {
  color: #1f766f;
}

@media (max-width: 980px) {
  #lessonView.lesson-layout.is-visible {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px 56px;
  }

  #lessonView .lesson-source-content {
    width: 100%;
    min-height: 0;
  }

  #lessonView .lesson-tools {
    display: none;
  }
}

@media (max-width: 760px) {
  #lessonView .lesson-care-plan-wrap,
  #lessonView .lesson-procedure-wrap,
  #lessonView .lesson-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #lessonView .lesson-care-plan-table,
  #lessonView .lesson-procedure-table,
  #lessonView .lesson-table,
  #lessonView .lesson-care-plan-table thead,
  #lessonView .lesson-procedure-table thead,
  #lessonView .lesson-table thead,
  #lessonView .lesson-care-plan-table tbody,
  #lessonView .lesson-procedure-table tbody,
  #lessonView .lesson-table tbody,
  #lessonView .lesson-care-plan-table tr,
  #lessonView .lesson-procedure-table tr,
  #lessonView .lesson-table tr,
  #lessonView .lesson-care-plan-table td,
  #lessonView .lesson-procedure-table td,
  #lessonView .lesson-table td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #lessonView .lesson-care-plan-table,
  #lessonView .lesson-procedure-table,
  #lessonView .lesson-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  #lessonView .lesson-care-plan-table thead,
  #lessonView .lesson-procedure-table thead,
  #lessonView .lesson-table thead {
    display: none;
  }

  #lessonView .lesson-care-plan-table tr,
  #lessonView .lesson-procedure-table tr,
  #lessonView .lesson-table tr {
    overflow: hidden;
    margin: 0 0 14px;
    border: 1px solid #d9e5ee;
    border-radius: 10px;
    background: #ffffff;
  }

  #lessonView .lesson-care-plan-table td,
  #lessonView .lesson-procedure-table td,
  #lessonView .lesson-table td {
    display: block;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #e4edf3;
    text-align: left;
    color: #26364a;
    font-size: 14px;
    line-height: 1.6;
  }

  #lessonView .lesson-care-plan-table td:last-child,
  #lessonView .lesson-procedure-table td:last-child,
  #lessonView .lesson-table td:last-child {
    border-bottom: 0;
  }

  #lessonView .lesson-care-plan-table td::before,
  #lessonView .lesson-procedure-table td::before,
  #lessonView .lesson-table td::before {
    content: attr(data-label);
    color: #1f766f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
    display: block;
    margin-bottom: 4px;
  }

  #lessonView .lesson-care-plan-table td[data-label=""]::before,
  #lessonView .lesson-procedure-table td[data-label=""]::before,
  #lessonView .lesson-table td[data-label=""]::before {
    display: none;
  }

  #lessonView .lesson-procedure-table td:first-child {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 680px) {
  #lessonView.lesson-layout.is-visible {
    padding: 18px 14px 48px;
  }

  #lessonView.lesson-layout .crumbs {
    padding: 18px 22px 0;
  }

  #lessonView .lesson-top {
    padding: 22px 22px 12px;
  }

  #lessonView .lesson-article > h1 {
    padding: 0 22px 14px;
    font-size: 32px;
  }

  #lessonView .lesson-hero-summary {
    padding: 0 22px 18px;
    font-size: 15px;
  }

  #lessonView .lesson-article > .meta-row {
    padding: 0 22px 20px;
  }

  #lessonView .lesson-hero-actions {
    padding: 0 22px 28px;
  }
}

/* Final mobile notes pass: tighter hero, faster scanning, and safer media/table rhythm. */
@media (max-width: 760px) {
  body:has(#lessonView.is-visible) {
    background: #f3f6f9;
  }

  #lessonView.lesson-layout.is-visible {
    width: 100%;
    padding: 10px 10px 40px;
  }

  #lessonView.lesson-layout .blue-bar,
  #lessonView .lesson-article {
    border-radius: 12px 12px 0 0;
  }

  #lessonView.lesson-layout .crumbs {
    min-height: 34px;
    padding: 14px 22px 0;
    font-size: 10px;
  }

  #lessonView .lbc-course {
    max-width: 45vw;
  }

  #lessonView .lbc-current {
    max-width: 32vw;
  }

  #lessonView .lesson-top {
    padding: 16px 22px 8px;
  }

  #lessonView .topic-pill {
    display: block;
    width: 100%;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.16em;
  }

  #lessonView .lesson-mobile-controls {
    margin-top: 10px;
  }

  #lessonView .lesson-mobile-controls label {
    gap: 5px;
  }

  #lessonView .lesson-mobile-controls label > span {
    display: none;
  }

  #lessonView .lesson-mobile-controls select {
    min-height: 42px;
    border-radius: 7px;
    font-size: 13px;
  }

  #lessonView .lesson-article > h1 {
    padding: 0 22px 12px;
    font-size: clamp(28px, 9vw, 34px);
    line-height: 1.02;
    letter-spacing: 0;
  }

  #lessonView .lesson-hero-summary {
    padding: 0 22px 18px;
    font-size: 14.5px;
    line-height: 1.55;
  }

  #lessonView .lesson-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 22px 26px;
  }

  #lessonView .lesson-hero-actions .primary-button {
    grid-column: 1 / -1;
  }

  #lessonView .lesson-hero-actions button {
    min-height: 44px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
  }

  #lessonView .lesson-source-content {
    width: 100%;
    padding: 24px 16px 32px;
    font-size: 15px;
    line-height: 1.75;
  }

  #lessonView .lesson-note-section + .lesson-note-section {
    margin-top: 24px;
  }

  #lessonView .lesson-note-section h2,
  #lessonView .lesson-note-section:first-of-type h2 {
    width: auto;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 7px 12px 7px 14px;
    border-radius: 7px;
    font-size: 18px;
    line-height: 1.25;
  }

  #lessonView .lesson-note-section h3 {
    width: auto;
    max-width: 100%;
    margin: 24px 0 10px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.3;
  }

  #lessonView .lesson-note-section p,
  #lessonView .lesson-note-section li {
    font-size: 15.5px;
    line-height: 1.72;
  }

  #lessonView .lesson-note-section p {
    margin-bottom: 16px;
  }

  #lessonView .lesson-note-section > p,
  #lessonView .lesson-note-section > .lesson-key-list,
  #lessonView .lesson-note-section > .lesson-learning-box {
    max-width: none;
  }

  #lessonView .lesson-key-list {
    margin-bottom: 22px;
  }

  #lessonView .lesson-key-list li {
    padding: 11px 0 11px 18px;
    font-size: 15px;
    line-height: 1.7;
  }

  #lessonView .lesson-key-list li::before {
    top: 23px;
  }

  #lessonView .lesson-image-card {
    margin: 18px 0 22px;
    border-radius: 10px;
  }

  #lessonView .lesson-image-card img {
    max-height: 280px;
    object-fit: contain;
  }

  #lessonView .lesson-image-card figcaption {
    padding: 8px 10px 12px;
    font-size: 12px;
    line-height: 1.35;
  }

  #lessonView .lesson-care-plan-table td,
  #lessonView .lesson-procedure-table td,
  #lessonView .lesson-table td {
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.55;
  }

  #lessonView .lesson-premium-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
  }

  #lessonView .lesson-nav-card {
    min-height: 74px;
    padding: 14px;
    border-radius: 10px;
  }

  #lessonView .lesson-nav-copy strong {
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  #lessonView.lesson-layout.is-visible {
    padding-inline: 8px;
  }

  #lessonView.lesson-layout .crumbs,
  #lessonView .lesson-top,
  #lessonView .lesson-article > h1,
  #lessonView .lesson-hero-summary,
  #lessonView .lesson-hero-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  #lessonView .lesson-source-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  #lessonView .lesson-article > h1 {
    font-size: clamp(27px, 8.8vw, 32px);
  }
}

/* Desktop notes hero compact pass: less billboard, more reader-focused. */
@media (min-width: 981px) {
  #lessonView.lesson-layout.is-visible {
    padding-top: 22px;
  }

  #lessonView.lesson-layout .blue-bar {
    min-height: 44px;
  }

  #lessonView.lesson-layout .crumbs {
    min-height: 44px;
    padding-top: 20px;
    font-size: 11px;
  }

  #lessonView .lesson-top {
    padding: 22px clamp(42px, 5vw, 76px) 10px;
  }

  #lessonView .topic-pill {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  #lessonView .lesson-article > h1 {
    padding: 0 clamp(42px, 5vw, 76px) 12px;
    font-size: clamp(34px, 4.1vw, 52px);
    line-height: 1.04;
  }

  #lessonView .lesson-hero-summary {
    padding: 0 clamp(42px, 5vw, 76px) 22px;
    font-size: clamp(15.5px, 1.45vw, 18px);
    line-height: 1.55;
  }

  #lessonView .lesson-hero-actions {
    gap: 12px;
    padding: 0 clamp(42px, 5vw, 76px) 34px;
  }

  #lessonView .lesson-hero-actions button {
    min-height: 42px;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 13px;
  }
}

/* Final notes heading pass: full reader-width bands with a left accent bar. */
#lessonView .lesson-note-section h2,
#lessonView .lesson-note-section:first-of-type h2,
#lessonView .lesson-note-section h3 {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-left: 4px solid var(--note-heading-accent, #2a9d8f);
  border-radius: 0 7px 7px 0;
  color: var(--note-heading-ink, #071446);
  background: linear-gradient(90deg, var(--note-heading-fill, #eef8f8) 0%, rgba(255, 255, 255, 0.82) 86%);
  box-shadow: none;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  letter-spacing: 0;
  text-decoration: none;
}

#lessonView .lesson-note-section h2,
#lessonView .lesson-note-section:first-of-type h2 {
  margin: 0 0 18px;
  padding: 12px 18px 12px 20px;
  font-size: clamp(20px, 1.75vw, 26px);
  font-weight: 850;
  line-height: 1.25;
}

#lessonView .lesson-note-section h3 {
  margin: 24px 0 12px;
  padding: 10px 16px 10px 18px;
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 800;
  line-height: 1.3;
}

#lessonView .lesson-note-section:nth-of-type(5n) h2,
#lessonView .lesson-note-section:nth-of-type(5n) h3 {
  color: #ffffff;
  background: linear-gradient(90deg, #203f4a 0%, #315b68 100%);
}

@media (max-width: 760px) {
  #lessonView .lesson-note-section h2,
  #lessonView .lesson-note-section:first-of-type h2 {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 13px 10px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 18px;
    line-height: 1.28;
  }

  #lessonView .lesson-note-section h3 {
    width: 100%;
    margin: 22px 0 10px;
    padding: 9px 12px 9px 15px;
    border-radius: 0 6px 6px 0;
    font-size: 15px;
    line-height: 1.3;
  }
}

/* Notes related quiz card: sidebar on desktop, inline on mobile. */
#lessonView .lesson-related-quiz-card {
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

#lessonView .lesson-related-quiz-card--sidebar {
  max-width: 260px;
  margin-top: 24px;
  padding: 20px 18px;
}

#lessonView .lesson-related-quiz-card--mobile {
  display: none;
}

#lessonView .lesson-related-quiz-card span {
  display: block;
  margin-bottom: 10px;
  color: #1f766f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#lessonView .lesson-related-quiz-card h3 {
  margin: 0;
  color: #071446;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

#lessonView .lesson-related-quiz-card p {
  margin: 8px 0 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

#lessonView .lesson-related-quiz-card button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #2f8790;
  color: #ffffff;
  font: 850 14px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#lessonView .lesson-related-quiz-card button:hover {
  background: #26747c;
  box-shadow: 0 12px 22px rgba(38, 116, 124, 0.2);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  #lessonView .lesson-related-quiz-card--sidebar {
    display: none;
  }

  #lessonView .lesson-related-quiz-card--mobile {
    display: block;
    margin: 0 0 22px;
    padding: 16px;
  }
}

/* Keep the notes hero as one continuous panel on tablet and mobile. */
@media (max-width: 980px) {
  #lessonView.lesson-layout.is-visible {
    gap: 0;
  }

  #lessonView.lesson-layout .blue-bar {
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
  }

  #lessonView .lesson-article {
    margin-top: 0;
    border-radius: 0;
  }

  #lessonView.lesson-layout .crumbs {
    border-radius: inherit;
  }

  #lessonView .lesson-top {
    margin-top: 0;
    padding-top: 18px;
  }
}

/* Hide stale notes Print action if older hero markup is still cached. */
#lessonView .lesson-hero-actions .ghost-button[data-print-page] {
  display: none !important;
}

/* Final notes navigation polish: keep next/previous titles visible on every viewport. */
#lessonView .lesson-premium-nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 34px;
  padding-top: 24px;
}

#lessonView .lesson-nav-card,
#lessonView .lesson-nav-card--next {
  min-height: 104px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  overflow: visible;
  border: 1px solid #d9e3ee;
  border-radius: 10px;
  color: #071446;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  text-align: left;
}

#lessonView .lesson-nav-card--next {
  grid-template-columns: minmax(0, 1fr) 46px;
  border-color: rgba(42, 157, 143, 0.42);
  background: linear-gradient(135deg, #112033 0%, #18334a 100%);
  color: #ffffff;
}

#lessonView .lesson-nav-card:disabled {
  color: #9aa8b8;
  background: #fbfdff;
  box-shadow: none;
}

#lessonView .lesson-nav-icon,
#lessonView .lesson-nav-card--next .lesson-nav-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  color: #2a7f88;
  background: #f0f5f8;
}

#lessonView .lesson-nav-card--next .lesson-nav-icon {
  color: #ffffff;
  background: #2f8790;
}

#lessonView .lesson-nav-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

#lessonView .lesson-nav-copy small,
#lessonView .lesson-nav-card--next .lesson-nav-copy small {
  display: block;
  padding: 0;
  color: #8a99ab;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

#lessonView .lesson-nav-card--next .lesson-nav-copy small {
  color: #76e1e7;
}

#lessonView .lesson-nav-copy strong {
  display: block;
  overflow: visible;
  color: inherit;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 850;
  line-height: 1.32;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}

@media (max-width: 760px) {
  #lessonView .lesson-premium-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
  }

  #lessonView .lesson-nav-card,
  #lessonView .lesson-nav-card--next {
    min-height: 88px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
    gap: 12px;
  }

  #lessonView .lesson-nav-card--next .lesson-nav-icon {
    grid-column: 1;
    grid-row: 1;
  }

  #lessonView .lesson-nav-card--next .lesson-nav-copy {
    grid-column: 2;
    grid-row: 1;
  }

  #lessonView .lesson-nav-icon,
  #lessonView .lesson-nav-card--next .lesson-nav-icon {
    width: 42px;
    height: 42px;
  }

  #lessonView .lesson-nav-copy small,
  #lessonView .lesson-nav-card--next .lesson-nav-copy small {
    font-size: 10px;
  }

  #lessonView .lesson-nav-copy strong {
    font-size: 15px;
  }
}

/* Final notes sidebar fix: keep the TOC and quiz card from overlapping. */
@media (min-width: 981px) {
  #lessonView .lesson-tools {
    position: sticky;
    top: 96px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 116px);
    overflow: visible;
  }

  #lessonView .lesson-toc-sidebar {
    position: static;
    top: auto;
    flex: 0 1 auto;
    max-width: 260px;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
  }

  #lessonView .ltoc-nav {
    max-height: min(26vh, 220px);
    overflow: auto;
    padding-bottom: 10px;
  }

  #lessonView .lesson-related-quiz-card--sidebar {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    margin-top: 0;
  }
}

/* Final WhatsApp support toast polish. */
.nod-popup-layer.is-toast {
  align-items: end;
  justify-items: start;
  padding: 0 16px 16px;
}

.nod-popup--toast.nod-popup--whatsapp {
  width: min( calc(100vw - 32px), 520px);
  padding: 18px;
  border: 1px solid rgba(37, 211, 102, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.2), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f7fffb 100%);
  box-shadow: 0 24px 70px rgba(8, 30, 45, 0.22);
}

.nod-popup--whatsapp .nod-popup-content {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 44px 0 0;
}

.nod-popup--whatsapp .nod-popup-mark {
  width: 54px;
  height: 54px;
  border: 3px solid #ffffff;
  border-radius: 16px;
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 12px 24px rgba(18, 140, 126, 0.24);
}

.nod-popup--whatsapp .nod-popup-mark svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
  stroke: none;
}

.nod-popup--whatsapp .nod-popup-copy > span {
  margin-bottom: 8px;
  color: #137a70;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.nod-popup--toast.nod-popup--whatsapp h2 {
  max-width: 32ch;
  margin: 0 0 6px;
  color: #071446;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.18;
}

.nod-popup--toast.nod-popup--whatsapp p {
  max-width: 48ch;
  color: #40566f;
  font-size: 14px;
  line-height: 1.55;
}

.nod-popup--whatsapp .nod-popup-benefits {
  gap: 8px;
  margin-top: 14px;
}

.nod-popup--whatsapp .nod-popup-benefits span {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(18, 140, 126, 0.2);
  border-radius: 10px;
  color: #176f70;
  background: rgba(238, 250, 250, 0.9);
  font-size: 12.5px;
}

.nod-popup--toast.nod-popup--whatsapp .nod-popup-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px 0 0;
}

.nod-popup--whatsapp .nod-popup-actions .primary-button,
.nod-popup--whatsapp .nod-popup-actions .ghost-button {
  min-height: 46px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
}

.nod-popup--whatsapp .nod-popup-actions .primary-button {
  border: 0;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 14px 28px rgba(18, 140, 126, 0.22);
}

.nod-popup--whatsapp .nod-popup-actions .ghost-button {
  min-width: 118px;
  border: 1px solid rgba(18, 140, 126, 0.22);
  color: #176f70;
  background: #ffffff;
}

@media (max-width: 560px) {
  .nod-popup-layer.is-toast {
    justify-items: stretch;
    padding: 0 10px 10px;
  }

  .nod-popup--toast.nod-popup--whatsapp {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
  }

  .nod-popup--whatsapp .nod-popup-content {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding-right: 38px;
  }

  .nod-popup--whatsapp .nod-popup-mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .nod-popup--whatsapp .nod-popup-mark svg {
    width: 23px;
    height: 23px;
  }

  .nod-popup--toast.nod-popup--whatsapp h2 {
    font-size: 18px;
  }

  .nod-popup--whatsapp .nod-popup-benefits span {
    min-height: 31px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .nod-popup--toast.nod-popup--whatsapp .nod-popup-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Notes tables should read like study notes, not spreadsheets. */
#lessonView .lesson-note-section > .lesson-table-wrap,
#lessonView .lesson-note-section > .lesson-procedure-wrap,
#lessonView .lesson-note-section > .lesson-care-plan-wrap {
  width: 100%;
  max-width: min(100%, 88ch);
}

#lessonView .lesson-table-wrap,
#lessonView .lesson-procedure-wrap {
  overflow-x: visible;
}

#lessonView .lesson-table,
#lessonView .lesson-procedure-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

#lessonView .lesson-table th,
#lessonView .lesson-table td,
#lessonView .lesson-procedure-table th,
#lessonView .lesson-procedure-table td {
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

#lessonView .lesson-table th:first-child,
#lessonView .lesson-table td:first-child {
  width: clamp(74px, 18%, 150px);
}

#lessonView .lesson-table--compact-first col.lesson-table-col--narrow {
  width: clamp(52px, 8%, 78px);
}

#lessonView .lesson-table--compact-first th:first-child,
#lessonView .lesson-table--compact-first td:first-child {
  width: clamp(52px, 8%, 78px);
  text-align: left;
  white-space: nowrap;
}

#lessonView .lesson-procedure-table th:first-child,
#lessonView .lesson-procedure-table td:first-child {
  width: 68px;
}

#lessonView .lesson-note-section.lesson-heading-level-3 h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 900;
  color: #102033;
  letter-spacing: 0;
}

#lessonView .lesson-note-section.lesson-heading-level-3 h3 > span {
  font-weight: inherit;
}

@media (min-width: 761px) {
  #lessonView .lesson-care-plan-wrap {
    max-width: min(100%, 88ch);
  }
}

@media (max-width: 760px) {
  #lessonView .lesson-table-wrap,
  #lessonView .lesson-procedure-wrap {
    overflow: visible;
  }

  #lessonView .lesson-note-section > .lesson-table-wrap,
  #lessonView .lesson-note-section > .lesson-procedure-wrap,
  #lessonView .lesson-note-section > .lesson-care-plan-wrap {
    max-width: none;
  }
}
