/* ==========================================================================
   Courses in our design (templates/catalogue/course.html). The header, strips, dates, text box and FAQ
   come from page.css and components/; this file adds the price / awarding-body band, the benefits band and
   the "Delivery of …" box.
   ========================================================================== */

.course-hero__facts { font-weight: var(--fw-bold); }

/* (price and awarding body: components/course-summary.css, shared with every page that has it) */

/* --- benefits -------------------------------------------------------------------------------------- */
.course-benefits { margin: 40px 0; background: var(--c-blue-dark); color: var(--c-white); overflow: hidden; }
.course-benefits__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: var(--content-share);
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: 50px;
}
.course-benefits__text { padding-bottom: 50px; }
.course-benefits__title { margin: 0 0 20px; max-width: 520px; font-size: 38px; line-height: 44px; font-weight: var(--fw-light); }
.course-benefits__title strong { font-weight: var(--fw-black); }
.course-benefits__list { margin: 0 0 28px; padding-left: 20px; line-height: 30px; }
.course-benefits__call {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--c-orange);
  color: var(--c-white);
  font-size: 20px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.course-benefits__call:hover { background: var(--c-white); color: var(--c-blue-dark); }
.course-benefits__advice { margin: 12px 0 0; font-size: 20px; }
.course-benefits__photo { flex: 0 0 auto; width: 330px; height: auto; }
@media (max-width: 900px) {
  .course-benefits__photo { display: none; }
  .course-benefits__title { font-size: 30px; line-height: 36px; }
}

/* --- "Delivery of …" beside the text ----------------------------------------------------------------- */
.course-delivery__title { margin: 0 0 20px; color: var(--c-heading); font-size: 24px; line-height: 30px; font-weight: var(--fw-extrabold); }
.course-delivery__item { display: flex; gap: 12px; margin-bottom: 18px; font-size: 15px; line-height: 21px; }
.course-delivery__item img { flex: 0 0 auto; width: 44px; height: 44px; }
.course-delivery__item strong { color: var(--c-orange); }

/* the logo rail's spacing is set by the page (components/trusted-by.css), as on the blog and plain pages */
.page-course .trusted-by { padding: 40px 0 48px; }

/* --- NVQs: payment options in the header, the four terms, the mandatory units ---------------------- */
.nvq-pay { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; }
.nvq-pay__option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-blue-dark);
  font-size: 13px;
  font-weight: var(--fw-bold);
}
.nvq-pay__option strong { color: var(--c-orange); font-size: 22px; line-height: 28px; }
.nvq-pay__option small { font-size: 11px; font-weight: var(--fw-medium); }
.nvq-pay__option a {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--c-orange);
  color: var(--c-white);
  text-align: center;
  text-decoration: none;
}
.nvq-pay__option a:hover { background: var(--c-blue-dark); }

.nvq-terms {  /* live: .cta-container in a 1200px .narrow-content, straight on the page background */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
  text-align: center;
}
.nvq-terms__col { position: relative; width: 25%; padding: 10px; color: var(--c-blue-dark); }
.nvq-terms__col:not(:last-child) { border-right: 0.5px solid var(--c-blue-dark); }
.nvq-terms h2 { margin: 0; color: var(--c-blue-dark); font-size: 20px; line-height: 24px; font-weight: var(--fw-extrabold); }
.nvq-terms h2 span { font-size: 32px; }
.nvq-terms p { margin: 2px 0 0; line-height: 21px; }
.nvq-terms a { color: var(--c-blue-dark); text-decoration: underline; }
.nvq-terms__call { text-decoration: underline; }
.nvq-terms .nvq-terms__or { position: absolute; top: 34px; right: -11px; margin: 0; background: var(--c-page); font-weight: var(--fw-regular); }
.nvq-terms .nvq-terms__small { position: absolute; bottom: 0; left: 0; width: 100%; margin: 0; font-size: 10px; line-height: 10px; }
@media (max-width: 1000px) {
  .nvq-terms__col { width: 50%; }
  .nvq-terms__col:not(:last-child) { border-right: 0; }
  .nvq-terms .nvq-terms__or { display: none; }
}
@media (max-width: 650px) {
  .nvq-terms__col { width: 100%; padding: 20px 10px; }
  .nvq-terms__col:not(:last-child) { border-bottom: 0.1px solid var(--c-blue-dark); }
}

.nvq-units { border-radius: var(--radius); background: var(--c-page); }
.nvq-units summary { padding: 18px 20px; color: var(--c-blue-dark); font-weight: var(--fw-extrabold); line-height: 22px; cursor: pointer; }
.nvq-units__title { display: block; margin-bottom: 6px; color: var(--c-heading); font-size: 22px; }
.nvq-units ul { margin: 0; padding: 0 20px 10px 38px; font-size: 14px; line-height: 20px; }
.nvq-units li { margin-bottom: 8px; }
.nvq-units p { margin: 0; padding: 0 20px 18px; font-size: 14px; }

/* --- the main CITB courses: links to their dates, and the sessions on sale --------------------------- */
.course-booking { width: var(--content-share); max-width: var(--content-width); margin: 0 auto; padding: 30px 0 10px; text-align: center; }
.course-booking__title { margin: 10px 0 14px; color: var(--c-heading); font-size: 24px; line-height: 30px; font-weight: var(--fw-extrabold); }
.course-booking__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-bottom: 16px; }
.course-booking__grid a {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.course-booking__grid a:hover { background: var(--c-blue-dark); }

.course-sale { --dates-width: min(1260px, 92%); padding: 30px 0 40px; background: var(--c-blue); }
.course-sale__title { width: var(--dates-width); margin: 0 auto 16px; color: var(--c-white); font-size: 24px; text-align: center; }
.course-sale__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: var(--dates-width); margin: 0 auto; }
@media (max-width: 1000px) { .course-sale__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .course-sale__grid { grid-template-columns: minmax(0, 1fr); } }
.course-sale__card { position: relative; display: flex; flex-direction: column; padding: 10px 10px 0; background: var(--c-white); font-size: 14px; }
.course-sale__badge {
  position: absolute;
  top: 20px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0;
  border-radius: 50%;
  background: #d00028;
  box-shadow: 0 0 8px grey;
  color: var(--c-white);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 18px;
  text-align: center;
  rotate: -10deg;
}
.course-sale__name { margin: 0 70px 4px 0; color: #3750a4; font-size: 14px; line-height: 18px; font-weight: var(--fw-extrabold); }
.course-sale__dates { flex: 1 0 auto; margin: 0 0 10px; font-weight: var(--fw-medium); }
.course-sale__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.course-sale__venue { padding: 3px 10px; border-radius: 5px; background: green; color: var(--c-white); font-weight: var(--fw-bold); }
.course-sale__price { display: flex; flex-direction: column; margin: 0 0 0 auto; color: var(--c-orange); font-size: 18px; line-height: 20px; text-align: right; }
.course-sale__price small { font-size: 15px; }
.course-sale__price s { color: #3750a4; font-size: 14px; font-weight: var(--fw-bold); }
.course-sale__price s small { font-size: 12px; }
.course-sale__actions { display: flex; gap: 4%; padding: 10px 0; border-top: 0.1px solid grey; }
.course-sale__actions a { display: flex; align-items: center; justify-content: center; width: 48%; height: 40px; border-radius: 4px; background: var(--c-blue); color: var(--c-white); font-weight: var(--fw-semibold); text-decoration: none; }
.course-sale__actions .course-sale__book { background: var(--c-orange); }
.course-sale__actions a:hover { background: var(--c-blue-dark); }

/* --- older course templates: their own booking button and "Related courses" ---------------------------- */
.course-book-links { width: var(--content-share); max-width: var(--content-width); margin: 0 auto 30px; text-align: center; }
.course-related { width: var(--content-share); max-width: var(--content-width); margin: 0 auto 40px; }
.course-related__title { margin: 0 0 16px; color: var(--c-heading); font-size: var(--fs-medium); text-align: center; }
.course-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.course-related__card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--c-white); }
.course-related__card h3 { margin: 0; color: var(--c-blue-dark); font-size: 16px; line-height: 22px; }
.course-related__card a { align-self: flex-start; padding: 8px 14px; border-radius: 6px; background: var(--c-orange); color: var(--c-white); font-weight: var(--fw-bold); text-decoration: none; }
.course-related__card a:hover { background: var(--c-blue-dark); }
.course-related__card h2 { margin: 0; color: var(--c-blue-dark); font-size: 16px; line-height: 22px; }
.category-description { margin-bottom: 30px; }
.category-empty { margin: 0; color: var(--c-heading); font-size: 22px; line-height: 30px; font-weight: var(--fw-bold); text-align: center; }

/* --- NVQ header as on live: reviews logos, price, the two ways to pay as rows, "Search Your NVQ" -------- */
.nvq-hero__reviews { display: flex; gap: 10px; margin: 12px 0 0; }
.nvq-hero__reviews img { width: auto; height: 44px; }
.nvq-hero__price { font-size: 23px; font-weight: var(--fw-bold); }
.nvq-hero__price small { font-size: 16px; }
.nvq-pay { display: flex; flex-direction: column; gap: 6px; max-width: 460px; margin: 20px 0; }  /* live: .nvq-payment-container */
.nvq-pay__row {
  display: flex;
  align-items: center;
  height: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--c-white);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
  color: var(--c-text);
}
.nvq-pay__label { flex: 1; min-width: 0; white-space: nowrap; padding: 6px 10px; font-size: 16px; line-height: 14px; font-weight: var(--fw-bold); }
/* the same widths on both rows, so the amounts and buttons line up */
.nvq-pay__amount { flex: 0 0 132px; min-width: 0; padding: 6px 10px; border-left: 1px solid #eee; font-size: 16px; font-weight: var(--fw-bold); text-align: right; white-space: nowrap; }
.nvq-pay__amount small { font-size: 11px; font-weight: var(--fw-medium); }
.nvq-pay__row a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 150px;
  height: 100%;
  white-space: nowrap;
  padding: 0 14px;
  background: #f37021;
  color: var(--c-white);
  font-size: 16px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.4px;
  text-decoration: none;
  text-transform: uppercase;
}
.nvq-pay__row a:hover { background: var(--c-blue); }

.page-hero__aside { flex-direction: column; }
/* 240px and nudged right, so the box stays inside the orange curve (owner, 2026-11-26) */
.nvq-search { display: flex; flex-direction: column; gap: 12px; width: 240px; max-width: 100%; margin-left: 50px; text-align: center; }
.nvq-search__title { margin: 0 0 4px; color: var(--c-white); font-size: 24px; font-weight: var(--fw-extrabold); white-space: nowrap; }
.nvq-search select { height: 44px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--c-input-text); font: inherit; font-size: 15px; }
.nvq-search button { height: 44px; border: 0; border-radius: 6px; background: var(--c-blue-dark); color: var(--c-white); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
.nvq-search button:hover { background: var(--c-blue); }
.nvq-search__hint { margin: 0; color: var(--c-white); font-size: 13px; line-height: 18px; }
@media (max-width: 900px) {
  .page-hero__aside { display: flex; justify-content: center; margin-top: 24px; }
  .nvq-search { margin-left: 0; }
  .nvq-pay { margin-inline: auto; }
  .nvq-hero__reviews { justify-content: center; }
}
@media (max-width: 520px) {  /* phones: the same two rows, smaller, still on one line */
  .nvq-pay { max-width: 100%; }
  .nvq-pay__label { padding: 6px 8px; font-size: 13px; text-align: left; }
  .nvq-pay__amount { flex-basis: 104px; padding: 6px 8px; font-size: 14px; }
  .nvq-pay__row a { flex-basis: 112px; padding: 0 8px; font-size: 13px; letter-spacing: 0; }
}
