/* tailwind.css */
*,
:after,
:before {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, .5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, .5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}

/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/
*,
:after,
:before {
  box-sizing: border-box;
  border: 0 solid #e5e7eb
}

:after,
:before {
  --tw-content: ""
}

:host,
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent
}

body {
  margin: 0;
  line-height: inherit
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit
}

a {
  color: inherit;
  text-decoration: inherit
}

b,
strong {
  font-weight: bolder
}

code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em
}

small {
  font-size: 80%
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

sub {
  bottom: -.25em
}

sup {
  top: -.5em
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0
}

button,
select {
  text-transform: none
}

button,
input:where([type=button]),
input:where([type=reset]),
input:where([type=submit]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none
}

:-moz-focusring {
  outline: auto
}

:-moz-ui-invalid {
  box-shadow: none
}

progress {
  vertical-align: baseline
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto
}

[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px
}

::-webkit-search-decoration {
  -webkit-appearance: none
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit
}

summary {
  display: list-item
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
  margin: 0
}

fieldset {
  margin: 0
}

fieldset,
legend {
  padding: 0
}

menu,
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0
}

dialog {
  padding: 0
}

textarea {
  resize: vertical
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  opacity: 1;
  color: #9ca3af
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af
}

[role=button],
button {
  cursor: pointer
}

:disabled {
  cursor: default
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
  display: block;
  vertical-align: middle
}

img,
video {
  max-width: 100%;
  height: auto
}

[hidden]:where(:not([hidden=until-found])) {
  display: none
}

:root {
  --bg-primary: #fff;
  --bg-secondary: #f8fafc;
  --navy: #0f172a;
  --navy-800: #1e293b;
  --navy-900: #0f172a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --teal: #0d9488;
  --gold: #d97706;
  --border: rgba(0, 0, 0, .08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px
}

.container {
  width: 100%
}

@media (min-width:640px) {
  .container {
    max-width: 640px
  }
}

@media (min-width:768px) {
  .container {
    max-width: 768px
  }
}

@media (min-width:1024px) {
  .container {
    max-width: 1024px
  }
}

@media (min-width:1280px) {
  .container {
    max-width: 1280px
  }
}

@media (min-width:1536px) {
  .container {
    max-width: 1536px
  }
}

.visible {
  visibility: visible
}

.invisible {
  visibility: hidden
}

.static {
  position: static
}

.fixed {
  position: fixed
}

.absolute {
  position: absolute
}

.relative {
  position: relative
}

.sticky {
  position: sticky
}

.-bottom-12 {
  bottom: -3rem
}

.-right-12 {
  right: -3rem
}

.z-10 {
  z-index: 10
}

.mx-auto {
  margin-left: auto;
  margin-right: auto
}

.mb-1 {
  margin-bottom: .25rem
}

.mb-16 {
  margin-bottom: 4rem
}

.mb-2 {
  margin-bottom: .5rem
}

.mb-20 {
  margin-bottom: 5rem
}

.mb-24 {
  margin-bottom: 6rem
}

.mb-32 {
  margin-bottom: 8rem
}

.mb-40 {
  margin-bottom: 10rem
}

.mb-6 {
  margin-bottom: 1.5rem
}

.mb-8 {
  margin-bottom: 2rem
}

.mt-2 {
  margin-top: .5rem
}

.mt-4 {
  margin-top: 1rem
}

.mt-8 {
  margin-top: 2rem
}

.block {
  display: block
}

.inline-block {
  display: inline-block
}

.inline {
  display: inline
}

.flex {
  display: flex
}

.inline-flex {
  display: inline-flex
}

.\!table {
  display: table !important
}

.table {
  display: table
}

.grid {
  display: grid
}

.hidden {
  display: none
}

.aspect-video {
  aspect-ratio: 16/9
}

.h-16 {
  height: 4rem
}

.h-2 {
  height: .5rem
}

.h-3 {
  height: .75rem
}

.h-4 {
  height: 1rem
}

.h-5 {
  height: 1.25rem
}

.h-64 {
  height: 16rem
}

.h-8 {
  height: 2rem
}

.h-\[300px\] {
  height: 300px
}

.h-\[380px\] {
  height: 380px
}

.h-\[400px\] {
  height: 400px
}

.h-full {
  height: 100%
}

.max-h-\[500px\] {
  max-height: 500px
}

.w-16 {
  width: 4rem
}

.w-2 {
  width: .5rem
}

.w-3 {
  width: .75rem
}

.w-4 {
  width: 1rem
}

.w-5 {
  width: 1.25rem
}

.w-64 {
  width: 16rem
}

.w-8 {
  width: 2rem
}

.w-full {
  width: 100%
}

.max-w-7xl {
  max-width: 80rem
}

.max-w-\[150px\] {
  max-width: 150px
}

.max-w-\[200px\] {
  max-width: 200px
}

.max-w-\[240px\] {
  max-width: 240px
}

.max-w-\[250px\] {
  max-width: 250px
}

.max-w-xl {
  max-width: 36rem
}

.flex-shrink,
.shrink {
  flex-shrink: 1
}

.shrink-0 {
  flex-shrink: 0
}

.grow {
  flex-grow: 1
}

.border-collapse {
  border-collapse: collapse
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

@keyframes pulse {
  50% {
    opacity: .5
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite
}

.resize {
  resize: both
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr))
}

.flex-col {
  flex-direction: column
}

.flex-wrap {
  flex-wrap: wrap
}

.items-center {
  align-items: center
}

.justify-center {
  justify-content: center
}

.justify-between {
  justify-content: space-between
}

.gap-1 {
  gap: .25rem
}

.gap-2 {
  gap: .5rem
}

.gap-3 {
  gap: .75rem
}

.gap-32 {
  gap: 8rem
}

.gap-4 {
  gap: 1rem
}

.gap-6 {
  gap: 1.5rem
}

.gap-8 {
  gap: 2rem
}

.space-y-3>:not([hidden])~:not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(.75rem*(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(.75rem*var(--tw-space-y-reverse))
}

.space-y-4>:not([hidden])~:not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem*(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem*var(--tw-space-y-reverse))
}

.space-y-6>:not([hidden])~:not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem*(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem*var(--tw-space-y-reverse))
}

.divide-y>:not([hidden])~:not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px*(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px*var(--tw-divide-y-reverse))
}

.divide-border>:not([hidden])~:not([hidden]) {
  border-color: var(--border)
}

.overflow-hidden {
  overflow: hidden
}

.overflow-x-auto {
  overflow-x: auto
}

.overflow-y-auto {
  overflow-y: auto
}

.scroll-smooth {
  scroll-behavior: smooth
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis
}

.truncate,
.whitespace-nowrap {
  white-space: nowrap
}

.rounded {
  border-radius: .25rem
}

.rounded-2xl {
  border-radius: 1rem
}

.rounded-3xl {
  border-radius: 1.5rem
}

.rounded-full {
  border-radius: 9999px
}

.rounded-lg {
  border-radius: .5rem
}

.rounded-md {
  border-radius: .375rem
}

.rounded-xl {
  border-radius: .75rem
}

.\!border {
  border-width: 1px !important
}

.border {
  border-width: 1px
}

.border-b {
  border-bottom-width: 1px
}

.border-double {
  border-style: double
}

.border-none {
  border-style: none
}

.border-border {
  border-color: var(--border)
}

.border-gold {
  border-color: var(--gold)
}

.border-green-100 {
  --tw-border-opacity: 1;
  border-color: rgb(220 252 231/var(--tw-border-opacity, 1))
}

.border-transparent {
  border-color: transparent
}

.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235/var(--tw-bg-opacity, 1))
}

.bg-amber-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11/var(--tw-bg-opacity, 1))
}

.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0/var(--tw-bg-opacity, 1))
}

.bg-blue {
  background-color: var(--blue)
}

.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244/var(--tw-bg-opacity, 1))
}

.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94/var(--tw-bg-opacity, 1))
}

.bg-navy {
  background-color: var(--navy)
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255/var(--tw-bg-opacity, 1))
}

.bg-white\/10 {
  background-color: hsla(0, 0%, 100%, .1)
}

.bg-white\/20 {
  background-color: hsla(0, 0%, 100%, .2)
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops))
}

.from-pink-500 {
  --tw-gradient-from: #ec4899 var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(236, 72, 153, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.to-amber-500 {
  --tw-gradient-to: #f59e0b var(--tw-gradient-to-position)
}

.fill-current {
  fill: currentColor
}

.p-24 {
  padding: 6rem
}

.p-3 {
  padding: .75rem
}

.p-32 {
  padding: 8rem
}

.p-4 {
  padding: 1rem
}

.p-40 {
  padding: 10rem
}

.p-6 {
  padding: 1.5rem
}

.p-8 {
  padding: 2rem
}

.px-2 {
  padding-left: .5rem;
  padding-right: .5rem
}

.px-3 {
  padding-left: .75rem;
  padding-right: .75rem
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem
}

.py-0\.5 {
  padding-top: .125rem;
  padding-bottom: .125rem
}

.py-1 {
  padding-top: .25rem;
  padding-bottom: .25rem
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem
}

.py-2 {
  padding-top: .5rem;
  padding-bottom: .5rem
}

.py-3 {
  padding-top: .75rem;
  padding-bottom: .75rem
}

.pb-10 {
  padding-bottom: 2.5rem
}

.pr-2 {
  padding-right: .5rem
}

.text-left {
  text-align: left
}

.text-center {
  text-align: center
}

.text-right {
  text-align: right
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem
}

.text-5xl {
  font-size: 3rem;
  line-height: 1
}

.text-\[10px\] {
  font-size: 10px
}

.text-\[11px\] {
  font-size: 11px
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem
}

.text-sm {
  font-size: .875rem;
  line-height: 1.25rem
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem
}

.text-xs {
  font-size: .75rem;
  line-height: 1rem
}

.font-black {
  font-weight: 900
}

.font-bold {
  font-weight: 700
}

.font-extrabold {
  font-weight: 800
}

.font-medium {
  font-weight: 500
}

.font-semibold {
  font-weight: 600
}

.uppercase {
  text-transform: uppercase
}

.italic {
  font-style: italic
}

.tracking-tight {
  letter-spacing: -.025em
}

.tracking-tighter {
  letter-spacing: -.05em
}

.tracking-wider {
  letter-spacing: .05em
}

.tracking-widest {
  letter-spacing: .1em
}

.text-amber-500 {
  --tw-text-opacity: 1;
  color: rgb(245 158 11/var(--tw-text-opacity, 1))
}

.text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6/var(--tw-text-opacity, 1))
}

.text-blue {
  color: var(--blue)
}

.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219/var(--tw-text-opacity, 1))
}

.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74/var(--tw-text-opacity, 1))
}

.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61/var(--tw-text-opacity, 1))
}

.text-indigo-500 {
  --tw-text-opacity: 1;
  color: rgb(99 102 241/var(--tw-text-opacity, 1))
}

.text-navy-800 {
  color: var(--navy-800)
}

.text-navy-900 {
  color: var(--navy-900)
}

.text-pink-500 {
  --tw-text-opacity: 1;
  color: rgb(236 72 153/var(--tw-text-opacity, 1))
}

.text-teal {
  color: var(--teal)
}

.text-text-muted {
  color: var(--text-muted)
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity, 1))
}

.text-white\/80 {
  color: hsla(0, 0%, 100%, .8)
}

.underline {
  text-decoration-line: underline
}

.accent-blue {
  accent-color: var(--blue)
}

.accent-gold {
  accent-color: var(--gold)
}

.accent-teal {
  accent-color: var(--teal)
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)
}

.shadow,
.shadow-sm {
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color)
}

.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.outline {
  outline-style: solid
}

.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)
}

.blur {
  --tw-blur: blur(8px)
}

.blur,
.blur-3xl {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}

.blur-3xl {
  --tw-blur: blur(64px)
}

.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgba(0, 0, 0, .1)) drop-shadow(0 1px 1px rgba(0, 0, 0, .06))
}

.drop-shadow,
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}

.backdrop-blur-xl {
  --tw-backdrop-blur: blur(24px)
}

.backdrop-blur-xl,
.backdrop-filter {
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s
}

.ease-in-out {
  transition-timing-function: cubic-bezier(.4, 0, .2, 1)
}

.hover\:shadow-lg:hover {
  --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

@media (min-width:768px) {
  .md\:max-w-md {
    max-width: 28rem
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .md\:flex-row {
    flex-direction: row
  }

  .md\:items-center {
    align-items: center
  }

  .md\:p-8 {
    padding: 2rem
  }

  .md\:text-left {
    text-align: left
  }
}

@media (min-width:1024px) {
  .lg\:col-span-2 {
    grid-column: span 2/span 2
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr))
  }
}

/* app.css */
/* =============================================================
   KuwaPRO — Global CSS Design System v2.1
   Ultra-Premium · Sharp · Professional
   ============================================================= */

/* Fonts loaded non-blocking via <link rel="preload"> in base.php.
   System fallback stack renders text instantly while web fonts arrive. */

/* ── CSS Custom Properties ── */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;

  --navy: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-500: #64748B;

  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-glow: rgba(37, 99, 235, 0.12);
  --blue-50: rgba(37, 99, 235, 0.06);

  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-glow: rgba(13, 148, 136, 0.12);

  --gold: #D97706;
  --gold-light: #F59E0B;

  --red: #EF4444;
  --red-light: #F87171;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-light: rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(0, 0, 0, 0.06);

  /* ──────────────────────────────────────────────────
     BORDER RADII — Very subtle (approx 2%)
  ────────────────────────────────────────────────── */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 12px;

  --shadow-blue: 0 8px 32px rgba(37, 99, 235, 0.12);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 2px 20px rgba(37, 99, 235, 0.08);
  --shadow-elevated: 0 4px 24px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);

  --transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-organic: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Responsive Spacing Tokens (Spacious Premium Scale) */
  --section-gap: 60px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  :root {
    --section-gap: 50px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 40px;
  }
}


/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  font-feature-settings: 'cv11', 'ss01';
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── Typography ── */
.font-display {
  font-family: 'Sora', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Glass Cards ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.glass-sm {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Card ── */
.card {
  background: var(--bg-primary);
  /* Upgraded: 1.5px border + radius-xl for consistency with features page cards */
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-slow);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  letter-spacing: -0.005em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transform: translateZ(0);
  /* Hardware acceleration */
}

.btn:active,
.btn.t-interacting {
  transform: scale(0.92) translateY(0) !important;
  transition-duration: 0.05s !important;
  filter: brightness(1.15) contrast(1.1) !important;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.15s;
  background: rgba(255, 255, 255, 0.12);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 2px 12px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px var(--blue-glow);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--blue-glow);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 2px 12px var(--teal-glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-teal:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px var(--teal-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--navy-600);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
}

.btn-ghost:hover {
  color: var(--blue);
  background: var(--blue-50);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 0.9625rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-blue {
  background: var(--blue);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-teal {
  background: var(--teal);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-gold {
  background: var(--gold);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-green {
  background: #16a34a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-red {
  background: var(--red);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  /* Subtle elevation — gently raised above the page */
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.035),
    0 4px 20px rgba(0, 0, 0, 0.025);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow:
    0 1px 0 var(--border),
    0 2px 10px rgba(0, 0, 0, 0.05),
    0 6px 28px rgba(0, 0, 0, 0.04);
}

.navbar-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.navbar-logo span {
  color: var(--blue);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar-link {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  letter-spacing: -0.005em;
  user-select: none;
}

.navbar-link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.navbar-link:active,
.navbar-link.t-interacting {
  transform: scale(0.94) translateY(0) !important;
  transition-duration: 0.05s !important;
  filter: brightness(1.2) !important;
}

.navbar-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  /* Fallback */
  min-height: clamp(500px, 100svh, 850px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  box-sizing: border-box;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
  will-change: auto;
  contain: strict;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
  pointer-events: none;
  will-change: auto;
  contain: strict;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

@media (min-width: 1920px) {
  .hero-inner {
    max-width: 1720px;
    gap: 120px;
  }
}

@media (min-width: 2560px) {
  .hero-inner {
    max-width: 2200px;
    gap: 180px;
  }
}

@media (min-width: 3840px) {
  .hero-inner {
    max-width: 3200px;
    gap: 240px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-sm);
  padding: 5px 14px 5px 10px;
  font-size: clamp(0.65rem, 2vw, 0.78rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
  width: fit-content;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

@media (min-width: 1920px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

@media (min-width: 2560px) {
  .hero-title {
    font-size: 7rem;
  }
}

@media (min-width: 3840px) {
  .hero-title {
    font-size: 10rem;
  }
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
}

@media (min-width: 1920px) {
  .hero-subtitle {
    max-width: 740px;
    font-size: 1.15rem;
  }
}

@media (min-width: 2560px) {
  .hero-subtitle {
    max-width: 960px;
    font-size: 1.35rem;
  }
}

@media (min-width: 3840px) {
  .hero-subtitle {
    max-width: 1400px;
    font-size: 1.6rem;
  }
}

/* Dark Hero Utility */
.hero-dark {
  background: var(--navy);
  color: #fff;
}

.hero-dark .hero-title,
.hero-dark .section-title {
  color: #fff !important;
}

.hero-dark .hero-subtitle,
.hero-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}

.hero-dark .text-gradient {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section eyebrow on dark backgrounds: white/translucent pill treatment */
.hero-dark .section-eyebrow,
[style*="background:var(--navy)"] .section-eyebrow {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-dark .section-eyebrow.teal {
  color: var(--teal-light);
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
}

.hero-dark .section-eyebrow.gold {
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ── Hero Qualities (replaces legacy hero-stats) ── */
.hero-qualities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-quality-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.hero-quality-item:hover {
  border-color: rgba(37, 99, 235, 0.12);
  background: var(--bg-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.hq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hq-icon-blue {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.hq-icon-teal {
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal);
}

.hq-icon-gold {
  background: rgba(217, 119, 6, 0.08);
  color: var(--gold);
}

.hq-icon-green {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
}

.hq-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hq-label strong {
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  color: var(--teal);
}

/* Hero visual card */
.hero-visual {
  position: relative;
}

.hero-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
  padding: 28px;
}

.hero-card-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-progress-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 0;
  overflow: hidden;
  margin: 8px 0;
}

.hero-progress-fill {
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.hero-earnings-card {
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  box-shadow: var(--shadow-card);
}

.hero-floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-elevated);
}

.hero-fc-1 {
  top: -16px;
  right: -24px;
  max-width: calc(100% + 24px);
}

.hero-fc-2 {
  bottom: 28px;
  left: -24px;
  max-width: calc(100% + 24px);
}

/* ── Section Layout ── */
section {
  padding: 64px 24px;
  width: 100%;
  box-sizing: border-box;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Pill shape matching ft-section-eyebrow on features page */
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.14);
  margin-bottom: 14px;
}

/* Colour variants for section eyebrows */
.section-eyebrow.teal {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.07);
  border-color: rgba(13, 148, 136, 0.14);
}

.section-eyebrow.gold {
  color: var(--gold);
  background: rgba(217, 119, 6, 0.07);
  border-color: rgba(217, 119, 6, 0.14);
}

.section-eyebrow.navy {
  color: var(--navy);
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.10);
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

.section-header {
  margin-bottom: var(--section-gap) !important;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* ── Course Card ── */
.course-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

/* Legacy Media Blocks Removed (Replaced by unified media system at end of file) */

.course-card-body {
  padding: 18px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 7px;
}

.course-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.course-card-instructor {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.course-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.course-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  font-weight: 600;
}

.course-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-wrap: nowrap;
  /* Guarantee single line */
  gap: 12px;
  min-width: 0;
}

.course-card-price>div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
}

.price-amount {
  font-family: 'Sora', sans-serif;
  /* Fluid font size: scales between 1rem and 1.25rem based on screen width */
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-old {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ── Course Card Thumbnail Container & Overlays ── */
.course-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
}

.course-card-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.course-card-level,
.course-trending-badge {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  /* Allow tooltips if ever added, though container is none */
}

/* Trending velocity badge — website teal pill, top-right stacking. */
.course-trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px var(--teal-glow);
  white-space: nowrap;
  pointer-events: none;
  animation: trending-pulse 3s ease-in-out infinite;
}

@keyframes trending-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.82;
  }
}

@media (max-width: 480px) {
  .course-trending-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }
}

/* ── Feature Grid ── */
.feature-card {
  background: var(--bg-primary);
  /* Upgraded to 1.5px to match features page card polish */
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.feature-icon-blue {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.feature-icon-teal {
  background: rgba(20, 184, 166, 0.08);
  color: var(--teal);
}

.feature-icon-gold {
  background: rgba(245, 158, 11, 0.08);
  color: var(--gold);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
  /* Defer GPU work until scrolled into view */
  content-visibility: auto;
  contain-intrinsic-size: 0 180px;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stats-grid>*+* {
  border-left: 1px solid var(--border);
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--bg-primary);
  /* Match feature-card border weight for visual consistency */
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.testimonial-card:hover::after {
  opacity: 1;
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: var(--gold);
}

.testimonial-text {
  font-size: 0.9275rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--navy-600);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.testimonial-role {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(20, 184, 166, 0.05) 100%);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 24px 48px;
  /* content-visibility: off-screen footer renders only when visible */
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.875rem;
}

.footer-social-btn:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.4);
  background: var(--blue-50);
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Dashboard Layout ── */

/* ── Announcement Bar Layout Compensation ── */
/* When the announcement bar is shown, push everything down by its height (~38px) */
body.has-announcement-bar .navbar {
  top: 38px;
}

body.has-announcement-bar .dashboard-layout,
body.has-announcement-bar .sidebar {
  top: calc(64px + 38px);
}

body.has-announcement-bar .dashboard-layout {
  padding-top: calc(64px + 38px);
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 64px;
}

.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 20px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar-section-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 10px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 1px;
}

.sidebar-link:hover {
  color: var(--blue);
  background: var(--blue-50);
  padding-left: 14px;
}

.sidebar-link:active,
.sidebar-link.t-interacting {
  transform: scale(0.94) translateX(-4px) !important;
  transition-duration: 0.05s !important;
  filter: brightness(1.2) !important;
}

/* ── Global Interactive Scaling ── */
.dropdown-item,
.ci-filter-option,
.ci-page-btn,
.ci-mobile-filter-btn,
.course-card,
.instructor-card {
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.dropdown-item:active,
.ci-filter-option:active,
.ci-page-btn:active,
.ci-mobile-filter-btn:active,
.dropdown-item.t-interacting,
.ci-filter-option.t-interacting,
.ci-page-btn.t-interacting,
.ci-mobile-filter-btn.t-interacting {
  transform: scale(0.92) !important;
  transition-duration: 0.05s !important;
  filter: brightness(1.1) !important;
}

.course-card:hover,
.instructor-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-elevated);
}

.course-card:active,
.instructor-card:active {
  transform: scale(0.98) !important;
  transition-duration: 0.05s !important;
}

.sidebar-link.active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

.sidebar-link .icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-link.active .icon {
  opacity: 1;
  color: var(--blue);
}

.sidebar-badge {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 700;
}

.dashboard-main {
  flex: 1;
  margin-left: 252px;
  padding: 36px;
  max-width: calc(100% - 252px);
}

/* ── Dashboard Cards ── */
.kpi-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.kpi-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-card);
}

.kpi-card-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.kpi-value {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 10px;
}

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.kpi-change.up {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.08);
}

.kpi-change.down {
  color: var(--red);
  background: rgba(239, 68, 68, 0.08);
}

/* ── Forms ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.02);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* ── Progress bars ── */
.progress {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Tables ── */
.table-wrap {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 12px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}

td {
  padding: 14px 18px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ── Checkout ── */
.checkout-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  padding: 110px 24px 80px;
}

.checkout-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ── Video Player ── */
.player-layout {
  display: flex;
  height: 100vh;
  padding-top: 64px;
}

.player-sidebar {
  width: 320px;
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.player-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0a0a0f;
}

.player-video-wrap {
  background: #000;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

video {
  width: 100%;
  height: 100%;
}

.player-controls-bar {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--navy-800);
  flex: 1;
  overflow-y: auto;
}

.player-lesson-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
  letter-spacing: -0.02em;
}

.curriculum-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.curriculum-section-header {
  padding: 13px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.curriculum-section-header:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.curriculum-lesson {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.curriculum-lesson:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}

.curriculum-lesson.active {
  background: rgba(37, 99, 235, 0.18);
  color: #fff;
  border-left: 2px solid var(--blue-light);
}

.curriculum-lesson.locked {
  opacity: 0.35;
  cursor: not-allowed;
}

.curriculum-lesson.complete .cl-icon {
  color: #4ade80;
}

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 24px 60px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(37, 99, 235, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(20, 184, 166, 0.03) 0%, transparent 70%),
    var(--bg-secondary);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-elevated);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 5px;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
  margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Alert / Toast ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  border-left: 3px solid;
}

.alert-success {
  background: rgba(34, 197, 94, 0.06);
  border-color: #16a34a;
  color: #15803d;
}

.alert-error {
  background: rgba(239, 68, 68, 0.06);
  border-color: var(--red);
  color: #b91c1c;
}

.alert-info {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--blue);
  color: var(--blue);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid>*+* {
    border-left: none;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Dashboard Responsive */
  .dashboard-layout {
    flex-direction: column;
    padding-top: 60px;
  }

  .sidebar {
    position: fixed;
    left: -252px;
    top: 60px;
    z-index: 999;
    transition: var(--transition-slow);
    box-shadow: none;
  }

  .sidebar.open {
    left: 0;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.12);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 22px 18px;
    max-width: 100%;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 700px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-qualities {
    max-width: 580px;
    margin: 0 auto;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .flex-between>* {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.625rem;
  }

  .cta-banner {
    padding: 44px 22px;
  }
}

/* ── Utility ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-gap-sm {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flex-gap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-4 {
  margin-bottom: 4px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-20 {
  margin-bottom: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── Animations ── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  /* Reduced from 0.55s — faster entrance, still smooth */
  animation: fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in {
  animation: fade-in 0.35s ease forwards;
}

.anim-delay-1 {
  animation-delay: 0.08s;
}

.anim-delay-2 {
  animation-delay: 0.16s;
}

.anim-delay-3 {
  animation-delay: 0.24s;
}

.anim-delay-4 {
  animation-delay: 0.32s;
}

/* Respect users who prefer reduced motion (a11y + performance) */
@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;
  }
}

/* ── Partner Programme Components ── */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: .25s;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .25s;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

input:checked+.slider {
  background-color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
  animation: slider-glow 2s infinite;
}

@keyframes slider-glow {

  0%,
  100% {
    box-shadow: 0 0 8px var(--blue-glow);
  }

  50% {
    box-shadow: 0 0 16px var(--blue-glow);
  }
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* ── Course Builder / Tab Buttons ── */
.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: slide-up 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════
   KuwaPRO Custom Media System (Unified)
   ═══════════════════════════════════════════════════════════════ */

.course-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 140px;
  /* Reduced min-height to ensure ratio wins on small cards */
  background: var(--navy-800);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

.enroll-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  /* Fallback for detail page */
  background: #000;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Full-height Plyr wrapper inside card thumbnail and enroll card */
.course-card-thumb .cc-plyr,
.course-card-thumb .plyr,
.course-card-thumb .plyr__video-embed,
.enroll-thumb .cc-plyr,
.enroll-thumb .plyr,
.enroll-thumb .plyr__video-embed {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.course-card-thumb .plyr__video-embed iframe,
.enroll-thumb .plyr__video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Standard Plyr container sizing */
.plyr__video-embed .plyr__video-embed__container>iframe,
.plyr__video-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* Plyr controls styling */
.plyr--video .plyr__controls {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  padding: 20px 10px 8px;
}

.plyr--video .plyr__control--overlaid {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.plyr--video .plyr__control--overlaid:hover {
  background: rgba(255, 255, 255, 0.28);
}

.plyr--full-ui input[type='range'] {
  color: var(--blue);
}

.plyr__control.plyr__tab-focus,
.plyr__control:hover,
.plyr__control[aria-expanded='true'] {
  background: var(--blue);
}

/* Dual-media slider: slides are 100% width each */
.cc-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cc-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  position: relative;
}

.cc-slide.cc-slide-img img,
.cc-slide-full img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .cc-slide img {
  transform: scale(1.04);
}

.cc-slide.cc-slide-vid {
  background: #000;
}

.cc-slide-link {
  display: block;
  height: 100%;
}

/* Video-only or image-only card: fill 100% */
.cc-slide-full {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}

/* Slider arrows and dots */
.cc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}

.course-card-thumb:hover .cc-arrow,
.enroll-thumb:hover .cc-arrow {
  opacity: 1;
}

.cc-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.cc-arrow-prev {
  left: 8px;
}

.cc-arrow-next {
  right: 8px;
}

.cc-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

.cc-dot {
  position: relative;
  height: 4px;
  width: 20px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
  overflow: visible;
}

.cc-dot.active {
  background: #fff;
  width: 24px;
}

/* "▶ Preview" label on the video dot */
.cc-dot-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.cc-dot-preview:hover .cc-dot-label,
.cc-dot-preview.active .cc-dot-label {
  opacity: 1;
}

/* No-media branded placeholder (SVG icon, not emoji) */
.cc-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(20, 184, 166, 0.07));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.55;
}

/* Mobile: ensure video cards don't overflow or collapse.
   Removed :has() — not reliably supported on many mobile browsers. */
@media (max-width: 768px) {

  .course-card .cc-plyr,
  .course-card .plyr {
    max-width: 100%;
    overflow: hidden;
  }
}

.cc-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0.8;
  transition: var(--transition);
  pointer-events: none;
}

.cc-slide-full:hover .cc-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
}

.cc-play-overlay svg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.cc-slide-full:hover .cc-play-overlay svg {
  transform: scale(1.15);
}

/* ── Plyr Loading Skeleton ── */
.plyr-loading {
  position: relative;
  background: var(--navy-800) !important;
  overflow: hidden;
}

.plyr-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  animation: plyr-shimmer 1.5s infinite;
}

@keyframes plyr-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.plyr-loading .cc-plyr,
.plyr-loading .plyr {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plyr--ready.plyr-loading .cc-plyr,
.plyr--ready.plyr-loading .plyr,
.lms-player-ready.plyr-loading .cc-plyr,
.lms-player-ready.plyr-loading .plyr {
  opacity: 1;
}

/* ── Kuwa Turbo (SPA Performance Visuals) ── */
#nProgress {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
}

#nProgress .bar {
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light), 0 0 5px var(--gold);
  width: 0%;
  height: 100%;
  transition: width 0.12s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.fade-in {
  /* Reduced from 0.15s: snappier SPA page transition feel */
  animation: fade-in 0.08s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

/* ── Course Carousel ── */
.carousel-section {
  position: relative;
  padding: 0 56px;
  /* room for always-visible arrows on both sides */
}

.carousel-wrapper {
  position: relative;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.06);
  z-index: 20;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  /* always visible */
  opacity: 0.85;
  pointer-events: auto;
  flex-shrink: 0;
}

.carousel-nav:hover {
  opacity: 1;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px var(--blue-glow);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-nav.prev {
  left: -52px;
}

.carousel-nav.next {
  right: -52px;
}

@media (max-width: 1340px) {
  .carousel-section {
    padding: 0 48px;
  }

  .carousel-nav.prev {
    left: -44px;
  }

  .carousel-nav.next {
    right: -44px;
  }
}

@media (max-width: 1024px) {
  .carousel-section {
    padding: 0 40px;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
  }

  .carousel-nav.prev {
    left: -38px;
  }

  .carousel-nav.next {
    right: -38px;
  }
}

@media (max-width: 768px) {
  .carousel-section {
    padding: 0 32px;
  }

  .carousel-nav {
    width: 32px;
    height: 32px;
  }

  .carousel-nav.prev {
    left: -30px;
  }

  .carousel-nav.next {
    right: -30px;
  }
}

@media (max-width: 480px) {
  .carousel-section {
    padding: 0 24px;
  }

  .carousel-nav {
    width: 28px;
    height: 28px;
    opacity: 1;
  }

  .carousel-nav.prev {
    left: -24px;
  }

  .carousel-nav.next {
    right: -24px;
  }

  .carousel-nav svg {
    width: 14px;
    height: 14px;
  }
}

.course-carousel {
  overflow: hidden;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  /* will-change helps GPU compositing */
  will-change: transform;
}

/* Cards must NOT shrink — flex-shrink:0 + explicit width prevents overlap */
.carousel-track .course-card {
  flex: 0 0 auto;
  width: calc(25% - 15px);
  min-width: 240px;
  max-width: 320px;
}

@media (max-width: 1024px) {
  .carousel-track .course-card {
    width: calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  .carousel-track .course-card {
    width: calc(50% - 10px);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .carousel-track .course-card {
    width: 82%;
    max-width: none;
  }
}

/* mobile.css */
/*
 * KuwaPRO — Mobile Responsive Stylesheet
 * Covers: nav, dashboard sidebar, course pages,
 *         player, checkout, auth, grids, forms, tables
 */

/* ── Global Mobile Fixes ── */
html,
body {
  overflow-x: clip;
  position: relative;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-wrap: break-word;
  /* modern alias */
  word-wrap: break-word;
  /* legacy fallback */
  word-break: break-word;
  /* deeper fallback */
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
li,
a {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.container {
  width: 100% !important;
  max-width: 100vw !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
  overflow: clip;
}

.section-subtitle {
  max-width: 100% !important;
}

input,
select,
textarea {
  font-size: 16px !important;
}

* {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ── Overlay backdrop for mobile sidebar ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  cursor: pointer;
}

@media (max-width: 640px) {
  .sidebar-overlay.visible {
    display: block;
  }
}

/* ── Close button inside sidebar ── */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 1002;
}

/* ── Card utility ── */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ── Specific Tablet Fixes (769px - 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar-close-btn {
    display: flex;
  }

  .sidebar {
    z-index: 1001;
    /* Ensure it's above other elements */
  }

  .navbar-actions .dash-sidebar-toggle {
    display: flex !important;
  }
}

.mb-48 {
  margin-bottom: 48px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════════
   768 px and below (tablets + phones)
   ══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Spacing */
  section {
    padding: 70px 16px !important;
  }

  .hero {
    padding: 192px 16px 35px !important;
    min-height: auto !important;
  }

  footer {
    padding: 60px 16px 40px !important;
  }

  .navbar {
    padding: 0 12px;
  }

  .navbar-inner {
    gap: 8px;
  }

  .navbar-actions {
    gap: 6px !important;
    flex-shrink: 0;
  }

  /* Hide sign-in/register in TOP bar on mobile (already in dropdown) */
  .navbar-actions .btn {
    display: none !important;
  }

  /* But NOT the dashboard toggle or currency btn if we want it */
  .navbar-actions .dash-sidebar-toggle,
  .navbar-actions #currency-btn,
  .navbar-actions #mobile-toggle {
    display: flex !important;
  }

  #mobile-toggle {
    margin-left: 4px;
  }

  /* Mobile nav dropdown */
  #mobile-menu {
    top: 0;
    height: 100vh;
    padding: 20px;
    flex-direction: column;
    gap: 4px;
  }

  #mobile-menu a {
    font-size: 1rem;
    padding: 12px 14px;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
    display: block;
  }

  /* ── Dashboard: sidebar slides in from left ── */
  .dashboard-layout {
    padding-top: 70px;
    flex-direction: column !important;
  }

  .sidebar {
    position: fixed;
    left: -290px;
    top: 70px;
    width: 280px;
    z-index: 1001;
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    bottom: 0;
    padding: 16px 12px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.open {
    left: 0 !important;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .dash-sidebar-toggle {
    display: flex !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 20px 14px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* ── Grids ── */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Inline style based grids (course editor, dashboards) */
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Sidebar right-column layouts (course detail, checkout) */
  [style*="grid-template-columns:1fr 400px"],
  [style*="grid-template-columns: 1fr 400px"],
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns: 1fr 340px"],
  [style*="grid-template-columns:1fr 420px"],
  [style*="grid-template-columns: 1fr 420px"],
  [style*="grid-template-columns:1fr;"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  [style*="grid-template-columns:1fr 400px"]>div:last-child {
    order: -1 !important;
  }

  /* ── Tables: horizontal scroll ── */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }

  th,
  td {
    padding: 12px 14px;
    white-space: nowrap;
  }

  /* ── Hero ── */
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 40px;
    text-align: center;
  }

  .hero-visual,
  .hero-floating-card {
    display: none !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-qualities {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100%;
  }

  .hero-quality-item {
    padding: 5px 8px !important;
    gap: 5px !important;
  }

  .hq-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .hq-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .hq-label {
    font-size: 0.62rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }



  /* ── CTA Banner ── */
  .cta-banner {
    padding: 48px 20px !important;
  }

  /* ── Auth pages ── */
  .auth-card {
    padding: 32px 20px !important;
  }

  /* ── Checkout ── */
  .checkout-layout {
    grid-template-columns: 1fr !important;
    padding: 100px 16px 60px !important;
    gap: 24px;
  }

  /* ── Video player: stack vertically ── */
  .player-layout {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh;
  }

  .player-sidebar {
    width: 100% !important;
    max-height: 55vh;
    border-right: none !important;
    border-top: 1px solid var(--border);
    order: 2;
  }

  .player-main {
    order: 1;
  }

  /* ── Course editor tab bar: horizontal scroll ── */
  .course-tabs-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
  }

  .tab-btn {
    flex-shrink: 0;
    padding: 11px 12px;
    font-size: 0.82rem;
  }

  /* ── Flex patterns ── */
  .flex-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .flex-between>* {
    width: 100%;
  }

  /* ── KPI cards ── */
  .kpi-card {
    padding: 18px;
  }

  .kpi-value {
    font-size: 1.6rem !important;
  }

  /* ── Headings ── */
  .section-title {
    font-size: 1.8rem !important;
  }

  [style*="font-size:3.5rem"],
  [style*="font-size: 3.5rem"] {
    font-size: 2.2rem !important;
  }

  [style*="font-size:1.75rem"],
  [style*="font-size: 1.75rem"] {
    font-size: 1.35rem !important;
  }

  /* ── Enroll card sticky: disable negative margin on mobile, stack naturally ── */
  [style*="margin-top: -460px"],
  [style*="margin-top:-460px"] {
    margin-top: 0 !important;
  }

  [style*="position: sticky"],
  [style*="position:sticky"] {
    position: relative !important;
    top: auto !important;
  }

  /* Specific Instructor CTA fix */
  #instructors div[style*="padding:40px"],
  #instructors div[style*="padding:24px"] {
    padding: 20px !important;
    box-shadow: none !important;
  }

  #instructors .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    width: 100% !important;
  }
}

/* ══════════════════════════════════════
   480 px and below (phones only)
   ══════════════════════════════════════ */
@media (max-width: 480px) {

  section {
    padding: 48px 20px !important;
    overflow-x: hidden !important;
  }

  /* Bleed prevention but allow shadows */
  section {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden;
  }

  .hero {
    padding: 160px 20px 24px !important;
    min-height: auto !important;
  }

  footer {
    padding: 48px 14px 32px !important;
  }

  /* Single column everywhere */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .logo-marquee {
    gap: 30px !important;
  }

  .logo-marquee-content {
    gap: 30px !important;
  }

  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }



  /* Dashboard */
  .dashboard-main {
    padding: 14px 12px !important;
  }

  .sidebar {
    width: 260px;
  }

  /* Hero */
  .hero-title {
    font-size: 1.9rem !important;
  }

  [style*="font-size:3.5rem"],
  [style*="font-size: 3.5rem"] {
    font-size: 1.9rem !important;
  }

  /* Auth */
  .auth-card {
    padding: 24px 14px !important;
    border-radius: var(--radius) !important;
  }

  /* KPI */
  .kpi-card {
    padding: 14px;
  }

  .kpi-value,
  .text-gradient[style*="font-size:2rem"] {
    font-size: 1.25rem !important;
  }

  /* Player */
  .player-sidebar {
    max-height: 50vh;
  }

  /* Tables tighter */
  th,
  td {
    padding: 10px 10px;
    font-size: 0.78rem;
  }

  table {
    min-width: 480px;
  }

  /* Section titles */
  .section-title {
    font-size: 1.35rem !important;
  }

  [style*="font-size:1.75rem"],
  [style*="font-size: 1.75rem"] {
    font-size: 1.2rem !important;
  }

  /* CTA */
  .cta-banner {
    padding: 36px 14px !important;
  }

  /* Checkout */
  .checkout-layout {
    padding: 88px 12px 48px !important;
  }

  /* Padding adjustments for course detail hero */
  [style*="padding:120px 0 160px"],
  [style*="padding: 120px 0 160px"] {
    padding: 140px 16px 60px !important;
  }
}

/* player.css */
/* ─── PLAYER SHELL ─── */
.kuwa-player-container {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  user-select: none;
  /* Force GPU acceleration */
  transform: translateZ(0);
  will-change: transform;
}

/* ─── LAYERS ─── */
.kuwa-player-container .mp4-layer {
  width: 100%;
  height: 100%;
  display: none;
  transform: translateZ(0);
}

.kuwa-player-container .mp4-layer video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.kuwa-player-container .iframe-layer {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  transform: translateZ(0);
  z-index: 1;
}

.kuwa-player-container .iframe-layer iframe {
  border: none;
  position: absolute;
  top: -60px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 120px);
}

/* ─── CURTAIN ─── */
.kuwa-player-container .yt-curtain {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  transition: opacity 0.4s ease;
  z-index: 100;
}

.kuwa-player-container .yt-curtain.fade {
  opacity: 0;
  pointer-events: none;
}

/* Premium Kuwa Loader */
.kuwa-loader {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kuwa-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.kuwa-loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(37, 99, 235, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: kuwa-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes kuwa-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── BLUE PLAY COVER ─── */
.kuwa-player-container .yt-play-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: #3b82f6;
  border-radius: 50%;
  z-index: 13;
  display: none !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2);
}

.kuwa-player-container .yt-play-cover svg {
  margin-left: 4px;
}

.kuwa-player-container .yt-play-cover.visible {
  display: flex;
}

.kuwa-player-container .yt-play-cover.fade {
  opacity: 0;
  transition: opacity 0.4s;
}

/* ─── OVERLAYS ─── */
.kuwa-player-container .iframe-blocker {
  position: absolute;
  inset: 0;
  z-index: 11;
  cursor: pointer;
}

.kuwa-player-container .seek-block-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
}

/* ─── CONTROLS ─── */
.kuwa-player-container .controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  /* Must be above iframe-blocker (z-index:11) and seek-block (z-index:10) */
  padding: 8px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  transition: opacity 0.3s;
  pointer-events: auto;
}

.kuwa-player-container:not(:hover) .controls {
  opacity: 0;
}

.kuwa-player-container:hover .controls {
  opacity: 1;
}

.kuwa-player-container .progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  margin-bottom: 10px;
}

.kuwa-player-container .progress-track:hover {
  height: 6px;
}

.kuwa-player-container .progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
}

.kuwa-player-container .progress-watched {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  pointer-events: none;
}

.kuwa-player-container .seek-lock-line {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 12px;
  background: #ef4444;
  border-radius: 2px;
  display: none;
  pointer-events: none;
}

.kuwa-player-container .ctrl-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kuwa-player-container .ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s;
}

.kuwa-player-container .ctrl-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.kuwa-player-container .volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  outline: none;
}

.kuwa-player-container .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.kuwa-player-container .time-display {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.kuwa-player-container .speed-menu {
  position: absolute;
  bottom: 48px;
  right: 14px;
  background: #1a1d2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  display: none;
  z-index: 30;
  min-width: 80px;
}

.kuwa-player-container .speed-menu button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.kuwa-player-container .speed-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.kuwa-player-container .speed-menu button.active {
  color: #3b82f6;
  font-weight: 600;
}

/* ─── BIG PLAY FLASH ─── */
.kuwa-player-container .big-play {
  position: absolute;
  inset: 0;
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.kuwa-player-container .big-play.show {
  opacity: 1;
}

.kuwa-player-container .big-play-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* ─── RESPONSIVE CONTROLS ─── */
@media (max-width: 640px) {
  .kuwa-player-container .controls {
    padding: 6px 10px 8px;
    opacity: 1 !important;
    /* Always show on mobile for accessibility */
  }

  .kuwa-player-container .ctrl-row {
    gap: 4px;
  }

  .kuwa-player-container .volume-slider {
    display: none;
    /* Hide on mobile to save space */
  }

  .kuwa-player-container .time-display {
    font-size: 11px;
  }

  .kuwa-player-container .ctrl-btn {
    padding: 4px;
  }

  .kuwa-player-container .ctrl-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ─── FULLSCREEN ─── */
.kuwa-player-container:-webkit-full-screen {
  max-width: 100%;
  border-radius: 0;
}

.kuwa-player-container:-moz-full-screen {
  max-width: 100%;
  border-radius: 0;
}

.kuwa-player-container:fullscreen {
  max-width: 100%;
  border-radius: 0;
}

.kuwa-player-container {
  -webkit-user-select: none;
  user-select: none
}

.kuwa-player-container .mp4-video {
  pointer-events: none
}

.kuwa-player-container .mp4-video::-webkit-media-controls,
video::-webkit-media-controls-enclosure {
  display: none !important
}

/* ─── CAPTIONS OVERLAY ─── */
.kuwa-player-container .captions-overlay {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  z-index: 17;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

.kuwa-player-container .caption-text {
  display: inline-block;
  background: rgba(8, 10, 18, 0.78);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  padding: 6px 14px;
  border-radius: 6px;
  max-width: 90%;
  text-align: center;
  word-wrap: break-word;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* ─── CC MENU (same style as speed-menu) ─── */
.kuwa-player-container .cc-menu {
  position: absolute;
  bottom: 48px;
  right: 52px;
  background: #1a1d2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  display: none;
  z-index: 30;
  min-width: 100px;
}

.kuwa-player-container .cc-menu button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.kuwa-player-container .cc-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.kuwa-player-container .cc-menu button.active {
  color: #3b82f6;
  font-weight: 600;
}

/* ─── PREVIEW MODAL (Restored) ─── */
.preview-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  /* Solid dark, no blur for performance */
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.preview-modal-content {
  width: 100%;
  max-width: 960px;
  background: #0f1117;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.preview-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* offline.css */
/* ============================================================
   KuwaPRO Offline Mode 2.0 — Styles
   ============================================================ */

/* Offline indicator banner — shown by JS only when navigator.onLine === false */
.offline-banner {
  display: none;
  /* JS overrides this when offline */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Stay BELOW the announcement bar (z-index 1001) and navbar (z-index 1000)
       but above all page content */
  z-index: 999;
  background: #dc2626;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

/* When announcement bar is also visible, push offline banner below it */
body.has-announcement-bar .offline-banner {
  top: 38px;
  /* approximate announcement bar height */
}

/* html.offline-mode class is toggled by JS — kept for any page-level CSS hooks */
html.offline-mode {
  --offline-indicator: block;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Download button */
.offline-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
  transition: all 0.2s;
}

.offline-dl-btn:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: rgba(20, 184, 166, 0.3);
}

.offline-dl-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.offline-dl-btn .spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: var(--teal);
  animation: spin 0.7s linear infinite;
}

.offline-dl-btn.downloaded {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
}

.offline-dl-btn.failed {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

/* Storage bar */
.storage-bar-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.storage-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width 0.6s ease;
}

/* Offline course card badge */
.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.offline-badge svg {
  width: 12px;
  height: 12px;
}

/* Offline page styles */
.offline-page {
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* Download progress overlay */
.dl-progress-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 9998;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dl-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.9rem;
}

.dl-progress-body {
  padding: 12px 18px;
  max-height: 200px;
  overflow-y: auto;
}

.dl-progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.82rem;
}

.dl-progress-item .dl-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.dl-progress-item .dl-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.dl-progress-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  line-height: 1;
}

.dl-progress-close:hover {
  color: var(--text-primary);
}

/* Offline mode badge in sidebar */
.offline-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.offline-status-dot.online {
  background: #22c55e;
}

.offline-status-dot.offline {
  background: #ef4444;
}

/* Responsive download overlay */
@media (max-width: 640px) {
  .dl-progress-overlay {
    width: calc(100% - 32px);
    bottom: 16px;
    right: 16px;
  }
}