/* ==========================================================================
   ProTrain — style.css
   Flat-file prototype · translates to WordPress + Elementor global styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --purple:        #612e8b;
  --purple-dark:   #4a2069;
  --purple-deep:   #2d1040;
  --purple-light:  #f0e8f7;
  --orange:        #ff7f29;
  --orange-light:  #fff3ea;
  --ink:           #1a1218;
  --ink-secondary: #3a3a3a;
  --stone:         #f5f3f0;
  --white:         #ffffff;
  --border:        rgba(97, 46, 139, 0.14);
  --border-mid:    rgba(97, 46, 139, 0.26);
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 16px;
  --maxw: 1140px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--purple); margin: 0 0 1rem; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem);    font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 1rem;   font-weight: 500; }
p  { margin: 0 0 1rem; color: var(--ink-secondary); }
ul, ol { color: var(--ink-secondary); padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
.section-compact { padding: 3.5rem 0; }
.bg-stone { background: var(--stone); }
.bg-purple-light { background: var(--purple-light); }
.bg-purple-deep { background: var(--purple-deep); }
.bg-purple-deep h2, .bg-purple-deep h3 { color: var(--white); }
.bg-purple-deep p { color: rgba(255,255,255,0.88); }

/* ---------- Section heading with orange rule ---------- */
.section-heading { margin-bottom: 2.5rem; }
.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin-top: 0.75rem;
  animation: rule-grow 0.6s ease both;
}
@keyframes rule-grow { from { width: 0; } to { width: 48px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  color: #fff;
  background: var(--orange);
  background-image: linear-gradient(to right, #c96320 50%, var(--orange) 50%);
  background-size: 200% 100%;
  background-position: right center;
  transition: background-position 0.28s ease, color 0.15s ease;
}
.btn-primary:hover { background-position: left center; color: #fff; }
.btn-secondary {
  color: #fff;
  border-color: #fff;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover { background: #fff; color: var(--purple-deep); }
.btn-outline {
  color: var(--purple);
  border-color: var(--purple);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--purple-deep); font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.topbar a { color: rgba(255,255,255,0.88); text-decoration: none; }
.topbar a:hover { color: #fff; }
@media (max-width: 760px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--purple); letter-spacing: -0.02em; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; align-items: center; }
.main-nav li { margin: 0; }
.nav-link {
  font-weight: 500; font-size: 0.95rem; color: var(--ink);
  text-decoration: none; padding: 0.4rem 0; display: inline-block;
}
.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--orange);
  width: 0;
  transition: width 0.22s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-link:hover { color: var(--purple); }

/* Courses dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: 0 12px 32px rgba(45,16,64,0.14);
  padding: 1.5rem; width: 560px;
  display: none;
  grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: grid; }
.dropdown h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-secondary); margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0.4rem;
}
.dropdown a {
  display: block; padding: 0.35rem 0; font-size: 0.92rem;
  text-decoration: none; color: var(--ink);
}
.dropdown a:hover { color: var(--purple); }
.header-cta { margin-left: 0.5rem; white-space: nowrap; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: none; padding: 0.5rem; cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--purple); margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: fixed; inset: 0; top: 62px;
    background: var(--white); z-index: 99;
    overflow-y: auto; padding: 2rem; margin: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .main-nav .nav-link { font-size: 1.15rem; }
  .dropdown {
    display: block; position: static; transform: none; width: auto;
    border: none; box-shadow: none; padding: 0.5rem 0 0.5rem 1rem;
  }
  .header-cta { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: rgba(255,255,255,0.88); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-word { color: #fff; font-size: 1.1rem; }
.site-footer h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}
.footer-social a:hover { border-color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 3rem; padding: 1.25rem 0;
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
  text-align: center;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; color: rgba(255,255,255,0.75); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 0.4rem; }
.breadcrumb a { color: rgba(255,255,255,0.88); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-dark));
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 46rem; font-size: 1.1rem; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.meta-chip {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.82rem; font-weight: 500;
  padding: 0.3rem 0.85rem; border-radius: 999px;
}

/* ---------- Homepage hero ---------- */
.home-hero {
  background: var(--purple-deep);
  background-image: radial-gradient(circle at 75% 20%, rgba(97,46,139,0.7), transparent 55%);
  color: #fff;
  padding: 5rem 0;
}
.home-hero-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }
.home-hero h1 { color: #fff; margin: 1rem 0; }
.home-hero .lead { font-size: 1.15rem; color: rgba(255,255,255,0.88); }
.hero-badge {
  display: inline-block; background: rgba(255,127,41,0.15);
  border: 1px solid var(--orange); color: #ffb98a;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.3rem 0.9rem; border-radius: 999px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0; }
.stat-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stat-pill {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.88); font-size: 0.82rem; font-weight: 500;
  padding: 0.35rem 0.9rem; border-radius: 999px;
}
.quick-enrol {
  background: var(--white); border-radius: var(--radius-l);
  padding: 2rem; box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.quick-enrol h3 { margin-bottom: 1.25rem; }
.quick-enrol .form-row { margin-bottom: 1rem; }
.quick-enrol .note { font-size: 0.85rem; margin: 0.75rem 0 0; }
@media (max-width: 900px) { .home-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--ink); }
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.65rem 0.8rem; border: 1px solid var(--border-mid);
  border-radius: var(--radius-s); background: #fff; color: var(--ink);
}
select:focus, input:focus, textarea:focus { border-color: var(--purple); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-row input { width: auto; margin-top: 0.35rem; }
.checkbox-row label { font-weight: 400; color: var(--ink-secondary); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 2rem 0; }
.trust-items { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.trust-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--purple); flex: none;
}
@media (max-width: 760px) { .trust-items { display: grid; grid-template-columns: 1fr 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(97, 46, 139, 0.12);
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid, .card-grid-2 { grid-template-columns: 1fr; } }

.course-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--purple-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 1rem;
}
.card .price { font-family: var(--font-head); font-weight: 700; color: var(--purple); }
.card-link { font-weight: 600; text-decoration: none; }

/* ---------- Delivery badge ---------- */
.delivery-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.badge-online { background: #e7f5ec; color: #1b6b3a; }
.badge-f2f    { background: var(--orange-light); color: #a4520f; }
.badge-both   { background: var(--purple-light); color: var(--purple); }

/* ---------- Step list ---------- */
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; list-style: none; padding: 0; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step-list h3 { margin-bottom: 0.5rem; }
@media (max-width: 760px) { .step-list { grid-template-columns: 1fr; } }

/* Vertical step list (course pages / career start) */
.step-list-v { list-style: none; padding: 0; counter-reset: step; }
.step-list-v > li {
  display: flex; gap: 1rem; margin-bottom: 1.5rem; counter-increment: step;
}
.step-list-v > li::before {
  content: counter(step, upper-alpha);
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-list-v.numeric > li::before { content: counter(step); }

/* ---------- Testimonials ---------- */
.testimonial .stars { color: var(--orange); letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.testimonial blockquote { margin: 0 0 1.25rem; font-style: italic; color: var(--ink-secondary); }
.testimonial-person { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.testimonial-person .name { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.testimonial-person .role { font-size: 0.8rem; color: var(--ink-secondary); }

/* ---------- Notice blocks ---------- */
.notice {
  border-left: 4px solid var(--purple);
  background: var(--purple-light);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }
.notice-warning { border-left-color: var(--orange); background: var(--orange-light); }

/* ---------- Tables ---------- */
.courses-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.courses-table caption { text-align: left; font-weight: 600; margin-bottom: 0.75rem; color: var(--ink); }
.courses-table th, .courses-table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); }
.courses-table th { font-family: var(--font-head); font-weight: 500; color: var(--purple); font-size: 0.85rem; }
.courses-table tbody tr:nth-child(even) { background: var(--stone); }
.spaces-chip {
  display: inline-block; background: #e7f5ec; color: #1b6b3a;
  font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.6rem; border-radius: 999px;
}
.spaces-chip.low { background: var(--orange-light); color: #a4520f; }
.table-scroll { overflow-x: auto; }

/* Pricing table */
.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; }
.pricing-table th, .pricing-table td { padding: 0.65rem 0.9rem; border: 1px solid var(--border); text-align: left; }
.pricing-table th { background: var(--purple-light); color: var(--purple); font-family: var(--font-head); font-weight: 500; }

/* ---------- Info boxes ---------- */
.info-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-box { background: var(--stone); border-radius: var(--radius-m); padding: 1.25rem; }
.info-box .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-secondary); }
.info-box .value { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--purple); }

/* ---------- Skills Assure banner ---------- */
.sas-banner {
  background: var(--purple-light);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  padding: 1.5rem 2rem; margin: 2rem 0;
}
.sas-banner h3 { margin-bottom: 0.5rem; }
.sas-banner p:last-child { margin-bottom: 0; }

/* ---------- Accordions ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-m); margin-bottom: 0.75rem; background: #fff; }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--ink); text-align: left; padding: 1rem 1.25rem;
}
.accordion-trigger::after {
  content: '+'; font-family: var(--font-head); font-size: 1.3rem;
  color: var(--purple); flex: none;
  transition: transform 0.2s ease;
}
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel { padding: 0 1.25rem 1.25rem; }
.accordion-panel p:last-child { margin-bottom: 0; }

/* ---------- Delivery tabs (pure CSS, radio hack) ---------- */
.tabs { margin: 2rem 0; }
.tabs input[type="radio"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab-labels { display: flex; flex-wrap: wrap; gap: 0.5rem; border-bottom: 2px solid var(--border); }
.tab-labels label {
  font-weight: 600; font-size: 0.95rem; color: var(--ink-secondary);
  padding: 0.7rem 1.25rem; cursor: pointer;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  margin-bottom: -2px; border-bottom: 2px solid transparent;
}
.tabs input:focus-visible + .tab-labels label,
.tab-labels label:hover { color: var(--purple); }
.tab-panel { display: none; padding: 2rem 0; }
#tab-f2f:checked    ~ .tab-labels label[for="tab-f2f"],
#tab-online:checked ~ .tab-labels label[for="tab-online"],
#tab-rpl:checked    ~ .tab-labels label[for="tab-rpl"] {
  color: var(--purple); border-bottom-color: var(--orange); background: var(--purple-light);
}
#tab-f2f:checked    ~ .tab-panels .panel-f2f,
#tab-online:checked ~ .tab-panels .panel-online,
#tab-rpl:checked    ~ .tab-panels .panel-rpl { display: block; }

/* ---------- Unit pills ---------- */
.unit-list { list-style: none; padding: 0; }
.unit-list li { display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 0.75rem; }
.unit-code {
  font-family: var(--font-head); font-weight: 500; font-size: 0.8rem;
  background: var(--purple); color: #fff;
  padding: 0.15rem 0.6rem; border-radius: var(--radius-s); flex: none;
}
.unit-code.elective { background: var(--stone); color: var(--ink); border: 1px solid var(--border-mid); }
.unit-tag { font-size: 0.75rem; color: var(--ink-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Sticky enrol bar (course pages) ---------- */
.enrol-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--purple-deep); border-bottom: 2px solid var(--orange);
  color: #fff; padding: 0.6rem 0;
  transform: translateY(-110%); transition: transform 0.25s ease;
}
.enrol-bar.visible { transform: translateY(0); }
.enrol-bar .container { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.enrol-bar .course-name { font-family: var(--font-head); font-weight: 700; }
.enrol-bar .next-date { font-size: 0.85rem; color: rgba(255,255,255,0.88); margin-right: auto; }
.enrol-bar .btn { padding: 0.45rem 1rem; font-size: 0.85rem; }
@media (max-width: 760px) { .enrol-bar .next-date { display: none; } }

/* ---------- Stream selector (cert-iii) ---------- */
.quiz-block {
  background: var(--purple-deep); border-radius: var(--radius-l);
  padding: 2.5rem; color: #fff;
}
.quiz-block h2 { color: #fff; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.quiz-option {
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-m); color: #fff;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  padding: 1.25rem; cursor: pointer; text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-option:hover { border-color: var(--orange); }
.quiz-option[aria-pressed="true"] { border-color: var(--orange); background: rgba(255,127,41,0.18); }
.quiz-result {
  background: #fff; color: var(--ink); border-radius: var(--radius-m);
  padding: 1.5rem; margin-top: 1.5rem;
}
.quiz-result h3 { margin-bottom: 0.5rem; }
@media (max-width: 640px) { .quiz-options { grid-template-columns: 1fr; } }

/* Stream drawers */
.stream-drawer { border: 1px solid var(--border); border-radius: var(--radius-m); margin-bottom: 1rem; background: #fff; overflow: hidden; }
.stream-trigger {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 1.25rem 1.5rem; font-family: var(--font-body);
}
.stream-trigger[aria-expanded="true"] { background: var(--purple); }
.stream-trigger[aria-expanded="true"] .stream-name,
.stream-trigger[aria-expanded="true"] .stream-tags { color: #fff; }
.stream-trigger[aria-expanded="true"] .stream-circle { background: var(--orange); }
.stream-circle {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.stream-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--purple); }
.stream-tags { font-size: 0.82rem; color: var(--ink-secondary); }
.stream-body { padding: 1.75rem 1.5rem; border-top: 1px solid var(--border); }
.stream-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stream-footer { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.suit-list { list-style: none; padding: 0; }
.suit-list li { padding-left: 1.6rem; position: relative; }
.suit-list li::before { content: '✓'; position: absolute; left: 0; color: var(--purple); font-weight: 700; }
@media (max-width: 760px) { .stream-cols { grid-template-columns: 1fr; } }

/* ---------- FAQ layout ---------- */
.faq-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.faq-sidebar { position: sticky; top: 90px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-sidebar { position: static; } }

/* ---------- Policies layout ---------- */
.policy-layout { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 3rem; align-items: start; }
.policy-nav { position: sticky; top: 90px; }
.policy-nav ul { list-style: none; padding: 0; }
.policy-nav a { text-decoration: none; font-size: 0.92rem; display: block; padding: 0.3rem 0; }
.policy-section { margin-bottom: 4rem; scroll-margin-top: 90px; }
@media (max-width: 900px) { .policy-layout { grid-template-columns: 1fr; } .policy-nav { position: static; } }

/* ---------- Resource links ---------- */
.resource-list { list-style: none; padding: 0; }
.resource-list li { margin-bottom: 0.75rem; }
.resource-list a { font-weight: 500; text-decoration: none; }
.resource-list a::after { content: ' ↗'; color: var(--orange); }
.resource-list a:hover { text-decoration: underline; }
.resource-list .desc { display: block; font-size: 0.85rem; color: var(--ink-secondary); }

/* ---------- CTA strip ---------- */
.cta-strip { text-align: center; }
.cta-strip .btn { margin: 0 0.5rem 0.5rem; }

/* ---------- Two-column generic ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-card .role { color: var(--orange); font-weight: 600; font-size: 0.88rem; margin-bottom: 0.75rem; }
.team-card .creds { font-size: 0.8rem; color: var(--ink-secondary); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.75rem; }
.team-card .avatar { width: 64px; height: 64px; font-size: 1.3rem; margin-bottom: 1rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   ProTrain chat widget — scoped under #pt-chat, injected by js/chatbot.js
   Reuses the site's --font-head / --font-body variables (Outfit / DM Sans)
   instead of loading Archivo + Inter, so no extra font request is added.
   ========================================================================== */


  #pt-chat {
    /* ── ProTrain brand palette (scoped, not :root, so it can't collide
         with the host theme's own custom properties) ── */
    --ink:        #241d2b;
    --paper:      #fcfbfe;
    --plum:       #612e8b;
    --plum-2:     #7a3fae;
    --lilac:      #f3eef9;
    --lilac-line: #e4dcef;
    --flame:      #ff7f29;
    --flame-2:    #ea6e1a;
    --moss:       #4fbe85;
    --muted:      #9d94a8;
    --r-window: 18px;
    --r-bubble: 14px;
    --shadow-lg: 0 12px 48px rgba(97, 46, 139, .18), 0 2px 8px rgba(34, 32, 28, .06);

    font-family: var(--font-body);
    color: var(--ink);
  }
  #pt-chat *, #pt-chat *::before, #pt-chat *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── Launcher button ── */
  #pt-chat #chat-launcher {
    position: fixed; bottom: 32px; right: 32px; width: 58px; height: 58px;
    border-radius: 50%; background: var(--plum); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(97, 46, 139, .35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    z-index: 100000;
  }
  #pt-chat #chat-launcher:hover {
    background: var(--plum-2); transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(97, 46, 139, .42);
  }
  #pt-chat #chat-launcher:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
  #pt-chat #chat-launcher .icon-close { display: none; }
  #pt-chat #chat-launcher.open .icon-open  { display: none; }
  #pt-chat #chat-launcher.open .icon-close { display: block; }
  #pt-chat #chat-launcher::after {
    content: ''; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px;
    background: var(--flame); border-radius: 50%; border: 2.5px solid #fff;
    opacity: 1; transition: opacity .2s, transform .2s;
  }
  #pt-chat #chat-launcher.open::after { opacity: 0; transform: scale(.5); }

  /* ── Chat window ── */
  #pt-chat #chat-window {
    position: fixed; bottom: 106px; right: 32px; width: 372px;
    max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 140px);
    background: var(--paper); border-radius: var(--r-window); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; overflow: hidden; z-index: 99999;
    transform: translateY(14px) scale(.97); transform-origin: bottom right;
    opacity: 0; pointer-events: none;
    transition: transform .28s cubic-bezier(.32,1.4,.55,1), opacity .2s ease;
  }
  #pt-chat #chat-window.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
  @media (max-width: 440px) {
    #pt-chat #chat-window { right: 16px; bottom: 96px; }
    #pt-chat #chat-launcher { right: 20px; bottom: 20px; }
  }

  #pt-chat .chat-header {
    padding: 18px 20px 16px;
    background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px), var(--plum);
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  }
  #pt-chat .chat-avatar {
    width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  #pt-chat .chat-avatar svg { width: 20px; height: 20px; }
  #pt-chat .chat-header-text h3 {
    font-family: var(--font-head); font-size: 15.5px; font-weight: 600;
    letter-spacing: .01em; color: #fff; line-height: 1.2;
  }
  #pt-chat .chat-header-text p { font-size: 11.5px; color: rgba(255,255,255,.62); margin-top: 3px; letter-spacing: .02em; }
  #pt-chat .status-dot {
    display: inline-block; width: 7px; height: 7px; background: var(--moss); border-radius: 50%;
    margin-right: 5px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(79,190,133,.5);
    animation: ptStatusPulse 2.4s infinite;
  }
  @keyframes ptStatusPulse {
    0%   { box-shadow: 0 0 0 0 rgba(79,190,133,.45); }
    70%  { box-shadow: 0 0 0 6px rgba(79,190,133,0); }
    100% { box-shadow: 0 0 0 0 rgba(79,190,133,0); }
  }

  #pt-chat .chat-messages {
    flex: 1; overflow-y: auto; padding: 20px 16px 12px; display: flex; flex-direction: column;
    gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain;
  }
  #pt-chat .chat-messages::-webkit-scrollbar { width: 5px; }
  #pt-chat .chat-messages::-webkit-scrollbar-track { background: transparent; }
  #pt-chat .chat-messages::-webkit-scrollbar-thumb { background: var(--lilac-line); border-radius: 5px; }

  #pt-chat .msg { display: flex; flex-direction: column; max-width: 86%; animation: ptMsgIn .32s cubic-bezier(.25,.9,.35,1) both; }
  @keyframes ptMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  #pt-chat .msg.bot  { align-self: flex-start; }
  #pt-chat .msg.user { align-self: flex-end; }

  #pt-chat .bubble { padding: 11px 15px; border-radius: var(--r-bubble); font-size: 13.5px; line-height: 1.6; font-weight: 400; }
  #pt-chat .msg.bot .bubble { background: var(--lilac); color: var(--ink); border-bottom-left-radius: 5px; }
  #pt-chat .msg.user .bubble { background: var(--plum); color: #f9f5fd; border-bottom-right-radius: 5px; }
  #pt-chat .bubble strong { font-weight: 500; }
  #pt-chat .msg.bot .bubble strong { color: var(--plum); }
  #pt-chat .msg.bot .bubble a {
    color: var(--plum); font-weight: 500; text-decoration: underline;
    text-decoration-color: var(--flame); text-underline-offset: 2px;
  }
  #pt-chat .msg.bot .bubble a:hover { color: var(--flame-2); }

  #pt-chat .msg-time { font-size: 10px; color: var(--muted); margin-top: 4px; padding: 0 3px; letter-spacing: .03em; }
  #pt-chat .msg.user .msg-time { text-align: right; }

  #pt-chat .quick-replies { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; max-width: 92%; }
  #pt-chat .quick-reply {
    background: var(--paper); border: 1px solid var(--lilac-line); color: var(--plum);
    font-family: var(--font-body); font-size: 12.5px; font-weight: 500; padding: 7px 13px;
    border-radius: 100px; cursor: pointer; transition: background .15s, border-color .15s, transform .12s;
    white-space: nowrap; opacity: 0; transform: translateY(6px);
    animation: ptChipIn .3s cubic-bezier(.25,.9,.35,1) forwards; animation-delay: var(--chip-delay, 0s);
  }
  @keyframes ptChipIn { to { opacity: 1; transform: translateY(0); } }
  #pt-chat .quick-reply:hover { background: var(--lilac); border-color: var(--plum); }
  #pt-chat .quick-reply:active { transform: scale(.96); }
  #pt-chat .quick-reply:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
  #pt-chat .quick-reply--team { background: var(--flame); border-color: var(--flame); color: #fff; }
  #pt-chat .quick-reply--team:hover { background: var(--flame-2); border-color: var(--flame-2); }

  #pt-chat .typing-indicator {
    display: flex; align-items: center; gap: 4.5px; padding: 12px 15px; background: var(--lilac);
    border-radius: var(--r-bubble); border-bottom-left-radius: 5px; width: fit-content;
    animation: ptMsgIn .25s ease both;
  }
  #pt-chat .typing-dot { width: 6px; height: 6px; background: #b6a9c9; border-radius: 50%; animation: ptTypingBounce 1.2s infinite ease-in-out; }
  #pt-chat .typing-dot:nth-child(2) { animation-delay: .18s; }
  #pt-chat .typing-dot:nth-child(3) { animation-delay: .36s; }
  @keyframes ptTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .55; }
    30%           { transform: translateY(-5px); opacity: 1; }
  }

  #pt-chat .chat-input-area { padding: 12px 16px 16px; border-top: 1px solid var(--lilac-line); background: #fff; flex-shrink: 0; }

  #pt-chat #lead-form { display: flex; flex-direction: column; gap: 8px; }
  #pt-chat .lead-form-header { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 2px; }
  #pt-chat .lead-form-header span {
    font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
    letter-spacing: .03em; text-transform: uppercase; color: var(--plum);
  }
  #pt-chat #lead-close {
    width: 26px; height: 26px; border: none; border-radius: 8px; background: var(--lilac);
    color: var(--plum); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s; font-size: 0;
  }
  #pt-chat #lead-close:hover { background: var(--lilac-line); }
  #pt-chat #lead-close:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
  #pt-chat #lead-form input, #pt-chat #lead-form textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--lilac-line); border-radius: 10px;
    font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--ink);
    background: var(--paper); outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
    resize: none; line-height: 1.5;
  }
  #pt-chat #lead-form input:focus, #pt-chat #lead-form textarea:focus {
    border-color: var(--plum); background: #fff; box-shadow: 0 0 0 3px rgba(97,46,139,.1);
  }
  #pt-chat #lead-form input::placeholder, #pt-chat #lead-form textarea::placeholder { color: var(--muted); }
  #pt-chat #lead-form input.invalid, #pt-chat #lead-form textarea.invalid { border-color: #d63b2f; background: #fdf6f5; }
  #pt-chat #lead-form button {
    padding: 12px; background: var(--flame); color: #fff; border: none; border-radius: 10px;
    font-family: var(--font-head); font-size: 13px; font-weight: 600; cursor: pointer;
    letter-spacing: .02em; transition: background .15s, transform .1s;
  }
  #pt-chat #lead-form button:hover:not(:disabled) { background: var(--flame-2); }
  #pt-chat #lead-form button:active:not(:disabled) { transform: scale(.985); }
  #pt-chat #lead-form button:disabled { opacity: .65; cursor: wait; }
  #pt-chat .lead-error { font-size: 12px; color: var(--flame); margin-top: 2px; text-align: center; }
  #pt-chat .pt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

  #pt-chat #chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
  #pt-chat #chat-input {
    flex: 1; resize: none; border: 1px solid var(--lilac-line); border-radius: 10px; padding: 10px 14px;
    font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--ink);
    background: var(--paper); outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
    max-height: 100px; line-height: 1.5;
  }
  #pt-chat #chat-input:focus { border-color: var(--plum); background: #fff; box-shadow: 0 0 0 3px rgba(97,46,139,.1); }
  #pt-chat #chat-input::placeholder { color: var(--muted); }
  #pt-chat #send-btn {
    width: 40px; height: 40px; flex-shrink: 0; background: var(--plum); border: none; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s;
  }
  #pt-chat #send-btn:hover { background: var(--plum-2); }
  #pt-chat #send-btn:active { transform: scale(.93); }
  #pt-chat #send-btn:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }

  @media (prefers-reduced-motion: reduce) {
    #pt-chat *, #pt-chat *::before, #pt-chat *::after {
      animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    }
    #pt-chat .chat-messages { scroll-behavior: auto; }
    #pt-chat .quick-reply { opacity: 1; transform: none; }
  }
