/* ============================================================
   VeteranEdu.org — main stylesheet
   Palette emulates the live Wix design: red banner header,
   navy hero band, white course tiles, navy footer.
   ============================================================ */

:root {
  --navy:        #0A1F44;
  --navy-deep:   #061530;
  --navy-soft:   #1B3268;
  --red:         #B22234;
  --red-dark:    #8E1B29;
  --red-light:   #E0566A;
  --paper:       #F4F6F9;
  --line:        #E3E7EE;
  --ink:         #1C2230;
  --muted:       #5A6275;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 20px;
  background: #fff;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   1. HEADER + HERO BACKGROUND
   Flag-tinted dark blue background wraps the header, the
   mission statement, and the slideshow as one continuous band.
   The red ribbon image sits inside the header, centered.
   ============================================================ */
.hero-bg {
  background-image: url('../images/background-flag.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--navy-deep);  /* fallback */
}
/* On subpages where CSS is loaded as ../css/style.css the
   url() above resolves the same way (relative to the CSS file). */

.site-header {
  padding: 28px 16px 24px;
}
.ribbon {
  max-width: 860px;
  margin: 0 auto;
  background-image: url('../images/red-banner-transparent.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
  /* The ribbon image is 1280x164; we let it scale freely with the
     container while preserving its general shape. */
}
.ribbon-inner {
  padding: 34px 60px 18px;  /* extra side padding so content stays
                               inside the ribbon's notched ends;
                               larger top drops the name down a line */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.brand-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  width: 100%;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 6px;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  height: auto;
  max-height: 61px;
  width: auto;
}
.brand-text {
  color: #fff;
  font-family: "Arial Black", "Arial Bold", Gadget, Arial, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Nav row centered inside the ribbon */
.header-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}
.nav-links {
  display: flex; align-items: center;
  list-style: none; margin: 0; padding: 0;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  color: #fff;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover {
  background: rgba(255,255,255,.18);
  text-decoration: none; color:#fff;
}
.nav-links a.active {
  background: #fff;
  color: var(--navy);
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px; padding: 8px;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; background: #fff;
  height: 2px; width: 22px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* ============================================================
   2. MISSION STATEMENT — sits on the flag-tinted .hero-bg
   ============================================================ */
.mission {
  background: transparent;
  color: #fff;
  padding: 14px 24px 18px;
  text-align: center;
}
.mission h1 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 760px;
}
.mission h1 .em {
  color: var(--red-light);
  font-weight: 700;
}

/* ============================================================
   3. PHOTO SLIDESHOW — captions BELOW photos (ADA-friendly)
   Manual controls only (arrows + dots). No auto-rotate.
   ============================================================ */
.slideshow {
  position: relative;
  background: transparent;
  padding: 0;
}
.slide-stage {
  position: relative;
  background: transparent;
  /* responsive: the stage is sized by the image, with a max-width */
  margin: 0 auto;
  max-width: 1180px;
}
.slide {
  display: none;
  padding: 0 16px 16px;
}
.slide.is-active {
  display: block;
}
.slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}
/* Caption sits BELOW the photo on its own row (better contrast, ADA-friendly) */
.slide-caption {
  background: rgba(6, 21, 48, 0.85);
  color: #fff;
  text-align: center;
  padding: 16px 24px;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 16px;
}
.slide-arrow {
  position: absolute;
  top: calc(50% - 30px);  /* center on the photo, not the caption */
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; transition: background .2s ease;
}
.slide-arrow:hover, .slide-arrow:focus {
  background: var(--red);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }
.slide-dots {
  display: flex; justify-content: center; gap: 10px;
  padding: 0 0 30px;
  background: transparent;
  flex-wrap: wrap;
}
.dot {
  width: 12px; height: 12px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.dot:hover, .dot:focus {
  background: #fff;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.dot.is-active { background: var(--red); transform: scale(1.3); }

@media (max-width: 600px) {
  .slide img { max-height: 360px; }
  .slide-arrow { width: 40px; height: 40px; font-size: 22px; }
}

/* ============================================================
   SECTIONS — general
   ============================================================ */
.section { padding: 70px 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 10px;
}
.section-head .kicker {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head .sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 60ch;
}

/* Courses heading — matched to the Operation Career Ready title + tagline */
#courses { padding-top: 24px; }
#courses .section-head .sub { max-width: none; }
#courses .section-head .kicker {
  color: #0C3157;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 6px;
}
#courses .section-head h2 {
  color: #8B0000;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.05;
}

/* ============================================================
   4. COURSE TILES
   ============================================================ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.course-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.course-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(10,31,68,.10);
}
.course-tile a { color: inherit; text-decoration: none; }
.course-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #243a63, #16315e);
  background-size: cover; background-position: center;
  position: relative;
}
.course-photo::after {
  /* placeholder label shown when no real photo is added */
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.course-photo.has-image::after { content: none; }
.course-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex; flex-direction: column;
}
.course-title {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.35;
}
.course-meta {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 14px;
}
.course-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.course-price .nv { color: var(--ink); }
.course-price .vt {
  color: var(--red);
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

/* ============================================================
   5. OPERATION CAREER READY (Wix-style feature layout)
   ============================================================ */
.ocr-feature {
  position: relative;
  overflow: hidden;
  padding: 60px 0 76px;
  background: #ded6ea url('../images/background-flag-purple.png') center top / cover no-repeat;
}
.ocr-feature .wrap { position: relative; z-index: 1; }

/* Header: emblem + title */
.ocr-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 34px;
  text-align: left;
}
.ocr-emblem { width: 150px; height: 150px; flex: none; }
.ocr-titles h1,
.ocr-titles h2 {
  color: #0C3157;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}
.ocr-sub {
  color: #8B0000;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin: 8px 0 0;
}

/* Lead paragraph */
.ocr-lead {
  max-width: 1080px;
  margin: 0 auto 52px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.95;
}
.ocr-lead u { text-underline-offset: 3px; }

/* Three photo cards */
.ocr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.ocr-card { display: flex; flex-direction: column; }
.ocr-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.ocr-card-body {
  background: #fff;
  margin: -66px 14px 0;
  padding: 18px 22px 26px;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 26px rgba(24, 24, 60, .12);
  flex: 1;
}
.ocr-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ocr-badge { width: 54px; height: 54px; flex: none; }
.ocr-card-head h3 {
  color: #0C3157;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}
.ocr-card-body p {
  margin: 0;
  color: #8B0000;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Teaser variant (homepage): photo + badge + single word, no paragraph */
.ocr-cards--teaser .ocr-card-head { margin-bottom: 0; }

@media (max-width: 860px) {
  .ocr-header { flex-direction: column; gap: 14px; text-align: center; }
  .ocr-emblem { width: 120px; height: 120px; }
  .ocr-cards { grid-template-columns: 1fr; gap: 30px; max-width: 460px; margin: 0 auto; }
}

/* ============================================================
   OPERATION CAREER READY — Pre-Registration form
   ============================================================ */
.ocr-form-wrap { max-width: 640px; }
.ocr-form-title {
  color: #7a1320;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
}
.ocr-form-intro {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 26px;
}
.ocr-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}
.ocr-check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b5471f;
  font-size: 1.05rem;
  cursor: pointer;
}
.ocr-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #8B0000;
  flex: none;
  cursor: pointer;
}
.ocr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ocr-field { margin-bottom: 20px; }
.ocr-field label {
  display: block;
  color: #b5471f;
  font-size: 0.95rem;
  margin-bottom: 7px;
}
.ocr-field .req { color: #8B0000; font-weight: 700; }
.ocr-form input,
.ocr-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fdeef7;
  border: 1px solid #b5471f;
  border-radius: 2px;
  padding: 12px 14px;
}
.ocr-form textarea { resize: vertical; min-height: 120px; }
.ocr-form input:focus,
.ocr-form textarea:focus {
  outline: none;
  border-color: #8B0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, .12);
}
.ocr-submit {
  appearance: none;
  border: 0;
  width: 100%;
  background: #3a0d18;
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 20px;
  margin-top: 8px;
  cursor: pointer;
  transition: background .15s;
}
.ocr-submit:hover { background: #561426; }
@media (max-width: 560px) {
  .ocr-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   CoCs (Continuums of Care) page
   ============================================================ */
.coc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 6px 0 30px;
}
.coc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 6px;
  padding: 22px 24px;
}
.coc-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.coc-card p { margin: 0 0 6px; }
.coc-card .count {
  color: var(--red);
  font-weight: 700;
  font-size: 1.4rem;
}
.coc-map { max-width: 360px; margin: 10px 0 6px; height: auto; border: 1px solid var(--line); }

/* CoC media: tall map + wide photo, matched height, side by side */
.coc-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-end;
  margin: 8px 0 28px;
}
.coc-hero figure { margin: 0; }
.coc-hero-img {
  width: 364px;          /* full native size — keeps state detail legible */
  max-width: 100%;
  height: auto;
  display: block;
}
.coc-bordered { border: 1px solid var(--line); }
.coc-rounded  { border-radius: 6px; }
.coc-hero figcaption,
.coc-detail figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 7px;
}
.coc-detail { margin: 0 0 38px; }
.coc-detail img { width: 273px; max-width: 100%; height: auto; display: block; }

/* Phone: stack full width */
@media (max-width: 620px) {
  .coc-hero { flex-direction: column; align-items: stretch; gap: 22px; }
  .coc-hero-img { width: 100%; }
}

/* ============================================================
   6. EVENTS (three tiles, all link to Wix)
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.event-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 6px;
  padding: 24px 22px 26px;
  display: flex; flex-direction: column;
}
.event-flag {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.event-tile h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}
.event-date {
  color: var(--red);
  font-weight: 600;
  margin-bottom: 4px;
}
.event-loc { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.event-tile p { color: var(--ink); font-size: 0.96rem; flex: 1; margin: 0 0 18px; }

/* Generic buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ============================================================
   7. CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.contact-info p { margin: 0 0 12px; }
.contact-info .label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
  display: block;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit; font-size: 1.05rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,31,68,.08);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }

/* Form result banners */
.form-banner {
  display: none;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 22px;
  color: #fff;
  font-size: 0.96rem;
}
.form-banner.ok    { background: var(--navy); }
.form-banner.err   { background: var(--red); }
.form-banner.show  { display: block; }

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: #C7CDDC;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-grid p { margin: 0 0 8px; font-size: 1rem; line-height: 1.6; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 1rem; }
.footer-links a { color: #C7CDDC; }
.footer-links a:hover { color: #fff; }
.social {
  display: flex; gap: 12px;
}
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  transition: background .15s ease;
}
.social a:hover { background: var(--red); text-decoration: none; }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  font-size: 0.95rem;
  color: #8990A6;
}

/* ============================================================
   PAGE BANNER (used on team / OCR / cdl)
   ============================================================ */
.page-banner {
  background:
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 56px 0 40px;
}
.page-banner h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  margin: 0 0 10px;
}
.page-banner .crumb {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}
.page-banner .crumb a {
  color: #fff;
  text-decoration: none;
}
.page-banner .crumb a:hover { text-decoration: underline; }
.page-banner p { margin: 0; color: #CFD6E4; font-size: 1.1rem; }

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.team-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #243a63, #16315e);
  background-size: cover; background-position: center;
  position: relative;
}
.team-photo::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center; padding: 16px;
}
.team-photo.has-image::after { content: none; }
.team-body { padding: 22px 24px 26px; }
.team-body h3 {
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
}
.team-role {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.team-body p { margin: 0 0 12px; font-size: 1rem; line-height: 1.6; }

/* ---- Meet the Team feature (flag-translucent background) ---- */
.team-feature {
  background: #e3e9f1 url('../images/background-flag-translucent.jpg') center top / cover no-repeat;
  padding: 56px 0 84px;
}
.team-title {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  color: #0C3157;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin: 0 0 46px;
}
.team-collage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 34px;
  max-width: 880px;
  margin: 0 auto 52px;
}
.collage-item { margin: 0; }
.team-collage-photo {
  height: 270px;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(10,31,68,.26);
}
.team-feature .team-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  max-width: 880px;
  margin: 0 auto;
}
.team-photo-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.team-army-badge {
  position: absolute;
  top: -22px;
  left: -32px;
  width: 76px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 2px 7px rgba(0,0,0,.45));
}

/* Hover: lift + zoom + deeper shadow on all team photos */
.team-collage-photo,
.team-card-photo {
  transition: transform .28s ease, box-shadow .28s ease;
}
.team-collage-photo:hover,
.team-card-photo:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 24px 44px rgba(10,31,68,.38);
}
.team-feature .team-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.team-card-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: none;
  box-shadow: 0 12px 26px rgba(10,31,68,.22);
}
.team-card-photo--contain {
  object-fit: contain;
  object-position: center bottom;
}
.team-feature .team-body {
  background: rgba(250, 224, 197, 0.92);
  padding: 26px 30px 32px;
  box-shadow: 0 16px 30px rgba(10,31,68,.16);
}
.team-feature .team-role {
  color: #5a6275;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 4px;
}
.team-name {
  font-family: Arial, Helvetica, sans-serif;
  color: #15233b;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.1;
  margin: 0 0 18px;
}
.team-feature .team-body p { color: #20283a; }

/* ============================================================
   CDL PRACTICE TESTS LIST
   ============================================================ */
.tests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  max-width: 820px;
  margin: 0 auto;
}
.tests-head {
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.tests-list {
  margin: 0;
  padding-left: 1.4em;
}
.tests-list li {
  margin: 0 0 12px;
  font-size: 1.08rem;
}
.tests-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.tests-list a:hover { color: var(--red); text-decoration: underline; }
/* Color-coded fill-in groups */
.fill-group {
  border-radius: 10px;
  padding: 14px 16px 14px 6px;
  margin-bottom: 14px;
}
.fill-group .tests-list { padding-left: 2.2em; }
.fill-group .tests-list li:last-child { margin-bottom: 0; }
.fg-gk  { background: #E7F0FA; }   /* General Knowledge — blue */
.fg-pass{ background: #E8F5EA; }   /* Passenger — green */
.fg-air { background: #FBEFE0; }   /* Air Brakes — amber */
@media (max-width: 700px) {
  .tests-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   CDL INTRO (photo left, text right)
   ============================================================ */
.cdl-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.cdl-intro-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(10,31,68,.22);
}
.cdl-intro-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 760px) {
  .cdl-intro { grid-template-columns: 1fr; gap: 26px; }
}

/* ============================================================
   PLACEHOLDER (for blank CDL pages)
   ============================================================ */
.placeholder {
  background: var(--paper);
  border: 2px dashed #C3CAD6;
  border-radius: 8px;
  padding: 60px 28px;
  text-align: center;
  color: var(--muted);
  margin: 30px 0;
}
.placeholder p { margin: 0 0 8px; }
.placeholder .ph-title {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; right: 6px; top: 6px; transform: none; }
  .ribbon-inner { padding: 16px 22px; }
  .brand-logo { max-height: 58px; }
  .brand-text {
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    white-space: normal;
    line-height: 1.1;
    max-width: 9em;
    text-align: left;
  }
  .brand { flex-wrap: nowrap; }
  .brand-row { gap: 12px; padding-right: 0; justify-content: center; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    margin-top: 10px;
    background: rgba(6,21,48,.92);
    border-radius: 4px;
    padding: 6px;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }
  .nav-links a { padding: 10px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ribbon-inner { padding: 12px 24px; }
  .brand-logo { max-height: 50px; }
  .brand-text { font-size: 1.15rem; white-space: normal; max-width: 9em; text-align: left; }
  .brand-row { padding-right: 0; }
}

/* ============================================================
   TEASER TILES (used in Courses + Events homepage sections)
   ============================================================ */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.teaser-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.teaser-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(10,31,68,.12);
  text-decoration: none;
}
.teaser-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #243a63, #16315e);
  background-size: cover; background-position: center;
  position: relative;
}
.teaser-photo::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.teaser-photo.has-image::after { content: none; }
.teaser-body {
  padding: 20px 22px 22px;
}
.teaser-body h3 {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.teaser-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
