:root {
  --dch-ink: #0d1117;
  --dch-ink-soft: #1a2230;
  --dch-slate: #4a5568;
  --dch-cloud: #f4f6fb;
  --dch-line: #e2e6ef;
  --dch-accent: #ff5b2e;
  --dch-accent-dark: #d8401a;
  --dch-gold: #f5b942;
  --dch-teal: #0f9e8e;
  --dch-paper: #ffffff;
  --dch-radius: 18px;
  --dch-radius-sm: 10px;
  --dch-shadow: 0 24px 60px -28px rgba(13, 17, 23, 0.35);
  --dch-shadow-sm: 0 10px 30px -18px rgba(13, 17, 23, 0.4);
  --dch-font-display: "Fraunces", "Georgia", serif;
  --dch-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--dch-font-body);
  color: var(--dch-ink);
  background: var(--dch-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--dch-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dch-ink);
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

a { color: var(--dch-accent-dark); text-decoration: none; }
a:hover { color: var(--dch-accent); }

.dch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dch-accent-dark);
}

.dch-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--dch-accent);
  display: inline-block;
}

.dch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.dch-btn-primary {
  background: var(--dch-accent);
  color: #fff;
  box-shadow: var(--dch-shadow-sm);
}

.dch-btn-primary:hover {
  background: var(--dch-accent-dark);
  color: #fff;
  transform: translateY(-3px);
}

.dch-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.dch-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Header ---------- */
#inject-header .dch-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dch-line);
}

.dch-header__top {
  font-size: 0.82rem;
  background: var(--dch-ink);
  color: #eef1f6;
}

.dch-header__top a,
.dch-header__top span {
  color: #eef1f6;
}

.dch-header__bar {
  padding-block: 0.9rem;
}

.dch-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--dch-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dch-ink);
}

.dch-nav .nav-link {
  color: var(--dch-ink-soft);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dch-nav .nav-link:hover,
.dch-nav .nav-link.active {
  background: var(--dch-cloud);
  color: var(--dch-accent-dark);
}

.dch-info-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dch-slate);
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.dch-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-block: 6rem;
}

.dch-hero h1,
.dch-hero h2,
.dch-hero p { color: #fff; }

.dch-hero__lead { font-size: 1.12rem; max-width: 640px; color: #f2f5fa; }

.dch-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.dch-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* ---------- Sections ---------- */
.dch-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.dch-section--tint { background: var(--dch-cloud); }
.dch-section--dark { background: var(--dch-ink); color: #eef1f6; }
.dch-section--dark h2,
.dch-section--dark h3 { color: #fff; }

.dch-card {
  background: var(--dch-paper);
  border: 1px solid var(--dch-line);
  border-radius: var(--dch-radius);
  padding: 1.8rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.dch-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--dch-accent), var(--dch-gold));
  color: #fff;
  margin-bottom: 1rem;
}

.dch-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--dch-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dch-stat__num {
  font-family: var(--dch-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dch-gold);
  line-height: 1;
}

.dch-stat__label { font-size: 0.9rem; color: #dfe5ee; margin-top: 0.4rem; }

.dch-media-card {
  border-radius: var(--dch-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--dch-shadow-sm);
  background: var(--dch-ink);
}

.dch-media-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.dch-media-card:hover img { transform: scale(1.06); }

.dch-media-card__body {
  padding: 1.2rem;
  background: var(--dch-paper);
}

.dch-media-card__body h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.dch-media-card__body p { font-size: 0.94rem; color: var(--dch-slate); margin: 0; }

.dch-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dch-teal);
  margin-bottom: 0.5rem;
}

/* ---------- Steps ---------- */
.dch-step {
  display: flex;
  gap: 1.1rem;
  padding: 1.3rem;
  border-radius: var(--dch-radius-sm);
  background: var(--dch-paper);
  border: 1px solid var(--dch-line);
  height: 100%;
}

.dch-step__num {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dch-ink);
  color: var(--dch-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dch-font-display);
}

/* ---------- Testimonials ---------- */
.dch-quote {
  background: var(--dch-paper);
  border-radius: var(--dch-radius);
  padding: 1.8rem;
  border-left: 4px solid var(--dch-accent);
  height: 100%;
  box-shadow: var(--dch-shadow-sm);
}

.dch-quote p { font-style: italic; color: var(--dch-ink-soft); }
.dch-quote footer { font-size: 0.9rem; color: var(--dch-slate); }

.dch-partner {
  font-family: var(--dch-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dch-slate);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.dch-partner:hover { opacity: 1; color: var(--dch-accent-dark); }

/* ---------- Slider ---------- */
.dch-slider .carousel-item {
  min-height: 340px;
  background-size: cover;
  background-position: center;
  border-radius: var(--dch-radius);
  overflow: hidden;
}

.dch-slider__caption {
  background: rgba(13, 17, 23, 0.62);
  border-radius: var(--dch-radius-sm);
  padding: 1.6rem;
  max-width: 520px;
}

.dch-slider__caption h3,
.dch-slider__caption p { color: #fff; }

.dch-slider .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--dch-accent);
  border: none;
}

/* ---------- Forms ---------- */
.dch-form {
  background: var(--dch-paper);
  border: 1px solid var(--dch-line);
  border-radius: var(--dch-radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--dch-shadow-sm);
}

.dch-form .form-label { font-weight: 600; font-size: 0.9rem; }
.dch-form .form-control,
.dch-form .form-select {
  border-radius: var(--dch-radius-sm);
  border: 1px solid var(--dch-line);
  padding: 0.75rem 0.9rem;
  background: #fbfcfe;
}

.dch-form .form-control:focus,
.dch-form .form-select:focus {
  border-color: var(--dch-accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 91, 46, 0.2);
}

.dch-form__note { font-size: 0.84rem; color: var(--dch-slate); }

.dch-map-frame {
  border: 0;
  width: 100%;
  min-height: 420px;
  border-radius: var(--dch-radius);
  filter: saturate(1.05);
}

/* ---------- FAQ ---------- */
.dch-faq .accordion-item {
  border: 1px solid var(--dch-line);
  border-radius: var(--dch-radius-sm) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.dch-faq .accordion-button {
  font-weight: 600;
  color: var(--dch-ink);
  background: var(--dch-paper);
}

.dch-faq .accordion-button:not(.collapsed) {
  background: var(--dch-cloud);
  color: var(--dch-accent-dark);
  box-shadow: none;
}

/* ---------- Price ---------- */
.dch-plan {
  border: 1px solid var(--dch-line);
  border-radius: var(--dch-radius);
  padding: 2rem;
  height: 100%;
  background: var(--dch-paper);
  position: relative;
  display: flex;
  flex-direction: column;
}

.dch-plan--featured {
  border-color: var(--dch-accent);
  box-shadow: var(--dch-shadow);
}

.dch-plan__price {
  font-family: var(--dch-font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--dch-ink);
}

.dch-plan__price small { font-size: 0.9rem; color: var(--dch-slate); font-weight: 500; }

.dch-plan ul { list-style: none; padding-left: 0; margin-block: 1.2rem 1.6rem; }
.dch-plan ul li {
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
  color: var(--dch-ink-soft);
}

.dch-plan ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--dch-teal);
  position: absolute;
  left: 0;
  top: 0.55rem;
  font-size: 0.8rem;
}

.dch-plan__badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: var(--dch-gold);
  color: var(--dch-ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Blog ---------- */
.dch-article-card {
  border-radius: var(--dch-radius);
  overflow: hidden;
  border: 1px solid var(--dch-line);
  background: var(--dch-paper);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dch-article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dch-shadow);
}

.dch-article-card img { width: 100%; height: 220px; object-fit: cover; }
.dch-article-card__body { padding: 1.4rem; }
.dch-article-card__meta { font-size: 0.8rem; color: var(--dch-slate); margin-bottom: 0.5rem; }

/* ---------- Team ---------- */
.dch-team-card {
  text-align: center;
  background: var(--dch-paper);
  border-radius: var(--dch-radius);
  padding: 1.6rem;
  border: 1px solid var(--dch-line);
  height: 100%;
}

.dch-team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.dch-team-card h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.dch-team-card span { font-size: 0.85rem; color: var(--dch-accent-dark); font-weight: 600; }

/* ---------- Timeline ---------- */
.dch-timeline { position: relative; padding-left: 2rem; }
.dch-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--dch-line);
}

.dch-timeline__item { position: relative; padding-bottom: 1.8rem; }

.dch-timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dch-accent);
  border: 3px solid var(--dch-paper);
  box-shadow: 0 0 0 2px var(--dch-accent);
}

.dch-timeline__year {
  font-family: var(--dch-font-display);
  font-weight: 700;
  color: var(--dch-accent-dark);
}

/* ---------- CTA band ---------- */
.dch-cta {
  background-size: cover;
  background-position: center;
  border-radius: var(--dch-radius);
  padding: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
}

.dch-cta h2,
.dch-cta p { color: #fff; }

/* ---------- Footer ---------- */
#inject-footer .dch-footer {
  background: var(--dch-ink);
  color: #cbd3df;
  padding-block: 4rem 1.6rem;
  font-size: 0.93rem;
}

.dch-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.dch-footer a { color: #cbd3df; }
.dch-footer a:hover { color: var(--dch-gold); }

.dch-footer ul { list-style: none; padding-left: 0; }
.dch-footer ul li { margin-bottom: 0.5rem; }

.dch-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: #9aa6b8;
}

.dch-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-right: 0.4rem;
  color: #fff;
}

.dch-social a:hover { background: var(--dch-accent); color: #fff; }

/* ---------- Cookie banner ---------- */
.dch-cookie {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 2rem));
  background: linear-gradient(140deg, var(--dch-ink-soft), var(--dch-ink));
  color: #eef1f6;
  border-radius: var(--dch-radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--dch-shadow);
  z-index: 1080;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dch-cookie__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 185, 66, 0.16);
  color: var(--dch-gold);
  font-size: 1.2rem;
}

.dch-cookie__text { flex: 1 1 320px; font-size: 0.9rem; color: #dbe2ec; }
.dch-cookie__text a { color: var(--dch-gold); text-decoration: underline; }
.dch-cookie__text strong { color: #fff; }

.dch-cookie__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.dch-cookie__btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dch-cookie__btn:hover { transform: translateY(-2px); }

.dch-cookie__btn--accept { background: var(--dch-accent); color: #fff; }
.dch-cookie__btn--accept:hover { background: var(--dch-accent-dark); }

.dch-cookie__btn--decline {
  background: transparent;
  color: #cbd3df;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dch-cookie__btn--decline:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

@media (max-width: 767.98px) {
  .dch-cookie { flex-direction: column; text-align: center; }
  .dch-cookie__actions { width: 100%; justify-content: center; }
  .dch-header__top { display: none; }
  .dch-hero { min-height: 62vh; padding-block: 4rem; }
}

/* ---------- Utilities ---------- */
.dch-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--dch-accent-dark);
}

.dch-pill-link i { transition: transform 0.2s ease; }
.dch-pill-link:hover i { transform: translateX(4px); }

.dch-divider { height: 1px; background: var(--dch-line); border: 0; margin-block: 3rem; }

.dch-mosaic {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dch-list-check { list-style: none; padding-left: 0; }
.dch-list-check li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--dch-ink-soft);
}
.dch-list-check li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--dch-teal);
  position: absolute;
  left: 0;
  top: 0.2rem;
}

.dch-num-title {
  font-family: var(--dch-font-display);
  font-size: 1.5rem;
  color: var(--dch-accent-dark);
  font-weight: 700;
}
/* ===== Contrast & background overrides (appended) ===== */
:root {
  /* darken accent-dark and teal so small text passes 4.5:1 on white / tint backgrounds */
  --dch-accent-dark: #c2370f;
  --dch-teal: #0d7d6f;
}

/* Give image-backed banner sections a solid dark base colour so that
   overlaid light text is evaluated against a dark background. */
.dch-hero,
.dch-cta {
  background-color: #0d1117;
}

/* Primary buttons: darken orange so white label text meets 4.5:1 */
.dch-btn-primary {
  background: #c2410c;
}
.dch-btn-primary:hover {
  background: #9a330a;
}

/* ============================================================
   QA accessibility overrides (contrast)
   Added after automated checks: ensures text/background pairs
   meet WCAG AA (4.5:1) on the blog page and site-wide.
   ============================================================ */

/* Hero + CTA bands use image gradients; give them a solid dark
   base colour so text contrast is guaranteed even before the
   background image loads / when gradients are not evaluated. */
.dch-hero { background-color: #0d1117; }
.dch-cta { background-color: #0d1117; }

/* Primary buttons: #ff5b2e on white text was only 3.09:1.
   Darken the orange so the white label clears 4.5:1. */
.dch-btn-primary {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}
.dch-btn-primary:hover,
.dch-btn-primary:focus {
  background: #9c3409;
  border-color: #9c3409;
  color: #fff;
}

/* Accent text colours: the original #d8401a / teal #0f9e8e were
   right on or below the 4.5:1 threshold on light backgrounds. */
.dch-eyebrow { color: #b83a15; }
.dch-pill-link { color: #b83a15; }
.dch-tag { color: #0b7a6b; }
.dch-faq .accordion-button:not(.collapsed) { color: #b83a15; }
.dch-form__note a { color: #b83a15; }

/* ============================================================
   QA fix: "Courses" dropdown is now a real <button> toggle
   (no placeholder href="#"). Ensure it matches the nav links.
   ============================================================ */
.dch-nav button.nav-link {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
}
.dch-nav button.nav-link:hover,
.dch-nav button.nav-link:focus {
  background: var(--dch-cloud);
  color: var(--dch-accent-dark);
}
