/* ===============================================
 *  * GLOBAL DESIGN TOKENS
 *   * =============================================== */

:root {
  /* Brand */
  --navy: #1f3c72;
  --navy-deep: #0f274a;
  --blue-link: #2c7be5;

  --gold: #d8b45a;
  --gold-soft: rgba(216, 180, 90, 0.16);
  --gold-text: #b28a35;

  /* Neutrals */
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #222;
  --text-muted: #555;
  --line: #e3e3e8;

  /* Effects */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.18);

  /* Layout */
  --radius: 10px;
  --radius-sm: 8px;

  /* Typography (consistent everywhere, no font loading required) */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Fixed nav height reserve */
  --nav-reserve: 110px;
}

/* ===============================================
 *  * GLOBAL RESET & BASE
 *   * =============================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: var(--nav-reserve);
}

body.home {
  padding-top: 0;
}

/* Make form controls match site fonts everywhere */
button,
input,
select,
textarea {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* ===============================================
 *  * TYPOGRAPHY
 *   * =============================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.4rem 0;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1.0rem; }

p {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: #333;
}

.small-text {
  font-size: 0.85rem;
  color: #666;
}

/* ===============================================
 *  * GLOBAL SECTIONS / WRAPPERS
 *   * =============================================== */

.ce-section,
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

.ce-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ce-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.ce-section-small,
.section-small {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 600px) {
  .ce-section,
  .section {
    padding: 24px 16px;
  }
}

/* ===============================================
 *  * BUTTON SYSTEM
 *   * =============================================== */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: #2b54a3;
  border-color: #2b54a3;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: #e8f1ff;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 6px 10px;
}

/* ===============================================
 *  * CARD SYSTEM (NO TOP GOLD BARS)
 *   * =============================================== */

.ce-card,
.card,
.state-card,
.ce-wrapper,
.pricing-table-wrap,
.ce-accordion-item,
.facility-types-section,
.ce-authority {
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* Base card padding */
.ce-card { padding: 18px 16px; margin-bottom: 18px; }
.card { padding: 20px; }
.state-card { padding: 16px 14px 18px; }
.ce-wrapper { padding: 24px 20px 28px; }
.pricing-table-wrap { padding: 14px 16px 16px; }
.facility-types-section { padding: 22px 20px; }
.ce-authority { padding: 28px 26px; }

/* IMPORTANT: Removed the old global "border-top: 3px solid gold" rule.
 *    If you ever want a special accent later, add a class like .accent-gold. */

.accent-gold {
  border-left: 4px solid var(--gold);
  background: #fffaf2;
}

.accent-blue {
  border-left: 4px solid #2b6cb0;
  background: #f4f8ff;
}

/* ===============================================
 *  * GRID LAYOUTS
 *   * =============================================== */

.ce-grid-3 {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .ce-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ce-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ce-grid-2 {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 800px) {
  .ce-grid-2 {
    grid-template-columns: 1fr 2fr;
    align-items: flex-start;
  }
}

/* ===============================================
 *  * FORMS
 *   * =============================================== */

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccd2e0;
  margin-bottom: 12px;
  font-size: 1rem;
  background: #fff;
  color: #222;
}

button[type="submit"] {
  margin-top: 8px;
}

/* ===============================================
 *  * GLOBAL ALERTS / ERROR BOXES
 *   * =============================================== */

.error-box,
.ce-alert,
.alert {
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.error-box {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.error-box ul {
  margin: 0;
  padding-left: 20px;
}

.alert-error,
.ce-alert-error {
  background: #ffe6e6;
  color: #a12424;
  border: 1px solid #f1b5b5;
}

.alert-success,
.ce-alert-success {
  background: #e7f6e9;
  color: #276433;
  border: 1px solid #b4e0b9;
}

/* ===============================================
 *  * GLOBAL TOP NAVIGATION
 *   * =============================================== */

.ce-nav {
  background: rgba(31, 60, 114, 0.88);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  font-size: 0.92rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.20);
  backdrop-filter: blur(4px);
}

.ce-nav-home {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.ce-nav-home.scrolled {
  background-color: rgba(31, 60, 114, 0.95) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}

.ce-nav-inner {
  width: 100%;
  max-width: 1600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ce-nav-left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 12px;
}

.ce-nav-logo {
  height: 84px;
  width: auto;
}

.ce-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ce-nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ce-nav-brand-main {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ce-nav-brand-label,
.ce-nav-brand-sub {
  font-size: 0.78rem;
  opacity: 0.85;
  font-style: italic;
}

.ce-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
}

.ce-nav-links > a,
.ce-nav-right > a {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 4px 6px;
}

.ce-nav-links > a:hover,
.ce-nav-right > a:hover {
  text-decoration: underline;
}

.ce-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.ce-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: inherit;
}

.ce-nav-toggle span,
.ce-nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
}

.nav-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  display: inline-block;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.18);
}

.nav-btn-solid {
  background: #f4c158;
  border-color: #f4c158;
  color: var(--navy);
}

.nav-btn-solid:hover {
  background: #e6b03f;
}

.nav-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  margin: 0 10px;
  background: rgba(255,255,255,0.35);
  vertical-align: middle;
}

.nav-hello {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-right: 8px;
}

/* ===============================================
 *  * NAV SUBMENUS (desktop hover + mobile accordion)
 *   * =============================================== */

.ce-subnav {
  position: relative;
  display: inline-block;
}

.ce-subnav-parent {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Use unicode escape to avoid "â–¾" encoding problems */
.ce-subnav-parent::after {
  content: "\25BE";
  font-size: 0.85em;
  opacity: 0.9;
}

.ce-subnav-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 8px;
  left: 0;
  width: 220px;
  max-width: 260px;
  background: #fff;
  color: #1f2a44;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 2000;
}

.ce-subnav-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.ce-subnav-menu a {
  display: block;
  padding: 10px 14px;
  color: #1f2a44;
  font-weight: 700;
  text-transform: none;
  font-size: 0.92rem;
  white-space: normal;
  word-break: break-word;
}

.ce-subnav-menu a:hover {
  background: rgba(31, 60, 114, 0.08);
}

.ce-subnav-sep {
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 6px 0;
}

@media (hover: hover) {
  .ce-subnav:hover .ce-subnav-menu {
    display: block;
  }
}

.ce-subnav:focus-within .ce-subnav-menu {
  display: block;
}

.ce-nav-links .ce-subnav:last-child .ce-subnav-menu {
  left: auto;
  right: 0;
}

/* ===============================================
 *  * MOBILE NAVIGATION
 *   * =============================================== */

@media (max-width: 768px) {
  .ce-nav-toggle { display: block; }

  .ce-nav-inner {
    max-width: 1600px;
  }

  .ce-nav-links {
    display: none;
    position: fixed;
    top: 92px;
    left: 12px;
    right: 12px;
    background: #fff;
    color: #333;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 3000;
  }

  .ce-nav.is-open .ce-nav-links {
    display: flex;
  }

  .ce-nav-links > a {
    color: #1f2a44;
    text-transform: uppercase;
    font-size: 0.86rem;
    font-weight: 900;
    padding: 8px 6px;
    border-radius: 8px;
  }

  .ce-nav-links > a:hover {
    background: rgba(31, 60, 114, 0.08);
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
    background: rgba(0,0,0,0.10);
  }

  .nav-hello {
    color: #667;
    font-size: 0.90rem;
    margin: 2px 0 0;
    opacity: 1;
  }

  .ce-subnav {
    width: 100%;
  }

  .ce-subnav-parent {
    width: 100%;
    color: #1f2a44;
    padding: 8px 6px;
    border-radius: 8px;
  }

  .ce-subnav-parent:hover {
    background: rgba(31, 60, 114, 0.08);
  }

  .ce-subnav-menu {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 6px 0;
    background: transparent;
    display: none;
  }

  .ce-subnav.is-open .ce-subnav-menu {
    display: block;
  }

  .ce-subnav-menu a {
    padding: 8px 10px 8px 18px;
    background: transparent;
    border-radius: 8px;
  }

  .ce-subnav-menu a:hover {
    background: rgba(0,0,0,0.05);
  }

  /* Home nav behavior on mobile */
  .ce-nav-home {
    background: transparent !important;
    box-shadow: none !important;
  }

  .ce-nav-home.scrolled {
    background-color: rgba(31, 60, 114, 0.9) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  }

  body.home {
    padding-top: 0 !important;
  }
}

/* ===============================================
 *  * HERO AREA
 *   * =============================================== */

.hero {
  background: url("/images/hero-caregiving.jpg") center/cover no-repeat;
  position: relative;
  color: #fff;
  margin-top: 0;
  padding: 220px 20px 110px;
}

body.home .hero {
  padding-top: 160px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.50) 35%,
    rgba(0, 0, 0, 0.35) 70%,
    rgba(0, 0, 0, 0.25) 100%
  );
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(1.5px);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 72px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  line-height: 1.5;
}

.hero-note {
  font-size: 0.95rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-hero-primary {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}

.btn-hero-primary:hover {
  background: #e8f1ff;
}

.btn-hero-outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-badge {
  margin-bottom: 10px;
}

.hero-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.32);
  color: #f1d78b;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 1rem;
  border: 1px solid rgba(241, 215, 139, 0.55);
  text-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

@media (max-width: 600px) {
  .hero {
    padding: 120px 16px 50px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
}

/* ===============================================
 *  * STATE CARDS GRID
 *   * =============================================== */

.state-section-title {
  margin: 0 0 6px 0;
}

.state-section-subtitle {
  margin: 0 0 14px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.state-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.state-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.state-card p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #555;
}

.state-card .btn {
  font-size: 0.88rem;
  padding: 7px 12px;
}

/* Primary Wisconsin card stays blue and prominent */
.state-card-primary {
  border: 2px solid var(--navy);
  box-shadow: 0 6px 18px rgba(31, 60, 114, 0.12);
}

.state-label {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #d1a54a;
  color: #fff;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* ===============================================
 *  * CE OUTLINE / CALLOUTS (KEEP THESE)
 *   * =============================================== */

.ce-outline-subtitle {
  border-left: 4px solid #2b6cb0;
  background: #f4f8ff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}

.ce-requirement-callout {
  border-left: 4px solid var(--gold);
  padding: 12px 18px;
  border-radius: 8px;
  margin: 25px 0;
  background: #fffaf2;
  font-size: 1.05rem;
  line-height: 1.55;
}

.ce-state-pill {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0 6px;
  white-space: nowrap;
}

/* ===============================================
 *  * CE INDEX WRAP / CARD ROWS
 *   * =============================================== */

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
}

.intro {
  margin-bottom: 20px;
  color: #444;
}

.foot-note {
  margin-top: 25px;
  font-size: 0.85em;
  color: #666;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-row {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .wrap {
    padding: 20px 12px;
  }
}

/* ===============================================
 *  * CE ACCORDION
 *   * =============================================== */

.ce-accordion {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ce-outline-category {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: #333;
}

.ce-accordion-item {
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ce-accordion-item:hover {
  border-color: rgba(31, 60, 114, 0.25);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.ce-accordion-item.is-open {
  border-color: rgba(216, 180, 90, 0.55);
  box-shadow: 0 10px 22px rgba(216, 180, 90, 0.12);
}

.ce-accordion-header {
  width: 100%;
  background: #f8f8f8;
  border: none;
  text-align: left;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background-color 0.18s ease;
}

.ce-accordion-header:hover {
  background: rgba(216,180,90,0.10);
}

.ce-accordion-item.is-open .ce-accordion-header {
  background: rgba(216,180,90,0.12);
  border-bottom: 1px solid rgba(216,180,90,0.18);
}

.ce-accordion-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ce-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #ccd2e0;
  font-size: 0.95rem;
  line-height: 1;
  background: #fff;
  flex-shrink: 0;
  color: #1f2a44;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ce-accordion-item.is-open .ce-accordion-icon {
  border-color: rgba(216,180,90,0.55);
  background: rgba(216,180,90,0.12);
}

.ce-accordion-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.06);
}

.ce-accordion-title {
  font-weight: 900;
  color: #1f2a44;
  line-height: 1.25;
}

.ce-accordion-meta {
  font-size: 0.82rem;
  color: #4d5566;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.required-tag {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-text);
  border: 1px solid rgba(216,180,90,0.45);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  margin-left: 6px;
  vertical-align: middle;
}

.ce-accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  transition: max-height 0.3s ease;
  background: #fff;
}

.ce-accordion-item.is-open .ce-accordion-body {
  padding-bottom: 8px;
}

.ce-accordion-body p {
  margin: 10px 0 14px;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .ce-accordion-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .ce-accordion-meta {
    text-align: left;
    white-space: normal;
  }
}

/* ===============================================
 *  * AUTH / LOGIN WRAPPER
 *   * =============================================== */

.ce-wrapper {
  max-width: 480px;
  margin: 40px auto;
}

.ce-wrapper--wide{
  max-width: 650px;   /* registration only */
}


.ce-wrapper h1 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  text-align: center;
}

.subtitle {
  margin: 0 0 18px 0;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.login-type-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.login-type-toggle button {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--navy);
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.login-type-toggle button.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.ce-wrapper button[type="submit"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
}

.ce-wrapper button[type="submit"]:hover {
  background: #182f5a;
}

@media (max-width: 600px) {
  .ce-wrapper {
    margin: 20px auto;
    border-radius: 0;
  }
}

/* ===============================================
 *  * CE PRICING TABLE
 *   * =============================================== */

.pricing-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pricing-table th,
.pricing-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e2e2e2;
  text-align: left;
  white-space: nowrap;
}

.pricing-table th {
  font-size: 0.82rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-badge {
  background: rgba(216,180,90,0.18);
  color: #b28a35;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 800;
}

/* ===============================================
 *  * EMPLOYER DASHBOARD / METRICS
 *   * =============================================== */

.ce-subtitle {
  margin: 0 0 18px;
  color: #555;
  font-size: 0.98rem;
}

.ce-metric-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.ce-metric-label {
  font-size: 0.8rem;
  color: #777;
}

.ce-metric-value {
  font-size: 1.2rem;
  font-weight: 900;
}

.ce-btn-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .ce-btn-row {
    justify-content: space-between;
  }
}

/* ===============================================
 *  * TABLES
 *   * =============================================== */

.ce-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

.ce-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ce-table th,
.ce-table td {
  border-bottom: 1px solid #e2e2e2;
  padding: 6px 4px;
  text-align: left;
}

.ce-table th {
  font-size: 0.82rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Status badges */
.ce-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.ce-badge-active { background: #2e9a4b; }
.ce-badge-inactive { background: #777; }

/* ===============================================
 *  * EMPLOYER PLAN SELECTION
 *   * =============================================== */

.ce-plans { margin-top: 12px; }

.ce-plan-row {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ce-plan-row:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-soft);
  background-color: #fdfaf2;
}

.ce-plan-row.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-soft);
  background-color: #fdf7e6;
}

.ce-plan-row input[type="radio"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.ce-plan-main { flex: 1; }

.ce-plan-label {
  font-weight: 900;
  margin-bottom: 2px;
  color: var(--gold-text);
}

.ce-plan-desc {
  font-size: 0.9rem;
  color: #555;
}

.ce-plan-meta {
  font-size: 0.86rem;
  color: #444;
  margin-top: 4px;
}

.ce-plan-price {
  font-weight: 900;
  color: var(--gold-text);
}

/* Number circle */
.ce-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Step badge number (if shown on this page) */
.ce-step-badge {
    background: var(--gold);
    color: #fff;
}


/* ===============================================
 *  * COURSE VIEWER
 *   * =============================================== */

.ce-text-center { text-align: center; }
.ce-btn-row-center { justify-content: center; }

.ce-course-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ce-course-title {
  margin: 0;
  font-size: 1.4rem;
}

.ce-course-link {
  font-size: 0.85rem;
  color: var(--blue-link);
}

.ce-course-link:hover { text-decoration: underline; }

.ce-course-meta,
.ce-course-meta-time {
  font-size: 0.9rem;
  color: #555;
  margin: 4px 0;
}

.ce-course-score-note {
  font-size: 0.85rem;
  color: #555;
  font-weight: 900;
}

.ce-course-progress-wrap {
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0 12px;
}

.ce-course-progress-bar {
  height: 10px;
  background: var(--blue-link);
  width: 0;
  transition: width 0.3s ease;
}

.ce-course-layout {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.ce-course-sidebar {
  flex: 0 0 260px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 14px;
  max-height: 80vh;
  overflow-y: auto;
  font-size: 0.9rem;
  position: sticky;
  top: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.ce-course-legend {
  font-size: 0.75rem;
  margin: 0 0 6px 0;
  color: #555;
}

.ce-course-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ce-course-toc-item {
  padding: 6px 8px 6px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.ce-course-toc-item.clickable { cursor: pointer; }
.ce-course-toc-item.locked { opacity: 0.6; cursor: default; }

.ce-course-toc-step {
  font-weight: 900;
  min-width: 1.4em;
}

.ce-course-toc-item.active {
  background: #e8f0ff;
  border-left: 3px solid var(--blue-link);
  font-weight: 900;
}

.ce-course-toc-item.quiz-done:not(.active) {
  border-left: 3px solid #28a745;
}

.ce-course-pill {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 900;
  vertical-align: middle;
}

.ce-course-pill-viewed {
  background: #e2f4e8;
  color: #1e7e34;
}

.ce-course-pill-quiz {
  background: #e8f0ff;
  color: var(--blue-link);
}

.ce-course-slide-area { flex: 1 1 auto; }

.ce-course-slide-copy {
  margin-top: 10px;
  line-height: 1.7;
  font-size: 1.02rem;
  text-align: left;
  white-space: pre-wrap;
}

.ce-course-slide-copy ul,
.ce-course-slide-copy ol {
  margin: 0.5em 0 0.75em 1.4em;
  padding: 0;
  line-height: 1.7;
}

.ce-course-slide-image img {
  max-width: 550px;
  width: 100%;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ce-course-posttest-block {
  margin-top: 25px;
  padding: 15px;
  border-radius: 8px;
  background: #f7fbff;
  border: 1px solid #d0e3ff;
}

.ce-course-footer-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 768px) {
  .ce-course-layout { flex-direction: column; }
  .ce-course-sidebar { position: static; max-height: none; }
}

/* Improve bullet indentation for purchase pages */
.ce-purchase ul,
.ce-purchase ol {
  margin-left: 1.4rem;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.ce-purchase li {
  margin-bottom: 0.4rem;
}

/* ===============================================
 *  * FACILITY TYPES (home page info block)
 *   * =============================================== */

.facility-types-section {
  margin: 0;
  margin-top: 10px;
  margin-bottom: 24px;
}

.facility-types-section h2 {
  font-size: 1.3rem;
}

.facility-intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 14px;
}

.facility-types {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.facility-types dl {
  margin: 0;
  padding: 0;
}

.facility-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f4;
}

.facility-item:last-child {
  border-bottom: none;
}

.facility-item dt {
  font-weight: 900;
  margin: 0 0 4px 0;
  font-size: 0.98rem;
  color: var(--navy);
  position: relative;
  padding-left: 10px;
}

.facility-item dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
}

.facility-item dd {
  font-size: 0.92rem;
  color: #444;
  padding-left: 10px;
  line-height: 1.5;
}

  border-radius: 18px;
@media (max-width: 600px) {
  .facility-types-section {
    padding: 24px 16px;
    margin-bottom: 20px;
  }
}

/* ===============================================
 *  * CE BANNER
 *   * =============================================== */

.ce-banner-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0 30px;
}

.ce-banner-img {
  width: 100%;
  max-width: 1600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* ===============================================
 *  * STATE SELECTOR STRIP (clean alignment, no translate hacks)
 *   * =============================================== */

.ce-state-strip {
  width: 100%;
  background: transparent;
  padding: 18px 16px 0;
  margin-top: 18px;
}

.ce-state-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(90deg, #f8f2df 0%, #f3e2b8 60%, #f8f2df 100%);
  padding: 20px 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.ce-state-strip-text {
  flex: 1 1 260px;
  min-width: 240px;
  color: var(--navy-deep);
}

.ce-state-strip-kicker {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15, 39, 74, 0.08);
  color: var(--navy-deep);
  margin-bottom: 8px;
  font-weight: 800;
}

.ce-state-strip-heading {
  font-size: 1.4rem;
  margin: 6px 0 6px;
  font-weight: 900;
}

.ce-state-strip-subtext {
  font-size: 0.95rem;
  max-width: 460px;
  color: #3b4255;
}

.ce-state-form {
  flex: 0 0 auto;
  width: 320px;
  min-width: 260px;
  background: #ffffff;
  color: #222;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  border: 1px solid rgba(15, 39, 74, 0.06);
  margin-bottom: 0;
}

.ce-state-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #666f80;
}

.ce-state-form-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.ce-state-select,
.ce-state-button {
  height: 44px;
  box-sizing: border-box;
  font-size: 0.95rem;
  border-radius: 10px;
}

.ce-state-select {
  flex: 1 1 auto;
  padding: 0 11px;
  border: 1px solid #ccd2e0;
  background-color: #fff;
  appearance: none;
  margin-bottom: 0;
}

.ce-state-button {
  flex: 0 0 auto;
  padding: 0 18px;
  border: none;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  background: var(--navy-deep);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

.ce-state-button:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.26);
}

.ce-state-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.ce-state-helper,
.ce-state-coming-soon {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #666f80;
}

@media (max-width: 768px) {
  .ce-state-strip {
    padding: 14px 12px 0;
    margin-top: 14px;
  }

  .ce-state-strip-inner {
    padding: 16px 16px 18px;
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .ce-state-form {
    width: 100%;
    padding: 10px 12px;
  }

  .ce-state-form-controls {
    gap: 6px;
  }
}

/* ===============================================
 *  * AUTHORITY / INSTRUCTOR CARD (HOME)
 *   * =============================================== */

.ce-authority {
  max-width: 1100px;
  margin: 20px auto 0;
}

.ce-authority-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  flex-wrap: wrap;
}

.ce-authority-photo img {
  width: 220px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.ce-authority-text {
  flex: 1;
  min-width: 260px;
}

.ce-authority-text h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #1f2a44;
}

.ce-authority-text p {
  margin: 0 0 12px;
  line-height: 1.65;
  color: #444;
}

.ce-authority-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .ce-authority {
    padding: 22px 18px;
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .ce-authority-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .ce-authority-photo img {
    width: 190px;
  }
}

/* ===============================================
 *  * FOOTER
 *   * =============================================== */

.site-footer {
  background: #1f2a44;
  color: #ffffff;
  padding: 50px 0 30px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 240px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 900;
}

.footer-col p {
  color: #e4e7ef;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #e4e7ef;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: #c7ccda;
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 0.9rem;
  color: #e4e7ef;
}

@media (max-width: 768px) {
  .footer-cols {
    flex-direction: column;
  }
}

/* ===============================================
 *    GET STARTED - FORCE 2-UP CARDS
 *       =============================================== */

#get-started .cards{
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 720px){
  #get-started .cards{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Make sure cards are not being forced full-width by some other rule */
#get-started .cards > .card{
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* ===============================================
 *    FACILITY TYPES CARD – CENTER THE CARD
 *       =============================================== */

#facility-types.facility-types-section{
  max-width: 1100px;      /* adjust if needed */
  margin: 0 auto 24px;    /* centers the card */
}

/* ===============================================
 *    HOME NAV: transparent until scroll, then solid
 *       =============================================== */

/* Default (all non-home pages): solid/navy */
.ce-nav {
  background: rgba(31, 60, 114, 0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Home page: start transparent */
body.home .ce-nav {
  background: transparent;
  box-shadow: none;
}

/* Home page: after scroll */
body.home .ce-nav.scrolled {
  background: rgba(31, 60, 114, 0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
}

/* ===============================================
 *    HERO TEXT – FORCE WHITE
 *       =============================================== */

.hero,
.hero h1,
.hero .hero-subtitle,
.hero .hero-note {
  color: #ffffff;
}

/* ===============================================
 *    FIXED NAV – ANCHOR OFFSET
 *       =============================================== */

section[id] {
    scroll-margin-top: 110px; /* match nav height */
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 92px; /* slightly shorter mobile nav */
    }
}

/* =====================================================
 *    PRE-FOOTER BANNER (ROLE-AWARE) - GOLD + TOUCHES FOOTER
 *       Used site-wide above footer.php
 *          ===================================================== */

.ce-prefooter {
    /* Touch footer: no gap below */
    margin: 40px 0 0;
    padding: 28px 22px;

    /* Gold background (Option 1) */
    background: #f4c430;

    /* No borders so it feels like one band into the footer */
    border: none;
}

.ce-prefooter-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Headline */
.ce-prefooter h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #1f3c72; /* navy */
}

/* Text */
.ce-prefooter p {
    margin: 0 0 14px;
    color: #2f2f2f;
    font-size: 0.98rem;
    line-height: 1.45;
}

/* Links in banner */
.ce-prefooter a {
    color: #1f3c72;
    font-weight: 600;
    text-decoration: underline;
}

.ce-prefooter a:hover {
    text-decoration: none;
}

/* Newsletter form (guest mode) */
.ce-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}


.ce-newsletter-form input[type="email"] {
    padding: 11px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    width: 100%;
    max-width: 360px;   /* adjust if you want slightly wider/narrower */
}

.ce-newsletter-form input[type="email"]:focus {
    border-color: rgba(31, 60, 114, 0.55);
    box-shadow: 0 0 0 3px rgba(31, 60, 114, 0.18);
}

/* Buttons */
.ce-newsletter-form button,
.ce-prefooter .ce-btn {
    padding: 11px 18px;
    font-size: 0.95rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;

    background: #1f3c72;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.ce-newsletter-form button:hover,
.ce-prefooter .ce-btn:hover {
    background: #17305a;
}

.ce-newsletter-form button {
    width: 100%;
    max-width: 360px;
    margin-top: 10px;
}

.ce-newsletter-form input[type="email"] {
    width: 100%;
    max-width: 360px;
}

.ce-newsletter-form {
    flex-direction: column;
    align-items: center;
}

/* Student/Employer quick actions */
.ce-prefooter-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* Secondary line */
.ce-prefooter-secondary {
    margin-top: 12px;
    font-size: 0.95rem;
}

/* Role classes kept for future flexibility (no visual changes needed now) */
.ce-prefooter-guest {}
.ce-prefooter-student {}
.ce-prefooter-employer {}

/* Mobile */
@media (max-width: 640px) {
    .ce-prefooter {
        margin-top: 32px;
        padding: 22px 14px;
    }

    .ce-prefooter h3 {
        font-size: 1.2rem;
    }

    .ce-newsletter-form input[type="email"] {
        min-width: 100%;
    }

    .ce-newsletter-form button {
        width: 100%;
    }
}

/* =====================================================
 *  *  NAV OVERRIDES - keep logo stable + switch to mobile sooner
 *   *  (Added as overrides only)
 *    * ===================================================== */

/* 1) Prevent header from wrapping into 2 lines */
.ce-nav-inner {
  flex-wrap: nowrap;
}

/* 2) Keep the logo from shrinking/disappearing */
.ce-nav-left {
  flex: 0 0 auto;        /* stop left side from collapsing */
  min-width: 0;
}

.ce-nav-logo-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.ce-nav-logo {
  height: 64px;          /* stable size (was 84px; this is more realistic for one-line nav) */
  width: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* 3) Switch to mobile popup menu BEFORE things get cramped
 *    (Your menu needs this earlier than 768px) */
@media (max-width: 980px) {
  .ce-nav-toggle { display: block; }

  /* Hide desktop links and use popup menu */
  .ce-nav-links { display: none !important; }

  /* Optional: hide the tiny "Presented by..." line to preserve space */
  .ce-nav-brand-sub { display: none; }

  /* Make sure brand text stays single-line */
  .ce-nav-brand-main { white-space: nowrap; }
}

/* Keep your existing 768px popup styles working */
@media (max-width: 768px) {
  .ce-nav-toggle { display: block; }
}

/* =====================================================
 *  *  FIX: allow mobile popup to open (override any !important hiding)
 *   * ===================================================== */

/* Hide nav links ONLY when menu is NOT open */
@media (max-width: 980px) {
  .ce-nav-toggle { display: block; }

  .ce-nav:not(.is-open) .ce-nav-links {
    display: none !important;
  }

  .ce-nav.is-open .ce-nav-links {
    display: flex !important;
  }
}

/* Keep the "Presented by..." line visible and wrap-friendly */
.ce-nav-brand-sub {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
  margin-top: 2px;
  white-space: normal;     /* allow wrapping */
}

/* If the nav row is forced to nowrap, allow the brand area to wrap */
.ce-nav-left,
.ce-nav-brand {
  min-width: 0;
}

.ce-nav-brand {
  overflow: visible;       /* don't clip subline */
}

/* On small screens, tighten but DON'T hide */
@media (max-width: 980px) {
  .ce-nav-brand-sub {
    display: block !important;   /* overrides any display:none */
    font-size: 0.78rem;
  }
}


.ce-receipt-pill {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937; /* neutral dark */
    background-color: #eef2ff; /* soft accent */
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.ce-receipt-pill:hover {
    background-color: #e0e7ff;
    border-color: #a5b4fc;
    text-decoration: none;
}

#student-details {
  scroll-margin-top: 120px; /* adjust if needed */
}

.ce-link-cta{
  display:inline-block;
  margin:4px 0;
  padding:8px 12px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.15);
}

.ce-link-cta:hover,
.ce-link-cta:focus{
  text-decoration:none;
  transform: translateY(-1px);
}

.ce-link-cta:focus{
  outline: 3px solid rgba(108,59,247,.25);
  outline-offset: 2px;
}

.ce-course-slide-copy,
.ce-course-slide-copy p,
.ce-course-slide-copy li,
.ce-course-slide-copy span {
  font-size: 1.3rem !important;
  line-height: 1.75 !important;
}

.ce-course-posttest-error, .ce-course-posttest-feedback, .ce-course-quiz-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 1.15rem;           /* slightly larger than body */
  font-weight: 600;
  line-height: 1.6;
  border-left: 5px solid #4a6cf7; /* accent bar */
  background: #f4f7ff;
  color: #1f2937;
  border-radius: 6px;
}

/* =========================
 *    Home page welcome video
 *       ========================= */

.section-video {
  padding-top: 40px;
  padding-bottom: 40px;
}

.video-intro {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
}

.video-intro h2 {
  margin-bottom: 10px;
}

.home-video-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Responsive iframe */
.home-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

/* Small helper note */
.video-note {
  max-width: 820px;
  margin: 10px auto 0;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}


.ce-icon-video,
.ce-icon-quiz {
    margin-right: 6px;
    font-size: 0.95em;
    vertical-align: middle;
    opacity: 0.85;
}

.ce-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.ce-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 640px) {
    .ce-video-wrapper {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        padding-top: 62.5%;
    }
}

