:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #222222;
  --band: #f8fff0;
  --line: #f0f0f0;
  --card: #ffffff;
  --accent: #ccff00;
  --wrap: 1200px;
  --pad: 20px;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #eeeeee;
  --band: #1a2a05;
  --line: #1a1a1a;
  --card: #0a0a0a;
  --accent: #0eff00;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 2px;
}

.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ========== HEADER ========== */
header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brandwrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-left: 32px;
}

.brand {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--fg);
}

.tagline {
  font-size: 0.9rem;
  color: #0eff00;
  font-weight: 600;
  letter-spacing: 0.3px;
}

nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  transition: all 0.2s;
}

nav a:hover {
  background: #eef4ff;
}

@media (max-width: 768px) {
  nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2px !important;
    width: 100%;
    padding: 0 4px;
    margin-top: 6px;
  }

  nav a {
    padding: 6px 2px !important;
    font-size: 0.65rem !important;
    text-align: center;
    white-space: nowrap;
    border-radius: 4px;
  }

  nav a:hover {
    background: #eef4ff;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 1px !important;
    padding: 0 2px;
  }

  nav a {
    padding: 5px 1px !important;
    font-size: 0.6rem !important;
  }

  nav a:hover {
    background: #eef4ff;
  }
}

#theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--fg);
  transition: all 0.2s;
  font-size: 1.2rem;
}

#theme-toggle:hover {
  background: #eef4ff;
}

/* ========== VIDEO SLIDER ========== */
.video-slider {
  width: 100%;
  height: 550px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.slider-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.slider-overlay h1 {
  font-size: 3.5rem;
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slider-overlay p {
  font-size: 1.5rem;
  margin: 0 0 30px 0;
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cta-button {
  background: #0eff00;
  color: #000000;
  box-shadow: 0 0 20px rgba(14, 255, 0, 0.6);
}

[data-theme="light"] .cta-button {
  background: #ccff00;
  color: #000000;
}

/* ========== ABOUT SECTION ========== */
#about {
  background-color: #2a2a2a !important;
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

#about::before {
  display: none !important;
}

/* ========== VIDEOS SECTION ========== */
#videos {
  background: #000000;
  padding: 60px 0;
}

/* ========== SECTIONS ========== */
section {
  padding: 60px 0;
}

section[id] {
  scroll-margin-top: 120px;
}

h3.title,
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #ffffff;
}

[data-theme="light"] h3.title,
[data-theme="light"] .section-title {
  color: #0f172a;
}

p.lead,
.section-lead {
  margin: 6px 0 10px 0;
  color: #a0a0a0;
  text-align: center;
  font-weight: 600;
}

.section-lead a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 700;
}

.section-lead a:hover {
  opacity: 0.8;
}

/* ========== CARDS & GRIDS ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 14px;
}

.card h4 {
  margin: 6px 0;
  font-size: 1.12rem;
}

[data-theme="dark"] .card h4 {
  color: #f1f5f9;
}

/* ========== PROGRAMS ========== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.program-card {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.program-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
}

.program-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--fg);
}

.program-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 20px 0;
}

.program-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 20px 0;
}

.program-duration {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.program-features li {
  font-size: 0.95rem;
  color: var(--fg);
  margin: 12px 0;
  padding-left: 24px;
  position: relative;
}

.program-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ========== SCHEDULE SECTION ========== */
.schedule-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.schedule-calendar {
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.schedule-quick-action {
  position: sticky;
  top: 140px;
}

.quick-action-card {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  text-align: center;
}

.quick-action-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 16px 0;
}

.quick-action-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.quick-action-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 255, 0, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 0, 0.2);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item span:last-child {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
}

.view-times-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.view-times-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 255, 0, 0.5);
}

/* ========== PILLS ========== */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  background: #0066ff;
  border: 1px solid #0052cc;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
}

[data-theme="dark"] .pill {
  background: #0f3460;
  border: 1px solid #1e5a8e;
  color: #a8d5ff;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.2s;
  margin-top: 20px;
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: #1a1a1a;
  border: 2px solid #00ff00;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.testimonial-text {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #ffffff;
}

.testimonial-name {
  margin: 0 0 4px 0;
  font-weight: 700;
  color: #00ff00;
}

.testimonial-role {
  margin: 0;
  font-size: 0.85rem;
  color: #a0a0a0;
}

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--line);
  color: #6b7a90;
  padding: 18px 0;
  margin-top: 10px;
  text-align: center;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr !important;
  }
}

  .schedule-quick-action {
    position: static;
    order: 2;
  }

  .schedule-calendar {
    order: 1;
  }

  .schedule-calendar iframe {
    height: 850px !important;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .brandwrap {
    margin-left: 0;
    text-align: center;
    width: 100%;
  }

  .brand {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 0.7rem;
  }

  nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100%;
    padding: 0 12px;
    margin-top: 12px;
  }

  nav a {
    padding: 10px 6px !important;
    font-size: 0.8rem !important;
    text-align: center;
    white-space: normal;
  }

  header.site {
    padding: 0 12px;
  }

  .video-slider {
    height: 280px;
    margin-bottom: 20px;
  }

  .slider-overlay h1 {
    font-size: 1.4rem;
  }

  .slider-overlay p {
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .section-lead {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  /* ABOUT SECTION MOBILE */
  #about {
    padding: 40px 0 !important;
  }

  #about .container > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center !important;
  }

  #about .container > div > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  #about .container > div > div:first-child {
    text-align: center;
  }

  #about .container > div > div:first-child div:first-child {
    max-width: 280px !important;
    margin: 0 auto 1rem !important;
  }

  #about img {
    width: 100% !important;
    height: auto !important;
  }

  #about h2 {
    text-align: center !important;
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
  }

  #about p {
    text-align: center !important;
  }

  #about > .container > div > div > div {
    justify-content: center !important;
  }

  /* VIDEOS SECTION MOBILE */
  #videos .container > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #videos .container > div > div {
    width: 100% !important;
  }

  /* PROGRAMS MOBILE */
  .programs-grid {
    grid-template-columns: 1fr !important;
  }

  .program-card {
    max-width: 100%;
    margin: 0;
  }

  /* SCHEDULE MOBILE */
  .schedule-calendar iframe {
    height: 900px !important;
  }

  .quick-action-card {
    padding: 24px;
  }

  .quick-action-card h3 {
    font-size: 1.5rem;
  }

  /* TESTIMONIALS MOBILE */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  .container {
    padding: 0 12px !important;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 0.7rem !important;
    padding: 8px 4px !important;
  }

  .brand {
    font-size: 1.2rem;
  }

  .tagline {
    font-size: 0.65rem;
  }

  .video-slider {
    height: 240px;
  }

  .slider-overlay h1 {
    font-size: 1.1rem;
  }

  .slider-overlay p {
    font-size: 0.75rem;
  }

  .cta-button {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .schedule-calendar iframe {
    height: 950px !important;
  }

  .container {
    padding: 0 8px;
  }

  #about h2 {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 821px) {
  .tagline {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
  }

  .tagline.typed {
    animation: none;
    border-right: none;
  }
}

/* Schedule iframe heights */
@media (max-width: 1024px) {
  .schedule-calendar iframe {
    height: 1000px !important;
  }
}

@media (max-width: 768px) {
  .schedule-calendar iframe {
    height: 1050px !important;
  }
}

@media (max-width: 480px) {
  .schedule-calendar iframe {
    height: 1100px !important;
  }
}

/* Right column cards container */
.right-column-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 1024px) {
  .right-column-cards {
    order: 2;
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr !important;
  }
}