:root {
  --v3-ink: #0f172a;
  --v3-muted: #64748b;
  --v3-soft: #f1f5f9;
  --v3-primary: #4f46e5;
  --v3-primary-2: #06b6d4;
  --v3-accent: #f59e0b;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  color: var(--v3-ink);
}

/* Top strip */
.top-strip {
  background: linear-gradient(90deg, #0b1220, #111827);
}

.btn-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Navbar */
.v3-navbar {
  backdrop-filter: saturate(180%) blur(10px);
}

.v3-navbar .nav-link {
  font-weight: 600;
  color: #0f172a;
}

.v3-navbar .nav-link.active {
  color: var(--v3-primary);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 20% 20%, rgba(79, 70, 229, .45), transparent 60%), linear-gradient(120deg, rgba(2, 6, 23, .92), rgba(2, 6, 23, .65));
}

.hero .text-white-75 {
  color: rgba(255, 255, 255, .78) !important;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

.text-gradient {
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 14px 14px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
}

.hero-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 65px rgba(2, 6, 23, .35);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
}

.hero-float {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(2, 6, 23, .55);
  border: 1px solid rgba(255, 255, 255, .10);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, #ffffff, var(--v3-soft));
}

.section-head {
  margin-bottom: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid rgba(79, 70, 229, .12);
  margin-bottom: .75rem;
}

/* Cards */
.card-raise {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card-raise:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, .10);
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill {
  padding: .55rem .75rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .06);
  font-weight: 600;
  font-size: .9rem;
}

.stepbox {
  background: #0b1220;
  color: #fff;
  border-radius: 16px;
  padding: 12px 12px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
}

.stepbox span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
}

.mini-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 14px;
  height: 100%;
}

.mini-emoji {
  font-size: 22px;
}

.mini-title {
  font-weight: 800;
  margin-top: 6px;
}

.mini-text {
  color: var(--v3-muted);
  font-size: .9rem;
}

.kpi {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 12px;
}

.kpi-num {
  font-weight: 900;
  font-size: 20px;
}

.kpi-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
}

/* Lists */
.list-check {
  padding-left: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 28px;
  margin: .45rem 0;
  color: var(--v3-muted);
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #0f172a;
  background: rgba(245, 158, 11, .35);
}

.list-check-invert li {
  color: rgba(255, 255, 255, .75);
}

.list-check-invert li::before {
  color: #0b1220;
  background: rgba(245, 158, 11, .95);
}

/* Pills tabs */
.v3-pills .nav-link {
  border-radius: 999px;
  font-weight: 800;
  padding: .55rem .95rem;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  color: #0f172a;
}

.v3-pills .nav-link.active {
  background: linear-gradient(90deg, var(--v3-primary), var(--v3-primary-2));
  border-color: transparent;
}

/* Accordion */
.v3-accordion .accordion-item {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
  margin-bottom: 12px;
}

.v3-accordion .accordion-button {
  font-weight: 800;
}

.v3-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, rgba(79, 70, 229, .12), rgba(6, 182, 212, .10));
}

.timeline {
  padding-left: 18px;
}

.timeline li {
  margin: .5rem 0;
  color: var(--v3-muted);
}

/* Forms */
.v3-form .form-control,
.v3-form .form-select {
  border-radius: 14px;
  border-color: rgba(15, 23, 42, .12);
}

.alert-soft {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  color: var(--v3-muted);
}

/* Worksheet preview */
.worksheet-preview {
  min-height: 340px;
  border-radius: 18px;
  border: 1px dashed rgba(15, 23, 42, .18);
  background: #fff;
  padding: 16px;
}

.worksheet-sheet {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #0f172a;
}

.worksheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
  margin-bottom: 10px;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.worksheet-q {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.worksheet-q .rhs {
  min-width: 60px;
  border-bottom: 2px solid rgba(15, 23, 42, .25);
  height: 1.25rem;
}

/* Gallery */
.gallery-tile {
  border: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .10);
  cursor: pointer;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .25));
  opacity: 0;
  transition: opacity .2s ease;
}

.gallery-tile:hover::after {
  opacity: 1;
}

.gallery-tile img {
  transition: transform .25s ease;
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.gallery-tile-video video {
  transition: transform .25s ease;
}

.gallery-tile-video:hover video {
  transform: scale(1.06);
}

.gallery-tile-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  pointer-events: none;
}

.gallery-tile-play i {
  opacity: .9;
}

/* Contact */
.contact-line {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}

.contact-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #3730a3;
}

/* Footer */
.footer {
  background: linear-gradient(90deg, #0b1220, #111827);
  color: #fff;
}

.footer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Scroll top */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.scroll-top.show {
  display: flex;
}

.program-image {
  height: auto;
  width: 450px;
  align-self: center;
}

@media (max-width: 768px) {
  .worksheet-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .top-strip,
  .navbar,
  .scroll-top,
  .footer,
  .toast-container,
  #lightboxModal {
    display: none !important;
  }

  .section {
    padding: 0 !important;
  }

  .worksheet-preview {
    border: 0 !important;
  }
}