/* =========================================================
   CREDENCE ACADEMY – DARK MODE
   ========================================================= */
html.dark{--gold-ink:#d6a734;--brand:#cfe0fb;--bg:#061230;--surface:#0b1c47;--white:#0a1838;--ink:#eef4ff;--ink-soft:#c9d6f0;--muted:#98a8cb;--border:#1f3566;--gold-soft:#2a2a14;--green-soft:#0f2a66;--sage:#1d3f8f;--sky-soft:#0c2250;--shadow:0 14px 34px rgba(0,0,0,.55)}
html.dark .site-header{background:rgba(7,18,46,.94)}
html.dark .icon-btn{background:#0a1f55}

/* Courses page – exam ticker follows the same dark surface treatment
   as the other dark-mode sections (no leftover navy/light strip). */
html.dark .cr-strip {
  background: var(--surface, #0a1f55) !important;
  border-top: 1px solid var(--border, #1f3566) !important;
  border-bottom: 1px solid var(--border, #1f3566) !important;
  color: var(--ink, #eef4fd) !important;
}
html.dark .cr-strip .cr-track li {
  color: var(--ink, #eef4fd) !important;
  text-shadow: none !important;
}
html.dark .cr-strip .cr-track li::after {
  background: var(--gold-ink, #d6a734) !important;
}


/* =========================================================
   ONE DARK BACKGROUND FOR EVERY SECTION (all pages)
   Sections, heroes and footer all sit on --bg (#061230).
   Cards/panels inside them use --surface (#0b1c47).
   ========================================================= */
html.dark{--bg:#061230;--surface:#0b1c47;--white:#0b1c47}
html.dark body{background:#061230}
html.dark main,
html.dark main > section,
html.dark main > header,
html.dark main > div,
html.dark body > section,
html.dark section[class],
html.dark .site-footer,
html.dark .ch-hero,html.dark .rs-hero,html.dark .hm-hero,html.dark .h2-hero,
html.dark .cr-hero,html.dark .ab-hero,html.dark .nf,html.dark .au-main,
html.dark .contact-page .ch-hero{
  background:#061230!important;
  background-image:none!important;
}
html.dark .site-footer{border-top:1px solid var(--border)}
/* hero photo overlays share the same dark base */
html.dark .ch-shade,html.dark .h2-shade,html.dark .rs-shade,html.dark .hm-shade,
html.dark .contact-page .ch-shade{
  background:linear-gradient(90deg,rgba(6,18,48,.92) 0%,rgba(6,18,48,.72) 50%,rgba(6,18,48,.45) 100%)!important;
}
html.dark .site-header{background:rgba(6,18,48,.94)}


/* Home 2 Dream Posts dark mode */
html.dark .clean-job-card{background:var(--white);border-color:var(--border);box-shadow:0 10px 28px rgba(0,0,0,.24)}
html.dark .clean-job-body h3{color:var(--ink)}
html.dark .clean-job-link{background:var(--gold);color:#041a52!important}
html.dark .clean-job-link:hover{background:#f0c85b;color:#041a52!important}
html.dark .clean-posts-note{color:var(--muted)}

/* CONTACT PAGE – DARK MODE CONTRAST GUARANTEE */
html.dark body.contact-page .ci-section,
html.dark body.contact-page .mp-section{background:#061230!important;color:#eef4ff!important}
html.dark body.contact-page .ci-head h2,
html.dark body.contact-page .ci-card h3{color:#ffffff!important}
html.dark body.contact-page .ci-head p,
html.dark body.contact-page .ci-card .ci-note,
html.dark body.contact-page .ci-card address,
html.dark body.contact-page .ci-card p{color:#dce7fb!important;opacity:1!important}
html.dark body.contact-page .ci-card .ci-main,
html.dark body.contact-page .ci-card .ci-main a,
html.dark body.contact-page .ci-card .ci-link{color:#ffffff!important;opacity:1!important}
html.dark body.contact-page .ci-card{background:#102b70!important;border:1px solid #35518d!important;color:#ffffff!important;box-shadow:0 12px 28px rgba(0,0,0,.22)}
html.dark body.contact-page .ci-card .ci-icon{background:#183b89!important;color:#ffffff!important}
html.dark body.contact-page .eq-section{background:#061230!important;color:#eef4ff!important}
html.dark body.contact-page .eq-card{background:#0b1c47!important;border-color:#294273!important;color:#eef4ff!important}
html.dark body.contact-page .eq-field label,
html.dark body.contact-page .eq-field legend,
html.dark body.contact-page .eq-consent label{color:#f4f7ff!important;opacity:1!important}
html.dark body.contact-page .eq-field small{color:#c1d0eb!important}
html.dark body.contact-page .eq-field input,
html.dark body.contact-page .eq-field select,
html.dark body.contact-page .eq-field textarea{background:#061230!important;color:#ffffff!important;border-color:#456092!important}
html.dark body.contact-page .eq-field input::placeholder,
html.dark body.contact-page .eq-field textarea::placeholder{color:#aebfdf!important;opacity:1!important}
html.dark body.contact-page .eq-pills span{background:#102b62!important;color:#e8efff!important;border-color:#456092!important}
html.dark body.contact-page .eq-pills input:checked+span{background:#d6a734!important;border-color:#d6a734!important;color:#061230!important}
html.dark body.contact-page .eq-done h3,
html.dark body.contact-page .eq-done p{color:#ffffff!important}

/* CONTACT PAGE – keep breadcrumb and hero actions consistent in dark mode */
html.dark body.contact-page .ch-crumb,
html.dark body.contact-page .ch-crumb a,
html.dark body.contact-page .ch-crumb span {
  color: #eef4ff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.28);
}
html.dark body.contact-page .ch-crumb span::before {
  color: #c9d6f0 !important;
  opacity: .85 !important;
}
html.dark body.contact-page .ch-crumb a:hover {
  color: #f0c85b !important;
}
html.dark body.contact-page .ch-status {
  color: #eef4ff !important;
  background: rgba(6,18,48,.78) !important;
  border-color: rgba(207,224,251,.42) !important;
}
/* Match the shared secondary button treatment used across the site. */
html.dark body.contact-page .ch-actions a.btn.btn-ghost {
  background: transparent !important;
  border: 2px solid #cfe0fb !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
html.dark body.contact-page .ch-actions a.btn.btn-ghost:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* Home 1 – redesigned sections 3 to 6 */
html.dark .hx-lg{border-color:var(--border)}
html.dark .hx-lg input[type=text],html.dark .hx-lg input[type=password]{background:#061230;border-color:var(--border);color:var(--ink)}
html.dark .hx-lg input:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(214,167,52,.2)}
html.dark .hx-lg-h img{background:#fff}

/* =========================================================
   HOME 2 – DARK MODE TEXT VISIBILITY FIX
   (hero + Dream posts used hard-coded navy text / light wash)
   ========================================================= */
/* hero: dark wash instead of the light one, light text */
html.dark .h2-hero-fullbleed{background:#061230!important;color:#eef4ff!important}
html.dark .h2-hero-fullbleed::before{
  background:linear-gradient(90deg,rgba(6,18,48,.96) 0%,rgba(6,18,48,.92) 30%,rgba(6,18,48,.72) 46%,rgba(6,18,48,.3) 64%,rgba(6,18,48,.04) 82%)!important}
html[dir="rtl"].dark .h2-hero-fullbleed::before,
html.dark[dir="rtl"] .h2-hero-fullbleed::before{
  background:linear-gradient(270deg,rgba(6,18,48,.96) 0%,rgba(6,18,48,.92) 30%,rgba(6,18,48,.72) 46%,rgba(6,18,48,.3) 64%,rgba(6,18,48,.04) 82%)!important}
html.dark .h2-hero-fullbleed .h2-fullbleed-image{filter:brightness(.78) saturate(.95)}
html.dark .h2-hero-fullbleed .h2-pill{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.25)!important;color:#e2bd5e!important}
html.dark .h2-hero-fullbleed .h2-copy h1{color:#fff!important}
html.dark .h2-hero-fullbleed .h2-hl{color:#e0b33d!important;-webkit-text-fill-color:#e0b33d!important}
html.dark .h2-hero-fullbleed .h2-lede{color:#d3ddf2!important}
html.dark .h2-hero-fullbleed .h2-secondary-btn{color:#fff!important;border-color:rgba(255,255,255,.45)!important;background:rgba(255,255,255,.08)!important}
html.dark .h2-hero-fullbleed .h2-secondary-btn:hover{background:rgba(255,255,255,.16)!important;border-color:#fff!important}
html.dark .h2-hero-fullbleed .h2-exam-line{color:#fff!important}
html.dark .h2-hero-fullbleed .h2-exam-line>span{color:#aab7ce!important}
@media(max-width:980px){
  html.dark .h2-hero-fullbleed::before{background:linear-gradient(90deg,rgba(6,18,48,.96) 0%,rgba(6,18,48,.9) 46%,rgba(6,18,48,.55) 76%,rgba(6,18,48,.2) 100%)!important}
}
@media(max-width:700px){
  html.dark .h2-hero-fullbleed::before{background:linear-gradient(180deg,rgba(6,18,48,.9),rgba(6,18,48,.8))!important}
}

/* Dream posts cards */
html.dark .clean-job-kicker{color:#e2bd5e!important}
html.dark .clean-job-body h3{color:#fff!important}
html.dark .clean-job-desc{color:#c9d6f0!important}
html.dark .clean-job-meta span{color:#eef4ff!important;background:#12295f!important;border-color:#2a4580!important}
html.dark .clean-job-meta b{color:#e2bd5e!important}
html.dark .clean-job-link{background:var(--gold)!important;color:#041a52!important}
html.dark .clean-job-link:hover{background:#f0c85b!important}
html.dark .clean-job-card:hover{border-color:var(--gold)}
html.dark .clean-posts-footer a{background:var(--gold);color:#041a52!important}
html.dark .clean-posts-footer a:hover{background:#f0c85b;color:#041a52!important}
html.dark .h2-posts .h2-head h2{color:#fff}
html.dark .h2-posts .h2-head>p{color:#c9d6f0}
html.dark .h2-f{color:#dce7fb}
