/* CourseBud — Phase B palette refresh. Green/blue/yellow — matches logo. */

/* HCWF subscription component theming */
:root {
  --hcwf-sub-bg: #fff;
  --hcwf-sub-border: rgba(0,0,0,.14);
  --hcwf-sub-text: var(--cb-dark, #1f2326);
  --hcwf-sub-muted: #6b7280;
  --hcwf-sub-accent: var(--cb-green, #2a2a2a);
  --hcwf-sub-accent-text: #fff;
  --hcwf-sub-accent-rgb: 42,42,42;
  --hcwf-sub-radius: 14px;
  --hcwf-sub-btn-radius: 999px;
}

/* Billing toggle (BookBud-style) */
.cb-billing-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cb-toggle-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  padding: .5rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: inherit;
  letter-spacing: .01em;
}
.cb-toggle-btn:hover:not(.active) { color: var(--cb-dark, #1f2326); }
.cb-toggle-btn.active {
  background: var(--cb-green, #2a2a2a);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.cb-save-badge {
  background: rgba(201,162,74,.2);
  color: #8a6b00;
  border: 1px solid rgba(201,162,74,.42);
  font-size: .66rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.35;
}
.cb-toggle-btn.active .cb-save-badge {
  background: rgba(255,255,255,.22);
  color: #fff;
  border-color: rgba(255,255,255,.38);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
}

h1, h2, h3, h4, .cb-hero-title, .cb-section-title, .cb-plan-name {
  font-family: var(--font-display);
  color: var(--cb-dark);
}

/* Hero — full-bleed background image with readability scrim */
.cb-hero {
  position: relative;
  background-image: url('/static/img/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  overflow: hidden;
}
/* Dark-to-transparent scrim so light text on bright images remains readable */
.cb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.cb-hero-inner {
  position: relative;
  z-index: 1;
}
.cb-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.cb-hero-sub {
  max-width: 720px;
  color: #f7f7f6;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.cb-hero-hint { color: #cfcfcf; font-size: 0.9rem; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }

/* Right-side student card inside the hero */
.cb-student-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 1.75rem;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.cb-student-card h2 { color: #fff; font-family: var(--font-display); }
.cb-student-card p  { color: #e8e8e8; margin-bottom: 1rem; }
.cb-student-card-tag {
  display: inline-block;
  background: var(--cb-gold);
  color: #1a1a1a;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 999px;
  margin-bottom: .85rem;
}
.cb-student-card .btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.cb-student-card .btn-outline-light:hover {
  background: #fff;
  color: var(--cb-dark);
}

/* Hero-scoped outline button: white on dark scrim */
.cb-hero .cb-btn-outline {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255,255,255,0.06);
}
.cb-hero .cb-btn-outline:hover {
  background: #ffffff;
  color: var(--cb-dark);
}

/* Buttons */
.cb-btn-gold {
  background: var(--cb-yellow);
  color: #1a1a1a;
  border: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
}
.cb-btn-gold:hover { background: #a37f2e; color: #1a1a1a; }

.cb-btn-outline {
  background: transparent;
  color: var(--cb-green);
  border: 2px solid var(--cb-green);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
}
.cb-btn-outline:hover { background: var(--cb-green); color: #fff; }

/* Section titles */
.cb-section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

/* Trust strip */
.cb-trust-strip {
  border-top: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  background: #f7f7f6;
}
.cb-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: #4a4e52;
  font-weight: 500;
}
.cb-trust-item .cb-trust-icon {
  font-size: 1.6rem;
  color: var(--cb-green);
}

/* Steps */
.cb-step {
  padding: 1.5rem;
  border-radius: 16px;
  background: #f7f7f6;
  height: 100%;
}
.cb-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cb-green);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

/* Pricing cards */
.cb-plan {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cb-plan-featured {
  border: 2px solid var(--cb-yellow);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.cb-plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--cb-yellow);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 999px;
}
.cb-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.cb-plan-price {
  margin: 0.75rem 0 0.25rem;
  color: var(--cb-green);
}
.cb-plan-dollar { font-size: 1.2rem; font-weight: 700; vertical-align: top; }
.cb-plan-amount { font-size: 3rem; font-weight: 900; line-height: 1; }
.cb-plan-per { font-size: 1rem; color: #6b7380; font-weight: 600; }
.cb-plan-cap {
  font-weight: 700;
  color: var(--cb-dark);
  margin-bottom: 1rem;
}
.cb-plan-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  flex: 1;
}
.cb-plan-features li {
  padding: 6px 0;
  color: #333;
  font-size: 0.95rem;
}
.cb-plan-features .bi-check-circle-fill {
  color: var(--cb-green);
  margin-right: 6px;
}

/* CTA band */
.cb-cta {
  background: var(--cb-dark);
  color: #fff;
}
.cb-cta h2 { color: #fff; }
.cb-cta .lead { color: #cfcfcf; }

/* Course detail hero: uses the course's cover image as a blurred backdrop so
   the hero picks up the book's own palette. Falls back to the site green gradient. */
.cb-course-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--cb-green), var(--cb-dark));
  overflow: hidden;
}
.cb-course-hero-cover::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--cover-url);
  background-size: cover;
  background-position: center center;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.1);
  opacity: 0.85;
  z-index: 0;
}
.cb-course-hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}
/* Override the global h1..h4 { color: var(--cb-dark) } rule inside the hero */
.cb-course-hero h1,
.cb-course-hero h2,
.cb-course-hero p,
.cb-course-hero .lead,
.cb-course-hero strong {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* ---------- HCWF overrides ---------- */

/* Logo: display at a minimum of 350px wide; let the navbar thicken to fit tall aspects.
   Overrides HCWF core cap (max-height:72px + overflow:hidden on .navbar-brand). */
.hcwf-navbar .navbar-brand {
  overflow: visible !important;
  min-width: 350px !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}
.hcwf-navbar .navbar-brand img {
  width: 350px !important;
  max-width: 350px !important;
  max-height: none !important;
  height: auto !important;
}
@media (max-width: 991px) {
  .hcwf-navbar .navbar-brand {
    min-width: 0 !important;
    max-width: calc(100% - 74px) !important;
  }
  .hcwf-navbar .navbar-brand img {
    width: 100% !important;
    max-width: 280px !important;
  }
}
@media (max-width: 767px) {
  .hcwf-navbar .navbar-brand img {
    max-width: 220px !important;
  }
}

/* Footer: HCWF core template uses var(--mm-footer-text) for text but leaves .site-footer
   with no background — text goes invisible on white. Apply the dark footer bg. */
.site-footer {
  background: var(--mm-footer-bg);
  color: var(--mm-footer-text);
}
.site-footer a { color: var(--mm-footer-text); }
.site-footer a:hover { color: var(--cb-yellow); }

/* ---------- Mobile responsiveness ---------- */
@media (max-width: 767px) {
  /* Hero */
  .cb-student-card { padding: 1.25rem; margin-top: 1.5rem; }
  .cb-hero-sub { font-size: 1rem; }

  /* Section padding tighter */
  section.py-5 { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }

  /* Plan cards: remove lifted transform so stacked cards line up */
  .cb-plan-featured { transform: none; }
  .cb-plan { padding: 1.5rem 1.25rem; }
  .cb-plan-amount { font-size: 2.25rem; }
  .cb-plan-name { font-size: 1.15rem; }

  /* Steps */
  .cb-step { padding: 1.25rem; }
  .cb-step-num { width: 40px; height: 40px; font-size: 1.1rem; }

  /* Trust strip vertical spacing */
  .cb-trust-item { font-size: .85rem; }

  /* Touch targets */
  .cb-btn-gold, .cb-btn-outline { min-height: 44px; padding: .75rem 1.25rem; }

  /* Billing toggle fits phones */
  .cb-toggle-btn { padding: .45rem 1rem; font-size: .85rem; }
}
