:root {
  --blue: #16305c;
  --blue-mid: #1f4a8a;
  --red: #b01116;
  --ink: #222;
  --muted: #444;
  --line: #e2e2e2;
  --band: #f1f2f4;
  --card-border: #e5e5e5;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 0;
}

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    max-width: 1310px;
    margin: 40px auto 0;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.5px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
}
.hero__title-line { display: block; }
.hero__title-line--blue { color: var(--blue); }
.hero__title-line--red { color: var(--red); }

.hero__divider {
  width: 54px;
  height: 3px;
  background: var(--red);
  margin: 45px auto 35px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue-mid);
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  margin: 0 0 14px;
}

.hero__lede {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink);
}

sup {
    font-size: .25em;
    vertical-align: top;
}

/* ---------- Step blocks ---------- */
.step { margin-top: 46px; }

.step__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.step__icon {
  color: var(--blue);
  flex: 0 0 auto;
  display: inline-flex;
}

.step__title {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue);
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  margin: 0;
  letter-spacing: 0.4px;
}

.step__body { max-width: 900px; }
.step__body p { margin: 0 0 10px; }
.bold { font-weight: 700; }

.address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}
.address__pin { color: var(--red); flex: 0 0 auto; line-height: 1; margin-top: 2px; }

/* ---------- Video ---------- */
.video { margin-top: 4px; }

.video__thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    background: url(tm-intro-still.webp) no-repeat;
    background-size: contain !important;
}

.video__thumb::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  transition: transform 0.15s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.video__thumb:hover .video__play { transform: scale(1.08); }

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  display: block;
}

/* ---------- Course cards ---------- */
/* ---------- Course cards ---------- */
.courses {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background-color: #f1f2f4;
  padding: 4rem 30px;
  margin: 4rem 0 0;
}

/* Span title across all available grid columns */
.courses .cstruct__title {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0 0 30px;
}

.course {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  background: #fff; /* Ensures card background stays clean against section bg */
}

.course__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.course__date {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red);
  font-size: 1.15rem;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}

.course__label { margin: 0 0 14px; color: var(--muted); }

.course__rule {
  width: 40px;
  height: 2px;
  background: var(--red);
  display: block;
  margin: 0 auto 14px;
}

.course__detail { margin: 0 0 20px; color: var(--muted); }

.btn {
  margin-top: auto;
  display: inline-block;
  width: 100%;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 10px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.btn:hover, .btn:focus { background: #8f0d11; }

/* ---------- Info band ---------- */
.band {
  margin-top: 42px;
  background: var(--band);
  border-radius: 8px;
  padding: 30px 28px;
  text-align: center;
}
.band p {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink);
}

.offer {
  text-align: center;
  margin: 60px auto 34px;
  max-width: 640px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

/* ---------- Contact footer ---------- */
.contact {
  background: var(--band);
  border-radius: 8px;
  padding: 30px 32px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1.3fr 1fr 1.2fr;
  gap: 26px;
  align-items: center;
}

.contact__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact__col p { margin: 0 0 4px; }
.contact__title {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.contact__name { font-weight: 700; color: var(--blue); font-size: 1.15rem; }

.contact__link { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact__ico { flex: 0 0 auto; display: inline-flex; }
.contact__link a { color: var(--blue-mid); text-decoration: underline; }
.contact__link a:hover { color: var(--red); }

p.additional-courses {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 0 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .courses { grid-template-columns: repeat(2, 1fr); }
  .contact {
    grid-template-columns: auto 1fr;
    row-gap: 20px;
  }
  .contact__col--intro { grid-column: 2; }
  .contact__mark { grid-row: 1; }
  .contact__col--person,
  .contact__col--links { grid-column: 1 / -1; }
  /* --- Footer Layout --- */

/* Mobile-first: Stack everything vertically and center-align */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  background-color: #f7f7f7; /* Adjust background color as needed */
}

.contact__mark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #b01116; /* Circle accent for the question mark */
  border-radius: 50%;
  padding: 0.5rem;
}

.contact__col {
  width: 100%;
}

.contact__link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Desktop: Align items horizontally on wider screens */
@media (min-width: 768px) {
  .contact {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .contact__col {
    width: auto;
    flex: 1;
  }

  .contact__link {
    justify-content: flex-start;
  }
}
}

@media (max-width: 560px) {
  .page { padding: 28px 16px 0; }
  .courses { grid-template-columns: 1fr; }
  .step__head { gap: 12px; }
  .contact { grid-template-columns: 1fr; text-align: center; }
  .contact__mark { margin: 0 auto; }
  .contact__link { justify-content: center; }
  .address { justify-content: flex-start; }
}

/* ================= Hybrid Course Structure ================= */
.cstruct {
  --cs-cardinal: #8a1a12;
  --cs-gold: #eab12a;
  --cs-bg: #f9f8f6;
  --cs-cardborder: #ebe7e1;
  --cs-sub: #6c6c72;
  --cs-ink: #20222a;
  margin: 8px 0 4px;
}

.cstruct__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cs-cardinal);
  font-size: 0.82rem;
  margin: 0 0 6px;
}
.cstruct__title {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--blue);
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 26px;
}

.cstruct__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* --- Cards --- */
.csc {
  background: #fff;
  border: 1px solid var(--cs-cardborder);
  border-radius: 14px;
  padding: 26px 26px 30px;
  box-shadow: 0 8px 24px rgba(20, 22, 34, 0.05);
}

.csc__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cs-cardinal);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.csc__kicker {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cs-cardinal);
  font-size: 0.78rem;
  margin: 0 0 8px;
}
.csc__title {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 0 0 8px;
}
.csc__sub {
  color: var(--cs-sub);
  font-size: 1.02rem;
  margin: 0 0 20px;
}
.csc__rule {
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: var(--cs-gold);
  margin: 0 0 22px;
}

.csc__group { margin-bottom: 20px; }
.csc__group:last-child { margin-bottom: 0; }

.csc__grouphead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.02rem;
  margin: 0 0 10px;
}

/* pills */
.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
}
.pill--red  { background: #f9e8e8; color: var(--cs-cardinal); }
.pill--blue { background: #e8eef9; color: #2c3e70; }

/* bullet lists */
.csc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.csc__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: #35373d;
  font-size: 1.02rem;
  line-height: 1.5;
}
.csc__list li:last-child { margin-bottom: 0; }
.csc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-gold);
}

/* --- Note bar --- */
.cstruct__note {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--cs-cardborder);
  border-left: 5px solid var(--cs-gold);
  border-radius: 12px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: 18px 34px;
  align-items: center;
}
.cstruct__note-lead {
  margin: 0;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
}
.cstruct__note-addr {
  margin: 0;
  color: #35373d;
  font-size: 1rem;
  line-height: 1.5;
}
.cstruct__pin { color: var(--cs-cardinal); display: inline-flex; vertical-align: -2px; margin-right: 2px; }

/* --- Responsive --- */
@media (max-width: 880px) {
  .cstruct__grid { grid-template-columns: 1fr; }
  .cstruct__note { grid-template-columns: 1fr; gap: 12px; }
}
