/* ==========================================================================
   FW LEARNING — OCEAN SKY PREMIUM LIGHT THEME & FULL RESPONSIVE STYLESHEET
   Unified, conflict-free stylesheet with zero extra whitespace or overflow.
   ========================================================================== */

:root {
  --os-sky: #30B0F0;
  --os-cyan: #40D0F0;
  --os-aqua: #50E0F0;
  --os-gold: #F0C050;
  --os-ocean: #168BCB;
  --os-ocean-deep: #087DBB;
  --os-charcoal: #202020;
  --os-bg: #F5F9FC;
  --os-border: #DCECF5;
  --os-muted: #526170;

  --ink: #202020;
  --muted: #526170;
  --bg: #F5F9FC;
  --page-bg: #F5F9FC;
  --panel: #FFFFFF;
  --panel2: #F1FBFF;
  --surface: #FFFFFF;
  --line: #DCECF5;
  --line-strong: #BFEAF8;

  --brand-deep: #087DBB;
  --brand-primary: #30B0F0;
  --brand-soft: #B8E7FA;
  --brand-pale: #E5F5FD;
  --brand-mist: #F1FBFF;

  --cyan: #40D0F0;
  --blue: #30B0F0;
  --violet: #168BCB;
  --pink: #50E0F0;
  --gold: #F0C050;
  --sky: #30B0F0;
  --mint: #50E0F0;

  --radius: 20px;
  --shadow: 0 8px 26px rgba(22, 139, 203, 0.07);
  --shadow-strong: 0 16px 38px rgba(22, 139, 203, 0.13);
  --font: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', Arial, sans-serif;
  --heading: 'Sora', 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--os-bg);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body,
body.public-body,
body.portal-body,
body.dark-mode,
body.dark-mode.public-body,
body.dark-mode.portal-body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--os-bg);
  color: var(--os-charcoal);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.10;
  background-image: radial-gradient(rgba(48, 176, 240, 0.55) 0.8px, transparent 0.8px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

img,
svg,
video,
iframe,
canvas {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--os-aqua);
  color: var(--os-charcoal);
}

:focus-visible {
  outline: 3px solid var(--os-sky);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: min(1180px, calc(100% - 32px));
  max-width: 100%;
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
  width: 100%;
}

.ambient {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.10;
  z-index: 0;
}

.ambient-one {
  top: -80px;
  left: -80px;
  background: var(--os-sky);
}

.ambient-two {
  bottom: -80px;
  right: -80px;
  background: var(--os-gold);
}

.science-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.public-body > :not(.science-backdrop):not(.ambient) {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  color: var(--os-charcoal);
  font-weight: 700;
  margin-top: 0;
  overflow-wrap: break-word;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--os-ocean);
  margin: 0 0 10px;
}

.gradient-text {
  background: linear-gradient(105deg, #087DBB 0%, #168BCB 38%, #30B0F0 72%, #F0C050 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-link {
  color: var(--os-ocean);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.text-link:hover {
  color: var(--os-ocean-deep);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 19px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.25;
  background: linear-gradient(110deg, var(--os-ocean), var(--os-sky));
  box-shadow: 0 7px 18px rgba(22, 139, 203, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
a.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(110deg, var(--os-ocean-deep), var(--os-ocean));
  box-shadow: 0 10px 24px rgba(22, 139, 203, 0.26);
  color: #FFFFFF;
}

.btn:active {
  transform: translateY(0);
}

.btn-small {
  padding: 8px 13px;
  font-size: 12px;
  border-radius: 10px;
}

.btn-wide {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
}

.btn-ghost,
button.btn-ghost,
a.btn-ghost {
  background: #FFFFFF;
  border: 1px solid #B9DFEF;
  color: var(--os-ocean);
  box-shadow: none;
}

.btn-ghost:hover,
a.btn-ghost:hover {
  background: var(--brand-mist);
  border-color: var(--os-sky);
  color: var(--os-ocean-deep);
  box-shadow: none;
}

.btn-secondary,
a.btn-secondary {
  background: linear-gradient(115deg, var(--os-cyan), var(--os-sky));
  color: #12313F;
  box-shadow: 0 6px 16px rgba(48, 176, 240, 0.2);
}

.btn-gold,
a.btn-gold {
  background: var(--os-gold);
  color: var(--os-charcoal);
  box-shadow: none;
}

.btn-danger,
button.btn-danger,
a.btn-danger {
  background: #FFF1F3;
  border: 1px solid #FECDD3;
  color: #BE123C;
  box-shadow: none;
}

.btn-danger:hover {
  background: #FFE4E8;
  color: #9F1239;
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   PUBLIC HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--os-border);
  box-shadow: 0 6px 22px rgba(22, 139, 203, 0.065);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 800;
  color: var(--os-ocean);
  letter-spacing: -0.4px;
  flex-shrink: 0;
  min-width: 0;
}

.brand strong {
  color: var(--os-ocean);
}

.brand > span:last-child {
  line-height: 1.2;
}

.brand small {
  display: block;
  font: 600 10px var(--font);
  letter-spacing: 0.7px;
  color: var(--os-muted);
  margin-top: 2px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--os-cyan), var(--os-gold));
  color: var(--os-charcoal);
  font-weight: 900;
  font-size: 19px;
}

.brand img,
.brand-logo-only img {
  display: block;
  width: auto;
  height: auto;
  max-width: 205px;
  max-height: 54px;
  object-fit: contain;
}

.brand-logo-only > span {
  display: none !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.25vw, 18px);
  color: #344B5B;
  font-size: 13.5px;
  font-weight: 600;
  min-width: 0;
}

.main-nav > a:not(.btn) {
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  color: #344B5B;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--os-ocean);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav > a:not(.btn):hover {
  color: var(--os-ocean-deep);
}

.main-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-user {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--os-ocean);
  font-weight: 700;
}

/* Public Profile Dropdown */
.nav-profile-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 13px 5px 6px;
  border: 1px solid #D9EDF7;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--os-charcoal);
  font: 700 12.5px var(--heading);
  box-shadow: 0 4px 14px rgba(22, 139, 203, 0.08);
}

.nav-profile-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--os-ocean), var(--os-cyan));
  font-size: 12px;
  font-weight: 800;
}

.nav-profile-chevron {
  color: var(--os-ocean);
  font-size: 15px;
  line-height: 1;
}

.nav-profile-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 1100;
  min-width: 195px;
  max-width: calc(100vw - 24px);
  padding: 7px;
  border: 1px solid var(--os-border);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 18px 42px rgba(32, 32, 32, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-profile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #334654;
  font-size: 12.5px;
  font-weight: 700;
}

.nav-profile-menu a span {
  width: 20px;
  color: var(--os-ocean);
  text-align: center;
}

.nav-profile-menu a:hover {
  background: #EAF7FD;
  color: var(--os-ocean-deep);
}

.nav-profile-dropdown:hover .nav-profile-menu,
.nav-profile-dropdown:focus-within .nav-profile-menu,
.nav-profile-dropdown.open .nav-profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--os-border);
  border-radius: 11px;
  padding: 8px 9px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--os-ocean);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   HERO & 3D SCIENCE SCENE (PROPORTIONAL, NO EXTRA WHITESPACE)
   ========================================================================== */

.hero {
  position: relative;
  padding: 54px 0 48px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--os-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero h1,
.page-heading h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 16px;
  color: var(--os-charcoal);
}

.hero-copy {
  font-size: 15.5px;
  color: var(--os-muted);
  max-width: 550px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--os-border);
}

.meta-item strong {
  display: block;
  font: 800 22px var(--heading);
  color: var(--os-ocean);
}

.meta-item span {
  font-size: 12px;
  color: var(--os-muted);
}

/* 3D Orbital Illustration */
.science-scene {
  min-height: 320px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1000px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 50%, rgba(80, 224, 240, 0.20) 0%, rgba(48, 176, 240, 0.08) 44%, transparent 72%);
}

.scene-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  max-width: 75vw;
  max-height: 75vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 208, 240, 0.34), transparent 68%);
  filter: blur(18px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  animation: floatSmooth 6.5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.orb-main {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 25%, #FFFFFF 0%, #A8F0FA 18%, #50E0F0 42%, #30B0F0 72%, #168BCB 100%);
  box-shadow:
    inset -18px -20px 32px rgba(22, 139, 203, 0.25),
    inset 9px 9px 20px rgba(255, 255, 255, 0.85),
    0 22px 46px rgba(22, 139, 203, 0.18);
}

.orbit {
  position: absolute;
  width: 280px;
  height: 110px;
  max-width: 82vw;
  border: 1.5px dashed rgba(48, 176, 240, 0.42);
  border-radius: 50%;
  transform: rotate(-28deg) rotateX(62deg);
  animation: orbitSpin 16s linear infinite;
}

.orbit-two {
  width: 310px;
  height: 136px;
  max-width: 88vw;
  border-style: solid;
  border-color: rgba(240, 192, 80, 0.58);
  animation: orbitSpinReverse 22s linear infinite;
}

.orbit-three {
  width: 245px;
  height: 86px;
  max-width: 76vw;
  border-color: rgba(64, 208, 240, 0.48);
  animation: orbitSpin 19s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--os-gold);
  box-shadow: 0 0 0 6px rgba(240, 192, 80, 0.22);
  top: 32%;
  left: 16%;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  max-width: calc(100% - 16px);
  border: 1px solid #D9F1FA;
  border-radius: 15px;
  background: #FFFFFF;
  box-shadow: 0 12px 26px rgba(22, 139, 203, 0.11);
  font-size: 12px;
  color: var(--os-charcoal);
  animation: floatSmooth 5.8s ease-in-out infinite;
}

.float-chip b {
  display: block;
  font-size: 12.5px;
  color: var(--os-charcoal);
}

.float-chip small {
  color: var(--os-muted);
}

.chip-one {
  left: 8px;
  top: 28px;
}

.chip-two {
  right: 8px;
  bottom: 32px;
  animation-delay: -2.4s;
}

.chip-glyph {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--os-ocean);
  background: var(--brand-pale);
}

.chip-two .chip-glyph {
  color: var(--os-charcoal);
  background: #FFF7E2;
}

/* ==========================================================================
   PROMO SLIDER
   ========================================================================== */

.promo-slider-wrap {
  padding-top: 20px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.promo-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  max-width: 100%;
}

.promo-slider::-webkit-scrollbar {
  display: none;
}

.promo-slide {
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 165px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--os-ocean);
  border-radius: var(--radius);
  padding: 26px 32px;
  background: linear-gradient(115deg, var(--os-ocean-deep), var(--os-ocean), var(--os-sky));
  color: #FFFFFF;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.promo-slide::before {
  content: none !important;
}

.promo-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: var(--slide-opacity, 0.82);
  z-index: 0;
  pointer-events: none;
}

.promo-slide.image_only {
  padding: 0;
  min-height: 230px;
  background: #FFFFFF;
  border-color: var(--os-border);
}

.promo-slide.image_only .promo-slide-image {
  opacity: var(--slide-opacity, 1);
}

.promo-slide.image_only .promo-content {
  padding: 18px;
}

.promo-content {
  position: relative;
  z-index: 1;
  max-width: min(680px, 100%);
  min-width: 0;
}

.promo-slide.image_text {
  background: #FFFFFF;
  border-color: var(--os-border);
}

.promo-slide.image_text .promo-content {
  background: #FFFFFF;
  color: var(--os-charcoal);
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(22, 139, 203, 0.12);
}

.promo-content h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  margin: 0 0 8px;
  color: inherit;
}

.promo-content p {
  font-size: 13.5px;
  margin: 0 0 14px;
  color: inherit;
  opacity: 0.92;
}

.promo-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

/* ==========================================================================
   SECTIONS, GRIDS & CARDS (CLEAN SPACING, NO BLOAT)
   ========================================================================== */

.section {
  padding: 52px 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.section-alt {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1FBFF 100%);
  border-block: 1px solid #E4F6FC;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 26px;
}

.section-head > * {
  min-width: 0;
}

.section-head h2,
.section h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.9px;
  margin: 0;
  color: var(--os-charcoal);
}

.section-head p {
  color: var(--os-muted);
  margin: 6px 0 0;
  max-width: 580px;
  font-size: 14.5px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.form-grid > *,
.kpi-grid > *,
.quick-link-grid > *,
.learning-loop-grid > *,
.course-journey-grid > *,
.two-col > *,
.dashboard-chart-grid > *,
.detail-layout > *,
.checkout-layout > *,
.footer-grid > * {
  min-width: 0;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.course-card,
.panel,
.feature-card,
.stat-card,
.table-wrap,
.form-card,
.kpi,
.empty-state,
.quick-link-card,
.loop-card,
.journey-card,
.lesson-resource,
.import-question-card,
.book-resource-list,
.dashboard-chart-card,
.receipt-sheet,
.image-feature {
  border: 1px solid var(--os-border);
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--os-charcoal);
  max-width: 100%;
}

.course-card,
.feature-card,
.quick-link-card,
.loop-card,
.journey-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.course-card:hover,
.feature-card:hover,
.quick-link-card:hover,
.loop-card:hover,
.journey-card:hover {
  transform: translateY(-4px);
  border-color: var(--os-sky);
  box-shadow: var(--shadow-strong);
}

/* Course Cards */
.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-thumb {
  height: 195px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #087DBB, #30B0F0, #40D0F0);
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb img {
  transform: scale(1.04);
}

.thumb-orbit {
  font-size: 44px;
  color: #FFFFFF;
  z-index: 1;
}

.thumb-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--os-ocean-deep);
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 9px;
  border-radius: 7px;
  font-weight: 800;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--os-charcoal);
  color: #FFFFFF;
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 800;
}

.course-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.course-card-body .eyebrow {
  font-size: 10px;
  margin-bottom: 6px;
}

.course-card h3 {
  font-size: 17.5px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.course-card h3 a:hover {
  color: var(--os-ocean);
}

.course-card p:not(.eyebrow) {
  font-size: 13px;
  color: var(--os-muted);
  margin: 0;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #E4F6FC;
  padding-top: 13px;
  margin-top: 14px;
  font-size: 13.5px;
}

.card-foot strong {
  color: var(--os-charcoal);
  font-size: 15px;
}

/* Feature & Profile Cards */
.feature-card {
  padding: 22px;
}

.feature-symbol {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-pale);
  border: 1px solid #CDEAF7;
  color: var(--os-ocean);
  font-size: 21px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--os-ocean);
}

.feature-card p {
  font-size: 13px;
  color: var(--os-muted);
  margin: 0;
}

.profile-card {
  position: relative;
  overflow: hidden;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--os-ocean), var(--os-sky));
  color: #FFFFFF;
  font: 800 20px var(--heading);
  margin-bottom: 14px;
}

.topper-avatar {
  background: linear-gradient(135deg, var(--os-gold), var(--os-sky));
  color: var(--os-charcoal);
}

.image-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.image-feature {
  overflow: hidden;
}

.image-feature img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.image-feature-body {
  padding: 18px;
}

/* Stats Band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  font: 800 28px var(--heading);
  color: var(--os-ocean);
  line-height: 1.15;
}

.stat-card span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--os-muted);
}

/* ==========================================================================
   SUBJECT LAB, LEARNING LOOP & COURSE FAQ
   ========================================================================== */

.learning-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.loop-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.loop-card > span,
.journey-card > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-pale);
  color: var(--os-ocean);
  font-size: 12px;
  font-weight: 800;
}

.loop-symbol {
  font-size: 24px;
  color: var(--os-ocean);
  margin: 14px 0 8px;
}

.loop-card h3,
.journey-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.loop-card p,
.journey-card p {
  font-size: 13px;
  color: var(--os-muted);
  margin: 0;
}

.course-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.journey-card {
  padding: 20px;
}

.journey-card h3 {
  margin-top: 12px;
}

.course-outcomes ul {
  padding-left: 19px;
  color: var(--os-muted);
  font-size: 13px;
  margin: 0;
}

.course-outcomes li {
  padding: 4px 0;
}

.course-faq {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  margin-top: 24px;
  align-items: start;
}

.course-faq > div {
  grid-row: span 3;
  padding: 10px 6px;
}

.course-faq h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.course-faq details {
  padding: 16px 18px;
  border: 1px solid var(--os-border);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--os-charcoal);
}

.course-faq summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.course-faq details p {
  font-size: 12.5px;
  color: var(--os-muted);
  margin: 10px 0 0;
}

.subject-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 30px;
  padding: 32px;
  border: 1px solid var(--os-border);
  border-radius: 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F1FBFF 100%);
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow: hidden;
}

.subject-lab > * {
  min-width: 0;
}

.subject-lab h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.subject-lab-copy > p:not(.eyebrow) {
  color: var(--os-muted);
  font-size: 14px;
  max-width: 540px;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.subject-tags span {
  padding: 6px 12px;
  border-radius: 99px;
  background: #FFFFFF;
  border: 1px solid var(--os-border);
  color: var(--os-ocean);
  font-size: 11px;
  font-weight: 700;
}

.subject-orbit-board {
  position: relative;
  min-height: 280px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 800px;
  isolation: isolate;
}

.orbit-ring {
  position: absolute;
  width: 240px;
  height: 125px;
  max-width: 80vw;
  border: 1.5px solid rgba(48, 176, 240, 0.45);
  border-radius: 50%;
  animation: orbitSpin 14s linear infinite;
}

.ring-b {
  width: 275px;
  height: 150px;
  max-width: 86vw;
  border-color: rgba(240, 192, 80, 0.6);
  animation: orbitSpinReverse 18s linear infinite;
}

.subject-orbit-board .orbit-core {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--os-sky), var(--os-ocean));
  color: #FFFFFF;
  font: 800 21px var(--heading);
  box-shadow: 0 18px 36px rgba(22, 139, 203, 0.25);
  animation: floatSmooth 6s ease-in-out infinite;
}

.science-token {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 38px;
  padding: 0 11px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--os-border);
  box-shadow: var(--shadow);
  color: var(--os-ocean);
  font: 800 11.5px var(--heading);
  animation: floatSmooth 5s ease-in-out infinite;
}

.token-a { top: 18px; left: 16%; }
.token-b { top: 38px; right: 12%; animation-delay: -1.3s; }
.token-c { bottom: 36px; left: 10%; animation-delay: -2.2s; }
.token-d { bottom: 16px; right: 16%; animation-delay: -0.7s; }
.token-e { top: 48%; left: 2%; animation-delay: -1.8s; }
.token-f { top: 47%; right: 2%; animation-delay: -2.7s; }

/* ==========================================================================
   FORMS, INPUTS & APPLICATIONS
   ========================================================================== */

.page-shell {
  padding: 38px 0 60px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.page-heading {
  margin-bottom: 24px;
  max-width: 760px;
}

.page-heading h1 {
  font-size: clamp(26px, 3.8vw, 42px);
  letter-spacing: -1.3px;
  margin-bottom: 10px;
}

.page-heading > p:last-child {
  color: var(--os-muted);
  max-width: 680px;
  margin: 0;
}

.panel {
  padding: 24px;
}

.form-card {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 28px;
}

.registration-card {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 40px);
}

.form-card h1 {
  font-size: clamp(23px, 3vw, 29px);
  margin: 0 0 8px;
}

.form-card > p {
  color: var(--os-muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  margin-bottom: 15px;
  min-width: 0;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #344956;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea,
.search-box input,
.search-box select {
  width: 100%;
  background: #FCFEFF;
  border: 1px solid #DDEAF0;
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--os-charcoal);
  font-size: 13.5px;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input[type="color"] {
  height: 44px;
  padding: 4px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #647482;
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-box input:focus {
  outline: none;
  border-color: var(--os-sky);
  box-shadow: 0 0 0 3px rgba(48, 176, 240, 0.15);
}

.field small,
.help {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--os-muted);
  line-height: 1.5;
}

.password-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.password-field input {
  flex: 1;
  min-width: 0;
}

.password-toggle {
  border: 1px solid #CDEAF6;
  border-radius: 10px;
  background: var(--brand-pale);
  color: var(--os-ocean);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 13px;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.search-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 560px;
  width: 100%;
  margin: 0 0 22px;
}

.search-box input {
  flex: 1;
  min-width: 180px;
}

/* Flash & Notice Banners */
.flash-wrap {
  padding-top: 12px;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #BFEAF8;
  font-size: 13.5px;
  font-weight: 600;
  background: #FFFFFF;
  color: var(--os-charcoal);
  overflow-wrap: break-word;
}

.flash.success {
  border-color: var(--os-sky);
  color: var(--os-ocean-deep);
  background: #F1FBFF;
}

.flash.error {
  border-color: #FECDD3;
  background: #FFF1F2;
  color: #9F1239;
}

.notice-box {
  padding: 14px 16px;
  border-radius: 13px;
  background: #EAF7FC;
  border: 1px solid #CDEAF6;
  font-size: 13px;
  color: #27536A;
  overflow-wrap: break-word;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  border: 1.5px dashed #BFEAF8;
  background: #FFFFFF;
}

.empty-orb {
  font-size: 26px;
  color: var(--os-ocean);
}

.empty-state h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--os-muted);
  font-size: 13.5px;
}

/* FW Academic Application & Onboarding */
.fw-access-notice {
  padding: clamp(20px, 4vw, 32px);
  margin: 16px 0 22px;
  background: linear-gradient(125deg, #EAF9FF 0%, #F1FBFF 55%, #FFF8E8 100%);
  border: 1px solid #BAE6FD;
  border-radius: var(--radius);
  max-width: 100%;
}

.fw-access-notice h2 {
  margin: 6px 0 10px;
  font-size: clamp(21px, 3vw, 28px);
}

.fw-access-notice p {
  max-width: 760px;
  color: var(--os-muted);
  margin: 0 0 16px;
}

.fw-access-kicker {
  color: var(--os-ocean);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.fw-catalog-hint,
.fw-filter-summary {
  padding: 12px 16px;
  margin: 12px 0 16px;
  background: #FFFFFF;
  border: 1px solid var(--os-border);
  border-left: 4px solid var(--os-sky);
  border-radius: 12px;
  font-size: 13.5px;
  max-width: 100%;
}

.fw-filter-summary a {
  color: var(--os-ocean);
  font-weight: 800;
  margin-left: 8px;
}

.fw-application-form {
  display: grid;
  gap: 16px;
  max-width: 100%;
}

.fw-choice-section {
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid var(--os-border);
  border-radius: 16px;
  max-width: 100%;
}

.fw-choice-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.fw-choice-heading h2 {
  margin: 0;
  font-size: 18px;
}

.fw-choice-heading p {
  margin: 3px 0 0;
  color: var(--os-muted);
  font-size: 12.5px;
}

.fw-step {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 7px;
  flex-shrink: 0;
  border-radius: 11px;
  color: var(--os-ocean-deep);
  background: var(--brand-pale);
  font: 800 13px var(--heading);
}

.fw-step-orange {
  color: #9A3412;
  background: #FFEDD5;
}

.fw-step-purple {
  color: var(--os-ocean-deep);
  background: #E0F2FE;
}

.fw-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fw-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--os-border);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.fw-choice:hover {
  border-color: var(--os-sky);
  background: var(--brand-mist);
}

.fw-choice input {
  accent-color: var(--os-ocean);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.fw-choice span {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: break-word;
}

.fw-application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fw-course-support-grid,
.fw-payment-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fw-payment-strip > div {
  display: grid;
  gap: 4px;
  padding: 15px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--os-border);
  border-radius: 13px;
}

.fw-payment-strip strong {
  color: var(--os-ocean);
}

.fw-payment-strip span {
  color: var(--os-muted);
  font-size: 12.5px;
}

/* ==========================================================================
   TABLES & BADGES
   ========================================================================== */

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 13px;
  background: #FFFFFF;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid #E4F6FC;
  vertical-align: middle;
}

.data-table th {
  color: #174C69;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #EAF6FC;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #F5FBFE;
}

.data-table input:not([type="checkbox"]):not([type="radio"]),
.data-table select,
.data-table textarea {
  background: #FFFFFF;
  color: var(--os-charcoal);
  border: 1px solid #DDEAF0;
  border-radius: 8px;
  padding: 7px 9px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-pale);
  color: var(--os-ocean-deep);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.pending {
  background: #FFF5DC;
  color: #9A690A;
}

.badge.rejected,
.badge.absent {
  background: #FFF0F2;
  color: #C62D4D;
}

.badge.success {
  background: #E8F7F0;
  color: #087A55;
}

.badge.draft {
  background: #EAF6FC;
  color: var(--os-ocean);
}

/* ==========================================================================
   ADMIN, STUDENT & INSTRUCTOR PORTALS (ZERO SIDEBAR GAP)
   ========================================================================== */

.portal-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  background: var(--os-bg);
}

.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  background: linear-gradient(180deg, #087DBB 0%, #168BCB 56%, #126FA5 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  box-shadow: 8px 0 28px rgba(22, 139, 203, 0.12);
  overflow: hidden;
  transition: transform 0.24s ease;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 16px;
  color: #FFFFFF;
  min-height: 64px;
}

.portal-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 176px;
  max-height: 54px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 11px;
  padding: 5px 8px;
  margin: 0 auto;
}

.portal-brand:has(img) > span {
  display: none !important;
}

.portal-brand:has(img) {
  justify-content: center;
}

.portal-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--os-sky), var(--os-cyan));
  color: #FFFFFF;
  font: 800 20px var(--heading);
}

.portal-brand strong {
  display: block;
  font: 800 17px var(--heading);
  color: #FFFFFF;
  line-height: 1.2;
}

.portal-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
}

.portal-nav-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.portal-nav-label {
  margin: 12px 10px 5px;
  color: #D8F5FF;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 11px;
  color: #F1FBFF;
  font-size: 13px;
  font-weight: 600;
  margin: 2px 0;
  transition: background 0.16s ease, color 0.16s ease;
}

.portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.portal-nav-link.active {
  background: #FFFFFF;
  color: var(--os-ocean-deep);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 70, 105, 0.16);
}

.portal-nav-icon {
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  font-size: 15px;
}

.portal-nav-link.active .portal-nav-icon {
  background: var(--brand-pale);
  color: var(--os-ocean-deep);
}

.portal-sidebar-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}

.portal-credit {
  padding: 10px 10px 2px;
  color: #DDF6FF;
  font-size: 9.5px;
  line-height: 1.45;
}

.portal-main {
  margin-left: 264px;
  width: calc(100% - 264px);
  max-width: calc(100% - 264px);
  min-width: 0;
  overflow-x: clip;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: var(--os-bg);
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--os-border);
  box-shadow: 0 4px 16px rgba(22, 139, 203, 0.045);
}

.portal-breadcrumb {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.portal-breadcrumb span {
  color: #647482;
  font-size: 11px;
}

.portal-breadcrumb strong {
  font: 800 18.5px var(--heading);
  color: var(--os-charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.portal-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--os-bg);
  border: 1px solid #E0EDF4;
  border-radius: 999px;
  padding: 0 14px;
  height: 40px;
  width: min(260px, 25vw);
  color: var(--os-ocean);
}

.portal-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  color: var(--os-charcoal);
  font-size: 13px;
}

.portal-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--os-border);
  color: var(--os-ocean);
  font-size: 17px;
}

.portal-icon-button i {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--os-gold);
  border: 1.5px solid #FFFFFF;
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 4px;
}

.portal-user strong {
  display: block;
  font-size: 12.5px;
  color: var(--os-charcoal);
}

.portal-user small {
  display: block;
  font-size: 11px;
  color: #647482;
}

.portal-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--os-ocean), var(--os-cyan));
  color: #FFFFFF;
  font: 800 15px var(--heading);
}

.portal-menu-toggle {
  display: none;
  border: 0;
  background: var(--brand-pale);
  color: var(--os-ocean-deep);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 18px;
  flex-shrink: 0;
}

.portal-content {
  padding: 24px clamp(16px, 3vw, 32px) 40px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  flex: 1;
  background: var(--os-bg);
}

.portal-content .container,
.portal-content .container.narrow,
.portal-content > .narrow {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.portal-content > .page-shell {
  padding: 0;
  min-height: unset;
}

/* Portal KPIs, Quick Links & Charts */
.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dashboard-top h1 {
  font-size: clamp(22px, 2.8vw, 27px);
  margin: 0;
}

.dashboard-top p {
  font-size: 13.5px;
  color: var(--os-muted);
  margin: 3px 0 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.kpi {
  padding: 18px;
}

.kpi-link {
  display: block;
  cursor: pointer;
}

.kpi-link:hover {
  transform: translateY(-2px);
  border-color: var(--os-sky);
}

.kpi span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--os-muted);
}

.kpi strong {
  display: block;
  font: 800 25px var(--heading);
  margin-top: 5px;
  color: var(--os-ocean);
}

.kpi small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--os-muted);
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
}

.quick-link-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  background: var(--brand-pale);
  color: var(--os-ocean);
  font-weight: 800;
  font-size: 17px;
}

.quick-link-card strong {
  display: block;
  font-size: 13.5px;
}

.quick-link-card small {
  display: block;
  color: var(--os-muted);
  font-size: 11.5px;
  margin-top: 2px;
}

.two-col,
.dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.panel-head h2 {
  margin: 0;
  font-size: 16.5px;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 100%;
}

.inline-form select,
.inline-form input {
  padding: 7px 10px;
  background: #FFFFFF;
  color: var(--os-charcoal);
  border: 1px solid #BFEAF8;
  border-radius: 9px;
  font-size: 12px;
  min-width: 0;
}

.metric-bars {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.metric-bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 105px) minmax(40px, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--os-muted);
}

.metric-bar-row strong {
  color: var(--os-charcoal);
}

.metric-track {
  height: 9px;
  border-radius: 99px;
  background: var(--brand-pale);
  overflow: hidden;
}

.metric-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--os-ocean), var(--os-cyan));
}

/* Portal Auth Pages */
.portal-auth-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding: 24px 16px 48px;
  background:
    radial-gradient(circle at 8% 6%, rgba(64, 208, 240, 0.14), transparent 33%),
    radial-gradient(circle at 95% 88%, rgba(240, 192, 80, 0.12), transparent 27%),
    #FFFFFF;
}

.portal-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  max-width: 340px;
  margin: 0 auto 20px;
}

.portal-auth-brand strong {
  color: var(--os-ocean);
}

.portal-auth-brand small,
.portal-auth-note {
  text-align: center;
  color: var(--os-muted);
  font-size: 12.5px;
  margin-bottom: 16px;
}

.portal-auth-shell .form-card {
  max-width: 460px;
  width: 100%;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-strong);
}

.portal-auth-shell .btn {
  width: 100%;
  margin-top: 8px;
}

/* ==========================================================================
   COURSE DETAIL, PLAYER, ASSESSMENT, CHECKOUT & MESSAGING
   ========================================================================== */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.6fr);
  gap: 20px;
}

.detail-hero {
  padding: clamp(22px, 4vw, 30px);
  border-radius: 22px;
  background: linear-gradient(125deg, var(--os-ocean), var(--os-sky), var(--os-cyan));
  color: #FFFFFF;
}

.detail-hero h1,
.detail-hero p,
.detail-hero .eyebrow {
  color: #FFFFFF;
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid #E4F6FC;
  flex-wrap: wrap;
}

.lesson-row:last-child {
  border-bottom: 0;
}

.lesson-num {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-pale);
  color: var(--os-ocean);
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.lesson-row h4 {
  margin: 0;
  font-size: 14px;
}

.lesson-row p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--os-muted);
}

.lesson-row .push {
  margin-left: auto;
}

/* Lesson Resources & Attachments */
.lesson-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.lesson-resource {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
  border-radius: 15px;
}

.resource-kind,
.resource-count {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--brand-pale);
  color: var(--os-ocean);
  font-size: 10.5px;
  font-weight: 800;
}

.lesson-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lesson-attachment-list > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #CDEAF7;
  border-radius: 9px;
  background: #F1FBFF;
  font-size: 11px;
  color: var(--os-charcoal);
}

.mini-remove {
  border: 0;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  background: #FFE4E5;
  color: #BD243E;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.book-resource-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px 16px;
}

/* Course Video Player */
.course-player-wrap {
  max-width: 1380px;
  width: 100%;
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: #647482;
  font-size: 12.5px;
}

.player-topline a {
  color: var(--os-ocean);
  font-weight: 700;
}

.course-player-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.course-player-grid > * {
  min-width: 0;
}

.course-outline {
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
}

.outline-heading {
  padding: 18px;
  border-bottom: 1px solid #E5EEF3;
}

.outline-heading h2 {
  font-size: 16.5px;
  margin: 0 0 4px;
}

.outline-progress {
  height: 7px;
  background: #E8F0F4;
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 6px;
}

.outline-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--os-ocean), var(--os-cyan));
  border-radius: 99px;
}

.outline-list {
  overflow-y: auto;
  padding: 8px;
}

.outline-lesson {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 10px;
  border-radius: 11px;
  color: #354957;
}

.outline-lesson:hover {
  background: #F2FAFD;
}

.outline-lesson.active {
  background: #E8F6FC;
  color: var(--os-ocean-deep);
}

.outline-index {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #EDF4F7;
  font-size: 11px;
  font-weight: 800;
}

.outline-lesson.active .outline-index {
  background: var(--os-ocean);
  color: #FFFFFF;
}

.course-video-shell,
.video-frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.course-video-shell iframe,
.course-video-shell video,
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
}

.player-actions,
.player-prev-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Assessment / Quiz Player */
.test-player-wrap {
  max-width: 1200px;
  width: 100%;
}

.test-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.test-player-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-clock {
  min-width: 108px;
  padding: 9px 13px;
  border: 1px solid #CDE8F4;
  background: #EFF9FD;
  border-radius: 13px;
  text-align: center;
  color: var(--os-ocean-deep);
}

.test-clock small {
  display: block;
  font-size: 9px;
  font-weight: 800;
}

.test-clock strong {
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.test-player-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 15px;
  background: #EAF7FC;
  border: 1px solid #D5EDF7;
  border-radius: 12px;
  color: #27536A;
  font-size: 12.5px;
  margin-bottom: 16px;
}

.test-player-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.test-player-layout > * {
  min-width: 0;
}

.test-question-nav {
  position: sticky;
  top: 88px;
  padding: 16px;
}

.test-question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.test-jump {
  border: 1px solid #DDEAF0;
  background: #FFFFFF;
  color: var(--os-muted);
  border-radius: 9px;
  height: 35px;
  font-weight: 700;
}

.test-jump.answered {
  background: #E7F7EF;
  border-color: #B8E8D1;
  color: #087A55;
}

.test-question-card {
  margin-bottom: 14px;
  padding: 22px;
  scroll-margin-top: 90px;
}

.test-option,
.test-answer-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #E1EBF0;
  border-radius: 11px;
  background: #FFFFFF;
  cursor: pointer;
  color: #344956;
}

.test-option:hover,
.test-answer-option:hover,
.test-answer-option:has(input:checked) {
  border-color: var(--os-sky);
  background: #EFF9FD;
}

.test-option input,
.test-answer-option input {
  accent-color: var(--os-ocean);
  margin-top: 3px;
  flex-shrink: 0;
}

.option-letter {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  background: #EAF5FA;
  display: grid;
  place-items: center;
  color: var(--os-ocean);
  font-size: 11px;
  font-weight: 800;
}

.question-footer,
.test-submit-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.question-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #EDF2F5;
}

.question-image {
  display: block;
  max-width: min(100%, 640px);
  max-height: 360px;
  object-fit: contain;
  margin: 12px 0;
  border-radius: 14px;
  border: 1px solid var(--os-border);
}

/* Checkout, Receipts, Certificates & Threads */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  padding: clamp(18px, 3vw, 28px);
}

.checkout-product {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, #EAF6FC, #FFFFFF);
  border: 1px solid #D8EDF7;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #E7EFF4;
  font-size: 13px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.certificate-preview,
.id-card-preview {
  border: 1px solid #CDEAF7;
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #FFFFFF, #F1FBFF);
}

.certificate-print-sheet {
  min-height: 480px;
  border: 10px double var(--certificate-accent, var(--os-ocean));
  border-radius: 12px;
  padding: clamp(22px, 5vw, 48px);
  text-align: center;
  background: #FFFFFF;
  color: var(--os-charcoal);
  max-width: 100%;
}

.certificate-print-sheet h1,
.certificate-print-sheet .eyebrow {
  color: var(--os-ocean);
}

.certificate-logo {
  max-width: 130px;
  max-height: 70px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.certificate-signature {
  display: block;
  max-width: 160px;
  max-height: 60px;
  object-fit: contain;
  margin: 16px auto;
}

.id-card-print-sheet {
  max-width: 580px;
  width: 100%;
  margin: 24px auto;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 22px;
  background: linear-gradient(125deg, var(--os-ocean-deep), var(--os-ocean), var(--os-sky));
  color: #FFFFFF;
  text-align: center;
}

.receipt-sheet {
  padding: clamp(18px, 4vw, 28px);
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.receipt-stamp {
  padding: 12px 16px;
  border: 2px solid var(--os-ocean);
  border-radius: 12px;
  color: var(--os-ocean);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0;
}

.conversation-thread {
  padding: 14px 0;
  border-bottom: 1px solid #EAF0F4;
}

.thread-message {
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 11px;
  background: #F5F9FC;
}

.student-message {
  background: #F0F8FC;
  border: 1px solid #DDEFF7;
}

.staff-message {
  background: #FFF8E8;
  border: 1px solid #F6E8C4;
}

.thread-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 10px;
}

.thread-reply-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #DDE8EE;
  border-radius: 10px;
  padding: 9px;
  font-size: 12.5px;
}

/* ==========================================================================
   FOOTER & FLOATING CONTROLS
   ========================================================================== */

.site-footer {
  background: var(--os-charcoal);
  color: #FFFFFF;
  border-top: 4px solid var(--os-ocean);
  padding: 48px 0 22px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 12px;
}

.footer-brand img,
.footer-brand.brand-logo-only img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 60px;
  object-fit: contain;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--os-gold);
}

.site-footer p,
.site-footer a:not(.brand) {
  font-size: 13px;
  color: #D7E7EF;
  overflow-wrap: break-word;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 7px 0;
}

.site-footer a:hover {
  color: var(--os-cyan);
}

.footer-whatsapp-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 5px 0 4px !important;
}

.footer-whatsapp-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-list,
.social-icon-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.social-list a,
.social-icon-list .social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.social-list a:hover,
.social-icon-list .social-icon:hover {
  transform: translateY(-2px);
  background: var(--os-ocean);
  border-color: var(--os-sky);
  color: #FFFFFF;
}

.social-icon-list .social-icon svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid #3B454B;
  margin-top: 28px;
  padding-top: 16px;
  color: #D7E7EF;
  font-size: 11.5px;
}

/* Floating WhatsApp & Scroll-to-Top Buttons */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: #20C768;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(21, 157, 83, 0.30);
  transition: transform 0.2s ease;
}

.floating-contact:has(svg) {
  width: 56px;
  padding: 0;
}

.floating-contact svg {
  width: 36px;
  height: 36px;
}

.floating-contact:hover {
  transform: translateY(-3px);
  color: #FFFFFF;
}

.scroll-top {
  position: fixed;
  right: 25px;
  bottom: 86px;
  z-index: 1199;
  width: 44px;
  height: 44px;
  border: 1px solid var(--os-sky);
  border-radius: 50%;
  background: var(--os-sky);
  color: var(--os-charcoal);
  font-size: 19px;
  display: none;
  place-items: center;
  box-shadow: 0 8px 20px rgba(22, 139, 203, 0.22);
  transition: transform 0.2s ease;
}

.scroll-top.visible {
  display: grid;
}

.scroll-top svg {
  width: 21px;
  height: 21px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes floatSmooth {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(-28deg) rotateX(62deg) rotateZ(0deg);
  }
  to {
    transform: rotate(-28deg) rotateX(62deg) rotateZ(360deg);
  }
}

@keyframes orbitSpinReverse {
  from {
    transform: rotate(35deg) rotateX(64deg) rotateZ(360deg);
  }
  to {
    transform: rotate(35deg) rotateX(64deg) rotateZ(0deg);
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1140px) {
  .portal-sidebar {
    width: 236px;
  }
  .portal-main {
    margin-left: 236px;
    width: calc(100% - 236px);
    max-width: calc(100% - 236px);
  }
  .learning-loop-grid,
  .quick-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .portal-sidebar {
    width: min(285px, 86vw);
    transform: translateX(-105%);
    z-index: 120;
  }
  .portal-sidebar.open,
  .portal-sidebar.is-open {
    transform: translateX(0);
  }
  .portal-main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
  .portal-menu-toggle {
    display: inline-grid;
    place-items: center;
  }
  .portal-search,
  .portal-user > span:last-child {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col,
  .dashboard-chart-grid,
  .subject-lab,
  .detail-layout,
  .course-player-grid,
  .test-player-layout,
  .course-faq {
    grid-template-columns: 1fr;
  }
  .course-faq > div {
    grid-row: auto;
  }
  .course-outline,
  .test-question-nav {
    position: static;
    max-height: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 68px;
  }
  .brand img,
  .brand-logo-only img {
    max-width: 165px;
    max-height: 46px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid var(--os-border);
    box-shadow: 0 14px 28px rgba(22, 139, 203, 0.12);
    padding: 14px 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav > a:not(.btn) {
    padding: 9px 6px;
  }
  .main-nav > a:not(.btn)::after {
    display: none;
  }
  .main-nav .btn {
    width: 100%;
  }
  .nav-profile-dropdown,
  .nav-profile-trigger {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-profile-menu {
    position: static;
    display: none;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-color: var(--os-border);
  }
  .nav-profile-dropdown.open .nav-profile-menu {
    display: block;
  }
  .hero {
    padding: 36px 0 34px;
  }
  .hero-grid,
  .checkout-layout,
  .fw-choice-grid,
  .fw-payment-strip,
  .fw-course-support-grid,
  .image-feature-grid,
  .certificate-grid,
  .receipt-grid {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .grid-4,
  .stats-band,
  .course-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subject-lab {
    padding: 22px 18px;
    gap: 20px;
  }
  .promo-slide {
    padding: 20px 18px;
    min-height: 150px;
  }
  .section {
    padding: 38px 0;
  }
  .section-head,
  .dashboard-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 24px);
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .stats-band,
  .kpi-grid,
  .quick-link-grid,
  .learning-loop-grid,
  .course-journey-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .science-scene {
    min-height: 260px;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
  .orb-main {
    width: 148px;
    height: 148px;
  }
  .float-chip {
    padding: 8px 11px;
    font-size: 11px;
  }
  .chip-one {
    left: 6px;
    top: 16px;
  }
  .chip-two {
    right: 6px;
    bottom: 18px;
  }
  .subject-orbit-board {
    min-height: 230px;
  }
  .science-token {
    min-width: 50px;
    height: 32px;
    padding: 0 8px;
    font-size: 10.5px;
  }
  .form-card,
  .registration-card,
  .panel {
    padding: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .floating-contact {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  .scroll-top {
    right: 18px;
    bottom: 76px;
    width: 40px;
    height: 40px;
  }
}

@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;
  }
}

@media print {
  .portal-sidebar,
  .portal-topbar,
  .site-header,
  .site-footer,
  .floating-contact,
  .scroll-top {
    display: none !important;
  }
  .portal-shell {
    display: block;
  }
  .portal-main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
  .portal-content {
    padding: 0;
  }
  .receipt-sheet,
  .certificate-print-sheet,
  .id-card-print-sheet {
    break-inside: avoid;
    box-shadow: none;
  }
}