/* ================================================================
   Auiva LMS — Site Stylesheet
   Tailwind extended with custom design tokens
   ================================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Satoshi:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --c-navy:      #0a1628;
  --c-navy-80:   #1a2b45;
  --c-navy-60:   #2d4163;
  --c-electric:  #e86520;
  --c-electric-d:#c4510f;
  --c-cyan:      #f97316;
  --c-emerald:   #10b981;
  --c-amber:     #f59e0b;
  --c-rose:      #f43f5e;
  --c-slate:     #64748b;
  --c-gray-10:   #f8fafc;
  --c-gray-20:   #f1f5f9;
  --c-white:     #ffffff;

  --font-display: 'Clash Display', system-ui, sans-serif;
  --font-body:    'Satoshi', system-ui, sans-serif;

  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.12);
  --shadow-glow:  0 0 40px rgba(232,101,32,.18);

  --radius-card: 1rem;
  --radius-btn:  .625rem;

  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--c-navy);
  background: var(--c-gray-10);
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

h1, h2, h3, .heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* ── Site Navbar ────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(226,232,240,.8);
  transition: box-shadow .2s ease;
}
.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

.site-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.site-nav__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-nav__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.site-footer__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: .5rem;
}

/* Center Nav Links */
.site-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .125rem;
}
.site-nav__link {
  position: relative;
  font-size: .875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  padding: .4375rem .875rem;
  border-radius: .5rem;
  transition: color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.5rem);
  height: 2px;
  border-radius: 99px;
  background: var(--c-electric);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.site-nav__link:hover { color: var(--c-navy); background: #f1f5f9; }
.site-nav__link.active { color: var(--c-electric); font-weight: 600; background: rgba(59,130,246,.07); }
.site-nav__link.active::after { transform: translateX(-50%) scaleX(1); }

/* Actions */
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.site-nav__signin {
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: .4375rem 1rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid #e2e8f0;
  transition: all .15s;
  white-space: nowrap;
}
.site-nav__signin:hover { color: var(--c-navy); border-color: #cbd5e1; background: #f8fafc; }

.site-nav__cta {
  font-size: .875rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--c-electric) 0%, #6366f1 100%);
  text-decoration: none;
  padding: .4375rem 1.125rem;
  border-radius: var(--radius-btn);
  transition: all .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  box-shadow: 0 2px 10px rgba(59,130,246,.28);
}
.site-nav__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(59,130,246,.42); }
.site-nav__cta:active { transform: translateY(0); }

/* Icon button (bell) */
.site-nav__icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: .5rem;
  color: #6b7280;
  text-decoration: none;
  transition: all .15s;
  flex-shrink: 0;
}
.site-nav__icon-btn:hover { background: #f1f5f9; color: var(--c-navy); }

/* User button */
.site-nav__user { position: relative; }
.site-nav__user-btn {
  display: flex; align-items: center; gap: .5rem;
  background: none;
  border: 1.5px solid transparent;
  border-radius: .625rem;
  padding: .25rem .5rem .25rem .25rem;
  cursor: pointer;
  transition: all .15s;
  max-width: 200px;
}
.site-nav__user-btn:hover { background: #f8fafc; border-color: #e2e8f0; }
.site-nav__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a6e, var(--c-electric));
  color: white;
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(59,130,246,.22);
}
.site-nav__user-info { text-align: left; flex: 1; min-width: 0; }
.site-nav__user-name {
  font-size: .8rem; font-weight: 600; color: var(--c-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.site-nav__user-role { font-size: .6875rem; color: var(--c-slate); }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background: white;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.11);
  z-index: 1000;
  overflow: hidden;
}
.nav-dropdown.open { display: block; animation: navDropIn .18s cubic-bezier(.16,1,.3,1) both; }
@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.nav-dropdown__header {
  padding: .875rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e8edf2;
}
.nav-dropdown__name { font-size: .875rem; font-weight: 600; color: var(--c-navy); line-height: 1.3; }
.nav-dropdown__email { font-size: .75rem; color: var(--c-slate); margin-top: .1875rem; }
.nav-dropdown__section { padding: .375rem; }
.nav-dropdown__divider { height: 1px; background: #f1f5f9; margin: .25rem .375rem; }

.dd-item {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: .8125rem; font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background .12s, color .12s;
  width: 100%; cursor: pointer; line-height: 1.4;
  background: none; border: none; font-family: inherit; text-align: left;
}
.dd-item:hover { background: #f1f5f9; color: var(--c-navy); }
.dd-item--danger { color: #dc2626; }
.dd-item--danger:hover { background: #fef2f2; color: #b91c1c; }

/* Mobile Hamburger */
.site-nav__hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  background: none; border: none;
  padding: .375rem; cursor: pointer;
  border-radius: .5rem;
  transition: background .15s;
  width: 36px; height: 36px;
}
.site-nav__hamburger:hover { background: #f1f5f9; }
.site-nav__hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--c-navy); border-radius: 99px;
  transition: all .25s ease; transform-origin: center;
}
.site-nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 200; }
.mobile-menu.is-open { display: block; }
.mobile-menu__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(3px);
  animation: mmFade .2s ease both;
}
.mobile-menu__panel {
  position: absolute; top: 0; left: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: white;
  overflow-y: auto;
  animation: mmSlide .25s cubic-bezier(.16,1,.3,1) both;
  box-shadow: 8px 0 32px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
}
@keyframes mmFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes mmSlide { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.mobile-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e8edf2;
  flex-shrink: 0;
}
.mobile-menu__logo {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
  color: var(--c-navy); text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
}
.mobile-menu__logo span { color: var(--c-electric); }
.mobile-menu__close {
  background: none; border: none; padding: .375rem; cursor: pointer;
  border-radius: .5rem; color: #6b7280; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu__close:hover { background: #f1f5f9; color: var(--c-navy); }
.mobile-menu__body { flex: 1; padding: 1rem; overflow-y: auto; }
.mobile-menu__section-label {
  font-size: .6875rem; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: .5rem; padding: 0 .375rem;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: .125rem; }
.mobile-menu__link {
  display: flex; align-items: center; gap: .75rem;
  padding: .6875rem .875rem;
  border-radius: .625rem;
  font-size: .9375rem; font-weight: 500;
  color: #374151; text-decoration: none;
  transition: all .15s;
}
.mobile-menu__link:hover, .mobile-menu__link.active {
  background: rgba(59,130,246,.07); color: var(--c-electric);
}
.mobile-menu__footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid #e8edf2;
  display: flex; flex-direction: column; gap: .625rem;
  flex-shrink: 0;
}

/* ── Responsive Nav ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .site-nav__link { padding: .4375rem .625rem; font-size: .8125rem; }
}
@media (max-width: 900px) {
  .site-nav__inner { grid-template-columns: auto 1fr auto; }
  .site-nav__links { display: none; }
  .site-nav__hamburger { display: flex; }
  .site-nav__actions .site-nav__link,
  .site-nav__actions .site-nav__signin { display: none; }
}
@media (max-width: 480px) {
  .site-nav__inner { padding: 0 1rem; gap: .75rem; }
  .site-nav__cta { padding: .4375rem .875rem; font-size: .8125rem; }
  .site-nav__cta .cta-arrow { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-60) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(59,130,246,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(6,182,212,.14) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: rgba(6,182,212,.12);
  border: 1px solid rgba(6,182,212,.25);
  padding: .375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--c-white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero__title span {
  background: linear-gradient(90deg, var(--c-electric), var(--c-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-white);
  display: block;
}

.hero__stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  display: flex;
  background: var(--c-white);
  border-radius: .875rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--c-navy);
  background: transparent;
}

.search-bar__input::placeholder { color: var(--c-slate); }

.search-bar__btn {
  background: var(--c-electric);
  border: none;
  padding: .75rem 1.5rem;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background var(--transition);
  border-radius: 0 .75rem .75rem 0;
}

.search-bar__btn:hover { background: var(--c-electric-d); }

/* ── Section ────────────────────────────────────────────────── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section--gray { background: var(--c-gray-20); }

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--c-navy);
  margin-bottom: .375rem;
}

.section__sub {
  font-size: .9375rem;
  color: var(--c-slate);
}

.section__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-electric);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: gap var(--transition);
  white-space: nowrap;
}

.section__link:hover { gap: .625rem; }

/* ── Category Chips ─────────────────────────────────────────── */
.category-row {
  display: flex;
  gap: .625rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: var(--c-white);
  color: var(--c-slate);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.chip:hover, .chip.active {
  border-color: var(--c-electric);
  color: var(--c-electric);
  background: rgba(59,130,246,.06);
}

/* ── Course Card ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 1.5rem;
}

.card-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.course-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

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

.course-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--c-navy-80), var(--c-navy-60));
  overflow: hidden;
}

.course-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.course-card:hover .course-card__thumb img {
  transform: scale(1.04);
}

.course-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.course-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .625rem;
  border-radius: 9999px;
}

.badge--free { background: var(--c-emerald); color: white; }
.badge--live { background: var(--c-rose); color: white; }
.badge--inperson { background: var(--c-amber); color: white; }
.badge--recorded { background: rgba(0,0,0,.5); color: white; }
.badge--upcoming { background: var(--c-electric); color: white; }

.course-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.course-card__meta {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-electric);
  background: rgba(59,130,246,.08);
  padding: .2rem .6rem;
  border-radius: .3rem;
}

.meta-tag--emerald { color: var(--c-emerald); background: rgba(16,185,129,.08); }
.meta-tag--amber   { color: #92400e; background: rgba(245,158,11,.1); }

.course-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card__desc {
  font-size: .8125rem;
  color: var(--c-slate);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card__instructor {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid #f1f5f9;
}

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-electric), var(--c-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar--lg {
  width: 48px; height: 48px;
  font-size: 1rem;
}

.avatar--xl {
  width: 80px; height: 80px;
  font-size: 1.5rem;
}

.course-card__instructor-name {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-slate);
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: var(--c-gray-10);
}

.price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-navy);
}

.price--free { color: var(--c-emerald); }

.price-sub {
  font-size: .75rem;
  font-weight: 400;
  color: var(--c-slate);
  margin-left: .25rem;
}

.enroll-count {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8rem;
  color: var(--c-slate);
}

/* ── Workshop Card ─────────────────────────────────────────── */
.workshop-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.workshop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.workshop-card__date {
  flex-shrink: 0;
  text-align: center;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-60));
  color: white;
  border-radius: .75rem;
  padding: .75rem .875rem;
  min-width: 64px;
}

.workshop-card__month {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}

.workshop-card__day {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1;
  margin: .125rem 0;
}

.workshop-card__time {
  font-size: .65rem;
  opacity: .7;
}

.workshop-card__body { flex: 1; min-width: 0; }

.workshop-card__title {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: .375rem;
}

.workshop-card__meta {
  font-size: .8rem;
  color: var(--c-slate);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .625rem;
}

.workshop-card__speaker {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--c-slate);
}

.workshop-card__price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-electric);
  margin-top: .5rem;
}

/* ── Program Card ───────────────────────────────────────────── */
.program-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.program-card__header {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-60) 100%);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.program-card__header::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(59,130,246,.15);
}

.program-card__courses-count {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-cyan);
  background: rgba(6,182,212,.12);
  border: 1px solid rgba(6,182,212,.2);
  padding: .25rem .75rem;
  border-radius: 9999px;
  margin-bottom: .75rem;
}

.program-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: white;
  line-height: 1.35;
}

.program-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }

.program-card__desc {
  font-size: .8125rem;
  color: var(--c-slate);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .25rem;
}

.pill {
  font-size: .7rem;
  font-weight: 500;
  padding: .25rem .625rem;
  border-radius: .375rem;
  background: var(--c-gray-20);
  color: var(--c-slate);
  border: 1px solid #e2e8f0;
}

.program-card__footer {
  padding: .875rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: var(--c-gray-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-btn);
  transition: all var(--transition);
  padding: .75rem 1.75rem;
}

.btn--primary {
  background: var(--c-electric);
  color: white;
}

.btn--primary:hover {
  background: var(--c-electric-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,.4);
}

.btn--navy {
  background: var(--c-navy);
  color: white;
}

.btn--navy:hover {
  background: var(--c-navy-60);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--c-electric);
  border: 2px solid var(--c-electric);
}

.btn--outline:hover {
  background: rgba(59,130,246,.06);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-slate);
  border: 2px solid #e2e8f0;
}

.btn--ghost:hover {
  border-color: var(--c-electric);
  color: var(--c-electric);
}

.btn--sm {
  font-size: .8125rem;
  padding: .5rem 1.125rem;
}

.btn--lg {
  font-size: 1rem;
  padding: .9375rem 2.25rem;
}

/* ── Filters ────────────────────────────────────────────────── */
.filter-bar {
  background: var(--c-white);
  border-radius: .875rem;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group { display: flex; flex-direction: column; gap: .375rem; min-width: 140px; flex: 1; }

.filter-group label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-slate);
}

.filter-select {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--c-navy);
  background: var(--c-gray-10);
  border: 1.5px solid #e2e8f0;
  border-radius: .5rem;
  padding: .5625rem .875rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.25rem;
  transition: border-color var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--c-electric);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  margin-top: 3rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-slate);
  background: var(--c-white);
  border: 1.5px solid #e2e8f0;
  text-decoration: none;
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--c-electric); color: var(--c-electric); }
.page-btn.active { background: var(--c-electric); color: white; border-color: var(--c-electric); }
.page-btn:disabled { opacity: .4; pointer-events: none; }

/* ── Detail Hero ────────────────────────────────────────────── */
.detail-hero {
  background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-80) 100%);
  padding: 4rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(59,130,246,.2), transparent 70%);
}

.detail-hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.detail-hero__title {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.detail-hero__desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.detail-hero__meta-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
}

.detail-hero__meta-item svg {
  width: 16px; height: 16px;
  opacity: .8;
}

/* ── Enroll Card ────────────────────────────────────────────── */
.enroll-card {
  background: var(--c-white);
  border-radius: 1.25rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.enroll-card__thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-navy-80), var(--c-navy-60));
  overflow: hidden;
}

.enroll-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.enroll-card__body { padding: 1.5rem; }

.enroll-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 1rem;
}

.enroll-card__price--free { color: var(--c-emerald); }

.enroll-card__features { list-style: none; margin: 1.25rem 0; display: flex; flex-direction: column; gap: .625rem; }

.enroll-card__feature {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--c-slate);
}

.enroll-card__feature svg { color: var(--c-emerald); flex-shrink: 0; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tab-bar {
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--c-slate);
  padding: .875rem 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover { color: var(--c-navy); }

.tab-btn.active {
  color: var(--c-electric);
  border-bottom-color: var(--c-electric);
  font-weight: 600;
}

.tab-panel { padding: 2rem 0; display: none; }
.tab-panel.active { display: block; }

/* ── Features List ──────────────────────────────────────────── */
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--c-navy);
  line-height: 1.5;
}

.feature-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,.1);
  color: var(--c-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .125rem;
}

/* ── Curriculum ─────────────────────────────────────────────── */
.curriculum-section {
  border: 1.5px solid #e2e8f0;
  border-radius: .875rem;
  overflow: hidden;
  margin-bottom: .75rem;
}

.curriculum-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--c-gray-10);
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.curriculum-section__title {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-navy);
}

.curriculum-section__meta {
  font-size: .8rem;
  color: var(--c-slate);
  white-space: nowrap;
}

.curriculum-section__items { padding: .5rem 0; }

.curriculum-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .625rem 1.25rem;
  font-size: .875rem;
  color: var(--c-slate);
}

.curriculum-item:hover { background: var(--c-gray-10); }

.curriculum-item__icon {
  width: 32px; height: 32px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .875rem;
}

.curriculum-item__icon--video  { background: rgba(59,130,246,.1); color: var(--c-electric); }
.curriculum-item__icon--pdf    { background: rgba(245,158,11,.1);  color: var(--c-amber); }
.curriculum-item__icon--quiz   { background: rgba(16,185,129,.1);  color: var(--c-emerald); }
.curriculum-item__icon--task   { background: rgba(244,63,94,.1);   color: var(--c-rose); }

.curriculum-item__name { flex: 1; }
.curriculum-item__duration { font-size: .8rem; color: var(--c-slate); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,.6);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: .75rem;
}

.site-footer__tagline { font-size: .875rem; line-height: 1.6; }

.site-footer__col-title {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.site-footer__links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }

.site-footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__links a:hover { color: white; }

.site-footer__bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--c-slate);
}

.empty-state__icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: .5rem;
}

/* ── Loading Skeleton ───────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: .5rem;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.2); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp .5s ease both;
}

.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .detail-hero__inner { grid-template-columns: 1fr; }
  .enroll-card { position: static; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero__stats { gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

@media (max-width: 640px) {
  .card-grid, .card-grid--4 { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .workshop-card { flex-direction: column; }
  .hero__stats { flex-direction: column; gap: 1rem; }
}

/* ── Alert (for auth + settings pages) ─────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: .875rem;
  margin-bottom: 1rem;
  display: none;
}
.alert.show { display: flex; align-items: center; gap: .5rem; }
.alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
