/* ==========================================================================
   Dr. Tapas Mandal Orthopaedic Care — public design system
   ========================================================================== */

:root {
  --ink: #14231f;
  --ink-soft: #243a33;
  --forest: #123f35;
  --forest-deep: #0b2e27;
  --forest-mid: #1d5548;
  --cream: #f7f1e6;
  --cream-deep: #efe5d3;
  --paper: #fffdf8;
  --sand: #e8dcc6;
  --line: #ddd1bd;
  --line-strong: #c9baa1;
  --muted: #53645d;
  --muted-light: #66776f;
  --saffron: #e8a93a;
  --saffron-deep: #c7871b;
  --clay: #a94a33;
  --clay-soft: #f3dfd6;
  --sage: #cbd9c8;
  --mint: #dfeae2;
  --white: #ffffff;
  --danger: #a33a2d;
  --danger-soft: #f7e3df;
  --ok: #2f6b50;
  --ok-soft: #e2efe6;

  --font-display: "Fraunces", "Noto Sans Bengali", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", sans-serif;
  --font-ui: "Manrope", "Noto Sans Bengali", "Hind Siliguri", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(20, 35, 31, 0.06), 0 8px 24px rgba(20, 35, 31, 0.04);
  --shadow: 0 2px 4px rgba(20, 35, 31, 0.05), 0 18px 48px rgba(20, 35, 31, 0.09);
  --shadow-lg: 0 12px 24px rgba(20, 35, 31, 0.08), 0 32px 80px rgba(20, 35, 31, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--saffron);
  color: var(--forest-deep);
}

:focus-visible {
  outline: 3px solid var(--saffron-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - clamp(32px, 6vw, 80px), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--forest-deep);
  color: var(--cream);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display,
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-mid);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
}

.eyebrow--light {
  color: var(--sage);
}

.eyebrow--light::before {
  background: var(--saffron);
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 60ch;
}

.section-title {
  font-size: clamp(32px, 4.1vw, 52px);
  line-height: 1.18;
  margin-top: 14px;
  max-width: 18ch;
}

.section-title em {
  font-style: normal;
  color: var(--clay);
}

.section-copy {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 54ch;
}

.mono {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Buttons, tags, links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

.btn-saffron {
  background: var(--saffron);
  color: var(--forest-deep);
  border-color: var(--saffron);
}

.btn-saffron:hover {
  background: #f0b64f;
  border-color: #f0b64f;
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  background: rgba(18, 63, 53, 0.05);
  border-color: var(--forest);
}

.btn-light {
  background: var(--paper);
  color: var(--forest-deep);
  border-color: var(--paper);
}

.btn-light:hover {
  background: var(--cream);
}

.btn-ghost-light {
  color: var(--cream);
  border-color: rgba(247, 241, 230, 0.32);
}

.btn-ghost-light:hover {
  background: rgba(247, 241, 230, 0.08);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 1px solid transparent;
  transition: gap 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.link-arrow:hover {
  gap: 12px;
  border-color: var(--forest);
}

.link-arrow--light {
  color: var(--cream);
}

.link-arrow--light:hover {
  border-color: var(--cream);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.tag--saffron {
  background: #f6e5bd;
  color: #7a5207;
}

.tag--green {
  background: var(--mint);
  color: var(--forest);
}

.tag--clay {
  background: var(--clay-soft);
  color: #8c3d29;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232, 169, 58, 0.2);
  flex: none;
}

.status-dot--green {
  background: #4f9c70;
  box-shadow: 0 0 0 4px rgba(79, 156, 112, 0.16);
}

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--forest-deep);
  color: rgba(247, 241, 230, 0.82);
  font-family: var(--font-ui);
  font-size: 12.5px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 20px;
}

.topbar-note,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-note span,
.topbar-links a,
.topbar-links button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.topbar-note svg,
.topbar-links svg {
  width: 13px;
  height: 13px;
  opacity: 0.72;
}

.topbar-links a:hover {
  color: var(--saffron);
}

.topbar-links .portal-link {
  color: var(--saffron);
  font-weight: 700;
}

.topbar-divider {
  width: 1px;
  height: 13px;
  background: rgba(247, 241, 230, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 186, 161, 0.55);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 8px 24px rgba(20, 35, 31, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-text span {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.primary-nav a:hover {
  color: var(--forest);
  background: rgba(18, 63, 53, 0.045);
}

.primary-nav a[aria-current="page"] {
  color: var(--forest);
  font-weight: 600;
}

.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.header-actions .login-link {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  color: var(--forest);
}

.header-actions .login-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  place-items: center;
  color: var(--forest);
}

.menu-toggle svg {
  width: 21px;
  height: 21px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) 0 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(232, 169, 58, 0.12), transparent 28%),
    radial-gradient(circle at 8% 86%, rgba(191, 94, 66, 0.08), transparent 26%),
    linear-gradient(180deg, var(--cream) 0%, #f5eddf 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(18, 63, 53, 0.16) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 20%, black 100%);
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.hero-copy {
  padding-bottom: 16px;
}

.hero-copy .eyebrow {
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px 7px 10px;
}

.hero-copy .eyebrow::before {
  display: none;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 1.17;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-title .accent {
  display: inline-block;
  position: relative;
  color: var(--forest);
}

.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.2em;
  background: var(--saffron);
  opacity: 0.55;
  z-index: -1;
  border-radius: 2px;
  transform: rotate(-0.6deg);
}

.hero-lede {
  margin-top: 22px;
  max-width: 49ch;
  color: #53645d;
  font-size: 17.5px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn {
  min-height: 52px;
  padding-inline: 24px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--forest-mid);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(201, 186, 161, 0.65);
}

.avatar-stack {
  display: flex;
  padding-left: 6px;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -7px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: var(--sage);
  color: var(--forest);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar-stack span:nth-child(2) {
  background: #e9c7b8;
  color: #7a3a27;
}

.avatar-stack span:nth-child(3) {
  background: #d8d5ed;
  color: #413a6c;
}

.avatar-stack span:nth-child(4) {
  background: var(--saffron);
  color: var(--forest-deep);
}

.hero-trust-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-trust-text strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--saffron-deep);
  font-size: 12px;
  letter-spacing: 1px;
}

/* Hero stage */

.hero-stage {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

.stage-panel {
  position: absolute;
  inset: 28px 20px 18px 30px;
  border-radius: 200px 200px var(--radius-xl) var(--radius-xl);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 253, 248, 0.58), transparent 44%),
    linear-gradient(160deg, #dbe4d6 0%, #c5d4c0 48%, #aebfa8 100%);
  box-shadow: inset 0 0 0 1px rgba(18, 63, 53, 0.08);
}

.stage-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(18, 63, 53, 0.16);
  border-radius: inherit;
}

.stage-rings {
  position: absolute;
  top: 36px;
  right: -8px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px dashed rgba(18, 63, 53, 0.24);
}

.stage-rings::before,
.stage-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(18, 63, 53, 0.12);
}

.stage-rings::before {
  inset: 20px;
}

.stage-rings::after {
  inset: 40px;
  background: var(--saffron);
  border: 0;
  opacity: 0.85;
}

.hero-photo {
  position: relative;
  z-index: 2;
  width: min(84%, 430px);
  margin-bottom: 0;
  border-radius: 210px 210px 24px 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(11, 46, 39, 0.25);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 0.83;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.82) contrast(1.02);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 46, 39, 0.22));
}

.float-card {
  position: absolute;
  z-index: 3;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid rgba(221, 209, 189, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.class-card {
  top: 104px;
  left: -4px;
  width: 224px;
  padding: 15px;
  transform: rotate(-1.4deg);
  animation: float-slow 7s ease-in-out infinite;
}

.class-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.class-card-top .tag {
  font-size: 9px;
  padding: 3px 7px;
  letter-spacing: 0.02em;
}

.class-card-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

.class-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.class-meta svg {
  width: 14px;
  height: 14px;
  color: var(--forest-mid);
}

.progress-card {
  right: -2px;
  bottom: 94px;
  width: 208px;
  padding: 15px;
  transform: rotate(1.2deg);
  animation: float-slow 8s ease-in-out infinite 0.8s;
}

.progress-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.progress-card-head strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
}

.progress-track {
  height: 7px;
  margin: 12px 0 9px;
  border-radius: 99px;
  background: var(--cream-deep);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-mid), var(--saffron));
}

.progress-card small {
  font-size: 10.5px;
  color: var(--muted);
}

.stamp {
  position: absolute;
  z-index: 4;
  right: 4px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  border: 1px solid rgba(18, 63, 53, 0.3);
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 10px 24px rgba(20, 35, 31, 0.1);
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(18, 63, 53, 0.36);
  border-radius: 50%;
}

.stamp strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}

@keyframes float-slow {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* Search */

.course-search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) auto;
  align-items: stretch;
  gap: 0;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 20px;
}

.search-field + .search-field {
  border-left: 1px solid var(--line);
}

.search-field label {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--forest-mid);
  flex: none;
}

.search-field input,
.search-field select {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  min-height: 28px;
  padding: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: var(--muted-light);
  font-weight: 400;
}

.search-field select {
  appearance: none;
  cursor: pointer;
}

.course-search .btn {
  min-height: 58px;
  align-self: center;
  border-radius: 10px;
  padding-inline: 26px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.search-tags span {
  font-weight: 600;
  color: var(--ink-soft);
}

.search-tags a {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.search-tags a:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.stats-band {
  margin-top: clamp(40px, 6vw, 64px);
  background: var(--forest-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(247, 241, 230, 0.05) 1px, transparent 1px);
  background-size: min(25%, 300px) 100%;
  pointer-events: none;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 32px 36px;
  border-left: 1px solid rgba(247, 241, 230, 0.14);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.stat strong em {
  font-style: normal;
  color: var(--saffron);
}

.stat span {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  color: rgba(247, 241, 230, 0.62);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section--paper {
  background: var(--paper);
}

.section--cream {
  background: var(--cream);
}

.section--tight {
  padding-top: clamp(48px, 5vw, 64px);
  padding-bottom: clamp(48px, 5vw, 64px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  max-width: 330px;
  text-align: right;
}

.section-head-side p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Course grid & cards
   -------------------------------------------------------------------------- */

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

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.course-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cream-deep);
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(0.9);
}

.course-card:hover .course-media img {
  transform: scale(1.045);
  filter: saturate(1);
}

.course-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 46, 39, 0.02) 55%, rgba(11, 46, 39, 0.28));
}

.course-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-badges .tag {
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(20, 35, 31, 0.08);
}

.seats-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11, 46, 39, 0.76);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.seats-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--saffron);
}

.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11.5px;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.course-meta svg {
  width: 13px;
  height: 13px;
}

.course-title {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.course-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.course-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.course-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.course-price small {
  font-size: 10.5px;
  color: var(--muted);
}

.course-price strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.course-price strong span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.course-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--forest);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.course-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.course-card:hover .course-arrow {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.course-card:hover .course-arrow svg {
  transform: translate(2px, -2px);
}

/* Featured card */

.course-grid--home .course-card:first-child {
  grid-column: span 2;
  flex-direction: row;
}

.course-grid--home .course-card:first-child .course-media {
  width: 47%;
  flex: none;
  aspect-ratio: auto;
}

.course-grid--home .course-card:first-child .course-body {
  padding: 26px;
}

.course-grid--home .course-card:first-child .course-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.3;
}

.course-grid--home .course-card:first-child .course-summary {
  -webkit-line-clamp: 3;
  font-size: 14px;
}

/* Skeleton */

.skeleton-card {
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #f2eadc 25%, #faf6ee 50%, #f2eadc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* --------------------------------------------------------------------------
   Audience / portal tabs
   -------------------------------------------------------------------------- */

.audience {
  background: var(--paper);
}

.audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.audience-tabs {
  display: flex;
  gap: 4px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

.audience-tab {
  position: relative;
  padding: 11px 16px 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.audience-tab::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.audience-tab[aria-selected="true"] {
  color: var(--forest);
  font-weight: 600;
}

.audience-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.audience-panel {
  margin-top: 24px;
  animation: rise-in 0.35s var(--ease) both;
}

.audience-panel h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.audience-panel p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
}

.check-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--forest-mid);
}

.audience-panel .link-arrow {
  margin-top: 21px;
  font-size: 14px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Preview dashboard */

.portal-demo {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 169, 58, 0.22), transparent 34%),
    linear-gradient(150deg, #1a4a3e 0%, #113a31 54%, #0c2f28 100%);
  box-shadow: var(--shadow-lg);
  color: var(--cream);
  overflow: hidden;
}

.portal-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247, 241, 230, 0.14) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  opacity: 0.4;
  mask-image: linear-gradient(130deg, transparent 10%, black 100%);
}

.portal-window {
  position: relative;
  border-radius: 18px;
  background: #fbf8f1;
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(4, 20, 17, 0.34);
  transform: rotate(-0.7deg);
}

.portal-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e8dfcf;
  background: #f4eee2;
}

.portal-window-dots {
  display: flex;
  gap: 5px;
}

.portal-window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9cbb5;
}

.portal-window-dots span:first-child {
  background: #c46951;
}

.portal-window-dots span:nth-child(2) {
  background: #d9a43e;
}

.portal-window-dots span:nth-child(3) {
  background: #6b9a77;
}

.portal-window-title {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c8a83;
}

.portal-layout {
  display: grid;
  grid-template-columns: 158px 1fr;
  min-height: 340px;
}

.portal-side {
  padding: 20px 14px;
  background: #f4eee2;
  border-right: 1px solid #e8dfcf;
}

.portal-avatar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e0d5c2;
}

.portal-avatar span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  flex: none;
}

.portal-avatar strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.3;
}

.portal-avatar small {
  display: block;
  font-size: 8.5px;
  color: #7b8a83;
  margin-top: 2px;
}

.portal-nav {
  display: grid;
  gap: 3px;
}

.portal-nav span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  color: #75837c;
}

.portal-nav span svg {
  width: 12px;
  height: 12px;
}

.portal-nav span.active {
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
}

.portal-main {
  padding: 20px;
}

.portal-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.portal-main-head small {
  display: block;
  font-family: var(--font-ui);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #84918a;
}

.portal-main-head strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.portal-main-head .tag {
  font-size: 8px;
  padding: 3px 7px;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.portal-stat {
  padding: 10px;
  border: 1px solid #e8dfcf;
  border-radius: 8px;
  background: #fffdf8;
}

.portal-stat small {
  display: block;
  font-size: 8px;
  color: #83918a;
  line-height: 1.3;
}

.portal-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.1;
}

.portal-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 7px;
  font-size: 9px;
  color: #7c8a83;
}

.portal-list-head strong {
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--ink);
}

.portal-list {
  display: grid;
  gap: 5px;
}

.portal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #f7f2e8;
}

.portal-row-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--forest);
  flex: none;
}

.portal-row-icon svg {
  width: 12px;
  height: 12px;
}

.portal-row strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
}

.portal-row small {
  display: block;
  font-size: 8px;
  color: #84918a;
  margin-top: 1px;
}

.portal-row .status {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 7.5px;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 2px 6px;
  border-radius: 99px;
  white-space: nowrap;
}

.portal-row .status.due {
  color: #98610e;
  background: #f8edd3;
}

.portal-floating {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--saffron);
  color: var(--forest-deep);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(6, 29, 24, 0.3);
  transform: rotate(1.5deg);
}

.portal-floating svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Operations band
   -------------------------------------------------------------------------- */

.ops {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--forest-deep);
  color: var(--cream);
}

.ops::before {
  content: "TMA";
  position: absolute;
  right: -2vw;
  top: -3vw;
  font-family: var(--font-ui);
  font-size: clamp(160px, 30vw, 420px);
  font-weight: 800;
  letter-spacing: -0.08em;
  color: rgba(247, 241, 230, 0.028);
  line-height: 1;
  pointer-events: none;
}

.ops-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
}

.ops-title {
  margin-top: 16px;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.18;
  color: var(--cream);
}

.ops-title em {
  font-style: normal;
  color: var(--saffron);
}

.ops-copy {
  margin-top: 18px;
  color: rgba(247, 241, 230, 0.66);
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.8;
}

.ops-features {
  display: grid;
  gap: 2px;
  margin-top: 30px;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
}

.ops-feature {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(247, 241, 230, 0.16);
}

.ops-feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(247, 241, 230, 0.2);
  color: var(--saffron);
}

.ops-feature-icon svg {
  width: 16px;
  height: 16px;
}

.ops-feature strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
}

.ops-feature p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(247, 241, 230, 0.55);
}

.ops-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.ops-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(247, 241, 230, 0.52);
}

.ops-note svg {
  width: 14px;
  height: 14px;
}

/* Ledger mock */

.ledger {
  position: relative;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px rgba(3, 18, 15, 0.38);
  transform: rotate(1deg);
  overflow: hidden;
}

.ledger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--saffron) 0 32px, var(--forest) 32px 64px);
}

.ledger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
}

.ledger-head small {
  display: block;
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-head h3 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.ledger-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.ledger-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.ledger-summary div {
  padding: 12px 14px;
  border-left: 1px solid var(--line);
}

.ledger-summary div:first-child {
  border-left: 0;
}

.ledger-summary small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

.ledger-summary strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ledger-summary .income strong {
  color: var(--ok);
}

.ledger-summary .expense strong {
  color: var(--clay);
}

.ledger-chart {
  padding: 18px 24px 12px;
}

.ledger-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 10px;
  color: var(--muted);
}

.ledger-legend {
  display: flex;
  gap: 10px;
  font-size: 8.5px;
}

.ledger-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ledger-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--forest-mid);
}

.ledger-legend span:nth-child(2) i {
  background: var(--saffron);
}

.ledger-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 92px;
  padding-top: 6px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to top, rgba(221, 209, 189, 0.45) 1px, transparent 1px);
  background-size: 100% 30px;
}

.ledger-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex: 1;
  height: 100%;
}

.ledger-bar-group i {
  display: block;
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--forest-mid);
  min-height: 6%;
}

.ledger-bar-group i + i {
  background: var(--saffron);
}

.ledger-months {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  font-family: var(--font-ui);
  font-size: 7.5px;
  color: var(--muted);
}

.ledger-months span {
  flex: 1;
  text-align: center;
}

.ledger-rows {
  padding: 4px 24px 20px;
}

.ledger-rows-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #eee6d8;
}

.ledger-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ledger-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--cream-deep);
  color: var(--forest);
  flex: none;
}

.ledger-icon.expense {
  background: var(--clay-soft);
  color: #8c3d29;
}

.ledger-icon svg {
  width: 12px;
  height: 12px;
}

.ledger-row strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-row small {
  display: block;
  font-size: 7.5px;
  color: var(--muted);
}

.ledger-amount {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ok);
  white-space: nowrap;
}

.ledger-amount.expense {
  color: var(--clay);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 28px 0 0;
  counter-increment: step;
}

.step + .step {
  padding-left: 28px;
}

.step + .step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 28px;
  border-top: 1px dashed var(--line-strong);
}

.step-num {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 20px;
}

.step-num::before {
  content: counter(step, decimal-leading-zero);
}

.step h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Faculty
   -------------------------------------------------------------------------- */

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.faculty-card {
  position: relative;
}

.faculty-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 120px 120px 14px 14px;
  background: var(--cream-deep);
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.82);
  transition: transform 0.55s var(--ease-out), filter 0.55s var(--ease-out);
}

.faculty-card:hover .faculty-photo img {
  transform: scale(1.035);
  filter: saturate(1);
}

.faculty-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(11, 46, 39, 0.2));
}

.faculty-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(5px);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  color: var(--forest);
}

.faculty-body {
  padding: 15px 3px 0;
}

.faculty-body h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}

.faculty-subject {
  display: inline-block;
  margin-top: 3px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 600;
}

.faculty-qual {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.faculty-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
}

.faculty-link svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Notice + testimonial split
   -------------------------------------------------------------------------- */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.testimonial-block {
  position: relative;
}

.testimonial-stage {
  position: relative;
  min-height: 300px;
  margin-top: 26px;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

.testimonial.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 0.8;
  color: var(--saffron);
  height: 34px;
}

.testimonial blockquote {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}

.person-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.testimonial-person strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.testimonial-person small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

.testimonial-person .stars {
  margin-left: auto;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-strong);
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}

.slider-dot[aria-current="true"] {
  width: 24px;
  border-radius: 99px;
  background: var(--forest);
}

.slider-buttons {
  display: flex;
  gap: 6px;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.slider-btn:hover {
  background: var(--forest);
  color: var(--cream);
}

.slider-btn svg {
  width: 15px;
  height: 15px;
}

.notice-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.notice-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s var(--ease), background 0.2s var(--ease);
}

.notice-item:hover {
  background: rgba(255, 253, 248, 0.55);
  padding-inline: 10px;
}

.notice-date {
  text-align: center;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.notice-date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--forest);
}

.notice-date small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice-body h3 {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.notice-body p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-arrow {
  color: var(--muted);
}

.notice-arrow svg {
  width: 17px;
  height: 17px;
}

.notice-type {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--clay);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--forest);
  color: var(--cream);
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -140px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 169, 58, 0.25), transparent 65%);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(247, 241, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 241, 230, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 48px;
  align-items: center;
}

.cta-band h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
  max-width: 18ch;
  color: var(--cream);
}

.cta-band h2 em {
  font-style: normal;
  color: var(--saffron);
}

.cta-band p {
  margin-top: 12px;
  max-width: 50ch;
  color: rgba(247, 241, 230, 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid rgba(247, 241, 230, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(247, 241, 230, 0.06);
  backdrop-filter: blur(8px);
  min-width: 280px;
}

.cta-contact small {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--saffron);
}

.cta-contact a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
}

.cta-contact a:hover {
  color: var(--saffron);
}

.cta-contact svg {
  width: 17px;
  height: 17px;
  color: var(--saffron);
}

.cta-contact .hours {
  display: block;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
  font-size: 11.5px;
  color: rgba(247, 241, 230, 0.52);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(247, 241, 230, 0.68);
  font-size: 13.5px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(52px, 7vw, 76px) 0 42px;
}

.footer-brand .brand-text strong {
  color: var(--cream);
}

.footer-brand .brand-text span {
  color: rgba(247, 241, 230, 0.64);
}

.footer-brand .brand-mark {
  background: rgba(247, 241, 230, 0.1);
  border: 1px solid rgba(247, 241, 230, 0.16);
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 18px;
  line-height: 1.8;
  color: rgba(247, 241, 230, 0.58);
  font-size: 13px;
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(247, 241, 230, 0.66);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-contact a:hover {
  color: var(--saffron);
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--saffron);
}

.footer-col h3 {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 16px;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: rgba(247, 241, 230, 0.62);
  font-size: 12.5px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(247, 241, 230, 0.16);
  border-radius: 6px;
  margin-bottom: 5px;
}

.footer-portal:hover {
  border-color: var(--saffron) !important;
}

.footer-portal svg {
  width: 12px;
  height: 12px;
}

.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(247, 241, 230, 0.22);
  color: var(--cream);
  font-size: 12px;
}

.footer-map-link:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(247, 241, 230, 0.12);
  font-size: 11.5px;
  color: rgba(247, 241, 230, 0.64);
}

.footer-bottom p {
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(247, 241, 230, 0.14);
  border-radius: 50%;
  color: rgba(247, 241, 230, 0.62);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-social a:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.footer-social svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 56px);
  background:
    radial-gradient(circle at 88% 15%, rgba(232, 169, 58, 0.16), transparent 30%),
    linear-gradient(180deg, var(--cream) 0%, #f4eddf 100%);
  border-bottom: 1px solid rgba(201, 186, 161, 0.5);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 30px;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(18, 63, 53, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs svg {
  width: 11px;
  height: 11px;
  opacity: 0.6;
}

.page-title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.page-lede {
  margin-top: 16px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.8;
}

.page-hero-side {
  padding-bottom: 6px;
}

.page-fact {
  display: flex;
  gap: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.page-fact div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--forest);
}

.page-fact div span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.page-fact div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Catalog
   -------------------------------------------------------------------------- */

.catalog-section {
  padding: clamp(40px, 5vw, 60px) 0 clamp(64px, 8vw, 100px);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.65fr) minmax(0, 0.65fr) auto;
  gap: 0;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

.catalog-toolbar .search-field label {
  font-size: 8.5px;
}

.catalog-toolbar .btn {
  align-self: center;
  min-height: 50px;
  padding-inline: 20px;
}

.catalog-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-info strong {
  color: var(--ink);
  font-weight: 600;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 340px;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.5);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--forest);
}

.empty-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
}

.empty-state p {
  margin-top: 6px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.empty-state .btn {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Course detail
   -------------------------------------------------------------------------- */

.course-detail-hero {
  position: relative;
  padding: clamp(32px, 4vw, 48px) 0 0;
  background: var(--cream);
}

.course-detail-banner {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--radius-xl);
  background: var(--forest);
  color: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.course-banner-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.5vw, 56px);
}

.course-banner-copy .breadcrumbs {
  position: absolute;
  top: 22px;
  left: clamp(28px, 4.5vw, 56px);
  color: rgba(247, 241, 230, 0.58);
}

.course-banner-copy .breadcrumbs a:hover {
  color: var(--cream);
}

.course-banner-copy .tag {
  align-self: flex-start;
  background: rgba(247, 241, 230, 0.14);
  color: var(--cream);
  margin-bottom: 14px;
}

.course-banner-copy h1 {
  font-size: clamp(32px, 4.1vw, 52px);
  line-height: 1.2;
  color: var(--cream);
  max-width: 17ch;
}

.course-banner-copy p {
  margin-top: 14px;
  max-width: 52ch;
  color: rgba(247, 241, 230, 0.65);
  font-size: 15px;
  line-height: 1.75;
}

.course-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 241, 230, 0.17);
  font-size: 12px;
  color: rgba(247, 241, 230, 0.7);
}

.course-banner-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-banner-meta svg {
  width: 14px;
  height: 14px;
  color: var(--saffron);
}

.course-banner-media {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.course-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
}

.course-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--forest) 0%, rgba(18, 63, 53, 0.62) 25%, transparent 65%);
}

.detail-section {
  padding: clamp(46px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.detail-body > section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.detail-body h2 {
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.3;
}

.detail-body p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.outcome {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13.5px;
  line-height: 1.6;
}

.outcome svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
  flex: none;
  margin-top: 3px;
}

.module-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.module-item {
  border-bottom: 1px solid var(--line);
}

.module-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
}

.module-item summary::-webkit-details-marker {
  display: none;
}

.module-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  flex: none;
}

.module-item[open] .module-number {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.module-chevron {
  margin-left: auto;
  transition: transform 0.25s var(--ease);
}

.module-chevron svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.module-item[open] .module-chevron {
  transform: rotate(180deg);
}

.module-content {
  padding: 0 2px 18px 44px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.instructor-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.instructor-box img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  flex: none;
}

.instructor-box h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}

.instructor-box .role {
  color: var(--clay);
  font-size: 12px;
  font-weight: 600;
}

.instructor-box p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
}

.enroll-card {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.enroll-head {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, #fbf7ee, #f4ecde);
}

.enroll-head small {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.enroll-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 5px;
}

.enroll-price strong {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.enroll-price span {
  color: var(--muted);
  font-size: 12px;
}

.enroll-body {
  padding: 20px 22px 22px;
}

.enroll-rows {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
}

.enroll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #efe7d9;
  font-size: 12.5px;
}

.enroll-row:last-child {
  border-bottom: 0;
}

.enroll-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.enroll-row svg {
  width: 14px;
  height: 14px;
  color: var(--forest-mid);
}

.enroll-row strong {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.enroll-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.enroll-note svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 2px;
  color: var(--saffron-deep);
}

/* --------------------------------------------------------------------------
   Forms & admissions
   -------------------------------------------------------------------------- */

.form-card {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.form-head {
  margin-bottom: 24px;
}

.form-head h2 {
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.3;
}

.form-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field label .req {
  color: var(--clay);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-light);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(29, 85, 72, 0.12);
  background: var(--white);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: #fffafa;
}

.field-error {
  font-size: 11.5px;
  color: var(--danger);
}

.field-help {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

.form-footer {
  margin-top: 22px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.form-note svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 2px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.form-alert svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
}

.form-alert--error {
  background: var(--danger-soft);
  color: #76281f;
  border: 1px solid #ecc7bf;
}

.form-alert--success {
  background: var(--ok-soft);
  color: #24523d;
  border: 1px solid #c6dfce;
}

.admissions-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.admission-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

.admission-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.admission-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--forest);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
}

.admission-step h3 {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
}

.admission-step p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 13px;
}

.fee-table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fee-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

.fee-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.fee-table tr:last-child td {
  border-bottom: 0;
}

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: none;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 2px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.story-copy p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.story-copy p + p {
  margin-top: 16px;
}

.story-copy .dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 0.82;
  padding: 5px 8px 0 0;
  color: var(--forest);
}

.story-aside {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
}

.story-aside::before {
  content: "“";
  position: absolute;
  right: 18px;
  top: 6px;
  font-family: var(--font-display);
  font-size: 150px;
  line-height: 1;
  color: rgba(247, 241, 230, 0.08);
}

.story-aside blockquote {
  position: relative;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.5;
  color: var(--cream);
}

.story-aside .byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
}

.story-aside .byline img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.story-aside .byline strong {
  display: block;
  font-size: 12.5px;
}

.story-aside .byline span {
  display: block;
  font-size: 10.5px;
  color: rgba(247, 241, 230, 0.52);
}

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

.value-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.value-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--forest);
}

.value-icon svg {
  width: 19px;
  height: 19px;
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
}

.value-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.timeline {
  position: relative;
  margin-top: 32px;
  padding-left: 28px;
  border-left: 1px dashed var(--line-strong);
}

.timeline-item {
  position: relative;
  padding-bottom: 26px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--forest);
}

.timeline-year {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.timeline-item h3 {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
}

.timeline-item p {
  margin-top: 4px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Classes
   -------------------------------------------------------------------------- */

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.day-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.schedule-list {
  border-top: 1px solid var(--line);
}

.schedule-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 160px 100px;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease), padding 0.2s var(--ease);
}

.schedule-row:hover {
  background: rgba(255, 253, 248, 0.62);
  padding-inline: 12px;
}

.schedule-day {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.schedule-day strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.schedule-course h3 {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}

.schedule-course p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-mode {
  font-size: 11.5px;
  color: var(--muted);
}

.schedule-mode span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.schedule-mode svg {
  width: 13px;
  height: 13px;
  color: var(--forest-mid);
}

.schedule-link {
  justify-self: end;
}

.online-panel {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  padding: 28px;
}

.online-panel .eyebrow {
  color: var(--sage);
}

.online-panel .eyebrow::before {
  background: var(--saffron);
}

.online-panel h2 {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.3;
  color: var(--cream);
}

.online-panel > p {
  margin-top: 10px;
  color: rgba(247, 241, 230, 0.65);
  font-size: 13.5px;
  line-height: 1.75;
}

.online-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
}

.online-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(247, 241, 230, 0.16);
  font-size: 12.5px;
  line-height: 1.6;
}

.online-list svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--saffron);
}

.online-panel .btn {
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Results
   -------------------------------------------------------------------------- */

.result-lookup {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 26px;
  max-width: 580px;
}

.result-lookup .field {
  flex: 1;
}

.result-lookup .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.result-lookup input {
  min-height: 54px;
  font-size: 16px;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
}

.result-lookup .btn {
  min-height: 54px;
}

.result-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.result-hint button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result-sheet {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.result-sheet + .result-sheet {
  margin-top: 24px;
}

.result-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  background: var(--forest);
  color: var(--cream);
}

.result-sheet-head .brand-text strong {
  color: var(--cream);
}

.result-sheet-head small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.5);
}

.result-sheet-head .result-label {
  text-align: right;
}

.result-sheet-head .result-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.result-sheet-head .result-label span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(247, 241, 230, 0.6);
}

.result-student {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #fbf7ee;
}

.result-student h2 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
}

.result-student p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.grade-stamp {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--clay);
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  transform: rotate(-6deg);
  flex: none;
}

.result-table-wrap {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.result-table th,
.result-table td {
  padding: 12px 28px;
  text-align: left;
  border-bottom: 1px solid #eee7da;
}

.result-table th {
  background: #fbf7ee;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-table td:last-child,
.result-table th:last-child {
  text-align: right;
}

.result-table tr:last-child td {
  border-bottom: 0;
}

.result-total {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: #fbf7ee;
}

.result-total div {
  padding: 16px 28px;
  border-left: 1px solid var(--line);
}

.result-total div:first-child {
  border-left: 0;
}

.result-total small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.result-total strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
}

.result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.result-foot .btn {
  min-height: 38px;
}

.result-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--forest);
  flex: none;
}

.contact-icon svg {
  width: 17px;
  height: 17px;
}

.contact-card h3 {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card p,
.contact-card a {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.contact-card a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.map-card {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.map-frame {
  position: relative;
  min-height: 300px;
  background: #e8eee3;
  overflow: hidden;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.map-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(221, 209, 189, 0.8);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(6px);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

.map-badge .status-dot {
  width: 5px;
  height: 5px;
}

.map-pin-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(221, 209, 189, 0.9);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 26px rgba(20, 35, 31, 0.12);
  backdrop-filter: blur(8px);
}

.map-pin-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--forest);
  color: var(--cream);
  flex: none;
}

.map-pin-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.map-pin-card > div > span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.map-pin-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 1px solid transparent;
}

.map-pin-card a:hover {
  border-color: var(--forest);
}

.map-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.map-card-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--forest);
  font-weight: 600;
}

.map-card-foot svg {
  width: 13px;
  height: 13px;
}

.office-hours {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--saffron);
  background: rgba(232, 169, 58, 0.08);
  font-size: 12.5px;
  line-height: 1.7;
}

.office-hours strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.office-hours span {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Portal login + dashboard
   -------------------------------------------------------------------------- */

.portal-page {
  min-height: 100vh;
  background: var(--cream);
}

.portal-login {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.portal-login-aside {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 169, 58, 0.22), transparent 32%),
    linear-gradient(150deg, #194a3e, #0d332b 70%);
  color: var(--cream);
}

.portal-login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247, 241, 230, 0.13) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  opacity: 0.4;
  mask-image: linear-gradient(120deg, black, transparent 80%);
}

.portal-aside-content {
  position: relative;
  max-width: 500px;
}

.portal-aside-content h2 {
  margin-top: 18px;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.18;
  color: var(--cream);
}

.portal-aside-content h2 em {
  font-style: normal;
  color: var(--saffron);
}

.portal-aside-content > p {
  margin-top: 16px;
  max-width: 46ch;
  color: rgba(247, 241, 230, 0.62);
  font-size: 15px;
  line-height: 1.8;
}

.portal-points {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.portal-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: rgba(247, 241, 230, 0.8);
}

.portal-points svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--saffron);
}

.portal-aside-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
  font-size: 11.5px;
  color: rgba(247, 241, 230, 0.48);
}

.portal-aside-foot svg {
  width: 16px;
  height: 16px;
  color: var(--saffron);
}

.portal-login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 64px);
  background: var(--paper);
}

.login-card {
  width: min(100%, 430px);
}

.login-card .brand {
  margin-bottom: 34px;
}

.login-card h1 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.25;
}

.login-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.login-form {
  margin-top: 26px;
}

.login-form .field + .field {
  margin-top: 15px;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
}

.login-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.login-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--forest);
}

.login-row a {
  color: var(--forest);
  font-weight: 600;
}

.login-form .btn {
  margin-top: 20px;
  min-height: 52px;
}

.demo-access {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fbf7ee;
}

.demo-access strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-accounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.demo-account {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  text-align: left;
  font-size: 10.5px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.demo-account:hover {
  border-color: var(--forest-mid);
  background: #fff;
}

.demo-account strong {
  font-size: 10.5px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.demo-account span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 8.5px;
}

.login-help {
  margin-top: 20px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.login-help a {
  color: var(--forest);
  font-weight: 600;
}

.portal-dashboard {
  padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px);
}

.portal-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.portal-welcome h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
}

.portal-welcome p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.portal-welcome-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.portal-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.portal-kpi {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.portal-kpi small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.portal-kpi strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.portal-kpi span {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--muted);
}

.portal-kpi--highlight {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.portal-kpi--highlight small,
.portal-kpi--highlight span {
  color: rgba(247, 241, 230, 0.6);
}

.portal-kpi--highlight strong {
  color: var(--saffron);
}

.portal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}

.portal-panel + .portal-panel {
  margin-top: 18px;
}

.portal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbf7ee;
}

.portal-panel-head h2 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
}

.portal-panel-head small {
  color: var(--muted);
  font-size: 11px;
}

.portal-table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.portal-table th,
.portal-table td {
  padding: 13px 22px;
  text-align: left;
  border-bottom: 1px solid #eee7da;
}

.portal-table th {
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.portal-table tr:last-child td {
  border-bottom: 0;
}

.portal-table td:last-child,
.portal-table th:last-child {
  text-align: right;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.portal-badge--paid,
.portal-badge--approved {
  background: var(--ok-soft);
  color: var(--ok);
}

.portal-badge--due,
.portal-badge--pending {
  background: #f8edd3;
  color: #8e5b0d;
}

.portal-badge--partial {
  background: var(--clay-soft);
  color: #8c3d29;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 22px;
}

.portal-course-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf7ee;
}

.portal-course-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--forest);
  flex: none;
}

.portal-course-icon svg {
  width: 17px;
  height: 17px;
}

.portal-course-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

.portal-course-card span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.ward-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ward-tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.ward-tab.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.portal-empty {
  padding: 36px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Dialog / toast
   -------------------------------------------------------------------------- */

dialog {
  width: min(100% - 32px, 620px);
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(11, 46, 39, 0.55);
  backdrop-filter: blur(4px);
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.dialog-head h2 {
  font-size: 25px;
  line-height: 1.3;
}

.dialog-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  flex: none;
}

.dialog-close:hover {
  background: var(--cream);
  color: var(--ink);
}

.dialog-close svg {
  width: 15px;
  height: 15px;
}

.dialog-body {
  padding: 20px 24px;
}

.dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.55;
  animation: toast-in 0.3s var(--ease);
}

.toast svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  color: var(--ok);
}

.toast--error svg {
  color: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Misc utilities
   -------------------------------------------------------------------------- */

.divider {
  height: 1px;
  background: var(--line);
}

.text-muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.stack-sm {
  display: grid;
  gap: 8px;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1140px) {
  .primary-nav a {
    padding-inline: 8px;
    font-size: 13.5px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-stage {
    min-height: 520px;
  }

  .class-card {
    left: -8px;
  }

  .progress-card {
    right: -8px;
  }

  .course-grid--home .course-card:first-child .course-body {
    padding: 22px;
  }
}

@media (max-width: 1040px) {
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 46, 39, 0.42);
    backdrop-filter: blur(2px);
  }

  .topbar-note .topbar-hours {
    display: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: clamp(16px, 4vw, 40px);
    right: clamp(16px, 4vw, 40px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    min-height: 46px;
    padding-inline: 14px;
    font-size: 15px;
    border-radius: 8px;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav a[aria-current="page"] {
    background: var(--cream);
  }

  .menu-toggle {
    display: grid;
  }

  .header-actions .login-link {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-stage {
    min-height: 430px;
    max-width: 540px;
    margin-inline: auto;
    width: 100%;
  }

  .stage-panel {
    inset: 20px 24px 10px;
    border-radius: 170px 170px 28px 28px;
  }

  .hero-photo {
    width: min(74%, 360px);
  }

  .class-card {
    top: 52px;
    left: 0;
  }

  .progress-card {
    bottom: 48px;
    right: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head-side {
    align-items: flex-start;
    text-align: left;
    max-width: 560px;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid--home .course-card:first-child {
    grid-column: span 2;
  }

  .audience-grid,
  .ops-grid,
  .detail-grid,
  .admissions-grid,
  .story-grid,
  .schedule-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    gap: 42px;
  }

  .ops-grid {
    gap: 44px;
  }

  .portal-demo {
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .step:nth-child(3) {
    padding-left: 0;
  }

  .step:nth-child(3)::before {
    display: none;
  }

  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .value-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .testimonial-stage {
    min-height: 280px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-contact {
    max-width: 400px;
  }

  .footer-main {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-hero-side {
    max-width: 500px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 1fr auto;
  }

  .catalog-toolbar .search-field:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .catalog-toolbar .btn {
    grid-column: 3;
    grid-row: 2;
  }

  .course-detail-banner {
    grid-template-columns: 1fr;
  }

  .course-banner-media {
    min-height: 260px;
    order: -1;
  }

  .course-banner-media::after {
    background: linear-gradient(180deg, transparent 25%, var(--forest) 100%);
  }

  .course-banner-copy {
    padding-top: 34px;
  }

  .course-banner-copy .breadcrumbs {
    position: static;
    margin-bottom: 18px;
  }

  .enroll-card,
  .online-panel {
    position: static;
  }

  .detail-grid {
    gap: 36px;
  }

  .enroll-card {
    max-width: 560px;
  }

  .portal-login {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .portal-login-aside {
    min-height: 420px;
    padding: 40px clamp(24px, 6vw, 56px);
  }

  .portal-login-main {
    padding-block: 48px;
  }

  .portal-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-table th,
  .result-table td {
    padding-inline: 18px;
  }

  .result-sheet-head,
  .result-student,
  .result-total div,
  .result-foot {
    padding-inline: 20px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .topbar-note {
    display: none;
  }

  .topbar-inner {
    justify-content: flex-end;
  }

  .topbar-inner {
    min-height: 34px;
  }

  .topbar-links {
    gap: 12px;
  }

  .topbar-links .topbar-email {
    display: none;
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text span {
    font-size: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-title {
    font-size: clamp(40px, 11vw, 56px);
  }

  .hero-lede {
    font-size: 15.5px;
  }

  .hero-actions .btn {
    min-height: 48px;
    padding-inline: 18px;
    font-size: 14.5px;
  }

  .hero-trust {
    margin-top: 24px;
  }

  .hero-stage {
    min-height: 380px;
  }

  .stage-panel {
    inset: 10px 14px 6px;
  }

  .hero-photo {
    width: min(76%, 300px);
  }

  .class-card {
    width: 186px;
    padding: 12px;
    top: 34px;
  }

  .class-card-title {
    font-size: 12.5px;
  }

  .progress-card {
    width: 170px;
    padding: 12px;
    bottom: 32px;
  }

  .progress-card-head strong {
    font-size: 20px;
  }

  .stamp {
    width: 72px;
    height: 72px;
    font-size: 6px;
  }

  .stamp strong {
    font-size: 13px;
  }

  .course-search {
    grid-template-columns: 1fr;
    padding: 8px;
    margin-top: 32px;
  }

  .search-field {
    padding: 10px 12px;
  }

  .search-field + .search-field {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .course-search .btn {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
  }

  .search-tags {
    margin-top: 12px;
  }

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

  .stat {
    padding: 22px 16px;
  }

  .stat:first-child {
    padding-left: 16px;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat strong {
    font-size: 30px;
  }

  .stat span {
    font-size: 11px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: clamp(30px, 8vw, 38px);
    max-width: none;
  }

  .course-grid,
  .course-grid--home {
    grid-template-columns: 1fr;
  }

  .course-grid--home .course-card:first-child {
    grid-column: auto;
    flex-direction: column;
  }

  .course-grid--home .course-card:first-child .course-media {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .course-grid--home .course-card:first-child .course-body {
    padding: 20px;
  }

  .course-grid--home .course-card:first-child .course-title {
    font-family: var(--font-body);
    font-size: 19px;
  }

  .audience-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .audience-tab {
    white-space: nowrap;
    padding-inline: 12px;
  }

  .portal-demo {
    padding: 18px;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-side {
    display: none;
  }

  .portal-main {
    padding: 16px;
  }

  .portal-window {
    transform: none;
  }

  .portal-stat {
    padding: 8px;
  }

  .portal-stat strong {
    font-size: 14px;
  }

  .portal-floating {
    display: none;
  }

  .ops-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .ledger {
    transform: none;
  }

  .ledger-head {
    padding: 18px 18px 12px;
  }

  .ledger-summary {
    margin-inline: 18px;
  }

  .ledger-summary div {
    padding: 10px;
  }

  .ledger-summary strong {
    font-size: 12px;
  }

  .ledger-chart {
    padding-inline: 18px;
  }

  .ledger-rows {
    padding-inline: 18px;
  }

  .ledger-rows-head {
    font-size: 7px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step {
    padding: 0;
  }

  .step + .step {
    padding-left: 0;
    padding-top: 0;
  }

  .step + .step::before {
    display: none;
  }

  .step-num {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    font-size: 17px;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faculty-photo {
    aspect-ratio: 16 / 12;
    border-radius: 100px 100px 14px 14px;
  }

  .faculty-photo img {
    object-position: center 22%;
  }

  .faculty-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2px 12px;
  }

  .faculty-body h3 {
    grid-column: 1;
  }

  .faculty-subject {
    grid-column: 1;
  }

  .faculty-qual {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .faculty-link {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .testimonial-stage {
    min-height: 330px;
  }

  .testimonial blockquote {
    font-size: 18px;
  }

  .testimonial-person {
    flex-wrap: wrap;
  }

  .testimonial-person .stars {
    width: 100%;
    margin-left: 56px;
    margin-top: -8px;
  }

  .notice-item {
    grid-template-columns: 58px 1fr;
    gap: 12px;
  }

  .notice-arrow {
    display: none;
  }

  .notice-date {
    padding-right: 12px;
  }

  .cta-contact {
    min-width: 0;
    padding: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 44px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-hero {
    padding-top: 34px;
  }

  .page-title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .page-lede {
    font-size: 15px;
  }

  .page-fact {
    gap: 16px;
  }

  .page-fact div + div {
    padding-left: 16px;
  }

  .page-fact div strong {
    font-size: 24px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .catalog-toolbar .search-field {
    grid-column: 1 !important;
    border-top: 1px solid var(--line);
  }

  .catalog-toolbar .search-field:first-child {
    border-top: 0;
  }

  .catalog-toolbar .btn {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .catalog-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .course-detail-hero {
    padding-top: 18px;
  }

  .course-detail-banner {
    border-radius: var(--radius-lg);
  }

  .course-banner-copy {
    padding: 24px 20px 26px;
  }

  .course-banner-copy h1 {
    font-size: 30px;
  }

  .course-banner-media {
    min-height: 220px;
  }

  .detail-section {
    padding-block: 36px 56px;
  }

  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .instructor-box {
    flex-direction: column;
  }

  .admission-steps {
    margin-top: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }

  .value-grid,
  .value-grid--four {
    grid-template-columns: 1fr;
  }

  .timeline {
    margin-top: 24px;
  }

  .schedule-row {
    grid-template-columns: 80px 1fr;
    gap: 8px 14px;
    padding: 15px 2px;
  }

  .schedule-mode {
    grid-column: 2;
  }

  .schedule-link {
    grid-column: 2;
    justify-self: start;
  }

  .result-lookup {
    flex-direction: column;
  }

  .result-lookup .btn {
    width: 100%;
  }

  .result-sheet-head {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .result-sheet-head .result-label {
    text-align: left;
  }

  .result-student {
    padding: 16px 20px;
  }

  .result-table th,
  .result-table td {
    padding: 10px 16px;
    white-space: nowrap;
  }

  .result-total {
    grid-template-columns: 1fr;
  }

  .result-total div {
    padding: 12px 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .result-total div:first-child {
    border-top: 0;
  }

  .result-foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px;
  }

  .map-frame iframe {
    height: 240px;
  }

  .portal-aside-content h2 {
    font-size: 36px;
  }

  .portal-login-aside {
    min-height: 360px;
  }

  .portal-aside-foot {
    display: none;
  }

  .portal-welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .portal-kpi {
    padding: 15px;
  }

  .portal-kpi strong {
    font-size: 24px;
  }

  .portal-cards {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .portal-table th,
  .portal-table td {
    padding: 11px 16px;
    white-space: nowrap;
  }

  .demo-accounts {
    grid-template-columns: 1fr 1fr;
  }

  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .header-actions .btn {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    align-items: flex-start;
  }

  .hero-stage {
    min-height: 340px;
  }

  .class-card {
    width: 168px;
    top: 22px;
  }

  .progress-card {
    width: 158px;
    bottom: 26px;
  }

  .stamp {
    display: none;
  }

  .topbar-links .topbar-phone {
    font-size: 11px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .faculty-body {
    display: block;
  }

  .faculty-link {
    margin-top: 8px;
  }

  .portal-kpis {
    grid-template-columns: 1fr;
  }

  .demo-accounts {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Motion preferences + print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .page-hero,
  .result-lookup,
  .result-lookup-meta,
  .result-hint,
  .result-note,
  .result-foot .btn,
  .toast-stack {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .result-sheet {
    box-shadow: none;
    border: 1px solid #999;
    margin: 0;
  }

  .result-sheet-head {
    background: #123f35 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section,
  .catalog-section {
    padding: 0;
  }
}
