/* ============================================================
   FLCEO Design System — main.css
   Bootstrap 5.3 customizations + component library
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) ---
   Colour values are aliased to --theme-* variables injected by
   theme-inject.php so the palette is database-driven.
   Fallback hex values match the purple-gradient default theme.       */
:root {
  --flceo-primary: var(--theme-primary-start, #667eea);
  --flceo-primary-light: var(--theme-primary-end, #764ba2);
  --flceo-primary-dark: color-mix(in srgb, var(--theme-primary-start, #667eea) 70%, #000);
  --flceo-accent: var(--theme-accent, #e67e22);
  --flceo-accent-light: color-mix(in srgb, var(--theme-accent, #e67e22) 80%, #fff);
  --flceo-accent-dark: color-mix(in srgb, var(--theme-accent, #e67e22) 80%, #000);
  --flceo-button: var(--theme-button-bg, var(--theme-accent, #e67e22));
  --flceo-button-light: color-mix(in srgb, var(--flceo-button) 80%, #fff);
  --flceo-button-hover: var(--theme-button-hover-bg, color-mix(in srgb, var(--flceo-button) 80%, #000));
  --flceo-button-hover-text: var(--theme-button-hover-text, var(--theme-accent-btn-text, var(--theme-btn-text, #fff)));
  --flceo-button-dark: var(--flceo-button-hover);
  --flceo-pill: var(--theme-pill-bg, var(--theme-accent, #e67e22));
  --flceo-pill-dark: var(--flceo-pill-hover, color-mix(in srgb, var(--flceo-pill) 80%, #000));
  --flceo-pill-hover: var(--theme-pill-hover-bg, color-mix(in srgb, var(--flceo-pill) 80%, #000));
  --flceo-pill-hover-text: var(--theme-pill-hover-text, var(--theme-pill-text, var(--theme-accent-btn-text, #fff)));
  --flceo-ghost: var(--theme-ghost-color, var(--theme-button-bg, var(--theme-accent, #e67e22)));
  --flceo-pill-ghost: var(--theme-pill-ghost-color, var(--theme-ghost-color, var(--theme-button-bg, var(--theme-accent, #e67e22))));
  --flceo-ghost-hover: var(--theme-ghost-hover-bg, var(--theme-button-bg, var(--theme-accent, #e67e22)));
  --flceo-ghost-hover-text: var(--theme-ghost-hover-text, var(--theme-accent-btn-text, var(--theme-btn-text, #fff)));
  --flceo-pill-ghost-hover: var(--theme-pill-ghost-hover-bg, var(--theme-pill-bg, var(--theme-accent, #e67e22)));
  --flceo-pill-ghost-hover-text: var(--theme-pill-ghost-hover-text, var(--theme-pill-text, var(--theme-accent-btn-text, #fff)));
  --theme-state-highlight: var(--theme-accent, #e67e22);
  --theme-state-highlight-hover: color-mix(in srgb, var(--theme-accent, #e67e22) 80%, #000);
  --flceo-success: var(--theme-success, #27ae60);
  --flceo-danger: var(--theme-danger, #e74c3c);
  --flceo-warning: var(--theme-warning, #f1c40f);
  --flceo-info: var(--theme-info, #3498db);

  --flceo-bg: var(--theme-bg, #f8f9fa);
  --flceo-bg-white: var(--theme-surface, #ffffff);
  --flceo-bg-muted: color-mix(in srgb, var(--theme-bg, #f8f9fa) 90%, var(--theme-text, #2c3e50) 10%);
  --flceo-text: var(--theme-text, #2c3e50);
  --flceo-text-muted: var(--theme-text-muted, #6c757d);
  --flceo-text-light: #95a5a6;
  --flceo-border: var(--theme-border, #dee2e6);
  --flceo-border-light: #e9ecef;

  --flceo-radius-sm: var(--theme-radius-sm, 0.375rem);
  --flceo-radius: var(--theme-radius, 0.5rem);
  --flceo-radius-lg: var(--theme-radius-lg, 0.75rem);
  --flceo-radius-xl: var(--theme-radius-xl, 1rem);

  --flceo-shadow-sm: var(--theme-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
  --flceo-shadow: var(--theme-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
  --flceo-shadow-lg: var(--theme-shadow-lg, 0 4px 16px rgba(0, 0, 0, 0.12));
  --flceo-shadow-xl: var(--theme-shadow-xl, 0 8px 32px rgba(0, 0, 0, 0.15));
  --flceo-section-divider-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);

  --flceo-transition: 0.2s ease;
  --flceo-transition-slow: 0.3s ease;
}

/* --- Base / Global --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--theme-font-family, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--theme-font-size-base, 1rem);
  color: var(--flceo-text);
  background-color: var(--flceo-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--theme-heading-text, var(--theme-text, var(--flceo-primary-dark)));
}

.text-muted {
  color: var(--theme-text-muted, var(--flceo-text-muted)) !important;
}

/* Headings/body on dark gradient sections keep their section text color */
.hero-section :is(h1, h2, h3, h4, h5, h6),
.hero-section p,
.hero-section .lead,
.pb-hero-banner :is(h1, h2, h3, h4, h5, h6),
.pb-hero-banner p,
.pb-hero-banner .lead,
.pb-cta-gradient :is(h1, h2, h3, h4, h5, h6),
.pb-cta-gradient p,
.pb-cta-gradient .lead,
.pb-jumbotron :is(h1, h2, h3, h4, h5, h6),
.pb-jumbotron p,
.pb-jumbotron .lead,
.page-header :is(h1, h2, h3, h4, h5, h6),
.admin-band :is(h1, h2, h3, h4, h5, h6),
.filter-card-title,
.results-card-title,
.results-header :is(h1, h2, h3, h4, h5, h6),
.card-header.admin-band-inline :is(h1, h2, h3, h4, h5, h6),
.ga-txn-card__header :is(h1, h2, h3, h4, h5, h6),
.student-license-card__header :is(h1, h2, h3, h4, h5, h6),
.student-license-modal__header :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

a {
  color: var(--flceo-text);
  text-decoration: none;
  transition: color var(--flceo-transition);
}

a:hover {
  color: var(--theme-link-hover-color, var(--theme-primary-start, var(--flceo-primary)));
}

/* Links on dark gradient sections keep their section text color (not buttons) */
.hero-section a:not(.btn),
.pb-hero-banner a:not(.btn),
.pb-cta-gradient a:not(.btn),
.pb-jumbotron a:not(.btn),
.page-header a:not(.btn):not(.btn-hdr),
.admin-band a:not(.btn):not(.btn-hdr),
.filter-card-title a:not(.btn):not(.btn-hdr),
.results-header a:not(.btn):not(.btn-hdr),
.card-header.admin-band-inline a:not(.btn):not(.btn-hdr),
.ga-txn-card__header a:not(.btn):not(.btn-hdr),
.student-license-card__header a:not(.btn),
.student-license-modal__header a:not(.btn),
.consent-card a,
#consentBanner a {
  color: inherit;
}

.hero-section a:not(.btn):hover,
.pb-hero-banner a:not(.btn):hover,
.pb-cta-gradient a:not(.btn):hover,
.pb-jumbotron a:not(.btn):hover,
.page-header a:not(.btn):not(.btn-hdr):hover,
.admin-band a:not(.btn):not(.btn-hdr):hover,
.filter-card-title a:not(.btn):not(.btn-hdr):hover,
.results-header a:not(.btn):not(.btn-hdr):hover,
.card-header.admin-band-inline a:not(.btn):not(.btn-hdr):hover,
.ga-txn-card__header a:not(.btn):not(.btn-hdr):hover,
.student-license-card__header a:not(.btn):hover,
.student-license-modal__header a:not(.btn):hover,
.consent-card a:hover,
#consentBanner a:hover {
  color: inherit;
  opacity: 0.85;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Utility Classes --- */
.text-primary-brand { color: var(--flceo-primary) !important; }
.text-accent { color: var(--flceo-accent) !important; }
.bg-primary-brand { background-color: var(--flceo-primary) !important; }
.bg-accent { background-color: var(--flceo-accent) !important; }
.bg-muted { background-color: var(--flceo-bg-muted) !important; }

.section-padding {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* Soft divider shadow between stacked page sections (matches navbar) */
body > section + section,
.pb-page > section + section,
.pb-page > div + section,
.pb-page > section + div {
  position: relative;
}

body > section + section::before,
.pb-page > section + section::before,
.pb-page > div + section::before,
.pb-page > section + div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  box-shadow: var(--flceo-section-divider-shadow);
  pointer-events: none;
  z-index: 2;
}

/* --- Navbar --- */
.navbar-spacer { padding-top: 62px; }

.navbar-flceo {
  background: linear-gradient(135deg, var(--theme-nav-bg-start, var(--flceo-primary)) 0%, var(--theme-nav-bg-end, var(--flceo-primary-light)) 100%);
  box-shadow: var(--flceo-section-divider-shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1030;
}

.navbar-flceo .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--theme-nav-text, #fff) !important;
}

.navbar-flceo .navbar-brand:hover {
  color: var(--theme-nav-text, #fff) !important;
  opacity: 0.9;
}

.navbar-flceo .nav-link {
  color: var(--theme-nav-text, #fff) !important;
  opacity: 0.9;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  margin: 0 2px;
  transition: all 0.3s ease;
}

.navbar-flceo .nav-link:hover {
  color: var(--theme-nav-text, #fff) !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.navbar-flceo .nav-link.active {
  color: var(--theme-nav-text, #fff) !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.navbar-flceo .navbar-toggler {
  border: 1px solid color-mix(in srgb, var(--theme-nav-text, #fff) 35%, transparent);
  padding: 0.35rem 0.55rem;
}

.navbar-flceo .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--theme-nav-text, #fff) 25%, transparent);
}

/* Theme-aware hamburger — mask follows --theme-nav-text (not Bootstrap navbar-dark white) */
.navbar-flceo .navbar-toggler .navbar-toggler-icon {
  background-image: none;
  background-color: var(--theme-nav-text, #fff);
  -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100%;
  mask-size: 100%;
}

@media (max-width: 991.98px) {
  .navbar-flceo .navbar-nav {
    padding: 1rem 0;
  }
  .navbar-flceo .nav-link {
    margin: 0.2rem 0;
  }
  .navbar-flceo .navbar-collapse {
    background: color-mix(in srgb, var(--theme-nav-text, #fff) 8%, transparent);
    border-radius: 0 0 10px 10px;
    padding: 0 0.75rem;
    margin: 0 -0.75rem;
  }
}

/* --- Cards --- */
.card-flceo {
  background: var(--flceo-bg-white);
  border: 1px solid var(--flceo-border-light);
  border-radius: var(--flceo-radius-lg);
  box-shadow: var(--flceo-shadow-sm);
  transition: all var(--flceo-transition-slow);
  overflow: hidden;
}

.card-flceo:hover {
  box-shadow: var(--flceo-shadow-lg);
  transform: translateY(-2px);
}

.card-flceo .card-body {
  padding: 1.5rem;
}

.card-flceo .card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--theme-heading-text, var(--theme-text, inherit));
}

.card-flceo .card-subtitle {
  font-size: 0.8125rem;
  color: var(--flceo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.card-flceo .card-img-top {
  height: 180px;
  object-fit: cover;
}

/* --- Buttons --- */
.btn-flceo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--flceo-radius);
  border: 2px solid transparent;
  transition: all var(--flceo-transition);
  cursor: pointer;
}

.btn-primary-brand {
  background-color: var(--flceo-button);
  color: var(--theme-accent-btn-text, var(--theme-btn-text, #fff));
  border-color: var(--flceo-button);
}

.btn-primary-brand:hover,
.btn-primary-brand:focus {
  background-color: var(--flceo-button-hover);
  border-color: var(--flceo-button-hover);
  color: var(--flceo-button-hover-text);
  opacity: 1;
}

.btn-accent {
  background-color: var(--flceo-button);
  color: var(--theme-accent-btn-text, var(--theme-btn-text, #fff));
  border-color: var(--flceo-button);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--flceo-button-hover);
  border-color: var(--flceo-button-hover);
  color: var(--flceo-button-hover-text);
  opacity: 1;
}

.btn-outline-accent {
  background-color: var(--theme-surface, #fff);
  color: var(--flceo-ghost);
  border-color: color-mix(in srgb, var(--flceo-ghost) 70%, var(--theme-border, #dee2e6));
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
  background-color: var(--flceo-ghost-hover);
  border-color: var(--flceo-ghost-hover);
  color: var(--flceo-ghost-hover-text);
}

.btn-outline-brand {
  background-color: var(--theme-surface, #fff);
  color: var(--theme-outline-btn-text, var(--flceo-ghost));
  border: 2px solid var(--theme-outline-btn-border, var(--flceo-ghost));
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background-color: var(--theme-outline-btn-hover-bg, var(--flceo-ghost-hover));
  border-color: var(--theme-outline-btn-hover-bg, var(--flceo-ghost-hover));
  color: var(--theme-outline-btn-hover-text, var(--flceo-ghost-hover-text));
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.75rem 2rem;
}

/* --- State Selector --- */
.state-card {
  text-align: center;
  padding: 2rem 1.5rem;
  cursor: pointer;
  border: 2px solid var(--flceo-border-light);
  border-radius: var(--flceo-radius-xl);
  background: var(--flceo-bg-white);
  transition: all var(--flceo-transition-slow);
}

.state-card:hover {
  border-color: var(--flceo-primary);
  box-shadow: var(--flceo-shadow-lg);
  transform: translateY(-4px);
}

.state-card.active {
  border-color: var(--flceo-primary);
  background: linear-gradient(135deg, var(--flceo-primary), var(--flceo-primary-light));
  color: #fff;
}

.state-card.active h3,
.state-card.active p {
  color: #fff;
}

.state-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--theme-heading-text, var(--theme-text, var(--flceo-primary-dark)));
}

.state-card .state-abbr {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--theme-state-highlight, var(--theme-accent, var(--flceo-accent)));
  margin-bottom: 0.5rem;
  line-height: 1;
}

.state-card.active .state-abbr {
  color: #fff;
}

/* --- State Card SVG Icon --- */
.state-card .state-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 0.75rem;
  color: var(--theme-state-highlight, var(--theme-accent, var(--flceo-accent)));
  transition: color var(--flceo-transition-slow);
}

.state-card .state-icon .state-outline {
  width: 100%;
  height: 100%;
  display: block;
}

.state-card:hover .state-icon {
  color: var(--theme-state-highlight-hover, var(--flceo-accent-dark));
}

.state-card.active .state-icon {
  color: #fff;
}

.track-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.track-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.track-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--flceo-transition-slow);
}

.track-card:hover .track-card-image img {
  transform: scale(1.05);
}

.track-card-body {
  padding: 1.5rem 1.5rem 2rem;
}

/* --- US Map Section --- */
.us-map-section {
  background: var(--flceo-bg);
}

.us-map-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.us-map {
  max-width: 820px;
  margin: 0 auto;
}

.us-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.us-map .state-path {
  fill: var(--theme-map-inactive, #7b92b8);
  stroke: #fff;
  stroke-width: 0.75;
  stroke-linejoin: round;
  transition: fill 0.25s ease;
}

.us-map .state-path:hover {
  fill: var(--theme-map-inactive-hover, #96aac8);
  cursor: pointer;
}

.us-map .state-active {
  fill: var(--theme-state-highlight, var(--theme-accent, #e8636f));
  cursor: pointer;
}

.us-map .state-active:hover {
  fill: var(--theme-state-highlight-hover, var(--flceo-accent-dark));
}

.us-map .state-link {
  text-decoration: none;
}

.us-map .state-link:focus-visible .state-path,
.us-map .state-link:focus-visible .state-badge rect {
  outline: 2px solid var(--flceo-accent);
  outline-offset: 1px;
}

.us-map .state-label {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  font-family: inherit;
}

.us-map .leader-line {
  stroke: var(--theme-map-inactive-hover, #a0b0c8);
  stroke-width: 1;
  stroke-dasharray: 3 2;
  opacity: 0.6;
}

.us-map .state-badge rect {
  fill: var(--theme-map-inactive, #7b92b8);
  transition: fill 0.25s ease;
}

.us-map .state-badge text {
  fill: var(--theme-map-badge-text, #fff);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  font-family: inherit;
}

.us-map .state-badge-active rect {
  fill: var(--theme-state-highlight, var(--theme-accent, #e8636f));
}

.us-map .state-link:hover .state-badge-active rect {
  fill: var(--theme-state-highlight-hover, var(--flceo-accent-dark));
}

.us-map .state-path.state-hover {
  fill: var(--theme-map-inactive-hover, #96aac8);
}

.us-map .state-active.state-hover {
  fill: var(--theme-state-highlight-hover, var(--flceo-accent-dark));
}

.us-map .state-badge.badge-hover rect {
  fill: var(--theme-map-inactive-hover, #96aac8);
}

.us-map .state-badge-active.badge-hover rect {
  fill: var(--theme-state-highlight-hover, var(--flceo-accent-dark));
}

.us-map .state-badge {
  cursor: pointer;
}

/* --- Course Cards --- */
/* --- Course Category Sections --- */
.course-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cat-color, var(--flceo-primary));
}

.course-category-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--flceo-text);
}

.course-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--flceo-radius);
  background: var(--cat-color, var(--flceo-primary));
  color: #fff;
  flex-shrink: 0;
}

.course-category-count {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--flceo-text-muted);
  background: var(--flceo-bg-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
}

/* --- Course Cards --- */
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--flceo-bg-white);
  border: 1px solid var(--flceo-border-light);
  border-radius: var(--flceo-radius-lg);
  box-shadow: var(--flceo-shadow-sm);
  overflow: hidden;
  transition: all var(--flceo-transition-slow);
  position: relative;
}

.course-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.course-card:has(.course-card-stretch:focus-visible) {
  outline: 2px solid var(--flceo-ghost, var(--theme-secondary, #6c757d));
  outline-offset: 2px;
}

.course-card-stretch:focus-visible {
  outline: none;
}

.course-card .course-actions,
.course-card .course-card-desc-toggle {
  position: relative;
  z-index: 2;
}

.course-card:hover {
  box-shadow: var(--flceo-shadow-lg);
  transform: translateY(-3px);
}

.course-card-accent {
  height: 20px;
  background: var(--card-accent, var(--flceo-primary));
  flex-shrink: 0;
}

.course-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--flceo-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--flceo-transition-slow);
}

.course-card:hover .course-card-image img {
  transform: scale(1.05);
}

.course-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.course-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.course-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
}

.course-badge.badge-renewal {
  background-color: rgba(39, 174, 96, 0.12);
  color: var(--flceo-success);
}

.course-badge.badge-application {
  background-color: rgba(52, 152, 219, 0.12);
  color: var(--flceo-info);
}

.course-price-wrap {
  text-align: right;
}
.course-card .course-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--card-accent, var(--flceo-primary));
  line-height: 1;
  display: block;
}
.course-process-fee {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--flceo-text-muted, #6c757d);
  margin-top: 2px;
}

.course-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--flceo-text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.course-card-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--flceo-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.course-card-desc-wrap {
  margin-bottom: 0;
}

.course-card-desc {
  font-size: 0.8125rem;
  color: var(--flceo-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-desc-wrap.is-expanded .course-card-desc {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.course-card-desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--flceo-ghost, var(--theme-secondary, var(--flceo-text-muted)));
  text-decoration: none;
  cursor: pointer;
}

.course-card-desc-toggle:hover {
  color: color-mix(in srgb, var(--flceo-ghost, var(--theme-secondary, #6c757d)) 75%, #000);
  text-decoration: underline;
}

.course-card-desc-toggle:focus-visible {
  color: color-mix(in srgb, var(--flceo-ghost, var(--theme-secondary, #6c757d)) 75%, #000);
  outline: 2px solid var(--flceo-ghost, var(--theme-secondary, #6c757d));
  outline-offset: 2px;
  border-radius: 2px;
}

.course-card-desc-toggle__chevron {
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.85;
}

.course-card .course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--flceo-border-light);
}

.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--flceo-text-muted);
}

.course-meta-item svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.course-card .course-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.course-card .course-actions .btn {
  flex: 1;
  justify-content: center;
  gap: 0.35rem;
}

.course-card .course-start-btn {
  flex: 1.5;
}

/* --- Course landing (/course/{slug}/) --- */
.course-landing.section-padding {
  padding-top: 1.25rem;
}

.course-landing .breadcrumb {
  margin-bottom: 1rem;
}

.course-landing-panel {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, var(--flceo-text));
  border: 1px solid var(--theme-border, var(--flceo-border));
  border-radius: var(--flceo-radius-xl);
  box-shadow: var(--flceo-shadow-sm);
  padding: 1.25rem;
}

.course-landing-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.course-landing-copy {
  display: contents;
}

.course-landing-summary {
  order: 2;
}

.course-landing-body {
  order: 3;
}

.course-landing-intro h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.65rem, 2.2vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.course-landing-kicker {
  margin: 0.45rem 0 0;
  max-width: 62ch;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--theme-text, var(--flceo-text));
}

.course-landing-provider {
  margin: 0.45rem 0 0;
  font-weight: 600;
}

.home-seo-intro p {
  max-width: 72ch;
  margin-bottom: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.course-landing-body {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--theme-text, var(--flceo-text));
}

.course-landing-body > :first-child {
  margin-top: 0;
}

.course-landing-body h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.course-landing-body table {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}

.course-landing-body > :last-child {
  margin-bottom: 0;
}

.course-landing-body :where(p, li, td) {
  color: var(--theme-text, var(--flceo-text));
}

.course-landing-body img {
  max-width: 100%;
  height: auto;
}

.course-landing-summary {
  background: color-mix(in srgb, var(--theme-bg, #f8f9fa) 72%, var(--theme-surface, #fff));
  border: 1px solid var(--theme-border, var(--flceo-border));
  border-radius: var(--flceo-radius-lg);
  padding: 1rem;
}

.course-landing-media {
  margin-bottom: 1rem;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, var(--flceo-border));
  border-radius: var(--flceo-radius);
  overflow: hidden;
}

.course-landing-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  object-position: center;
  background: var(--theme-surface, #fff);
}

.course-landing-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
}

.course-landing-price {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--theme-heading-text, var(--theme-text, var(--flceo-text)));
}

.course-landing-price-row .course-process-fee {
  display: inline;
  margin-top: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text, var(--flceo-text));
}

.course-landing-tagline {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--theme-text, var(--flceo-text));
}

.course-landing-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.course-landing-facts div {
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, var(--flceo-border));
  border-radius: var(--flceo-radius);
  padding: 0.55rem 0.7rem;
}

.course-landing-facts .course-landing-fact-link {
  position: relative;
  cursor: pointer;
}

.course-landing-facts .course-landing-fact-hit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.course-landing-facts .course-landing-fact-link dd {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.course-landing-facts .course-landing-fact-link:hover,
.course-landing-facts .course-landing-fact-link:focus-within {
  border-color: var(--theme-link-hover-color, var(--theme-primary-start, var(--flceo-primary)));
}

.course-landing-facts .course-landing-fact-link:hover dd,
.course-landing-facts .course-landing-fact-link:focus-within dd {
  color: var(--theme-link-hover-color, var(--theme-primary-start, var(--flceo-primary)));
}

.course-landing-facts .course-landing-fact-hit:focus-visible {
  outline: 2px solid var(--theme-link-hover-color, var(--theme-primary-start, var(--flceo-primary)));
  outline-offset: 2px;
}

.course-landing-facts dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--theme-text, #2c3e50) 78%, var(--theme-text-muted, #6c757d));
}

.course-landing-body .text-warning {
  color: var(--theme-alert-warning-text, #664d03) !important;
}

.course-landing-facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--theme-heading-text, var(--theme-text, var(--flceo-text)));
}

.course-landing-summary .alert {
  margin-top: 1rem;
}

.course-landing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.course-landing-actions .btn {
  width: 100%;
}

.course-landing-steps {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.course-step {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, var(--flceo-text));
  border: 1px solid var(--theme-border, var(--flceo-border));
  border-radius: var(--flceo-radius-lg);
  box-shadow: var(--flceo-shadow-sm);
  padding: 1.05rem 1.15rem 1.15rem;
}

.course-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.course-step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--theme-text, var(--flceo-text));
}

@media (min-width: 768px) {
  .course-landing.section-padding {
    padding-top: 1.75rem;
  }

  .course-landing-panel {
    padding: 1.75rem 2rem;
  }

  .course-landing-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .course-landing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 22rem);
    column-gap: 2rem;
    align-items: start;
  }

  .course-landing-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
  }

  .course-landing-summary,
  .course-landing-body {
    order: 0;
  }

  .course-landing-summary {
    position: sticky;
    top: 78px;
  }
}

/* --- Quiz --- */
.quiz-progress {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--flceo-bg-white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--flceo-border-light);
  box-shadow: var(--flceo-shadow-sm);
}

.quiz-progress .progress {
  height: 8px;
  border-radius: 50rem;
  background-color: var(--theme-progress-track-bg, #e9ecef);
}

.quiz-progress .progress-bar {
  background: linear-gradient(90deg, var(--theme-progress-bar-bg, #667eea), color-mix(in srgb, var(--theme-progress-bar-bg, #667eea) 75%, #fff));
  border-radius: 50rem;
  transition: width 0.4s ease;
}

.question-block {
  background: var(--flceo-bg-white);
  border: 1px solid var(--flceo-border-light);
  border-radius: var(--flceo-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--flceo-transition);
}

.question-block.answered {
  border-color: var(--flceo-success);
}

.question-block .question-number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--flceo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.question-block .question-text {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.answer-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.875rem 1.25rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--flceo-border);
  border-radius: var(--flceo-radius);
  background: var(--flceo-bg-white);
  cursor: pointer;
  transition: all var(--flceo-transition);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.answer-option:hover {
  border-color: var(--flceo-primary-light);
  background: var(--flceo-bg-muted);
}

.answer-option.selected {
  border-color: var(--flceo-primary);
  background: rgba(26, 82, 118, 0.06);
  font-weight: 600;
}

.answer-option.correct {
  border-color: var(--flceo-success);
  background: rgba(39, 174, 96, 0.08);
}

.answer-option.incorrect {
  border-color: var(--flceo-danger);
  background: rgba(231, 76, 60, 0.08);
}

/* --- Quiz Results --- */
.result-hero {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--flceo-radius-xl);
  margin-bottom: 2rem;
}

.result-hero.passed {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(39, 174, 96, 0.15));
  border: 2px solid var(--flceo-success);
}

.result-hero.failed {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(231, 76, 60, 0.15));
  border: 2px solid var(--flceo-danger);
}

.result-hero .result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.result-hero .result-score {
  font-size: 2.5rem;
  font-weight: 800;
}

/* --- License Entry --- */
.license-section {
  background: var(--flceo-bg-white);
  border: 1px solid var(--flceo-border-light);
  border-radius: var(--flceo-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.license-section .license-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.license-section .license-header h5 {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 700;
}

.license-lookup-status {
  display: block;
  width: 100%;
}

.license-lookup-status-message {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.license-lookup-status-message.is-success {
  background: rgba(39, 174, 96, 0.12);
  color: #1e7e45;
  border: 1px solid rgba(39, 174, 96, 0.28);
}

.license-lookup-status-message.is-info {
  background: rgba(13, 202, 240, 0.14);
  color: #055160;
  border: 1px solid rgba(13, 202, 240, 0.35);
}

.license-lookup-status-message.is-warning {
  background: rgba(241, 196, 15, 0.16);
  color: #856404;
  border: 1px solid rgba(241, 196, 15, 0.35);
}

.license-lookup-status-message.is-error {
  background: rgba(231, 76, 60, 0.1);
  color: #a82315;
  border: 1px solid rgba(231, 76, 60, 0.28);
}

.license-lookup-status.found {
  background: rgba(39, 174, 96, 0.1);
  color: var(--flceo-success);
}

.license-lookup-status.not-found {
  background: rgba(231, 76, 60, 0.1);
  color: var(--flceo-danger);
}

.license-lookup-status.mismatch {
  background: rgba(241, 196, 15, 0.15);
  color: #d4a106;
}

.license-lookup-help {
  line-height: 1;
  vertical-align: middle;
}

.license-lookup-help .fa-circle-info {
  font-size: 1rem;
}

.license-lookup-mode-group .btn {
  border-radius: 50rem !important;
  font-weight: 600;
  min-width: 7rem;
}

.license-lookup-mode-group .btn-flceo.btn-outline-accent {
  color: var(--flceo-pill-ghost);
  border-color: color-mix(in srgb, var(--flceo-pill-ghost) 70%, var(--theme-border, #dee2e6));
  background: var(--theme-surface, #fff);
}

.license-lookup-mode-group .btn-flceo.btn-outline-accent:hover,
.license-lookup-mode-group .btn-flceo.btn-outline-accent:focus {
  color: var(--flceo-pill-ghost-hover-text);
  background: var(--flceo-pill-ghost-hover);
  border-color: var(--flceo-pill-ghost-hover);
}

.license-lookup-mode-group .btn-check:checked + .btn {
  background: var(--flceo-pill);
  border-color: var(--flceo-pill);
  color: var(--theme-pill-text, var(--theme-accent-btn-text, var(--theme-btn-text, #fff)));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--flceo-pill) 35%, transparent);
}

.license-lookup-mode-group .btn-check:checked + .btn:hover,
.license-lookup-mode-group .btn-check:checked + .btn:focus {
  background: var(--flceo-pill-hover);
  border-color: var(--flceo-pill-hover);
  color: var(--flceo-pill-hover-text);
}

.license-name-search-group .form-control::placeholder {
  color: color-mix(in srgb, var(--theme-text-muted, #6c757d) 85%, transparent);
}

@media (max-width: 575.98px) {
  .license-lookup-mode-group {
    flex-direction: column;
    align-items: stretch;
  }

  .license-lookup-mode-group .btn {
    width: 100%;
    min-width: 0;
  }

  .license-lookup-by-number .input-group,
  .license-name-search-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .license-lookup-by-number .input-group > .form-control,
  .license-lookup-by-number .input-group > .btn,
  .license-name-search-group > .form-control,
  .license-name-search-group > .btn {
    width: 100%;
    margin-left: 0;
    border-radius: var(--flceo-radius, 0.5rem) !important;
  }
}

.btn-lookup.focus-ring {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.45);
}

/* License lookup modal */
#licenseLookupModal .license-lookup-modal-dialog {
  max-width: 42rem;
  margin: 1rem auto;
}

#licenseLookupModal .modal-body {
  overflow: visible;
}

.license-lookup-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 1rem;
}

.license-lookup-modal-loading .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

.license-lookup-modal-found-card {
  background: var(--flceo-surface-muted, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--flceo-border, rgba(0, 0, 0, 0.08));
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.license-lookup-modal-found-card .lookup-detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--flceo-text-muted, #6c757d);
  margin-bottom: 0.125rem;
}

.license-lookup-modal-found-card .lookup-detail-value {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.license-lookup-modal-found-card .lookup-detail-value:last-child {
  margin-bottom: 0;
}

.license-lookup-modal-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.license-lookup-suggestion-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  border: 1px solid var(--flceo-border, rgba(0, 0, 0, 0.12));
  border-radius: 0.5rem;
  background: var(--flceo-surface, #fff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.license-lookup-suggestion-card:hover,
.license-lookup-suggestion-card:focus {
  border-color: var(--flceo-accent, var(--bs-primary));
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.12);
  background: var(--flceo-surface-muted, rgba(0, 0, 0, 0.02));
}

.license-lookup-suggestion-card .suggestion-license {
  font-size: 1rem;
  font-weight: 700;
  color: var(--flceo-accent, var(--bs-primary));
  margin-bottom: 0.125rem;
}

.license-lookup-suggestion-card .suggestion-name {
  font-size: 0.875rem;
  color: var(--flceo-text-muted, #6c757d);
}

.license-lookup-suggestion-card .suggestion-select-hint {
  font-size: 0.75rem;
  color: var(--flceo-text-muted, #6c757d);
  margin-top: 0.375rem;
}

.license-lookup-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.license-lookup-application-course {
  border: 1px solid var(--flceo-border, rgba(0, 0, 0, 0.12));
  border-radius: 0.5rem;
  padding: 1rem 1.125rem;
  background: var(--flceo-surface-muted, rgba(0, 0, 0, 0.03));
}

.license-lookup-application-course-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--flceo-text-muted, #6c757d);
  margin-bottom: 0.375rem;
}

.license-lookup-application-course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--flceo-accent, var(--bs-primary));
  margin-bottom: 0.25rem;
}

.license-lookup-application-course-meta {
  font-size: 0.875rem;
  color: var(--flceo-text-muted, #6c757d);
}

@media (min-width: 576px) {
  .license-lookup-modal-actions--row {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.license-number-input.is-invalid + .btn-lookup,
.input-group:has(.license-number-input.is-invalid) .btn-lookup {
  border-color: var(--bs-danger);
}

/* --- Checkout / Payment --- */
.payment-card {
  background: var(--flceo-bg-white);
  border: 1px solid var(--flceo-border-light);
  border-radius: var(--flceo-radius-xl);
  padding: 2rem;
  box-shadow: var(--flceo-shadow);
  max-width: 500px;
  margin: 0 auto;
}

.payment-card .clover-field {
  border: 2px solid var(--flceo-border);
  border-radius: var(--flceo-radius);
  padding: 0;
  height: 48px;
  overflow: hidden;
  transition: border-color var(--flceo-transition);
}

.payment-card .clover-field:focus-within {
  border-color: var(--flceo-primary);
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.15);
}

.payment-card .clover-field.has-error {
  border-color: var(--flceo-danger);
}

.payment-summary {
  background: var(--flceo-bg-muted);
  border-radius: var(--flceo-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.payment-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.payment-summary .summary-total {
  font-weight: 800;
  font-size: 1.125rem;
  border-top: 2px solid var(--flceo-border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* --- Overlay / Loading --- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--flceo-transition-slow);
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-overlay .spinner-border {
  width: 3rem;
  height: 3rem;
  color: var(--flceo-primary);
}

/* --- Cookie Consent Card (floating bottom) --- */
#consentBanner.consent-card,
.consent-card {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 460px;
  width: calc(100% - 2rem);
  z-index: 10000;
  background: var(--theme-primary-start, #667eea);
  background: color-mix(in srgb, var(--theme-primary-start, #667eea) 70%, #000);
  color: rgba(255, 255, 255, 0.95);
  border-radius: var(--flceo-radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#consentBanner.consent-card.show,
.consent-card.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Header row: icon+title left, expand chevron right */
.consent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.consent-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.consent-card-title i {
  font-size: 1.1rem;
  opacity: 0.85;
}

.consent-card-expand {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: inherit;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.3s ease;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.consent-card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.consent-card-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: inherit;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  font-size: 0.85rem;
  flex-shrink: 0;
  line-height: 1;
}

.consent-card-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.consent-card-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.consent-card-expand:hover {
  background: rgba(255, 255, 255, 0.2);
}

.consent-card-expand.open {
  transform: rotate(180deg);
}

/* Collapsible details section */
.consent-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.consent-card-details.open {
  max-height: 500px;
  opacity: 1;
}

.consent-card-subtitle {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

/* Category cards */
.consent-categories {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.consent-category {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--flceo-radius);
  padding: 0.6rem 0.75rem;
}

.consent-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.consent-category-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.consent-category-icon {
  font-size: 0.8rem;
  opacity: 0.7;
  width: 0.9rem;
  text-align: center;
}

.consent-category-name {
  font-weight: 600;
  font-size: 0.82rem;
}

.consent-category-desc {
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.55;
  margin: 0;
}

.consent-always-on {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.45;
  font-weight: 600;
}

/* Toggle switch */
.consent-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: background 0.25s ease;
}

.consent-toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.consent-toggle input:checked + .consent-toggle-slider {
  background: rgba(255, 255, 255, 0.55);
}

.consent-toggle input:checked + .consent-toggle-slider::before {
  transform: translateX(16px);
}

/* Action buttons (compact row) */
.consent-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.consent-card-actions .btn {
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 1rem;
  border-radius: var(--flceo-radius);
  flex: 1;
}

/* Detail-panel save + decline row */
.consent-card-actions-detail {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.consent-card-actions-detail .btn {
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 1.25rem;
  border-radius: var(--flceo-radius);
}

.consent-decline-link {
  color: rgba(255, 255, 255, 0.45) !important;
  text-decoration: underline;
  font-size: 0.75rem;
}

.consent-decline-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Privacy link */
.consent-card-privacy {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4) !important;
  text-decoration: underline;
}

.consent-card-privacy:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Hide primary actions when details panel is open */
.consent-card.details-open .consent-card-actions {
  display: none;
}

/* --- Footer --- */
.footer-flceo {
  background: linear-gradient(135deg, var(--theme-footer-bg-start, #4a5cb8) 0%, var(--theme-footer-bg-end, #5a3880) 100%);
  color: var(--theme-footer-text, #ffffff);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-flceo a {
  color: var(--theme-footer-text, #ffffff);
  transition: color var(--flceo-transition);
  opacity: 0.85;
}

.footer-flceo a:hover {
  color: var(--theme-footer-text, #ffffff);
  opacity: 1;
}

.footer-flceo h6 {
  color: var(--theme-footer-text, #ffffff);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-flceo .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.8125rem;
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--theme-primary-start, var(--flceo-primary)) 0%, var(--theme-primary-end, var(--flceo-primary-light)) 100%);
  color: var(--theme-header-text, #fff);
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero-text {
  max-width: 560px;
}

.hero-icon {
  display: inline-block;
  width: 128px;
  height: 128px;
  max-width: 128px;
  max-height: 128px;
  flex-shrink: 0;
  color: var(--theme-header-text, #fff);
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}

.hero-section h1 {
  color: var(--theme-header-text, #fff);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.hero-section h1 span {
  display: block;
  font-weight: 400;
  opacity: .9;
  font-size: 0.85em;
}

.hero-section .lead {
  font-size: 1rem;
  opacity: 0.9;
}

.course-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.course-hero-text {
  flex: 1;
  min-width: 0;
}

.course-hero-state-icon {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  color: var(--theme-header-text, #fff);
  opacity: 0.85;
}

.course-hero-state-icon .state-outline {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  margin: 0 auto 1.5rem;
  max-width: 480px;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 0.25rem;
}

.hero-media {
  flex-shrink: 0;
}

.hero-image {
  display: block;
  max-width: 100%;
  width: 380px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.2));
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3rem 0 2.5rem;
  }
  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 2.5rem;
  }
  .hero-text {
    flex: 1;
    min-width: 0;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section .lead {
    margin-left: 0;
    font-size: 1.1rem;
  }
  .hero-image {
    width: 440px;
  }
}

@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 2.85rem;
  }
  .hero-icon {
    width: 144px;
    height: 144px;
    max-width: 144px;
    max-height: 144px;
  }
  .hero-image {
    width: 520px;
  }
}

@media (min-width: 1200px) {
  .hero-section {
    padding: 3.5rem 0 3rem;
  }
  .hero-section h1 {
    font-size: 3.25rem;
  }
  .hero-image {
    width: 580px;
  }
}

/* --- Badge / Status --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.status-pending { background: var(--theme-status-pending-bg, #fef3c7); color: var(--theme-status-pending-text, #b7950b); }
.status-badge.status-approved { background: var(--theme-status-approved-bg, #d1fae5); color: var(--theme-status-approved-text, #27ae60); }
.status-badge.status-flagged { background: var(--theme-status-flagged-bg, #ffedd5); color: var(--theme-status-flagged-text, #e67e22); }
.status-badge.status-rejected { background: var(--theme-status-rejected-bg, #fee2e2); color: var(--theme-status-rejected-text, #e74c3c); }

/* --- Form Enhancements ---
   Force input fill to --theme-input-bg. Bootstrap uses --bs-body-bg for
   .form-control, and ThemeService maps --bs-body-bg → --theme-bg (page canvas).
   When the canvas is a brand tan/cream, inputs would inherit that color. */
.form-control,
.form-select {
  border: 2px solid var(--theme-input-border, #dee2e6);
  background-color: var(--theme-input-bg, #ffffff);
  color: var(--theme-input-text, #212529);
}
.form-control::placeholder,
.form-select::placeholder {
  color: var(--theme-input-placeholder, #6c757d);
  opacity: 1;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--theme-input-focus-border, #667eea);
  background-color: var(--theme-input-bg, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-input-focus-border, #667eea) 15%, transparent);
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--theme-form-label-text, #212529);
}
.form-check-label {
  color: var(--theme-form-check-label-text, #212529);
}

.field-error {
  font-size: 0.8125rem;
  color: var(--flceo-danger);
  margin-top: 0.25rem;
}

/* --- Themed Checkboxes (site-wide) ---
   Excludes pill toggles (.btn-check), Bootstrap switches ([role="switch"]),
   and admin toggle rows (.admin-switch — styled separately in admin.css). */
input[type="checkbox"]:not(.btn-check):not([role="switch"]) {
  width: 1.2em;
  height: 1.2em;
  min-width: 1.2em;
  min-height: 1.2em;
  margin-top: 0;
  border: 2px solid var(--theme-checkbox-border, var(--flceo-ghost, var(--flceo-accent, #e67e22)));
  background-color: var(--theme-checkbox-bg, var(--theme-surface, #fff));
  cursor: pointer;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0.25em;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

input[type="checkbox"]:not(.btn-check):not([role="switch"]):hover {
  border-color: var(--theme-checkbox-checked-bg, var(--flceo-button, var(--flceo-accent, #e67e22)));
  background-color: color-mix(in srgb, var(--theme-checkbox-checked-bg, var(--flceo-button, #e67e22)) 12%, var(--theme-checkbox-bg, #fff));
}

input[type="checkbox"]:not(.btn-check):not([role="switch"]):checked,
input[type="checkbox"]:not(.btn-check):not([role="switch"]):indeterminate {
  background-color: var(--theme-checkbox-checked-bg, var(--flceo-button, var(--flceo-accent, #e67e22)));
  border-color: var(--theme-checkbox-checked-bg, var(--flceo-button, var(--flceo-accent, #e67e22)));
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

input[type="checkbox"]:not(.btn-check):not([role="switch"]):indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 10h10'/%3e%3c/svg%3e");
}

input[type="checkbox"]:not(.btn-check):not([role="switch"]):focus {
  outline: none;
  border-color: var(--theme-checkbox-checked-bg, var(--flceo-button, var(--flceo-accent, #e67e22)));
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-checkbox-checked-bg, var(--flceo-button, #e67e22)) 28%, transparent);
}

input[type="checkbox"]:not(.btn-check):not([role="switch"]):disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- Themed Radio Buttons --- */
input[type="radio"]:not(.btn-check) {
  width: 1.15em;
  height: 1.15em;
  min-width: 1.15em;
  min-height: 1.15em;
  margin-top: 0;
  border: 2px solid var(--theme-radio-border, var(--theme-checkbox-border, var(--flceo-ghost)));
  background-color: var(--theme-checkbox-bg, var(--theme-surface, #fff));
  cursor: pointer;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

input[type="radio"]:not(.btn-check):checked {
  border-color: var(--theme-radio-checked, var(--theme-checkbox-checked-bg, var(--flceo-button)));
  background-color: var(--theme-checkbox-bg, var(--theme-surface, #fff));
  background-image: radial-gradient(circle, var(--theme-radio-checked, var(--theme-checkbox-checked-bg, var(--flceo-button))) 0 42%, transparent 45%);
  background-repeat: no-repeat;
  background-position: center;
}

input[type="radio"]:not(.btn-check):focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-radio-checked, var(--flceo-button)) 28%, transparent);
}

/* --- Completion / Certificate Page --- */
.completion-page-container {
  max-width: 780px;
}

.completion-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--flceo-bg-white);
  border-radius: var(--flceo-radius-xl);
  box-shadow: var(--flceo-shadow-lg);
}

.completion-card .completion-icon {
  font-size: 4rem;
  color: var(--flceo-success);
  margin-bottom: 1rem;
}

.completion-details {
  text-align: left;
  background: color-mix(in srgb, var(--theme-surface, #fff) 72%, var(--theme-bg, #f8f9fa) 28%);
  border-radius: var(--flceo-radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.completion-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--flceo-border-light);
}

.completion-details .detail-row:last-child {
  border-bottom: none;
}

.completion-details .detail-label {
  font-weight: 600;
  color: var(--flceo-text-muted);
  font-size: 0.875rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 575.98px) {
  .payment-card {
    padding: 1.25rem;
  }

  .consent-card {
    bottom: 0.5rem;
    width: calc(100% - 1rem);
    padding: 0.75rem 1rem;
  }

  .state-card .state-abbr {
    font-size: 2rem;
  }

  .state-card .state-icon {
    width: 100px;
    height: 100px;
  }

  .course-hero-state-icon {
    width: 100px;
    height: 100px;
  }

  .hero-section h1 {
    font-size: 1.6rem;
  }
  .hero-icon {
    width: 104px;
    height: 104px;
    max-width: 104px;
    max-height: 104px;
  }
}

/* --- Page Builder: Page Container --- */
.pb-page {
    background: var(--flceo-bg);
    min-height: 60vh;
}

/* Admin builder canvas — nested blocks still receive public page styles */
.pb-builder-canvas.pb-page {
    min-height: 0;
}

.pb-builder-canvas .builder-block-preview > section + section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    box-shadow: var(--flceo-section-divider-shadow);
    pointer-events: none;
    z-index: 2;
}

.pb-builder-canvas .builder-block-preview > section + section {
    position: relative;
}

.pb-builder-canvas > .builder-block + .builder-block::before,
.pb-builder-canvas > .builder-block + .builder-static-bundle::before,
.pb-builder-canvas > .builder-static-bundle + .builder-block::before {
    content: '';
    display: block;
    height: 0;
    box-shadow: var(--flceo-section-divider-shadow);
    pointer-events: none;
    position: relative;
    z-index: 2;
}

/* Content sections sit on the page background (cards/surfaces stay elevated white) */
.pb-page .pb-richtext,
.pb-page .pb-cards,
.pb-page .pb-image-cards,
.pb-page .pb-pricing-cards,
.pb-page .pb-team-cards,
.pb-page .pb-features,
.pb-page .pb-faq,
.pb-page .pb-image-text,
.pb-page .pb-testimonials,
.pb-page .pb-stats,
.pb-page .pb-progress-bars,
.pb-page .pb-button-group,
.pb-page .pb-table,
.pb-page .pb-video,
.pb-page .pb-two-column,
.pb-page .pb-tabs,
.pb-page .pb-alert,
.pb-page .pb-embed,
.pb-page .section-padding,
.pb-page .us-map-section,
.pb-page .builder-static-preview > section,
.pb-page .builder-block-preview > section:not(.hero-section):not(.pb-hero-banner):not(.pb-jumbotron):not(.pb-cta):not(.pb-cta-gradient) {
    background: var(--flceo-bg);
}

/* Section dividers use the shared shadow rule above (replaces flat border-top) */

/* --- Page Builder Block Styles (public-facing) --- */
.pb-hero-banner {
    background: linear-gradient(135deg, var(--theme-primary-start, #667eea) 0%, var(--theme-primary-end, #764ba2) 100%);
    color: var(--theme-banner-text, #fff);
}
.pb-hero-banner h1, .pb-hero-banner h2, .pb-hero-banner h3,
.pb-hero-banner h4, .pb-hero-banner h5, .pb-hero-banner h6,
.pb-hero-banner p, .pb-hero-banner .lead {
    color: inherit;
}
.pb-card { transition: transform .2s; }
.pb-card:hover { transform: translateY(-4px); }
.pb-card-icon { font-size: 2rem; color: var(--theme-primary-start, #667eea); }
.pb-card-header {
    background: linear-gradient(135deg, var(--theme-card-header-bg-start, var(--theme-primary-start, #667eea)) 0%, var(--theme-card-header-bg-end, var(--theme-primary-end, #764ba2)) 100%);
    color: var(--theme-card-header-text, #fff);
    border: none;
    padding: 10px 16px;
    font-size: .95rem;
}
.pb-card-header :is(h1, h2, h3, h4, h5, h6),
.pb-card-header p,
.pb-card-header .lead,
.pb-card-header i {
    color: inherit;
}
.pb-feature-icon { font-size: 2.5rem; color: var(--theme-accent, #e67e22); }
.pb-cta-gradient {
    background: linear-gradient(135deg, var(--theme-primary-start, #667eea) 0%, var(--theme-primary-end, #764ba2) 100%);
    color: var(--theme-cta-text, #fff);
}
.pb-cta-gradient h1, .pb-cta-gradient h2, .pb-cta-gradient h3,
.pb-cta-gradient h4, .pb-cta-gradient h5, .pb-cta-gradient h6,
.pb-cta-gradient p, .pb-cta-gradient .lead {
    color: inherit;
}
.pb-cta-light { background: var(--theme-bg, #f8f9fa); }
.pb-cta .lead {
    margin-bottom: 0;
}
.pb-cta-btn {
    background: var(--flceo-button);
    color: var(--theme-accent-btn-text, var(--theme-btn-text, #fff));
    border: none; border-radius: 8px; padding: 10px 28px; font-weight: 600;
    margin-top: 1.5rem;
}
.pb-cta-btn:hover {
  opacity: 1;
  background: var(--flceo-button-hover);
  color: var(--flceo-button-hover-text);
}
.pb-page .btn-accent {
  background: var(--flceo-button);
  color: var(--theme-accent-btn-text, var(--theme-btn-text, #fff));
  border: none;
  border-radius: 8px;
}
.pb-page .btn-accent:hover {
  opacity: 1;
  background: var(--flceo-button-hover);
  color: var(--flceo-button-hover-text);
}

/* Page-builder pages: map Bootstrap button utilities to theme tokens.
   Outline/primary buttons use Button Background (not map accent). */
.pb-page .btn-primary {
  background: var(--flceo-button);
  border-color: var(--flceo-button);
  color: var(--theme-accent-btn-text, var(--theme-btn-text, #fff));
}
.pb-page .btn-primary:hover,
.pb-page .btn-primary:focus {
  background: var(--flceo-button-hover);
  border-color: var(--flceo-button-hover);
  color: var(--flceo-button-hover-text);
}
.pb-page .btn-secondary {
  background: var(--theme-secondary, #6c757d);
  border-color: var(--theme-secondary, #6c757d);
  color: var(--theme-secondary-btn-text, #fff);
}
.pb-page .btn-secondary:hover,
.pb-page .btn-secondary:focus {
  background: color-mix(in srgb, var(--theme-secondary, #6c757d) 86%, #000);
  border-color: color-mix(in srgb, var(--theme-secondary, #6c757d) 80%, #000);
  color: var(--theme-secondary-btn-text, #fff);
}
.pb-page .text-primary {
  color: var(--flceo-accent) !important;
}

/* Tabs block — inactive tabs outlined on top and sides */
.pb-tabs .pb-tab-nav {
  gap: 0.35rem;
  border-bottom: 2px solid var(--theme-border, var(--flceo-border));
  padding-bottom: 0;
  margin-bottom: 0 !important;
}
.pb-tabs .pb-tab-nav .nav-link {
  color: var(--theme-text, var(--flceo-text));
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--theme-border, var(--flceo-border));
  border-bottom: none;
  border-radius: var(--flceo-radius-sm) var(--flceo-radius-sm) 0 0;
  background: color-mix(in srgb, var(--theme-surface, #fff) 70%, var(--theme-bg, #f8f9fa));
  transition: color var(--flceo-transition), border-color var(--flceo-transition), background var(--flceo-transition);
}
.pb-tabs .pb-tab-nav .nav-link:not(.active):hover {
  color: var(--flceo-accent);
  border-color: color-mix(in srgb, var(--flceo-accent) 45%, var(--theme-border, #dee2e6));
  background: var(--theme-surface, #fff);
}
.pb-tabs .pb-tab-nav .nav-link.active,
.pb-tabs .pb-tab-nav .nav-link.active:hover,
.pb-tabs .pb-tab-nav .nav-link.active:focus {
  color: var(--theme-accent-btn-text, var(--theme-btn-text, #fff)) !important;
  background: var(--flceo-button) !important;
  border-color: var(--flceo-button) !important;
  border-bottom: 2px solid var(--flceo-button) !important;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}
.pb-tabs .tab-content {
  border: 1px solid var(--theme-border, var(--flceo-border));
  border-top: none;
  border-radius: 0 0 var(--flceo-radius) var(--flceo-radius);
  padding: 1.5rem;
  background: var(--flceo-bg);
}

.pb-jumbotron { min-height: 280px; display: flex; align-items: center; }
.pb-image-card { transition: transform .2s; }
.pb-image-card:hover { transform: translateY(-4px); }
.pb-pricing-card { transition: transform .2s; }
.pb-pricing-card:hover { transform: translateY(-4px); }
.pb-team-card { transition: transform .2s; }
.pb-team-card:hover { transform: translateY(-4px); }
.pb-testimonial { transition: transform .2s; }
.pb-testimonial:hover { transform: translateY(-2px); }
.pb-testimonials-heading { font-weight: 700; }

/* Testimonial carousel (single + sliding-row share Bootstrap carousel) */
.pb-testimonial-carousel,
.pb-testimonial-slider { position: relative; padding: 0 2.5rem; }
.pb-testimonial-carousel .carousel-control-prev,
.pb-testimonial-carousel .carousel-control-next,
.pb-testimonial-slider .carousel-control-prev,
.pb-testimonial-slider .carousel-control-next {
    width: 2.5rem; opacity: .85;
}
.pb-testimonial-carousel .carousel-control-prev-icon,
.pb-testimonial-carousel .carousel-control-next-icon,
.pb-testimonial-slider .carousel-control-prev-icon,
.pb-testimonial-slider .carousel-control-next-icon {
    background-color: var(--theme-primary-start, #4a90d9);
    border-radius: 50%; padding: 1rem; background-size: 45%;
}
.pb-testimonial-indicators { position: static; margin: 1rem 0 0; }
.pb-testimonial-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%; border: 0;
    background-color: var(--theme-primary-start, #4a90d9); opacity: .35;
}
.pb-testimonial-indicators .active { opacity: 1; }

/* Continuous marquee */
.pb-testimonial-marquee {
    overflow: hidden; width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pb-testimonial-marquee-track {
    display: flex; gap: 1.5rem; width: max-content;
    animation: pb-testimonial-scroll var(--pb-marquee-duration, 40s) linear infinite;
}
.pb-testimonial-marquee:hover .pb-testimonial-marquee-track { animation-play-state: paused; }
.pb-testimonial-marquee-item {
    flex: 0 0 var(--pb-marquee-card-width, 340px);
    max-width: var(--pb-marquee-card-width, 340px);
}
@keyframes pb-testimonial-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 575.98px) {
    .pb-testimonial-marquee-item {
        flex-basis: min(var(--pb-marquee-card-width, 340px), 280px);
        max-width: min(var(--pb-marquee-card-width, 340px), 280px);
    }
    .pb-testimonial-carousel, .pb-testimonial-slider { padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pb-testimonial-marquee-track { animation: none; }
}
.pb-stat-icon { color: var(--theme-primary-start, #667eea); }

/* ==========================================================================
   Bootstrap component theming — maps Bootstrap 5.3 per-component CSS variables
   to theme tokens so EVERY component (even ones the app does not currently use)
   follows the active theme. Semantic --bs-* base vars are set in theme-inject.
   ========================================================================== */

/* --- Buttons: solid semantic variants --- */
.btn-primary {
  --bs-btn-bg: var(--theme-primary-start, #667eea);
  --bs-btn-border-color: var(--theme-primary-start, #667eea);
  --bs-btn-hover-bg: color-mix(in srgb, var(--theme-primary-start, #667eea) 86%, #000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-primary-start, #667eea) 80%, #000);
  --bs-btn-active-bg: color-mix(in srgb, var(--theme-primary-start, #667eea) 78%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--theme-primary-start, #667eea) 74%, #000);
  --bs-btn-color: var(--theme-primary-btn-text, #fff);
  --bs-btn-hover-color: var(--theme-primary-btn-text, #fff);
  --bs-btn-active-color: var(--theme-primary-btn-text, #fff);
  --bs-btn-disabled-bg: var(--theme-primary-start, #667eea);
  --bs-btn-disabled-border-color: var(--theme-primary-start, #667eea);
  --bs-btn-disabled-color: var(--theme-primary-btn-text, #fff);
}
.btn-secondary { --bs-btn-bg: var(--theme-secondary, #6c757d); --bs-btn-border-color: var(--theme-secondary, #6c757d); --bs-btn-hover-bg: color-mix(in srgb, var(--theme-secondary, #6c757d) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-secondary, #6c757d) 80%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--theme-secondary, #6c757d) 78%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--theme-secondary, #6c757d) 74%, #000); --bs-btn-disabled-bg: var(--theme-secondary, #6c757d); --bs-btn-disabled-border-color: var(--theme-secondary, #6c757d); }
.btn-success   { --bs-btn-bg: var(--theme-success, #27ae60); --bs-btn-border-color: var(--theme-success, #27ae60); --bs-btn-hover-bg: color-mix(in srgb, var(--theme-success, #27ae60) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-success, #27ae60) 80%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--theme-success, #27ae60) 78%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--theme-success, #27ae60) 74%, #000); --bs-btn-disabled-bg: var(--theme-success, #27ae60); --bs-btn-disabled-border-color: var(--theme-success, #27ae60); }
.btn-danger    { --bs-btn-bg: var(--theme-danger, #e74c3c); --bs-btn-border-color: var(--theme-danger, #e74c3c); --bs-btn-hover-bg: color-mix(in srgb, var(--theme-danger, #e74c3c) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-danger, #e74c3c) 80%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--theme-danger, #e74c3c) 78%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--theme-danger, #e74c3c) 74%, #000); --bs-btn-disabled-bg: var(--theme-danger, #e74c3c); --bs-btn-disabled-border-color: var(--theme-danger, #e74c3c); }
.btn-warning   { --bs-btn-bg: var(--theme-warning, #f39c12); --bs-btn-border-color: var(--theme-warning, #f39c12); --bs-btn-hover-bg: color-mix(in srgb, var(--theme-warning, #f39c12) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-warning, #f39c12) 80%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--theme-warning, #f39c12) 78%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--theme-warning, #f39c12) 74%, #000); --bs-btn-disabled-bg: var(--theme-warning, #f39c12); --bs-btn-disabled-border-color: var(--theme-warning, #f39c12); }
.btn-info      { --bs-btn-bg: var(--theme-info, #3498db); --bs-btn-border-color: var(--theme-info, #3498db); --bs-btn-hover-bg: color-mix(in srgb, var(--theme-info, #3498db) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-info, #3498db) 80%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--theme-info, #3498db) 78%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--theme-info, #3498db) 74%, #000); --bs-btn-disabled-bg: var(--theme-info, #3498db); --bs-btn-disabled-border-color: var(--theme-info, #3498db); }
.btn-light     { --bs-btn-bg: var(--theme-light, #f8f9fa); --bs-btn-border-color: var(--theme-light, #f8f9fa); --bs-btn-hover-bg: color-mix(in srgb, var(--theme-light, #f8f9fa) 92%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-light, #f8f9fa) 88%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--theme-light, #f8f9fa) 84%, #000); --bs-btn-disabled-bg: var(--theme-light, #f8f9fa); }
.btn-dark      { --bs-btn-bg: var(--theme-dark, #212529); --bs-btn-border-color: var(--theme-dark, #212529); --bs-btn-hover-bg: color-mix(in srgb, var(--theme-dark, #212529) 86%, #fff); --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-dark, #212529) 80%, #fff); --bs-btn-active-bg: color-mix(in srgb, var(--theme-dark, #212529) 78%, #fff); --bs-btn-disabled-bg: var(--theme-dark, #212529); --bs-btn-disabled-border-color: var(--theme-dark, #212529); }

/* --- Buttons: per-variant label (text) colours --- */
.btn-secondary { --bs-btn-color: var(--theme-secondary-btn-text, #fff); --bs-btn-hover-color: var(--theme-secondary-btn-text, #fff); --bs-btn-active-color: var(--theme-secondary-btn-text, #fff); --bs-btn-disabled-color: var(--theme-secondary-btn-text, #fff); }
.btn-success   { --bs-btn-color: var(--theme-success-btn-text, #fff); --bs-btn-hover-color: var(--theme-success-btn-text, #fff); --bs-btn-active-color: var(--theme-success-btn-text, #fff); --bs-btn-disabled-color: var(--theme-success-btn-text, #fff); }
.btn-danger    { --bs-btn-color: var(--theme-danger-btn-text, #fff); --bs-btn-hover-color: var(--theme-danger-btn-text, #fff); --bs-btn-active-color: var(--theme-danger-btn-text, #fff); --bs-btn-disabled-color: var(--theme-danger-btn-text, #fff); }
.btn-warning   { --bs-btn-color: var(--theme-warning-btn-text, #212529); --bs-btn-hover-color: var(--theme-warning-btn-text, #212529); --bs-btn-active-color: var(--theme-warning-btn-text, #212529); --bs-btn-disabled-color: var(--theme-warning-btn-text, #212529); }
.btn-info      { --bs-btn-color: var(--theme-info-btn-text, #fff); --bs-btn-hover-color: var(--theme-info-btn-text, #fff); --bs-btn-active-color: var(--theme-info-btn-text, #fff); --bs-btn-disabled-color: var(--theme-info-btn-text, #fff); }
.btn-light     { --bs-btn-color: var(--theme-light-btn-text, #212529); --bs-btn-hover-color: var(--theme-light-btn-text, #212529); --bs-btn-active-color: var(--theme-light-btn-text, #212529); --bs-btn-disabled-color: var(--theme-light-btn-text, #212529); }
.btn-dark      { --bs-btn-color: var(--theme-dark-btn-text, #fff); --bs-btn-hover-color: var(--theme-dark-btn-text, #fff); --bs-btn-active-color: var(--theme-dark-btn-text, #fff); --bs-btn-disabled-color: var(--theme-dark-btn-text, #fff); }

/* --- Buttons: outline semantic variants --- */
.btn-outline-primary   { --bs-btn-color: var(--theme-primary-start, #667eea); --bs-btn-border-color: var(--theme-primary-start, #667eea); --bs-btn-hover-bg: var(--theme-primary-start, #667eea); --bs-btn-hover-border-color: var(--theme-primary-start, #667eea); --bs-btn-hover-color: var(--theme-primary-btn-text, #fff); --bs-btn-active-bg: var(--theme-primary-start, #667eea); --bs-btn-active-border-color: var(--theme-primary-start, #667eea); --bs-btn-active-color: var(--theme-primary-btn-text, #fff); }
.btn-outline-secondary { --bs-btn-color: var(--theme-secondary, #6c757d); --bs-btn-border-color: var(--theme-secondary, #6c757d); --bs-btn-hover-bg: var(--theme-secondary, #6c757d); --bs-btn-hover-border-color: var(--theme-secondary, #6c757d); --bs-btn-active-bg: var(--theme-secondary, #6c757d); --bs-btn-active-border-color: var(--theme-secondary, #6c757d); }
.btn-outline-success   { --bs-btn-color: var(--theme-success, #27ae60); --bs-btn-border-color: var(--theme-success, #27ae60); --bs-btn-hover-bg: var(--theme-success, #27ae60); --bs-btn-hover-border-color: var(--theme-success, #27ae60); --bs-btn-active-bg: var(--theme-success, #27ae60); --bs-btn-active-border-color: var(--theme-success, #27ae60); }
.btn-outline-danger    { --bs-btn-color: var(--theme-danger, #e74c3c); --bs-btn-border-color: var(--theme-danger, #e74c3c); --bs-btn-hover-bg: var(--theme-danger, #e74c3c); --bs-btn-hover-border-color: var(--theme-danger, #e74c3c); --bs-btn-active-bg: var(--theme-danger, #e74c3c); --bs-btn-active-border-color: var(--theme-danger, #e74c3c); }
.btn-outline-warning   { --bs-btn-color: var(--theme-warning, #f39c12); --bs-btn-border-color: var(--theme-warning, #f39c12); --bs-btn-hover-bg: var(--theme-warning, #f39c12); --bs-btn-hover-border-color: var(--theme-warning, #f39c12); --bs-btn-active-bg: var(--theme-warning, #f39c12); --bs-btn-active-border-color: var(--theme-warning, #f39c12); }
.btn-outline-info      { --bs-btn-color: var(--theme-info, #3498db); --bs-btn-border-color: var(--theme-info, #3498db); --bs-btn-hover-bg: var(--theme-info, #3498db); --bs-btn-hover-border-color: var(--theme-info, #3498db); --bs-btn-active-bg: var(--theme-info, #3498db); --bs-btn-active-border-color: var(--theme-info, #3498db); }
/* Outline buttons adopt the variant's label colour once filled on hover/active */
.btn-outline-primary   { --bs-btn-hover-color: var(--theme-primary-btn-text, #fff); --bs-btn-active-color: var(--theme-primary-btn-text, #fff); }
.btn-outline-secondary { --bs-btn-hover-color: var(--theme-secondary-btn-text, #fff); --bs-btn-active-color: var(--theme-secondary-btn-text, #fff); }
.btn-outline-success   { --bs-btn-hover-color: var(--theme-success-btn-text, #fff); --bs-btn-active-color: var(--theme-success-btn-text, #fff); }
.btn-outline-danger    { --bs-btn-hover-color: var(--theme-danger-btn-text, #fff); --bs-btn-active-color: var(--theme-danger-btn-text, #fff); }
.btn-outline-warning   { --bs-btn-hover-color: var(--theme-warning-btn-text, #212529); --bs-btn-active-color: var(--theme-warning-btn-text, #212529); }
.btn-outline-info      { --bs-btn-hover-color: var(--theme-info-btn-text, #fff); --bs-btn-active-color: var(--theme-info-btn-text, #fff); }
.btn-link { --bs-btn-color: var(--theme-link-color, #667eea); --bs-btn-hover-color: var(--theme-link-hover-color, #5563c1); }

/* --- Badges: per-variant text colour (fills come from bg-* utilities) --- */
.badge.bg-primary   { background-color: var(--theme-primary-start, #667eea) !important; color: var(--theme-badge-primary-text, #fff) !important; }
.badge.bg-secondary { background-color: var(--theme-secondary, #6c757d) !important; color: var(--theme-badge-secondary-text, #fff) !important; }
.badge.bg-success   { background-color: var(--theme-success, #27ae60) !important; color: var(--theme-badge-success-text, #fff) !important; }
.badge.bg-danger    { background-color: var(--theme-danger, #e74c3c) !important; color: var(--theme-badge-danger-text, #fff) !important; }
.badge.bg-warning   { background-color: var(--theme-warning, #f39c12) !important; color: var(--theme-badge-warning-text, #000) !important; }
.badge.bg-info      { background-color: var(--theme-info, #3498db) !important; color: var(--theme-badge-info-text, #000) !important; }
.badge.bg-light     { background-color: var(--theme-light, #f8f9fa) !important; color: var(--theme-badge-light-text, #000) !important; }
.badge.bg-dark      { background-color: var(--theme-dark, #212529) !important; color: var(--theme-badge-dark-text, #fff) !important; }

/* --- Alerts: tint semantic variants from tokens --- */
.alert-primary   { --bs-alert-color: var(--theme-alert-primary-text, #084298); --bs-alert-bg: var(--theme-alert-primary-bg, #cfe2ff); --bs-alert-border-color: color-mix(in srgb, var(--theme-alert-primary-bg, #cfe2ff) 70%, var(--theme-alert-primary-text, #084298)); --bs-alert-link-color: var(--theme-alert-primary-text, #084298); }
.alert-secondary { --bs-alert-color: var(--theme-alert-secondary-text, #41464b); --bs-alert-bg: var(--theme-alert-secondary-bg, #e2e3e5); --bs-alert-border-color: color-mix(in srgb, var(--theme-alert-secondary-bg, #e2e3e5) 70%, var(--theme-alert-secondary-text, #41464b)); --bs-alert-link-color: var(--theme-alert-secondary-text, #41464b); }
.alert-success   { --bs-alert-color: var(--theme-alert-success-text, #0f5132); --bs-alert-bg: var(--theme-alert-success-bg, #d1e7dd); --bs-alert-border-color: color-mix(in srgb, var(--theme-alert-success-bg, #d1e7dd) 70%, var(--theme-alert-success-text, #0f5132)); --bs-alert-link-color: var(--theme-alert-success-text, #0f5132); }
.alert-danger    { --bs-alert-color: var(--theme-alert-danger-text, #842029); --bs-alert-bg: var(--theme-alert-danger-bg, #f8d7da); --bs-alert-border-color: color-mix(in srgb, var(--theme-alert-danger-bg, #f8d7da) 70%, var(--theme-alert-danger-text, #842029)); --bs-alert-link-color: var(--theme-alert-danger-text, #842029); }
.alert-warning   { --bs-alert-color: var(--theme-alert-warning-text, #664d03); --bs-alert-bg: var(--theme-alert-warning-bg, #fff3cd); --bs-alert-border-color: color-mix(in srgb, var(--theme-alert-warning-bg, #fff3cd) 70%, var(--theme-alert-warning-text, #664d03)); --bs-alert-link-color: var(--theme-alert-warning-text, #664d03); }
.alert-info      { --bs-alert-color: var(--theme-alert-info-text, #055160); --bs-alert-bg: var(--theme-alert-info-bg, #cff4fc); --bs-alert-border-color: color-mix(in srgb, var(--theme-alert-info-bg, #cff4fc) 70%, var(--theme-alert-info-text, #055160)); --bs-alert-link-color: var(--theme-alert-info-text, #055160); }

/* --- Contrast: warnings on light backgrounds ---
   Never use bright yellow warning-colored text on white. Use alert-warning
   for message blocks; text-warning maps to readable brown for icons/labels. */
.text-warning,
.text-warning-emphasis {
  color: var(--theme-alert-warning-text, #664d03) !important;
}
.btn-outline-warning {
  --bs-btn-color: var(--theme-alert-warning-text, #664d03);
  --bs-btn-border-color: color-mix(in srgb, var(--theme-warning, #f39c12) 55%, var(--theme-alert-warning-text, #664d03));
}

/* --- Nav, tabs & pills --- */
.nav {
  --bs-nav-link-color: var(--theme-nav-link-color, #667eea);
  --bs-nav-link-hover-color: var(--theme-nav-tab-hover-color, #5563c1);
}
.nav-tabs {
  --bs-nav-tabs-link-active-color: var(--theme-nav-tab-active-color, #667eea);
  --bs-nav-tabs-link-active-bg: var(--theme-nav-tab-active-bg, #ffffff);
  --bs-nav-tabs-link-active-border-color: var(--theme-border, #dee2e6) var(--theme-border, #dee2e6) var(--theme-nav-tab-active-bg, #fff);
}
.nav-tabs .nav-link.active {
  background-color: var(--theme-nav-tab-active-bg, #ffffff);
  border-bottom: 2px solid var(--theme-nav-tab-active-border, #667eea);
}
.nav-pills {
  --bs-nav-pills-link-active-bg: var(--theme-pill-bg, #667eea);
  --bs-nav-pills-link-active-color: var(--theme-pill-text, #fff);
}

/* --- Dropdown menus --- */
.dropdown-menu {
  --bs-dropdown-bg: var(--theme-dropdown-bg, #fff);
  --bs-dropdown-color: var(--theme-dropdown-link-color, #2c3e50);
  --bs-dropdown-link-color: var(--theme-dropdown-link-color, #2c3e50);
  --bs-dropdown-link-hover-color: var(--theme-dropdown-hover-text, #2c3e50);
  --bs-dropdown-link-hover-bg: var(--theme-dropdown-link-hover-bg, #f1f3f9);
  --bs-dropdown-link-active-bg: var(--theme-dropdown-active-bg, #667eea);
  --bs-dropdown-link-active-color: var(--theme-dropdown-active-text, #fff);
  --bs-dropdown-border-color: var(--theme-border, #dee2e6);
  --bs-dropdown-header-color: var(--theme-dropdown-header-text, #6c757d);
}
.dropdown-header { color: var(--theme-dropdown-header-text, #6c757d); }

/* --- Tables --- */
.table {
  --bs-table-color: var(--theme-table-text, #212529);
  --bs-table-bg: var(--theme-table-row-bg, var(--theme-surface, #fff));
  --bs-table-border-color: var(--theme-table-border, #dee2e6);
  --bs-table-striped-bg: var(--theme-table-effective-stripe-bg, var(--theme-table-stripe-bg, #fcfcfd));
  --bs-table-striped-color: var(--theme-table-text, #212529);
  --bs-table-hover-bg: var(--theme-table-row-hover-bg, #f3f4fa);
  --bs-table-hover-color: var(--theme-table-text, #212529);
}
.table > thead {
  /* Bootstrap 5.3 paints every cell with --bs-table-color (body text). Re-scope
     those vars on thead so band/maroon headers keep --theme-table-header-color. */
  --bs-table-color: var(--theme-table-header-color, var(--theme-table-header-text, #2c3e50));
  --bs-table-color-state: var(--bs-table-color);
  --bs-table-color-type: var(--bs-table-color);
  --bs-table-hover-color: var(--bs-table-color);
  --dt-column-ordering: 255, 255, 255;
  background: var(--theme-table-header-fill, var(--theme-table-header-bg, #f8f9fa));
  color: var(--theme-table-header-color, var(--theme-table-header-text, #2c3e50));
}
.table > thead th {
  background: transparent;
  color: inherit;
  border-color: var(--theme-table-border, #dee2e6);
}
.table > tbody > tr > * {
  border-color: var(--theme-table-border, #dee2e6);
}

/* --- Cards & list groups --- */
.card {
  --bs-card-bg: var(--theme-surface, #fff);
  --bs-card-color: var(--theme-card-text, #212529);
  --bs-card-border-color: var(--theme-border, #dee2e6);
  --bs-card-cap-bg: var(--theme-card-cap-bg, #f8f9fa);
  --bs-card-cap-color: var(--theme-card-cap-text, #212529);
}
.card > .card-header { color: var(--theme-card-cap-text, #212529); background-color: var(--theme-card-cap-bg, #f8f9fa); }
.list-group {
  --bs-list-group-bg: var(--theme-surface, #fff);
  --bs-list-group-color: var(--theme-list-group-text, #212529);
  --bs-list-group-border-color: var(--theme-border, #dee2e6);
  --bs-list-group-action-hover-bg: var(--theme-list-group-hover-bg, #f8f9fa);
  --bs-list-group-action-hover-color: var(--theme-list-group-text, #212529);
  --bs-list-group-active-bg: var(--theme-list-group-active-bg, #667eea);
  --bs-list-group-active-border-color: var(--theme-list-group-active-bg, #667eea);
  --bs-list-group-active-color: var(--theme-list-group-active-text, #fff);
}

/* --- Pagination --- */
.pagination {
  --bs-pagination-color: var(--theme-pagination-text, #667eea);
  --bs-pagination-bg: var(--theme-surface, #fff);
  --bs-pagination-border-color: var(--theme-border, #dee2e6);
  --bs-pagination-hover-color: var(--theme-pagination-text, #667eea);
  --bs-pagination-hover-bg: var(--theme-pagination-hover-bg, #f8f9fa);
  --bs-pagination-hover-border-color: var(--theme-border, #dee2e6);
  --bs-pagination-active-bg: var(--theme-pagination-active-bg, #667eea);
  --bs-pagination-active-border-color: var(--theme-pagination-active-bg, #667eea);
  --bs-pagination-active-color: var(--theme-pagination-active-text, #fff);
  --bs-pagination-disabled-color: var(--theme-pagination-disabled-text, #6c757d);
}

/* --- Progress --- */
.progress, .progress-stacked {
  --bs-progress-bg: var(--theme-progress-track-bg, #e9ecef);
  --bs-progress-bar-bg: var(--theme-progress-bar-bg, #667eea);
  --bs-progress-bar-color: var(--theme-progress-text, #fff);
  color: var(--theme-progress-track-text, #6c757d);
}

/* --- Breadcrumb --- */
.breadcrumb {
  --bs-breadcrumb-item-active-color: var(--theme-breadcrumb-active-text, #6c757d);
  --bs-breadcrumb-divider-color: var(--theme-breadcrumb-divider, #6c757d);
}
.breadcrumb-item > a { color: var(--theme-breadcrumb-text, #667eea); }

/* State-course hero is the primary gradient. Light-page breadcrumb tokens
   (#666 current page, gray divider) wash out on that red. Match the heading. */
.hero-section .breadcrumb {
  --bs-breadcrumb-item-active-color: var(--theme-header-text, #fff);
  color: var(--theme-header-text, #fff);
}
.hero-section .breadcrumb .breadcrumb-item,
.hero-section .breadcrumb .breadcrumb-item.active,
.hero-section .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--theme-header-text, #fff);
}
.hero-section .breadcrumb .breadcrumb-item > a,
.hero-section .breadcrumb .breadcrumb-item > a:hover {
  /* Markup sets color:inherit; beat that so links stay header-white on the hero. */
  color: var(--theme-header-text, #fff) !important;
  opacity: 1;
}
.hero-section .breadcrumb .breadcrumb-item > a:hover {
  text-decoration: underline;
}

/* --- Accordion --- */
.accordion {
  --bs-accordion-bg: var(--theme-surface, #fff);
  --bs-accordion-color: var(--theme-accordion-text, #212529);
  --bs-accordion-border-color: var(--theme-border, #dee2e6);
  --bs-accordion-btn-color: var(--theme-accordion-text, #212529);
  --bs-accordion-active-bg: var(--theme-accordion-active-bg, #eef0fc);
  --bs-accordion-active-color: var(--theme-accordion-active-text, #667eea);
}

/* --- Modal --- */
.modal {
  --bs-modal-bg: var(--theme-surface, #fff);
  --bs-modal-color: var(--theme-modal-text, #212529);
  --bs-modal-border-color: var(--theme-border, #dee2e6);
}
.modal-header { background: var(--theme-modal-header-bg, #fff); color: var(--theme-modal-header-text, #2c3e50); }

/* --- Tooltip & popover --- */
.tooltip { --bs-tooltip-bg: var(--theme-tooltip-bg, #212529); --bs-tooltip-color: var(--theme-tooltip-text, #fff); }
.popover {
  --bs-popover-bg: var(--theme-popover-bg, #fff);
  --bs-popover-border-color: var(--theme-border, #dee2e6);
  --bs-popover-header-bg: var(--theme-popover-header-bg, #f8f9fa);
  --bs-popover-header-color: var(--theme-popover-header-text, #212529);
  --bs-popover-body-color: var(--theme-popover-text, #212529);
}
.popover-header { color: var(--theme-popover-header-text, #212529); background-color: var(--theme-popover-header-bg, #f8f9fa); }

/* --- Offcanvas --- */
.offcanvas, .offcanvas-lg, .offcanvas-md, .offcanvas-sm, .offcanvas-xl, .offcanvas-xxl {
  --bs-offcanvas-bg: var(--theme-surface, #fff);
  --bs-offcanvas-color: var(--theme-offcanvas-text, #212529);
  --bs-offcanvas-border-color: var(--theme-border, #dee2e6);
}
.offcanvas-header { color: var(--theme-offcanvas-header-text, #212529); }

/* --- Bootstrap form-check / form-switch (themed by tokens) ---
   Native Bootstrap checkboxes, radios and switches follow the theme. The custom
   raw-input styling above wins for plain <input> checkboxes/radios; this themes
   Bootstrap .form-switch toggles (excluded above) and any .form-check-input. */
.form-check-input:checked {
  background-color: var(--theme-checkbox-checked-bg, var(--theme-primary-start, #667eea));
  border-color: var(--theme-checkbox-checked-bg, var(--theme-primary-start, #667eea));
}
.form-check-input[type="radio"]:checked {
  background-color: var(--theme-radio-checked, var(--theme-checkbox-checked-bg, var(--theme-primary-start, #667eea)));
  border-color: var(--theme-radio-checked, var(--theme-checkbox-checked-bg, var(--theme-primary-start, #667eea)));
}
.form-switch .form-check-input {
  background-color: var(--theme-switch-off, var(--theme-border, #ccd1d9));
  border-color: var(--theme-switch-off, var(--theme-border, #ccd1d9));
}
.form-switch .form-check-input,
.form-switch .form-check-input:not(:checked):focus {
  --bs-form-switch-bg: var(--theme-switch-knob-off-img);
}
.form-switch .form-check-input:checked {
  background-color: var(--theme-switch-on, var(--theme-primary-start, #667eea));
  border-color: var(--theme-switch-on, var(--theme-primary-start, #667eea));
  --bs-form-switch-bg: var(--theme-switch-knob-on-img);
}
.form-check-input:focus {
  border-color: color-mix(in srgb, var(--theme-input-focus-border, var(--theme-primary-start, #667eea)) 70%, transparent);
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--theme-input-focus-border, var(--theme-primary-start, #667eea)) 25%, transparent);
}

/* --- Print --- */
@media print {
  .navbar-flceo,
  .footer-flceo,
  .consent-card,
  .no-print {
    display: none !important;
  }
}
