/* ================================================================
   Deni Sawa Custom Homepage — local/denisawahomepage
   Scoped to guest frontpage only (body#page-site-index.notloggedin)
   DEFAULT = LIGHT MODE. Dark mode via [data-bs-theme="dark"].
   ================================================================ */

/* ── Kill horizontal scroll ──────────────────────────────────── */
html, body {
  overflow-x: hidden !important;
}

body#page-site-index.notloggedin {
  overflow-x: hidden !important;
}

/* ── Hide Moove default sections ─────────────────────────────── */
body#page-site-index.notloggedin #mooveslideshow,
body#page-site-index.notloggedin .carousel-inner,
body#page-site-index.notloggedin .carousel-indicators,
body#page-site-index.notloggedin .carousel-control-prev,
body#page-site-index.notloggedin .carousel-control-next,
body#page-site-index.notloggedin #feature,
body#page-site-index.notloggedin #feature *,
body#page-site-index.notloggedin #numbers,
body#page-site-index.notloggedin #numbers *,
body#page-site-index.notloggedin #faq,
body#page-site-index.notloggedin #faq *,
body#page-site-index.notloggedin #frontpage-available-course-list,
body#page-site-index.notloggedin #frontpage-available-course-list *,
body#page-site-index.notloggedin #frontpage-category-names,
body#page-site-index.notloggedin #frontpage-category-names *,
body#page-site-index.notloggedin .frontpage-course-list-all,
body#page-site-index.notloggedin .frontpage-available-course-list,
body#page-site-index.notloggedin .marketing-boxes,
body#page-site-index.notloggedin .simplesearchform,
body#page-site-index.notloggedin .box.py-3 {
  display: none !important;
}

/* Kill all Moove padding/spacing/constraints so homepage is full-bleed */
body#page-site-index.notloggedin,
body#page-site-index.notloggedin.limitedwidth,
body#page-site-index.notloggedin #page-wrapper,
body#page-site-index.notloggedin #page,
body#page-site-index.notloggedin #page-content,
body#page-site-index.notloggedin #region-main-box,
body#page-site-index.notloggedin #region-main,
body#page-site-index.notloggedin [role="main"],
body#page-site-index.notloggedin .main-inner,
body#page-site-index.notloggedin .container,
body#page-site-index.notloggedin .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-radius: 0 !important;
  overflow-x: hidden !important;
}

/* Make navbar NOT sticky on guest frontpage — override Bootstrap .fixed-top AND Moove */
body#page-site-index.notloggedin .navbar.fixed-top,
body#page-site-index.notloggedin .fixed-top,
body#page-site-index.notloggedin nav.navbar {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
}

body#page-site-index.notloggedin .navbar {
  position: static !important;
  top: auto !important;
}

/* Make footer NOT sticky — undo Moove's flex sticky-footer */
body#page-site-index.notloggedin #page-wrapper,
body#page-site-index.notloggedin #page {
  display: block !important;
  height: auto !important;
}

body#page-site-index.notloggedin #page-footer {
  position: static !important;
  flex-shrink: unset !important;
}

body#page-site-index.notloggedin #region-main-box > section#region-main > .notifications + [role="main"] {
  padding-top: 0;
}

/* ── Variables (LIGHT = default) ─────────────────────────────── */
:root {
  --ds-green: #1D9E75;
  --ds-deep: #04342C;
  --ds-mint: #9FE1CB;
  --ds-mint-pale: #E1F5EE;
  --ds-bg: #FFFFFF;
  --ds-ink: #132B26;
  --ds-muted: #5A736B;
  --ds-white: #FFFFFF;
  --ds-card: #FFFFFF;
  --ds-card-border: #E2E8F0;
  --ds-radius: 16px;
  --ds-radius-lg: 24px;
}

/* ── Theme toggle ────────────────────────────────────────────── */
.ds-theme-toggle-wrap {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.ds-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ds-card-border);
  background: var(--ds-card);
  color: var(--ds-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.ds-theme-toggle:hover {
  border-color: var(--ds-green);
  transform: scale(1.08);
}

.ds-theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* In light mode (default) show moon icon (click to go dark) */
.ds-icon-sun { display: none; }
.ds-icon-moon { display: block; }
/* In dark mode show sun icon (click to go light) */
[data-bs-theme="dark"] .ds-icon-sun { display: block; }
[data-bs-theme="dark"] .ds-icon-moon { display: none; }

/* ── Base reset ──────────────────────────────────────────────── */
.ds-homepage {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ds-ink);
  background: var(--ds-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-width: 100vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.ds-homepage *,
.ds-homepage *::before,
.ds-homepage *::after {
  box-sizing: border-box;
}

.ds-homepage h1, .ds-homepage h2, .ds-homepage h3 {
  line-height: 1.2;
  margin: 0;
}

.ds-homepage a {
  text-decoration: none;
  color: inherit;
}

/* ── Shared ──────────────────────────────────────────────────── */
.ds-homepage .ds-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--ds-green);
  color: var(--ds-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.ds-homepage .ds-btn-primary:hover {
  background: #178a65;
  transform: translateY(-1px);
}

.ds-homepage .ds-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: transparent;
  color: #04342C;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1.5px solid #04342C;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.ds-homepage .ds-btn-secondary:hover {
  background: rgba(4,52,44,0.08);
  transform: translateY(-1px);
}

.ds-homepage .ds-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.ds-homepage .ds-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ds-ink);
  margin-bottom: 8px;
}

.ds-homepage .ds-section-sub {
  font-size: 1rem;
  color: var(--ds-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Hero — LIGHT MODE (default) ─────────────────────────────── */
.ds-hero {
  padding: 60px 24px 40px;
  background:
    repeating-linear-gradient(-45deg, #e8510a40 0 2px, transparent 2px 18px),
    repeating-linear-gradient(45deg, #e8510a18 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #F0FAF6 0%, #E1F5EE 50%, #F7FAF9 100%);
  color: #132B26;
}

.ds-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Left: text content */
.ds-hero-left {
  display: flex;
  flex-direction: column;
}

.ds-site-name {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #e8510a;
  margin-bottom: 16px;
}

.ds-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #04342C;
}

.ds-hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5A736B;
  margin-bottom: 28px;
  max-width: 480px;
}

.ds-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Right: carousel visual */
.ds-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ds-hero-visual {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.ds-hero-track {
  position: relative;
  width: 100%;
}

.ds-hero-slide {
  display: none;
  flex-direction: column;
}

.ds-hero-slide.active {
  display: flex;
}

.ds-hero-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.ds-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card at bottom of each slide */
.ds-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}

.ds-hero-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.ds-hero-card-text {
  flex: 1;
  min-width: 0;
}

.ds-hero-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #04342C;
  line-height: 1.3;
}

.ds-hero-card-desc {
  font-size: 0.82rem;
  color: #5A736B;
  line-height: 1.4;
}

/* Hero navigation arrows */
.ds-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ds-hero-arrow:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-60%) scale(1.08);
}

.ds-hero-arrow svg {
  width: 18px;
  height: 18px;
}

.ds-hero-prev {
  left: 10px;
}

.ds-hero-next {
  right: 10px;
}

/* Hero dot indicators — overlaid on carousel image */
.ds-hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.ds-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.ds-hero-dot:hover {
  border-color: #1D9E75;
}

.ds-hero-dot.active {
  background: #1D9E75;
  border-color: #1D9E75;
  transform: scale(1.25);
}

/* ── Search within hero section ───────────────────────────────── */
.ds-hero-search-wrap {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ds-hero-search-box {
  background: #FFFFFF;
  border-radius: var(--ds-radius);
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  flex: 0 0 75%;
  min-width: 0;
}

.ds-search-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5A736B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ds-search-input-wrap {
  position: relative;
}

.ds-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #5A736B;
  pointer-events: none;
}

.ds-search-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #132B26;
  background: #F7FAF9;
  transition: border-color 0.2s;
}

.ds-search-input:focus {
  outline: none;
  border-color: #1D9E75;
}

.ds-hero-popular {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 25%;
}

.ds-popular-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5A736B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ds-hero-popular a {
  font-size: 0.82rem;
  padding: 4px 12px;
  background: rgba(29,158,117,0.08);
  border-radius: 20px;
  border: 1px solid rgba(29,158,117,0.2);
  color: #04342C;
  transition: background 0.2s;
}

.ds-hero-popular a:hover {
  background: rgba(29,158,117,0.15);
}

/* ── Stats ───────────────────────────────────────────────────── */
.ds-stats {
  padding: 0 24px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.ds-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #FFFFFF;
  border-radius: var(--ds-radius);
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ds-stat {
  text-align: center;
}

.ds-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ds-green);
  line-height: 1;
  margin-bottom: 4px;
}

.ds-stat-label {
  font-size: 0.85rem;
  color: #5A736B;
  font-weight: 500;
}

/* ── Courses ─────────────────────────────────────────────────── */
.ds-courses {
  padding: 64px 24px;
}

.ds-courses-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ds-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ds-course-card {
  background: #FFFFFF;
  border-radius: var(--ds-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.ds-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.ds-course-img {
  height: 160px;
  background: linear-gradient(135deg, #E1F5EE 0%, #9FE1CB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ds-course-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-course-img--placeholder {
  background:
    repeating-linear-gradient(-45deg, #e8510a25 0 2px, transparent 2px 14px),
    repeating-linear-gradient(45deg, #e8510a10 0 1px, transparent 1px 20px),
    linear-gradient(135deg, #E1F5EE 0%, #9FE1CB 100%);
}

.ds-course-img-placeholder {
  width: 48px;
  height: 48px;
  color: var(--ds-green);
  opacity: 0.5;
}

.ds-course-img-placeholder svg {
  width: 100%;
  height: 100%;
}

.ds-course-body {
  padding: 20px;
  flex: 1;
}

.ds-course-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #04342C;
  background: #E1F5EE;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.ds-course-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #132B26;
  margin-bottom: 8px;
}

.ds-course-desc {
  font-size: 0.88rem;
  color: #5A736B;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds-course-footer {
  padding: 0 20px 20px;
}

.ds-course-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ds-green);
  transition: gap 0.2s;
}

.ds-course-link:hover {
  gap: 8px;
}

.ds-courses-more {
  text-align: center;
  margin-top: 32px;
}

.ds-more-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ds-green);
  transition: gap 0.2s;
}

.ds-more-link:hover {
  text-decoration: underline;
}

/* ── Testimonials ────────────────────────────────────────────── */
.ds-testimonials {
  padding: 48px 24px 64px;
  background: #F7FAF9;
}

.ds-testimonials-inner {
  max-width: 720px;
  margin: 0 auto;
}

.ds-testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.ds-testimonial-track {
  position: relative;
  min-height: 220px;
}

.ds-testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

.ds-testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.ds-testimonial-card {
  text-align: center;
  padding: 32px;
}

.ds-testimonial-stars {
  font-size: 1.2rem;
  color: #F59E0B;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.ds-testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #132B26;
  margin: 0 0 24px;
  font-style: italic;
}

.ds-testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ds-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ds-green);
  color: var(--ds-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.ds-testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #132B26;
}

.ds-testimonial-location {
  font-size: 0.8rem;
  color: #5A736B;
}

.ds-testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.ds-testimonial-prev,
.ds-testimonial-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #132B26;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.ds-testimonial-prev:hover,
.ds-testimonial-next:hover {
  border-color: #1D9E75;
  background: #E1F5EE;
}

.ds-testimonial-dots {
  display: flex;
  gap: 8px;
}

.ds-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #D1D5DB;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.ds-dot.active {
  background: #1D9E75;
  transform: scale(1.3);
}

/* ── CTA ─────────────────────────────────────────────────────── */
.ds-cta {
  padding: 64px 24px;
  background: #04342C;
  color: var(--ds-white);
}

.ds-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.ds-cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ds-cta-sub {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.65;
}

.ds-btn-cta {
  background: var(--ds-green);
}

.ds-btn-cta:hover {
  background: #178a65;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.ds-faq {
  padding: 64px 24px;
}

.ds-faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.ds-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-faq-item {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.ds-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: #132B26;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.ds-faq-question:hover {
  background: rgba(29,158,117,0.04);
}

.ds-faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #5A736B;
  transition: transform 0.3s;
}

.ds-faq-item.is-open .ds-faq-chevron {
  transform: rotate(180deg);
}

.ds-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.ds-faq-item.is-open .ds-faq-answer {
  max-height: 200px;
}

.ds-faq-answer p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5A736B;
  margin: 0;
}

/* ── How It Works ────────────────────────────────────────────── */
.ds-howitworks {
  padding: 64px 24px;
}

.ds-howitworks-inner {
  max-width: 960px;
  margin: 0 auto;
}

.ds-steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.ds-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.ds-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ds-green);
  color: var(--ds-white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ds-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #132B26;
  margin-bottom: 8px;
}

.ds-step-desc {
  font-size: 0.88rem;
  color: #5A736B;
  line-height: 1.6;
  margin: 0;
}

.ds-step-connector {
  width: 64px;
  height: 2px;
  background: #E2E8F0;
  margin-top: 28px;
  flex-shrink: 0;
}

/* ── Footer badge fix (Moove powered-by popover) ─────────────── */
body#page-site-index.notloggedin .btn-footer-popover,
body#page-site-index.notloggedin .btn-footer-communication {
  display: none !important;
}

body#page-site-index.notloggedin .footer-content-popover {
  background: #FFFFFF !important;
  color: #132B26 !important;
  border: 1px solid #E2E8F0 !important;
}

body#page-site-index.notloggedin .footer-content-popover .footer-section {
  color: #5A736B !important;
}

body#page-site-index.notloggedin .footer-content-popover .footer-section a {
  color: #1D9E75 !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ds-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 720px;
  }

  .ds-hero-left {
    text-align: center;
    align-items: center;
  }

  .ds-hero-sub {
    max-width: none;
  }

  .ds-hero-actions {
    justify-content: center;
  }

  .ds-hero-visual {
    width: 80%;
    margin: 0 auto;
  }

  .ds-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ds-hero {
    padding: 40px 20px 32px;
  }

  .ds-site-name {
    font-size: 1.65rem;
  }

  .ds-hero-title {
    font-size: 1.85rem;
  }

  .ds-hero-sub {
    font-size: 0.95rem;
  }

  .ds-hero-visual {
    width: 75%;
  }

  .ds-hero-search-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .ds-hero-search-box {
    flex: 0 0 auto;
    max-width: none;
  }

  .ds-hero-popular {
    flex: 0 0 auto;
    justify-content: center;
  }

  .ds-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 20px;
  }

  .ds-courses {
    padding: 48px 20px;
  }

  .ds-courses-grid {
    grid-template-columns: 1fr;
  }

  .ds-section-title {
    font-size: 1.5rem;
  }

  .ds-cta {
    padding: 48px 20px;
  }

  .ds-cta-title {
    font-size: 1.4rem;
  }

  .ds-steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .ds-step-connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .ds-site-name {
    font-size: 1.35rem;
  }

  .ds-hero-title {
    font-size: 1.55rem;
  }

  .ds-hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .ds-hero-actions .ds-btn-primary,
  .ds-hero-actions .ds-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .ds-hero-visual {
    width: 85%;
  }

  .ds-hero-arrow {
    width: 30px;
    height: 30px;
  }

  .ds-hero-arrow svg {
    width: 14px;
    height: 14px;
  }

  .ds-stat-num {
    font-size: 1.4rem;
  }

  .ds-testimonial-card {
    padding: 24px 16px;
  }
}

/* ================================================================
   DARK MODE — [data-bs-theme="dark"]
   ================================================================ */
[data-bs-theme="dark"] {
  --ds-bg: #0B1A16;
  --ds-ink: #E8F5F0;
  --ds-muted: #8FA89E;
  --ds-card: #162B24;
  --ds-card-border: #2D4A3E;
}

[data-bs-theme="dark"] .ds-theme-toggle {
  border-color: #2D4A3E;
  background: #162B24;
  color: #E8F5F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .ds-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.2);
}

[data-bs-theme="dark"] .ds-btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

/* Dark hero: deeper diagonal mesh */
[data-bs-theme="dark"] .ds-hero {
  background:
    repeating-linear-gradient(-45deg, #e8510a45 0 2px, transparent 2px 18px),
    repeating-linear-gradient(45deg, #e8510a1a 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #0B1A16 0%, #04342C 100%);
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-hero-title {
  color: #FFFFFF;
}

[data-bs-theme="dark"] .ds-hero-sub {
  color: #8FA89E;
}

/* Dark hero card */
[data-bs-theme="dark"] .ds-hero-card {
  background: #162B24;
  border-top-color: #2D4A3E;
}

[data-bs-theme="dark"] .ds-hero-card-title {
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-hero-card-desc {
  color: #8FA89E;
}

/* Dark hero dots */
[data-bs-theme="dark"] .ds-hero-dot {
  border-color: #4A6B5E;
}

[data-bs-theme="dark"] .ds-hero-dot.active {
  background: #1D9E75;
  border-color: #1D9E75;
}

/* Dark search */
[data-bs-theme="dark"] .ds-hero-search-box {
  background: #162B24;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .ds-search-label {
  color: #8FA89E;
}

[data-bs-theme="dark"] .ds-search-icon {
  color: #8FA89E;
}

[data-bs-theme="dark"] .ds-search-input {
  background: #0B1A16;
  border-color: #2D4A3E;
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-search-input:focus {
  border-color: #1D9E75;
}

[data-bs-theme="dark"] .ds-popular-label {
  color: #8FA89E;
}

[data-bs-theme="dark"] .ds-hero-popular a {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #FFFFFF;
}

[data-bs-theme="dark"] .ds-hero-popular a:hover {
  background: rgba(255,255,255,0.2);
}

/* Dark stats */
[data-bs-theme="dark"] .ds-stats-inner {
  background: #162B24;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .ds-stat-label {
  color: #8FA89E;
}

/* Dark courses */
[data-bs-theme="dark"] .ds-course-card {
  background: #162B24;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .ds-course-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .ds-course-img {
  background: linear-gradient(135deg, #162B24 0%, #1D3D33 100%);
}

[data-bs-theme="dark"] .ds-course-img--placeholder {
  background:
    repeating-linear-gradient(-45deg, #e8510a30 0 2px, transparent 2px 14px),
    repeating-linear-gradient(45deg, #e8510a15 0 1px, transparent 1px 20px),
    linear-gradient(135deg, #162B24 0%, #1D3D33 100%);
}

[data-bs-theme="dark"] .ds-course-badge {
  background: rgba(29,158,117,0.15);
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-course-title {
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-course-desc {
  color: #8FA89E;
}

/* Dark testimonials */
[data-bs-theme="dark"] .ds-testimonials {
  background: #162B24;
}

[data-bs-theme="dark"] .ds-testimonial-quote {
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-testimonial-name {
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-testimonial-location {
  color: #8FA89E;
}

[data-bs-theme="dark"] .ds-testimonial-prev,
[data-bs-theme="dark"] .ds-testimonial-next {
  border-color: #2D4A3E;
  background: #0B1A16;
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-testimonial-prev:hover,
[data-bs-theme="dark"] .ds-testimonial-next:hover {
  border-color: #1D9E75;
  background: rgba(29,158,117,0.1);
}

[data-bs-theme="dark"] .ds-dot {
  background: #2D4A3E;
}

/* Dark CTA */
[data-bs-theme="dark"] .ds-cta {
  background: #061210;
}

/* Dark FAQ */
[data-bs-theme="dark"] .ds-faq-item {
  background: #162B24;
  border-color: #2D4A3E;
}

[data-bs-theme="dark"] .ds-faq-question {
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-faq-question:hover {
  background: rgba(29,158,117,0.06);
}

[data-bs-theme="dark"] .ds-faq-chevron {
  color: #8FA89E;
}

[data-bs-theme="dark"] .ds-faq-answer p {
  color: #8FA89E;
}

/* Dark How It Works */
[data-bs-theme="dark"] .ds-step-title {
  color: #E8F5F0;
}

[data-bs-theme="dark"] .ds-step-desc {
  color: #8FA89E;
}

[data-bs-theme="dark"] .ds-step-connector {
  background: #2D4A3E;
}

/* Dark footer badge fix */
[data-bs-theme="dark"] .footer-content-popover {
  background: #162B24 !important;
  color: #E8F5F0 !important;
  border-color: #2D4A3E !important;
}

[data-bs-theme="dark"] .footer-content-popover .footer-section {
  color: #8FA89E !important;
}
