/* ============================================
   Catalyst Programmers - Header, Hero, Footer only
   ============================================ */

:root {
  /* Light blue + white theme with layered elevation */
  --cp-blue: #1d6fd4;
  --cp-blue-hover: #155fbd;
  --cp-blue-hero: #38bdf8;
  --cp-blue-deep: #0c4a6e;
  --cp-bg: #f0f9ff;
  --cp-bg-soft: #e0f2fe;
  --cp-card: #ffffff;
  --cp-card-tint: #f8fcff;
  --cp-text: #0f172a;
  --cp-muted: #64748b;
  --cp-border: #bae6fd;
  --cp-radius: 14px;
  --cp-shadow: 0 1px 2px rgba(14, 116, 144, 0.06);
  --cp-shadow-md: 0 4px 6px -1px rgba(14, 116, 144, 0.08), 0 2px 4px -2px rgba(14, 116, 144, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  --cp-shadow-lg: 0 12px 24px -8px rgba(14, 116, 144, 0.12), 0 4px 8px -4px rgba(14, 116, 144, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  --cp-placeholder: #64748b;
  --cp-text-muted: #64748b;
  --cp-focus-ring: rgba(29, 111, 212, 0.22);
  /* Fixed site header bar (matches maintainer bar height ~56px) */
  --cp-header-spacer: 3.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--cp-text);
  background-color: var(--cp-bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(186, 230, 253, 0.55), transparent 55%),
    linear-gradient(180deg, var(--cp-bg) 0%, #ffffff 38%, var(--cp-bg-soft) 100%);
  background-attachment: fixed;
}

/* Layered surfaces (cards, panels) */
.cp-layer-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow-md);
}

.cp-layer-card--raised {
  box-shadow: var(--cp-shadow-lg);
}

.cp-form-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 2rem;
  box-shadow: var(--cp-shadow-lg);
}

/* ---- Public site header (same chrome as /maintainer: dark gradient bar) ---- */
.cp-site-header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cp-site-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  color: var(--cp-blue-deep);
  border: 1px solid var(--cp-border);
  line-height: 1.2;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(14, 116, 144, 0.08);
}

.cp-site-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--cp-card-tint) 100%);
  border-bottom: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-md);
  z-index: 1030;
}

/* Comfortable vertical inset (macOS / desktop looked flush without this) */
.cp-header.cp-site-header.fixed-top {
  padding-top: max(0.7rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.7rem;
}

@media (min-width: 992px) {
  .cp-header.cp-site-header.fixed-top {
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.85rem;
  }
}

/* Full-width toolbar so ms-auto can push actions right on mobile; safe-area + min inset for desktop Chrome */
.cp-site-header > .cp-site-header-inner.container-fluid {
  box-sizing: border-box;
  max-width: 100%;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 992px) {
  .cp-site-header > .cp-site-header-inner.container-fluid {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

/* Mobile: 2-column grid — brand truncates, actions stay on the same row, right column */
.cp-site-header-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.cp-site-header-brand-row {
  min-width: 0;
}

.cp-site-header-actions {
  justify-self: end;
  margin-left: 0;
}

@media (min-width: 992px) {
  .cp-site-header-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .cp-site-header-brand-row {
    flex: 0 0 auto;
  }

  .cp-site-header .cp-site-header-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cp-site-header-actions {
    justify-self: auto;
    margin-left: auto;
  }
}

@media (max-width: 575.98px) {
  .cp-site-header .cp-site-badge {
    max-width: min(9.5rem, 46vw);
  }
}

.cp-site-header .navbar-brand {
  color: var(--cp-text) !important;
}

.cp-site-header .nav-link {
  color: #475569 !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0.55rem !important;
  border-radius: 8px;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .cp-site-header .cp-site-header-nav .nav-link {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.875rem;
  }
}

@media (min-width: 1200px) {
  .cp-site-header .cp-site-header-nav .nav-link {
    padding: 0.45rem 0.8rem !important;
  }
}

.cp-site-header .nav-link:hover {
  color: var(--cp-blue) !important;
  background: rgba(14, 165, 233, 0.1);
}

.cp-site-header .cp-site-header-actions .theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-color: var(--cp-border);
  color: var(--cp-blue-deep);
}

.cp-site-header .cp-site-header-actions .theme-toggle:hover {
  background: var(--cp-bg-soft);
  color: var(--cp-blue);
  border-color: #7dd3fc;
}

html.theme-dark .cp-site-header .theme-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}

html.theme-dark .cp-site-header .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cp-site-header .btn-login {
  background: var(--cp-blue) !important;
  color: #fff !important;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(29, 111, 212, 0.25);
}

.cp-site-header .btn-login:hover {
  background: var(--cp-blue-hover) !important;
  color: #fff !important;
}

.cp-site-header .btn-outline-light {
  border-color: var(--cp-border);
  color: var(--cp-blue-deep);
  font-size: 0.875rem;
  padding: 0.35rem 0.65rem;
}

.cp-site-header .btn-outline-light:hover {
  background: var(--cp-bg-soft);
  color: var(--cp-blue);
  border-color: #7dd3fc;
}

.cp-site-header .navbar-toggler {
  border: 1px solid var(--cp-border);
  padding: 0.25rem 0.5rem;
}

.cp-site-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230c4a6e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

html.theme-dark .cp-site-header {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html.theme-dark .cp-site-header .navbar-brand {
  color: #f8fafc !important;
}

html.theme-dark .cp-site-header .nav-link {
  color: #cbd5e1 !important;
}

html.theme-dark .cp-site-header .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

html.theme-dark .cp-site-badge {
  background: rgba(59, 130, 246, 0.35);
  color: #e0f2fe;
  border-color: rgba(147, 197, 253, 0.35);
  box-shadow: none;
}

html.theme-dark .cp-site-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

html.theme-dark .cp-site-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e2e8f0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

html.theme-dark .cp-site-header .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}

html.theme-dark .cp-site-header .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

html.theme-dark .cp-site-header .btn-login {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  box-shadow: none;
}

html.theme-dark .cp-site-header .btn-login:hover {
  background: #fff !important;
}

.cp-header-spacer {
  min-height: var(--cp-header-spacer);
  height: var(--cp-header-spacer);
  flex-shrink: 0;
  pointer-events: none;
}

/* Legacy class used in some markup; public bar uses .cp-site-header-logo */
.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-logo-wrap {
  line-height: 0;
}

.footer-logo {
  width: 180px;
  max-height: 130px;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

/* Light footer: use dark-mark logo; dark theme footer: use light-mark logo */
/* Placement partners (public) */
.cp-partner-card__logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--cp-border);
  background: linear-gradient(180deg, var(--cp-bg-soft) 0%, var(--cp-card-tint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cp-partner-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cp-partner-stat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cp-blue-deep);
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid var(--cp-border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

html.theme-dark .cp-partner-stat {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-logo--dark-bg {
  display: none;
}

html.theme-dark .footer-logo--light-bg {
  display: none;
}

html.theme-dark .footer-logo--dark-bg {
  display: block;
}

/* Public header: light layered bar (dark mode overrides above) */
.cp-header.header.cp-site-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--cp-card-tint) 100%) !important;
  border-bottom: 1px solid var(--cp-border) !important;
  box-shadow: var(--cp-shadow-md) !important;
}

html.theme-dark .cp-header.header.cp-site-header {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cp-radius);
}

.theme-toggle i {
  font-size: 1.1rem;
}

/* ---- Hero: soft blue layers + readable dark text ---- */
.mentor-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, transparent 40%),
    linear-gradient(135deg, #ffffff 0%, #e0f2fe 38%, #bae6fd 72%, #7dd3fc 100%) !important;
  padding: 1.5rem 0 2rem !important;
  border-bottom: 1px solid var(--cp-border);
  box-shadow: 0 8px 32px -12px rgba(14, 116, 144, 0.15);
}

.mentor-hero {
  padding: 1.25rem 0 1.75rem !important;
  max-width: 1200px;
  margin: 0 auto;
}

.mentor-left-content h1 {
  color: var(--cp-blue-deep) !important;
  text-shadow: none;
}

.mentor-left-content p {
  color: #334155 !important;
}

.mentor-tags a {
  background: linear-gradient(180deg, var(--cp-bg-soft) 0%, var(--cp-card-tint) 100%);
  border: 1px solid #93c5fd;
  color: var(--cp-blue-deep);
  box-shadow: var(--cp-shadow);
}

.mentor-tags a:hover {
  background: var(--cp-bg-soft);
  color: var(--cp-blue);
  border-color: #7dd3fc;
}

.mentor-buttons a button {
  background: var(--cp-blue);
  color: #fff;
  box-shadow: var(--cp-shadow-md);
}

.mentor-buttons a button:hover {
  background: var(--cp-blue-hover);
  color: #fff;
}

.btn-mentor {
  background: #f59e0b !important;
  color: #1e293b !important;
}

.btn-mentor:hover {
  background: #fbbf24 !important;
}

.coursesTagWhite {
  color: #1e293b !important;
}

.mentor-left-content h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.mentor-left-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.mentor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mentor-buttons a button,
.btn-mentor {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--cp-radius);
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  align-items: center;
}

.mentor-tags a,
.mentor-tag-pill {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
}

/* Mobile: single horizontal row, swipe to see all tags (avoids broken wrap + tiny tap targets) */
@media (max-width: 767.98px) {
  .mentor-tags--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    gap: 0.5rem;
    padding: 0.15rem 0 0.35rem;
    margin-bottom: 0.75rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* edge fade hint: pad so first/last chip isn’t flush to screen */
    padding-left: 2px;
    padding-right: 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }

  .mentor-tags--scroll::-webkit-scrollbar {
    display: none;
  }

  .mentor-tags--scroll .mentor-tag-pill,
  .mentor-tags--scroll a.badge {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
  }
}

.trust-line {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: #475569 !important;
}

/* ---- Hero: right-side info cards & live badges (layered light) ---- */
.hero-info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(145deg, var(--cp-bg-soft) 0%, var(--cp-card-tint) 55%, #ffffff 100%);
  border: 1px solid #7dd3fc;
  border-radius: var(--cp-radius);
  padding: 0.75rem 0.9rem;
  box-shadow: var(--cp-shadow-md);
  transition: box-shadow 0.2s, transform 0.2s;
}

.hero-info-card:hover {
  box-shadow: var(--cp-shadow-lg);
  transform: translateY(-1px);
}

.hero-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-info-title {
  color: var(--cp-blue-deep);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.hero-info-sub {
  color: var(--cp-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.hero-live-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: linear-gradient(180deg, #d1fae5 0%, #ecfdf5 45%, #e0f2fe 100%);
  border: 1px solid #6ee7b7;
  border-radius: var(--cp-radius);
  padding: 0.6rem 0.9rem;
  color: #14532d;
  font-size: 0.82rem;
  box-shadow: var(--cp-shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hero-live-badge:hover {
  border-color: #34d399;
  color: #064e3b;
  box-shadow: var(--cp-shadow-md);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  margin-top: 0.35rem;
  animation: cp-pulse-live 1.4s infinite;
}

@keyframes cp-pulse-live {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.cp-hero-btn-secondary {
  background: linear-gradient(180deg, var(--cp-card-tint) 0%, var(--cp-bg-soft) 100%) !important;
  color: var(--cp-blue) !important;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #7dd3fc !important;
  cursor: pointer;
  box-shadow: var(--cp-shadow-md);
}

.cp-hero-btn-secondary:hover {
  background: var(--cp-bg-soft) !important;
  border-color: #7dd3fc !important;
}

.cp-hero-btn-outline-light {
  background: linear-gradient(180deg, #e0f2fe 0%, var(--cp-card-tint) 100%) !important;
  color: var(--cp-blue-deep) !important;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #7dd3fc !important;
  cursor: pointer;
  box-shadow: var(--cp-shadow);
}

.cp-hero-btn-wa {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  color: #047857 !important;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid #34d399 !important;
  cursor: pointer;
  box-shadow: var(--cp-shadow);
}

.cp-hero-btn-wa:hover {
  background: #ecfdf5 !important;
}

html.theme-dark .hero-info-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

html.theme-dark .hero-info-card:hover {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: none;
  transform: none;
}

html.theme-dark .hero-info-title {
  color: #fff;
}

html.theme-dark .hero-info-sub {
  color: rgba(255, 255, 255, 0.7);
}

html.theme-dark .hero-live-badge {
  background: rgba(52, 168, 83, 0.18);
  border-color: rgba(52, 168, 83, 0.35);
  color: #fff;
  box-shadow: none;
}

html.theme-dark .hero-live-badge:hover {
  background: rgba(52, 168, 83, 0.28);
  color: #fff;
}

html.theme-dark .cp-hero-btn-secondary {
  background: #fff !important;
  color: var(--cp-blue) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

html.theme-dark .cp-hero-btn-outline-light {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0c4a6e !important;
}

html.theme-dark .cp-hero-btn-wa {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

html.theme-dark .cp-hero-btn-wa:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

@media (max-width: 991px) {
  .mentor-left-content {
    padding-left: 50px !important;
  }
}

@media (max-width: 576px) {
  .mentor-left-content {
    padding-left: 24px !important;
  }
}

/* ---- Home: stats strip (no flat navy / harsh white) ---- */
.cp-stats-bar {
  padding: 1.35rem 0;
  background: linear-gradient(180deg, #bfdbfe 0%, #93c5fd 38%, #7dd3fc 100%);
  border-top: 1px solid rgba(14, 116, 144, 0.12);
  border-bottom: 1px solid #60a5fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cp-stats-bar__value {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #0c4a6e;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cp-stats-bar__label {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e3a5f;
  opacity: 0.92;
}

html.theme-dark .cp-stats-bar {
  background: linear-gradient(180deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.theme-dark .cp-stats-bar__value {
  color: #f8fafc;
}

html.theme-dark .cp-stats-bar__label {
  color: rgba(248, 250, 252, 0.88);
}

/* ---- Brand gradient surfaces (page heroes, navy sections) — matches sky / cyan theme ---- */
.cp-brand-gradient-surface {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #042f4a 0%,
    #0c4a6e 18%,
    #075985 40%,
    #0e7490 62%,
    #0369a1 82%,
    #1d6fd4 100%
  );
  color: #fff;
}

.cp-brand-gradient-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 65% at 100% -5%, rgba(56, 189, 248, 0.38), transparent 52%),
    radial-gradient(ellipse 70% 55% at -5% 105%, rgba(29, 111, 212, 0.26), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%);
  pointer-events: none;
}

.cp-brand-gradient-surface > * {
  position: relative;
  z-index: 1;
}

.cp-page-hero {
  padding: 3.5rem 0 2.5rem;
}

.cp-page-hero--md {
  padding: 3rem 0 2.25rem;
}

.cp-page-hero--sm {
  padding: 3rem 0 2rem;
}

.cp-page-hero--compact {
  padding: 2.5rem 0 2rem;
}

html.theme-dark .cp-brand-gradient-surface {
  background: linear-gradient(135deg, #020617 0%, #0c4a6e 38%, #075985 72%, #0369a1 100%);
}

html.theme-dark .cp-brand-gradient-surface::before {
  opacity: 0.88;
}

/* Home: soft gradient band behind section titles (Popular Courses, etc.) */
.cp-section-intro-gradient {
  padding: 1.35rem 1.25rem;
  border-radius: var(--cp-radius);
  background: linear-gradient(
    135deg,
    rgba(224, 242, 254, 0.95) 0%,
    rgba(186, 230, 253, 0.72) 50%,
    rgba(125, 211, 252, 0.45) 100%
  );
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-md);
}

html.theme-dark .cp-section-intro-gradient {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.55) 100%);
  border-color: rgba(125, 211, 252, 0.2);
}

/* Home: Why Choose — soft cool gradient, dark text (not navy hero, not white-on-white) */
.cp-home-why-section {
  background: linear-gradient(180deg, #eff8ff 0%, #e0f2fe 42%, #dbeafe 100%);
  border-top: 1px solid var(--cp-border);
  border-bottom: 1px solid rgba(125, 211, 252, 0.45);
}

.cp-home-why-section__title {
  color: var(--cp-blue-deep);
  letter-spacing: -0.02em;
}

.cp-home-why-section__lead {
  color: var(--cp-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cp-home-why-section .cp-feature-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--cp-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  height: 100%;
}

.cp-home-why-section .cp-feature-card:hover {
  background: var(--cp-card);
  transform: translateY(-3px);
  box-shadow: var(--cp-shadow-md);
}

.cp-home-why-section .cp-feature-icon {
  font-size: 2rem;
  color: #d97706;
}

.cp-home-why-section .cp-feature-card__title {
  color: var(--cp-text);
}

.cp-home-why-section .cp-feature-card__desc {
  color: var(--cp-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

html.theme-dark .cp-home-why-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 55%, #172554 100%);
  border-top-color: rgba(125, 211, 252, 0.12);
  border-bottom-color: rgba(125, 211, 252, 0.1);
}

html.theme-dark .cp-home-why-section__title {
  color: #f1f5f9;
}

html.theme-dark .cp-home-why-section__lead {
  color: rgba(226, 232, 240, 0.82);
}

html.theme-dark .cp-home-why-section .cp-feature-card {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(125, 211, 252, 0.18);
}

html.theme-dark .cp-home-why-section .cp-feature-card:hover {
  background: rgba(30, 41, 59, 0.92);
}

html.theme-dark .cp-home-why-section .cp-feature-card__title {
  color: #f8fafc;
}

html.theme-dark .cp-home-why-section .cp-feature-card__desc {
  color: rgba(203, 213, 225, 0.9);
}

html.theme-dark .cp-home-why-section .cp-feature-icon {
  color: #fbbf24;
}

/* Index CTA card — same family as brand heroes */
.cp-cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #042f4a 0%, #0c4a6e 30%, #075985 58%, #0369a1 82%, #1d6fd4 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px -16px rgba(14, 116, 144, 0.35);
}

.cp-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 78% 58% at 88% 0%, rgba(56, 189, 248, 0.36), transparent 55%);
  pointer-events: none;
}

.cp-cta-banner > * {
  position: relative;
  z-index: 1;
}

html.theme-dark .cp-cta-banner {
  background: linear-gradient(135deg, #020617 0%, #0c4a6e 45%, #0369a1 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---- Footer: layered light blues ---- */
.footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 42%),
    linear-gradient(180deg, #e0f2fe 0%, var(--cp-bg-soft) 45%, #bae6fd 100%) !important;
  padding: 2rem 0 1.5rem;
  color: var(--cp-blue-deep);
  border-top: 1px solid #7dd3fc;
  box-shadow: 0 -8px 32px -12px rgba(14, 116, 144, 0.14);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cp-blue-deep);
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--cp-blue) 0%, rgba(29, 111, 212, 0.25) 100%);
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(14, 116, 144, 0.18);
  opacity: 1;
}

.footer-links a {
  font-size: 0.9rem;
  color: #0369a1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--cp-blue);
  opacity: 0.55;
}

.footer-links a:hover {
  color: var(--cp-blue-deep);
  transform: translateX(4px);
}

.footer p,
.footer .text-white {
  color: #334155 !important;
}

.social-links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px !important;
  font-size: 1.1rem !important;
  color: var(--cp-blue-deep);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow);
}

.social-links a:hover {
  background: #fff;
  color: var(--cp-blue);
}

html.theme-dark .footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 55%, #0c4a6e 100%) !important;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html.theme-dark .footer h5 {
  color: #fff;
}

html.theme-dark .footer h5::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 100%);
}

html.theme-dark .footer-divider {
  border-top-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .footer-links a::before {
  color: rgba(255, 255, 255, 0.55);
}

html.theme-dark .footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

html.theme-dark .footer-links a:hover {
  color: #fff;
}

html.theme-dark .footer p,
html.theme-dark .footer .text-white {
  color: rgba(255, 255, 255, 0.9) !important;
}

html.theme-dark .social-links a {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .mentor-hero {
    padding: 1rem 0 1.5rem;
  }

  .footer .row>div {
    text-align: center;
  }

  .footer .text-md-end {
    text-align: center !important;
  }

  .footer-links a:before {
    display: none;
  }

  .footer-links {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .mentor-right-circles {
    display: none;
  }

  .mentor-left-content p br {
    display: none;
  }
}

@media (max-width: 991px) {
  .offcanvas-body .nav-link {
    display: block;
    padding: 0.75rem 0;
  }
}

.cp-mobile-nav-dark .offcanvas-title {
  color: #fff;
}

.cp-mobile-nav-dark .cp-offcanvas-label {
  color: #94a3b8;
}

@media (hover: none) {

  .mentor-buttons a button,
  .btn {
    min-height: 44px;
  }
}

/* ========== DARK THEME ========== */
html.theme-dark {
  --cp-bg: #0f172a;
  --cp-bg-soft: #1e293b;
  --cp-card: #1e293b;
  --cp-card-tint: #1e293b;
  --cp-text: #e2e8f0;
  --cp-muted: #cbd5e1;
  --cp-border: #334155;
  --cp-placeholder: #94a3b8;
  --cp-text-muted: #94a3b8;
  --cp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --cp-shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.35);
}

html.theme-dark body {
  background: var(--cp-bg);
  background-image: none;
  color: var(--cp-text);
}

/* Site header stays gradient in theme-dark; see .cp-site-header */

html.theme-dark .mentor-section {
  background: linear-gradient(135deg, #0c1929 0%, #0c4a6e 45%, #075985 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html.theme-dark .mentor-left-content h1 {
  color: #fff !important;
}

html.theme-dark .mentor-left-content p {
  color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .mentor-tags a {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: none;
}

html.theme-dark .mentor-tags a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html.theme-dark .trust-line {
  color: rgba(255, 255, 255, 0.85) !important;
}

html.theme-dark .mentor-buttons a button {
  background: #fff;
  color: var(--cp-blue);
  box-shadow: none;
}

html.theme-dark .mentor-buttons a button:hover {
  background: #e0f2fe;
}

html.theme-dark .theme-toggle {
  border-color: var(--cp-border);
  color: var(--cp-muted);
}

html.theme-dark .theme-toggle:hover {
  background: var(--cp-card);
  color: var(--cp-text);
}

html.theme-dark .offcanvas:not(.cp-mobile-nav-dark) {
  background: var(--cp-bg);
  color: var(--cp-text);
}

html.theme-dark .offcanvas:not(.cp-mobile-nav-dark) .offcanvas-title {
  color: var(--cp-text);
}

html.theme-dark .btn-close:not(.btn-close-white) {
  filter: invert(1);
}

/* ---- Form inputs & placeholders (both themes) ---- */
.form-control,
.form-control.cp-input,
.form-select.cp-input,
textarea.form-control,
.login-inp {
  text-align: left;
}

.form-control::placeholder,
.form-control.cp-input::placeholder,
textarea.form-control::placeholder,
.login-inp::placeholder {
  color: var(--cp-placeholder);
  opacity: 1;
  text-align: left;
}

/* Select dropdowns: align with theme (no purple, use site blue) */
.form-select,
select.form-control,
select.login-inp {
  accent-color: var(--cp-blue);
  cursor: pointer;
}

.form-select:focus,
select.login-inp:focus {
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 3px var(--cp-focus-ring);
  outline: none;
}

.form-select option,
select.login-inp option {
  background: var(--cp-card);
  color: var(--cp-text);
}

/* Dark theme: form controls background and text so placeholders are visible */
html.theme-dark .form-control,
html.theme-dark .form-select,
html.theme-dark textarea.form-control {
  background: var(--cp-card);
  color: var(--cp-text);
  border-color: var(--cp-border);
}

html.theme-dark .form-control::placeholder,
html.theme-dark textarea.form-control::placeholder {
  color: var(--cp-placeholder);
}

/* Select options in dark theme - no purple; use theme slate/blue */
html.theme-dark .form-select option,
html.theme-dark select.login-inp option {
  background: var(--cp-card);
  color: var(--cp-text);
}

html.theme-dark .form-select option:checked,
html.theme-dark .form-select option:hover,
html.theme-dark select.login-inp option:checked,
html.theme-dark select.login-inp option:hover {
  background: #334155;
  color: var(--cp-text);
}

/* Dropdown list (native select) - align accent with theme so no purple highlight */
html.theme-dark .form-select,
html.theme-dark select.login-inp,
html.theme-dark select.cp-input {
  accent-color: #60a5fa;
  color-scheme: dark;
}

/* Select focus in dark theme (blue, not purple) */
html.theme-dark .form-select:focus,
html.theme-dark select.login-inp:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* ---- Checkbox alignment (Remember me, course selection, etc.) ---- */
label:has(input[type="checkbox"]),
.cp-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

label input[type="checkbox"],
.cp-checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  vertical-align: middle;
}

/* ---- Tag badge visibility fixes ---- */
/* Light mode: stronger contrast for tag badges */
.cp-tag-badge {
  background: rgba(29, 111, 212, 0.12);
  color: var(--cp-blue-deep);
  font-size: .72rem;
  font-weight: 600;
  border: 1px solid rgba(125, 211, 252, 0.5);
}

/* Dark mode: flip tag badges to a light blue pill that's readable on dark cards */
html.theme-dark .cp-tag-badge {
  background: rgba(99, 179, 237, 0.18);
  color: #90cdf4;
}

/* ---- Table text in dark mode ---- */
html.theme-dark table {
  color: var(--cp-text);
}

html.theme-dark .table {
  --bs-table-color: var(--cp-text);
}

/* ---- Muted text: ensure min contrast in both modes ---- */
/* Light mode: slightly darker muted */
[style*="color:var(--cp-muted)"],
.text-muted {
  color: #4a5568 !important;
}

html.theme-dark [style*="color:var(--cp-muted)"],
html.theme-dark .text-muted {
  color: #cbd5e1 !important;
}

/* ---- Accordion dark mode ---- */
html.theme-dark .accordion-button {
  color: var(--cp-text) !important;
  background: var(--cp-card) !important;
}

html.theme-dark .accordion-button:not(.collapsed) {
  background: var(--cp-card) !important;
  box-shadow: none !important;
}

html.theme-dark .accordion-button::after {
  filter: invert(1);
}

html.theme-dark .accordion-item {
  background: var(--cp-card);
  border-color: var(--cp-border) !important;
}

/* ---- Course/Live card tag badges (inline style override for dark) ---- */
html.theme-dark .badge[style*="color:#00367D"] {
  background: rgba(99, 179, 237, 0.18) !important;
  color: #90cdf4 !important;
}

/* ========== LOGIN PAGE + CAT ========== */
.login-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem 2.25rem;
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow-lg);
  text-align: center;
}

.login-card--wide {
  max-width: 680px;
  padding: 2.25rem 2.5rem;
  text-align: left;
}

.login-card--wide .login-form .row {
  margin-left: 0;
  margin-right: 0;
  --bs-gutter-x: 1.25rem;
}

.login-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.login-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

html.theme-dark .login-alert--error {
  background: rgba(185, 28, 28, 0.2);
  color: #fca5a5;
  border-color: #b91c1c;
}

.login-alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

html.theme-dark .login-alert--success {
  background: rgba(22, 101, 52, 0.2);
  color: #86efac;
  border-color: #166534;
}

.login-link {
  color: #2563eb;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

html.theme-dark .login-link {
  color: #93c5fd;
}

html.theme-dark .login-link:hover {
  color: #bfdbfe;
}

/* Course / live class "View all" links (visible in both themes) */
.cp-link-accent {
  color: var(--cp-blue);
  font-size: .85rem;
  font-weight: 600;
}
.cp-link-accent:hover {
  color: var(--cp-blue-hover);
}
html.theme-dark .cp-link-accent {
  color: #93c5fd;
}
html.theme-dark .cp-link-accent:hover {
  color: #bfdbfe;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0 0 0.25rem 0;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--cp-muted);
  margin: 0 0 1.5rem 0;
}

.login-form {
  text-align: left;
}

.login-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.login-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.75;
}

.login-inp {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background: var(--cp-bg);
  color: var(--cp-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  text-align: left;
}

/* Inputs with left icon (e.g. password) need extra left padding so placeholder aligns after icon */
.login-input-wrap .login-inp {
  padding-left: 3rem;
}

.login-inp:focus {
  outline: none;
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 3px var(--cp-focus-ring);
}

.login-password-wrap .login-inp {
  padding-right: 4.5rem;
}

.login-view-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cp-blue);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.login-view-btn:hover {
  background: rgba(29, 111, 212, 0.08);
}

.login-view-btn .view-icon {
  font-size: 0.9rem;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.login-remember-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.login-remember-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--cp-muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.login-remember-info-btn:hover,
.login-remember-info-btn:focus-visible {
  color: var(--cp-blue);
  background: rgba(29, 111, 212, 0.08);
  outline: none;
}

.login-remember-info-btn.is-open {
  color: var(--cp-blue);
}

.login-remember-tip {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--cp-muted);
  margin: 0 0 1.1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(29, 111, 212, 0.06);
  border-radius: 8px;
  border: 1px solid var(--cp-border);
}

.login-remember-tip p {
  margin: 0 0 0.5rem;
}

.login-remember-tip p:last-child {
  margin-bottom: 0;
}

html.theme-dark .login-remember-tip {
  background: rgba(148, 163, 184, 0.08);
  border-color: #334155;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--cp-muted);
  cursor: pointer;
}

.login-remember input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
  cursor: pointer;
}

.login-forgot {
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
}

.login-forgot:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.login-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--cp-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.login-btn:hover {
  background: var(--cp-blue-hover);
}

.login-btn:active {
  transform: scale(0.99);
}

.login-oauth {
  margin-bottom: 0;
}

.login-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3c4043;
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-sizing: border-box;
}

.login-google-btn:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #202124;
}

.login-google-icon {
  flex-shrink: 0;
}

html.theme-dark .login-google-btn {
  color: #e8eaed;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cp-border);
}

html.theme-dark .login-google-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.login-google-legal {
  font-size: 0.8rem;
  line-height: 1.4;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.8rem;
  color: var(--cp-muted);
  text-transform: lowercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cp-border);
}

.login-register {
  margin: 1.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--cp-muted);
}

.login-register a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.login-register a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* Login links visible in dark theme */
html.theme-dark .login-forgot,
html.theme-dark .login-register a {
  color: #93c5fd;
}

html.theme-dark .login-forgot:hover,
html.theme-dark .login-register a:hover {
  color: #bfdbfe;
}

html.theme-dark .login-view-btn {
  color: #93c5fd;
}

html.theme-dark .login-view-btn:hover {
  color: #bfdbfe;
  background: rgba(147, 197, 253, 0.12);
}

/* ---- Login logo (bigger) ---- */
.login-logo-wrap {
  margin-bottom: 1.25rem;
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

.login-logo--light {
  display: none;
}

html.theme-dark .login-logo-wrap .login-logo:not(.login-logo--light) {
  display: none;
}

html.theme-dark .login-logo--light {
  display: block;
}

/* ---- Cookie consent banner ---- */
.cp-cookie-banner {
  position: fixed !important;
  top: auto !important;
  left: 0;
  right: 0;
  bottom: 0;
  inset: auto 0 0 0;
  z-index: 1040;
  padding: 0.75rem max(1rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  background: var(--cp-card);
  border-top: 1px solid var(--cp-border);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.cp-cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0;
}

.cp-cookie-banner__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cp-muted);
  flex: 1 1 220px;
  line-height: 1.5;
}

.cp-cookie-banner__text a {
  color: var(--cp-blue);
  font-weight: 500;
}

.cp-cookie-banner__btn {
  flex-shrink: 0;
  background: var(--cp-blue);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
}

.cp-cookie-banner__btn:hover {
  background: var(--cp-blue-hero);
  color: #fff;
}

html.theme-dark .cp-cookie-banner {
  background: #1e293b;
  border-top-color: #334155;
}

html.theme-dark .cp-cookie-banner__text {
  color: #94a3b8;
}

html.theme-dark .cp-cookie-banner__text a {
  color: #93c5fd;
}

/* ---- Site / Maintainer pill switch (public header) ---- */
.cp-maint-switch {
  display: inline-flex;
  align-items: stretch;
  padding: 2px;
  border-radius: 999px;
  background: rgba(29, 111, 212, 0.07);
  border: 1px solid rgba(29, 111, 212, 0.14);
  gap: 0;
  flex-shrink: 0;
}

.cp-maint-switch__seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none !important;
  color: #475569;
  background: transparent;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  border: none;
  white-space: nowrap;
}

.cp-maint-switch__seg--active {
  background: var(--cp-blue);
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(29, 111, 212, 0.22);
  cursor: default;
}

a.cp-maint-switch__seg:not(.cp-maint-switch__seg--active):hover {
  color: var(--cp-blue);
  background: rgba(255, 255, 255, 0.92);
}

html.theme-dark .cp-maint-switch {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.theme-dark .cp-maint-switch__seg:not(.cp-maint-switch__seg--active) {
  color: #cbd5e1;
}

html.theme-dark a.cp-maint-switch__seg:not(.cp-maint-switch__seg--active):hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

html.theme-dark .cp-maint-switch__seg--active {
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Maintainer chrome: switch on dark bar (maintainer pages) */
.cp-maint-switch--darkbar {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
}

.cp-maint-switch--darkbar .cp-maint-switch__seg:not(.cp-maint-switch__seg--active) {
  color: #cbd5e1;
}

.cp-maint-switch--darkbar a.cp-maint-switch__seg:not(.cp-maint-switch__seg--active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Public light header: same component, light layered track */
.cp-site-header .cp-maint-switch--darkbar {
  background: rgba(29, 111, 212, 0.06);
  border: 1px solid var(--cp-border);
  box-shadow: 0 1px 2px rgba(14, 116, 144, 0.06);
}

.cp-site-header .cp-maint-switch--darkbar .cp-maint-switch__seg:not(.cp-maint-switch__seg--active) {
  color: #64748b;
}

.cp-site-header .cp-maint-switch--darkbar a.cp-maint-switch__seg:not(.cp-maint-switch__seg--active):hover {
  color: var(--cp-blue);
  background: #ffffff;
}

html.theme-dark .cp-site-header .cp-maint-switch--darkbar {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

html.theme-dark .cp-site-header .cp-maint-switch--darkbar .cp-maint-switch__seg:not(.cp-maint-switch__seg--active) {
  color: #cbd5e1;
}

html.theme-dark .cp-site-header .cp-maint-switch--darkbar a.cp-maint-switch__seg:not(.cp-maint-switch__seg--active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Must beat html.theme-dark .cp-maint-switch__seg--active when user has dark theme + maintainer bar */
.cp-maint-switch--darkbar .cp-maint-switch__seg--active,
html.theme-dark .cp-maint-switch--darkbar .cp-maint-switch__seg--active {
  background: #f1f5f9 !important;
  background-image: none !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cp-maint-switch.w-100 {
  width: 100%;
}

.cp-maint-switch.w-100 .cp-maint-switch__seg {
  flex: 1 1 50%;
  text-align: center;
}

/* Public header: user name */
.cp-header-user {
  max-width: 120px;
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
}

/* Light site header: profile link + name must be dark (not legacy text-white) */
.cp-site-header .cp-header-profile-link {
  color: #334155 !important;
}

.cp-site-header .cp-header-profile-link:hover {
  color: var(--cp-blue) !important;
}

html.theme-dark .cp-site-header .cp-header-profile-link {
  color: #f1f5f9 !important;
}

html.theme-dark .cp-site-header .cp-header-profile-link:hover {
  color: #fff !important;
}

@media (min-width: 1200px) {
  .cp-header-user {
    max-width: 200px;
  }
}

html.theme-dark .cp-header:not(.cp-site-header) .btn-outline-secondary {
  border-color: #475569;
  color: #e2e8f0;
}

html.theme-dark .cp-header:not(.cp-site-header) .btn-outline-secondary:hover {
  background: #334155;
  border-color: #64748b;
  color: #fff;
}

.cp-offcanvas-label {
  color: var(--cp-muted);
}

html.theme-dark .cp-offcanvas-label {
  color: #94a3b8 !important;
}

/* Demo bookings maintainer: toolbar label on dark bg */
html.theme-dark .cp-demo-bookings-toolbar__label {
  color: var(--cp-text) !important;
}

/* Maintainer dashboard list (follows --cp-card / --cp-text in dark) */
.cp-maint-main {
  min-height: 40vh;
  background: var(--cp-bg);
}

/* Maintainer + enrollment pages: tables & helper text in dark theme */
html.theme-dark .cp-maint-main .table,
html.theme-dark main.py-4 .table {
  color: var(--cp-text);
  --bs-table-color: var(--cp-text);
  --bs-table-bg: var(--cp-card);
  --bs-table-border-color: var(--cp-border);
  /* Bootstrap 5.3+ striped variables (base table) */
  --bs-table-striped-bg: rgba(255, 255, 255, 0.055);
  --bs-table-striped-color: var(--cp-text);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-table-hover-color: var(--cp-text);
  border-color: var(--cp-border);
}

html.theme-dark .cp-maint-main .table thead th,
html.theme-dark main.py-4 .table thead th {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: var(--cp-border) !important;
}

html.theme-dark .cp-maint-main .table tbody td,
html.theme-dark main.py-4 .table tbody td {
  border-color: var(--cp-border);
  color: var(--cp-text);
}

html.theme-dark .cp-maint-main .table tbody td a,
html.theme-dark main.py-4 .table tbody td a {
  color: #93c5fd;
}

html.theme-dark .cp-maint-main .table tbody td a:hover,
html.theme-dark main.py-4 .table tbody td a:hover {
  color: #bfdbfe;
}

/* BS 5.3+ uses --bs-table-bg-type / --bs-table-color-type on striped cells (not --bs-table-accent-bg) */
html.theme-dark .cp-maint-main .table-striped > tbody > tr:nth-of-type(odd) > *,
html.theme-dark main.py-4 .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(255, 255, 255, 0.07);
  --bs-table-color-type: var(--cp-text);
  color: var(--cp-text);
}

html.theme-dark .cp-maint-main .table-striped > tbody > tr:nth-of-type(even) > *,
html.theme-dark main.py-4 .table-striped > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: transparent;
  --bs-table-color-type: var(--cp-text);
  color: var(--cp-text);
}

html.theme-dark .cp-maint-main .table-hover tbody tr:hover > *,
html.theme-dark main.py-4 .table-hover tbody tr:hover > * {
  --bs-table-accent-bg: rgba(51, 65, 85, 0.85);
  color: var(--cp-text);
}

html.theme-dark .cp-maint-main .text-muted,
html.theme-dark main.py-4 .text-muted,
html.theme-dark .cp-maint-form-text {
  color: #94a3b8 !important;
}

html.theme-dark .cp-maint-main .form-text,
html.theme-dark main.py-4 .form-text {
  color: #94a3b8 !important;
}

html.theme-dark .cp-maint-main .form-text code,
html.theme-dark main.py-4 .form-text code {
  color: #e2e8f0 !important;
  background: rgba(15, 23, 42, 0.9) !important;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

html.theme-dark .cp-maint-main .form-label,
html.theme-dark main.py-4 .form-label {
  color: var(--cp-text);
}

html.theme-dark .cp-maint-main h2.h6,
html.theme-dark main.py-4 h2.h6 {
  color: var(--cp-text) !important;
}

.cp-maint-table-head th {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 0.8rem;
}

html.theme-dark .cp-maint-table-head th {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: var(--cp-border) !important;
}

.cp-maint-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border) !important;
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow);
  overflow: hidden;
}

.cp-maint-card .list-group-item {
  background: transparent;
  color: var(--cp-text);
  border-color: var(--cp-border);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.cp-maint-card .list-group-item .fw-semibold {
  color: var(--cp-text);
}

.cp-maint-card .list-group-item .text-muted {
  color: var(--cp-muted) !important;
}

.cp-maint-card .list-group-item code {
  font-size: 0.82em;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgba(29, 111, 212, 0.1);
  color: #1e40af;
}

html.theme-dark .cp-maint-card .list-group-item code {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

.cp-maint-card .list-group-item-action:hover {
  background: rgba(29, 111, 212, 0.05);
}

html.theme-dark .cp-maint-card .list-group-item-action:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cp-maint-card .list-group-item.text-muted {
  color: var(--cp-muted) !important;
}

html.theme-dark .list-group-item + .list-group-item {
  border-top-color: var(--cp-border);
}

/* ---- Maintainer: helper text + code (Bootstrap .form-text is #6c757d — invisible on dark bg) ---- */
html.theme-dark .cp-maint-main .form-text,
html.theme-dark .cp-maint-main .form-label.text-muted,
html.theme-dark .cp-maint-main p.small.text-muted {
  color: #94a3b8 !important;
}

html.theme-dark .cp-maint-main .form-text code {
  background: rgba(96, 165, 250, 0.16) !important;
  color: #e0f2fe !important;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

html.theme-dark .cp-maint-main .form-text strong {
  color: #f1f5f9 !important;
}

/* Maintainer tables: keep row text readable on striped / card surfaces */
html.theme-dark .cp-maint-card > .table,
html.theme-dark .cp-maint-card .table {
  --bs-table-color: var(--cp-text);
  --bs-table-bg: var(--cp-card);
  --bs-table-border-color: var(--cp-border);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.055);
  --bs-table-striped-color: var(--cp-text);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-table-hover-color: var(--cp-text);
  color: var(--cp-text);
}

html.theme-dark .cp-maint-card .table > :not(caption) > * > * {
  color: var(--cp-text);
  border-bottom-color: var(--cp-border);
}

html.theme-dark .cp-maint-card .table thead th {
  color: var(--cp-text) !important;
  background-color: rgba(0, 0, 0, 0.15);
  border-color: var(--cp-border);
}

html.theme-dark .cp-maint-card .table tbody td.fw-semibold,
html.theme-dark .cp-maint-card .table tbody td {
  color: var(--cp-text) !important;
}

html.theme-dark .cp-maint-card .table tbody td.text-muted,
html.theme-dark .cp-maint-card .table .text-muted {
  color: #94a3b8 !important;
}

html.theme-dark .cp-maint-card .table code {
  background: rgba(96, 165, 250, 0.14) !important;
  color: #f9a8d4 !important;
}

/* Outline buttons on maintainer dark main (footer actions) */
html.theme-dark .cp-maint-main .btn-outline-primary {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.55);
}

html.theme-dark .cp-maint-main .btn-outline-primary:hover {
  color: #0f172a;
  background: #93c5fd;
  border-color: #93c5fd;
}

html.theme-dark .cp-maint-main .btn-outline-secondary {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.45);
}

html.theme-dark .cp-maint-main .btn-outline-secondary:hover {
  color: #0f172a;
  background: #e2e8f0;
  border-color: #e2e8f0;
}

/* Live class recordings: card grid → per-video pages (live-class-video?v=…) */
.cp-course-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.cp-video-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  background: var(--cp-card);
  color: var(--cp-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cp-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 40, 85, 0.12);
  border-color: rgba(29, 111, 212, 0.35);
  color: var(--cp-text);
}

html.theme-dark .cp-video-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(96, 165, 250, 0.35);
}

.cp-video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.cp-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.15s ease;
  pointer-events: none;
}

.cp-video-card:hover .cp-video-card__play {
  background: rgba(0, 0, 0, 0.4);
}

.cp-video-card__body {
  padding: 0.85rem 1rem 1rem;
}

.cp-video-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  color: var(--cp-text);
}

.cp-video-card__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cp-link, #0d6efd);
}

.cp-live-video-page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Book a demo ---- */
.cp-book-demo-alert {
  border-radius: 10px;
  padding: 1rem;
}

.cp-book-demo-alert--ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.cp-book-demo-alert--err {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

html.theme-dark .cp-book-demo-alert--ok {
  background: rgba(22, 101, 52, 0.25);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.35);
}

html.theme-dark .cp-book-demo-alert--err {
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.cp-social-btn-demo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #00367d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cp-social-btn-demo:hover {
  opacity: 0.9;
  color: #fff;
}

.cp-demo-duration-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--cp-border);
  background: var(--cp-bg);
  cursor: pointer;
  margin: 0;
}

.cp-demo-duration-option:has(input:checked) {
  border-color: #00367d;
  background: rgba(29, 111, 212, 0.06);
  box-shadow: 0 0 0 1px #00367d;
}

html.theme-dark .cp-demo-duration-option:has(input:checked) {
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5);
}

.cp-demo-duration-label {
  font-weight: 600;
  color: var(--cp-text);
  font-size: 0.95rem;
}

.cp-book-demo-submit {
  background: #00367d;
  color: #fff;
  border-radius: 8px;
  border: none;
}

.cp-book-demo-submit:hover {
  background: var(--cp-blue-hover);
  color: #fff;
}
