.platform-main {
  width: min(1180px, calc(100% - 40px));
  min-height: 48vh;
  margin: clamp(32px, 6vh, 75px) auto 50px;
}
.platform-main h1 { color: var(--ink); font-size: clamp(28px, 4.5vw, 46px); }
.platform-main h2 { margin: 0 0 12px; font-size: clamp(18px, 3vw, 23px); line-height: 1.55; }
.platform-main p { margin: 8px 0; }
.platform-main .intro { max-width: 72ch; font-size: 17px; margin: 10px 0 25px; }
.platform-main.narrow { max-width: 570px; }
.platform-main.medium { max-width: 780px; }
.narrow, .medium {
  padding: clamp(22px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 60px #124c780a;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 19px;
  margin: 22px 0;
}
.platform-tile, .platform-panel {
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 8px 28px #1652860a;
}
.platform-tile {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 12px;
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
  transition: box-shadow .2s, border-color .2s;
}
.platform-tile:hover, .platform-tile:focus-within { border-color: #8cc6e9; box-shadow: 0 11px 30px #16528614; }
.tile-action { margin-block-start: auto; padding-top: 12px; }
.tile-symbol {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 15px;
  background: #e0f4ff;
  color: #087db8;
  font: 700 26px/1 system-ui, sans-serif;
}
.platform-panel { margin: 22px 0; }
.notice { background: var(--wash); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.item-list, .tags { list-style: none; padding: 0; margin: 16px 0; }
.item-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 10px;
  background: #fff;
  overflow-wrap: anywhere;
}
.item-list a { font-weight: 700; }
.pill, .tags li {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 24px;
  font-size: 13px;
  background: var(--wash);
  color: var(--blue);
  font-weight: 700;
}
.tags, .tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  display: inline-flex;
  padding: 11px 15px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 13px;
  text-decoration: none;
}
.tab:hover, .tab.selected { background: #dff3ff; border-color: #acdcf8; color: #00568c; }
.facts { display: flex; flex-wrap: wrap; gap: 14px; }
.facts div { padding: 13px 16px; background: var(--wash); border-radius: 13px; min-width: 130px; overflow-wrap: anywhere; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 5px 0 0; font-weight: 700; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.policy-copy { line-height: 1.85; }
.policy-copy > :first-child { margin-block-start: 0; }
.policy-copy > section + section, .policy-copy > p + section { margin-block-start: 24px; }
.policy-copy h2 { margin-block-end: 6px; }
.policy-links ul { margin: 0; padding-inline-start: 1.25em; }
.policy-links li + li { margin-block-start: 7px; }
.platform-main form { max-width: 760px; }
.platform-main form .account-primary { justify-self: start; }
.platform-main fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 4px 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.platform-main legend { padding-inline: 8px; font-weight: 700; }
.platform-main textarea, .platform-main select {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #a8c3d6;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.platform-main textarea { min-height: 110px; resize: vertical; }
.platform-main video { display: block; width: min(100%, 820px); background: #102440; border-radius: 18px; margin: 18px 0; }
.answer { display: flex; align-items: center; gap: 9px; }
.answer input { width: 18px; height: 18px; min-height: 0; flex: none; }
.nav-form { margin: 0; }
.nav-form button { border: 0; background: transparent; color: var(--blue); cursor: pointer; }
.danger { background: #a03628; }
.danger:hover { background: #7d291e; }
.platform-skip { position: fixed; top: -100px; inset-inline-start: 16px; padding: 14px; background: #fff; z-index: 2; }
.platform-skip:focus { top: 10px; }
@media (max-width: 580px) {
  .platform-main { width: calc(100% - 28px); margin-block-start: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-tile { transition: none; }
}

.platform-main { width: min(1280px, calc(100% - 40px)); margin-block-start: clamp(24px, 4vh, 48px); }
.platform-main:focus { outline: none; }
.platform-main h1 { margin-block: 0 20px; font-size: clamp(29px, 4.1vw, 52px); line-height: 1.3; overflow-wrap: anywhere; }
.platform-main.narrow h1, .platform-main.medium h1 { font-size: clamp(27px, 4vw, 37px); }
.platform-main .intro { line-height: 1.8; }
.ui-icon { inline-size: 21px; block-size: 21px; flex: none; vertical-align: middle; }
.account-secondary {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #b6d8ee;
  border-radius: 999px;
  background: #fff;
  color: #00598d;
  font-weight: 700;
  text-decoration: none;
}
.account-secondary:hover { background: #e8f6ff; border-color: #75b8e1; }
.back-link .ui-icon { transform: scaleX(-1); }
[dir="rtl"] .back-link .ui-icon { transform: none; }
.hero-actions, .page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-actions { margin-block: 14px; }
.hero-actions { margin-block-start: 23px; }
.sector-hero {
  --tone-bg: #e0f3ff;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 48px);
  min-height: 345px;
  padding: clamp(23px, 4.5vw, 58px);
  border-radius: 32px;
  border: 1px solid #fff;
  background: radial-gradient(ellipse at 17% 65%, var(--tone-bg), transparent 61%), linear-gradient(135deg,#fff,#f0f8ff);
  box-shadow: 0 18px 58px #1a508413;
}
[dir="ltr"] .sector-hero { background: radial-gradient(ellipse at 86% 60%, var(--tone-bg), transparent 61%), linear-gradient(135deg,#fff,#f0f8ff); }
.sector-hero .sector-label {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid #eed6aa;
  border-radius: 999px;
  background: #fff4df;
  color: #7e4b07;
}
.sector-hero h1 { margin: 15px 0; }
.sector-hero p { max-width: 53ch; font-size: clamp(15px, 1.5vw, 18px); }
.sector-art { position: relative; display: grid; place-items: center; isolation: isolate; min-width: 0; }
.sector-art::before, .sector-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  inline-size: min(88%, 320px);
  aspect-ratio: 1;
  border: 1px dashed #98c8e780;
  border-radius: 50%;
}
.sector-art::after { inline-size: min(100%, 380px); opacity: .6; }
.sector-art img { display: block; width: min(100%, 340px); height: auto; filter: drop-shadow(0 15px 20px #1c50872a); }
.platform-main #catalog-options { margin-block-start: 30px; scroll-margin-top: 24px; }
.platform-main .catalog-title { font-size: clamp(22px, 3vw, 30px); margin-block-end: 0; }
.platform-tile {
  min-width: 0;
  background: linear-gradient(140deg,#fff,#f5faff);
  border-radius: 24px;
  overflow-wrap: anywhere;
}
.platform-tile h2 { margin: 0; }
.platform-tile p { margin: 0; }
.tile-heading { display: flex; align-items: start; gap: 13px; }
.tile-heading > div { min-width: 0; }
.tile-heading p { margin-block-start: 5px; }
.tile-heading .tile-symbol { flex: none; }
.qudrat-grid .tile-action, .subject-grid .tile-action { width: 100%; }
.qudrat-grid .tile-action > a, .subject-grid .tile-action > a { width: 100%; justify-content: space-between; }
.platform-tile .tags { margin-block: 1px 2px; }
.platform-tile .tags li { font-size: 12px; padding: 6px 9px; }
.tile-symbol { background: var(--tone-bg, #e1f3ff); color: var(--tone-ink, #05669d); border: 1px solid #ffffffdf; box-shadow: 0 6px 18px #174b7f13; }
.tile-symbol .ui-icon { inline-size: 26px; block-size: 26px; }
.tone-mint { --tone-bg: #dcf7ef; --tone-ink: #086b51; }
.tone-violet { --tone-bg: #eee8ff; --tone-ink: #5b3ca9; }
.tone-gold { --tone-bg: #fff0d7; --tone-ink: #8f5108; }
.tile-forward::after { content: '→'; font-family: Inter, system-ui, sans-serif; font-weight: 600; }
[dir="rtl"] .tile-forward::after { content: '←'; }
.tile-action { padding-top: 5px; }
.admin-grid .platform-tile { align-content: start; }
.admin-grid .platform-tile > a { margin-block-start: auto; }
.form-record { margin-block-start: 18px !important; }
@media (min-width: 900px) {
  .sector-hero { padding-block: 32px; }
  .sector-art img { width: min(100%, 290px); }
  .qudrat-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .qudrat-grid > article { grid-column: span 2; }
  .qudrat-grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
  .subject-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 8px;
  margin: 20px 0 24px;
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: #ffffffa8;
  box-shadow: 0 8px 27px #245f8e10;
  list-style: none;
}
.journey li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px; border-radius: 15px; font-size: 13px; font-weight: 700; color: var(--muted); }
.journey li > span { flex: none; display: grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 50%; background: #e8f1fa; color: #3e5872; }
.journey li[aria-current="step"] { background: #e1f2ff; color: #004e89; }
.journey li[aria-current="step"] > span { color: #fff; background: #0769a5; }
.journey .step-done > span { background: #dcf6ed; color: #096649; }
.journey .ui-icon { inline-size: 17px; block-size: 17px; }
.empty { display: flex; align-items: center; gap: 18px; padding: clamp(18px, 4vw, 30px); border: 1px dashed #bdd8eb; border-radius: 22px; background: linear-gradient(140deg,#fff,#eef8ff); margin-block: 16px; overflow-wrap: anywhere; }
.empty-art { display: grid; place-items: center; inline-size: 61px; block-size: 61px; flex: none; border: 1px solid #fff; border-radius: 18px; background: #dcefff; color: #07669f; box-shadow: 0 7px 14px #2b65a318; }
.empty-art .ui-icon { inline-size: 32px; block-size: 32px; }
.empty p { margin-block: 4px; }
.empty .back-link { margin-block-start: 9px; }
.empty-warning { background: linear-gradient(135deg,#fff,#fff2e5); border-color: #edcfb2; }
.empty-warning .empty-art { color: #8f4a05; background: #ffedd8; }
.auth-card { position: relative; margin-block-start: 36px; border-top: 4px solid #69b9ed; }
.auth-card .account-actions { margin-block-start: 16px; }
.account-back { margin-block-start: 22px; }
.password-field, .password-input { display: grid; gap: 8px; }
.password-input { position: relative; }
.password-input:has(button:not([hidden])) input { padding-inline-end: 72px; }
[dir="rtl"] .password-input:has(button:not([hidden])) input { padding-inline: 72px 12px; }
.password-input button { position: absolute; inset-inline-end: 6px; inset-block: 6px; border: 0; border-radius: 999px; padding-inline: 10px; color: #00598d; background: #edf7ff; cursor: pointer; }
.password-field small, .receipt-drop small { color: var(--muted); line-height: 1.55; }
.checkout-layout, .learning-dashboard { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 18px; align-items: start; }
.learning-dashboard { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.checkout-layout > *, .learning-dashboard > * { min-width: 0; }
.checkout-layout .platform-panel, .learning-dashboard .platform-panel { margin-block: 0 18px; }
.transfer-summary { background: linear-gradient(142deg,#fff,#edf8ff); }
.transfer-summary h2 { margin-block: 12px 0; }
.plan-price { display: block; color: #035987; font-size: clamp(24px,4vw,35px); }
.transfer-facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.transfer-facts > :last-child { grid-column: 1/-1; }
.transfer-facts div { min-width: 0; background: #fff; border: 1px solid var(--border); }
.transfer-facts dd[dir="ltr"] { text-align: start; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-row input { min-width: 0; }
.receipt-drop { justify-items: center; text-align: center; padding: 18px; background: #f2faff; border: 2px dashed #abd2ed; border-radius: 18px; }
.receipt-drop input { min-width: 0; max-width: 100%; }
.receipt-drop input::file-selector-button { border: 0; border-radius: 999px; padding: 7px 10px; margin-inline-end: 8px; color: #00598d; background: #e6f4ff; cursor: pointer; }
.request-time, .instructor-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.state-approved { color: #076047; background: #dcf7eb; }
.state-under_review { color: #00548c; background: #e0f2ff; }
.state-pending { color: #744703; background: #fff0d5; }
.state-rejected { color: #8d2b2b; background: #ffe8e5; }
.state-expired { color: #53398a; background: #f1e8fc; }
.course-resume { text-align: end; }
.course-resume p { margin: 0 0 8px; }
.auth-card .answer { display: flex; align-items: flex-start; gap: 9px; }
.auth-card .answer input { margin-block-start: .3em; }
.course-progress { flex: 1; min-width: min(180px,100%); }
.course-progress progress { width: 100%; height: 8px; accent-color: #0879b9; }
.learning-workspace:has(aside) { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.38fr); align-items: start; gap: 17px; }
.learning-progress { background: linear-gradient(145deg,#fff,#e9f6ff); }
.learning-progress h2 { margin-block: 13px 14px; }
.learning-progress progress { width: 100%; height: 8px; accent-color: #0879b9; }
.learning-progress .account-primary { margin-block-start: 20px; }
.tabs { margin-block-end: 18px; }
.tab { align-items: center; gap: 8px; min-height: 44px; border-radius: 999px; }
.tab[aria-current="page"] { color: #fff; background: #05659f; border-color: #05659f; }
.lesson-list li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; border-radius: 17px; }
.lesson-list p { font-size: 13px; margin-block: 3px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.lesson-meta .pill { gap: 5px; align-items: center; }
.lesson-meta .ui-icon { width: 15px; height: 15px; }
.platform-panel.lesson-content { max-width: 900px; }

body:has(.qudrat-catalog) {
  background: radial-gradient(ellipse at 12% 18%, #d8edff, transparent 46%),
    radial-gradient(ellipse at 92% 60%, #e3f4fe, transparent 48%), #f5f9fe;
}
.platform-main.qudrat-catalog { width: min(1480px, calc(100% - 44px)); margin-block-start: 22px; }
.qudrat-catalog .qudrat-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  min-height: 290px;
  padding: 6px 0 14px;
  gap: clamp(18px, 4vw, 54px);
  border: 0;
  background: transparent;
  box-shadow: none;
}
.qudrat-hero h1 { width: fit-content; position: relative; font-size: clamp(31px, 4vw, 54px); }
.qudrat-hero h1::after {
  content: '';
  position: absolute;
  inset: auto 12% -9px 12%;
  height: 10px;
  border-top: 4px solid #65c6ef;
  border-radius: 70% 100% 0 0;
  transform: rotate(-3deg);
}
.qudrat-hero .sector-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qudrat-hero .hero-actions { margin-block-start: 0; }
.qudrat-hero .hero-actions > a { min-height: 42px; padding: 8px 14px; font-size: 14px; }
.catalog-art { aspect-ratio: 1.57; width: min(100%, 490px); margin-inline: auto; }
.catalog-art::before { inline-size: 78%; height: 95%; background: radial-gradient(ellipse,#d5ecff,transparent 71%); }
.catalog-art::after { inline-size: 91%; height: 100%; }
.catalog-art img {
  width: min(80%, 405px);
  height: auto;
  transform: translate(var(--art-x, 0px), var(--art-y, 0px));
  transition: transform .28s ease-out;
}
.catalog-float {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(36px, 4vw, 58px);
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 17px;
  color: #0077b8;
  background: #e9f5ff;
  box-shadow: 0 9px 26px #467ebd36;
}
.catalog-float .ui-icon { width: 53%; height: auto; }
.float-read { top: 8%; left: 31%; rotate: -11deg; }
.float-cap { top: 16%; right: 9%; rotate: 8deg; background: #e4fbf3; color: #087d61; }
.float-goal { bottom: 14%; right: 4%; rotate: 8deg; background: #fff2db; color: #a2640d; }
.float-chart { bottom: 24%; left: 4%; rotate: -10deg; background: #eee9fd; color: #6644ab; }
.track-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.track-filters a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  min-height: 38px;
  border: 1px solid #c9e4f8;
  border-radius: 999px;
  color: #15436a;
  background: #fafdff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.track-filters .ui-icon { width: 16px; height: 16px; }
.track-filters a:hover { background: #e3f3ff; border-color: #7ebae4; }
.track-filters a[aria-current="page"] { background: #0069ad; border-color: #0069ad; color: #fff; }
.qudrat-catalog .qudrat-grid { margin-block-start: 12px; }
.track-grid-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.qudrat-grid .platform-tile {
  border-color: #fff;
  background: radial-gradient(ellipse at 100% 4%, var(--tone-bg, #e2f4ff), transparent 56%), linear-gradient(145deg, #fff, #f5faff);
  box-shadow: 0 11px 26px #2a619c16;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.qudrat-grid .platform-tile:hover, .qudrat-grid .platform-tile:focus-within {
  border-color: #45a9e8;
  box-shadow: 0 15px 34px #126cb12d;
}
.qudrat-grid .tile-symbol { width: clamp(49px, 5.3vw, 78px); height: auto; aspect-ratio: 1; border-radius: 23px; }
.qudrat-grid .tile-symbol .ui-icon { width: 49%; height: auto; }
.qudrat-grid .tile-heading { gap: 16px; }
.qudrat-grid .platform-tile .tile-action { width: min(100%, 390px); align-self: center; }
.qudrat-grid .tile-action .tile-forward { position: relative; justify-content: center; padding-inline: 30px; text-align: center; }
.qudrat-grid .tile-forward::after { position: absolute; inset-inline-end: 14px; }
.qudrat-grid .platform-tile:hover .account-secondary.tile-forward,
.qudrat-grid .platform-tile:focus-within .account-secondary.tile-forward { background: #086eae; color: #fff; border-color: #086eae; }
@media (prefers-reduced-motion: no-preference) {
  .catalog-float { animation: track-float 5.5s ease-in-out infinite alternate; }
  .float-cap, .float-chart { animation-delay: -2s; }
  .catalog-art::after { animation: track-ring 9s ease-in-out infinite alternate; }
  @media (hover: hover) { .qudrat-grid .platform-tile:hover { transform: translateY(-4px); } }
}
@keyframes track-float { to { transform: translateY(-8px); } }
@keyframes track-ring { to { transform: scale(.95) rotate(7deg); opacity: .65; } }
@media (max-width: 780px) {
  .platform-main.qudrat-catalog { width: calc(100% - 30px); }
  .qudrat-catalog .qudrat-hero { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 14px; }
  .catalog-art { width: min(100%, 370px); }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-art img, .qudrat-grid .platform-tile, .track-filters a { transition: none; }
}
html.home-dark body:has(.qudrat-catalog) { background: radial-gradient(ellipse at 12% 12%, #223c58, transparent 50%), #111e32; }
.home-dark .catalog-art::before { background: radial-gradient(ellipse,#335773,transparent 70%); }
.home-dark .track-filters a:not([aria-current="page"]) { color: var(--ink); background: #1c314a; border-color: #496481; }

@media (max-width: 780px) {
  .platform-main { width: calc(100% - 32px); }
  .sector-hero { gap: 16px; padding: 26px; }
  .checkout-layout, .learning-dashboard { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .learning-workspace:has(aside) { grid-template-columns: minmax(0,1fr); gap: 0; }
  .learning-progress { margin-block-start: 0; }
}
@media (max-width: 540px) {
  .platform-main { width: calc(100% - 28px); }
  .sector-hero { grid-template-columns: 1fr; border-radius: 24px; padding: 22px; }
  .sector-art img { width: min(78%, 215px); }
  .sector-art::before { inline-size: 205px; }
  .sector-art::after { inline-size: 228px; }
  .hero-actions > * { flex: 1 1 auto; }
  .journey { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journey li { padding-inline: 7px; gap: 6px; }
  .journey li > span { inline-size: 24px; block-size: 24px; }
  .tile-grid { gap: 13px; }
  .empty { align-items: flex-start; gap: 12px; padding: 15px; }
  .empty-art { inline-size: 42px; block-size: 42px; border-radius: 13px; }
  .empty-art .ui-icon { inline-size: 24px; block-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .lesson-list li { grid-template-columns: auto minmax(0,1fr); }
  .lesson-meta { grid-column: 2; }
}

.sample-entry, .course-demo-notice, .course-instructor {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sample-entry {
  margin-block: 20px;
  padding: clamp(15px, 3vw, 22px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(140deg,#fff,#eef8ff);
}
.sample-entry > .tile-symbol, .course-instructor > .tile-symbol, .course-demo-notice .ui-icon { flex: none; }
.sample-entry > div { flex: 1; }
.sample-entry h2 { margin: 0; font-size: 17px; }
.sample-entry p { margin: 3px 0 0; }
.course-demo-notice { margin-block: 16px !important; }
.course-demo-notice .ui-icon { width: 20px; height: 20px; color: var(--blue); }
.course-overview h3 { font-size: 16px; margin-block: 20px 8px; }
.course-overview .tags { gap: 7px; }
.course-instructor { align-items: flex-start; }
.course-unit { border: 1px solid var(--border); border-radius: 14px; margin-block: 10px; }
.course-unit > summary, .course-unit-row {
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 700;
}
.course-unit > summary { cursor: pointer; }
.course-unit .pill { margin-inline-start: 8px; font-size: 12px; }
.course-unit > p, .course-unit > ul { margin: 8px 14px 12px; }
.course-unit > ul { padding-inline-start: 20px; }
.course-unit > p {
  border-inline-start: 2px solid var(--blue);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--wash);
}
.home-dark .sample-entry { background: #1c314a; }
@media (max-width: 760px) {
  .sample-entry { flex-wrap: wrap; }
  .sample-entry > a { margin-inline-start: 63px; }
}

.course-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,320px),1fr)); gap: 20px; margin-block: 20px 28px; }
.course-card {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  border: 1px solid var(--border); border-block-start: 4px solid var(--blue); border-radius: 22px;
  background: #fff; box-shadow: 0 8px 25px #16528613;
}
.course-card-body { flex: 1; display: grid; align-content: start; gap: 11px; padding: 18px; }
.course-card-body h2, .course-card-body p { margin: 0; }
.course-card-body p { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.course-card-body > a { justify-content: center; margin-block-start: 4px; gap: 12px; }
.course-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.course-card-meta .pill { padding: 4px 10px; font-size: 12px; }
.course-card-price { color: var(--blue); display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-weight: 700; }
.course-card-price svg, .course-plan-length svg, .course-plan-access svg { width: 17px; height: 17px; flex: none; }
.course-visual {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse at 62% 55%,#f9fdff,#d4ecff 75%);
}
.course-visual.is-igcse { background: radial-gradient(ellipse at 62% 55%,#f6fffb,#d9f3ee 76%); }
.course-visual img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5%; object-fit: contain; }
.course-visual:not(.has-cover) img { padding-inline-start: 34%; }
.course-visual.has-cover img { padding: 0; object-fit: cover; }
.course-visual-label {
  position: absolute; inset-inline-start: 7%; inset-block-start: 17%; display: inline-flex; gap: 6px; align-items: center;
  background: #fafdff; border: 1px solid #dbebf8; border-radius: 10px; padding: 6px 10px;
  font-size: clamp(13px,1.65vw,20px); color: #064978; font-weight: 700;
}
.course-visual-label svg { width: 19px; height: 19px; }
.course-detail { max-width: 1280px; }
.course-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(18px,3.8vw,52px); margin-block: 22px 34px; }
.course-hero h1 { margin-block: 13px 10px; line-height: 1.23; }
.course-hero .intro { margin-block-end: 16px; }
.course-hero-copy > .account-primary { margin-block-start: 10px; }
.course-hero-media .course-visual { border-radius: 22px; box-shadow: 0 14px 38px #124e7826; }
.course-trailer { margin-block-start: 10px; }
.course-trailer summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 9px; }
.course-trailer video { display: block; width: 100%; border-radius: 16px; background: #0b203d; }
.course-highlights { display: grid; gap: 7px; padding: 0; list-style: none; }
.course-highlights li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.course-highlights svg { flex: none; width: 20px; height: 20px; margin-block-start: 3px; color: var(--blue); background: var(--wash); border-radius: 50%; }
.course-plans { scroll-margin-top: 94px; margin-block: clamp(32px,5vw,64px); }
.course-plans > header { margin-block-end: 18px; text-align: center; }
.course-plans > header h2 { font-size: clamp(23px,3vw,32px); }
.course-plan-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 24px 16px; padding: 12px 0 0; list-style: none; }
.course-plan-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 26px 16px 22px; text-align: center;
  border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 8px 24px #16528610;
}
.course-plan-card h3, .course-plan-card p { margin: 0; }
.course-plan-card .pill { position: absolute; inset-block-start: -14px; inset-inline: 0; width: fit-content; margin-inline: auto; }
.course-plan-length, .course-plan-access { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.course-plan-access svg { color: #158362; }
.course-plan-price { color: var(--blue); font-size: clamp(22px,3vw,33px); }
.course-plan-card > a { align-self: stretch; margin-block-start: auto; }
.course-layout { display: grid; gap: 16px; }
.course-layout .platform-panel { margin: 0; }
.course-next { margin-block-start: 24px; padding: clamp(24px,5vw,48px) 15px; border: 1px solid var(--border); background: var(--wash); border-radius: 22px; text-align: center; }
.course-next .page-actions { justify-content: center; }
.course-editor fieldset { display: grid; min-width: 0; gap: 12px; padding: 16px; margin: 0; border: 1px solid var(--border); border-radius: 15px; }
.course-editor legend { padding-inline: 6px; font-weight: 700; }
.home-dark .course-card, .home-dark .course-plan-card { background: #1c314a; }
.home-dark .course-visual:not(.has-cover) { background: radial-gradient(ellipse at 62% 55%,#385f7d,#203751 75%); }
@media (max-width: 760px) {
  .course-hero { grid-template-columns: minmax(0,1fr); gap: 19px; }
  .course-hero-media { grid-row: 2; }
}

.course-shelf { margin-block-start: 30px; }
.course-shelf-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.course-shelf-heading h2 { margin: 0; }
