/* Live's price and awarding-body box (templates/components/course_summary.html, theme carousel.php). */
.course-summary { padding: 40px 0 0; }
.course-summary__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  width: var(--content-share);
  max-width: var(--content-width);
  margin: 0 auto;
}
.course-summary__card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 24px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--c-white);
}
.course-summary__note { margin: 0 0 8px; font-size: 14px; line-height: 18px; font-weight: var(--fw-semibold); }
.course-summary__text { margin: 0; font-size: 15px; line-height: 22px; }
@media (max-width: 600px) {
  .course-summary__card { grid-template-columns: 1fr; }
}

/* With a price (owner's design, 2026-12-03): the price card beside the awarding body's card, half and half. */
.course-summary__inner:has(.course-summary__card--price) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }  /* half and half (owner, 2026-12-03) */
.course-summary__card--price,
.course-summary__card--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 22px 26px 18px;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(25, 48, 127, 0.06);
}
.course-summary__price { margin: 0 0 8px; color: var(--c-heading); font-size: 20px; font-weight: var(--fw-bold); white-space: nowrap; }
.course-summary__price strong { color: var(--c-orange); font-size: 36px; line-height: 1.1; font-weight: var(--fw-extrabold); }
.course-summary__small { font-size: 16px; }
.course-summary__logo { width: auto; max-width: 120px; height: auto; max-height: 56px; margin-bottom: 10px; }  /* square logos (NEBOSH, IOSH) no taller than CITB's */
.course-summary__title { margin: 0 0 6px; color: var(--c-heading); font-size: 22px; line-height: 1.2; font-weight: var(--fw-extrabold); }
.course-summary__card--price .course-summary__text,
.course-summary__card--brand .course-summary__text { color: var(--c-text); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }  /* smaller: live's texts stay whole */
.course-summary__card--brand .course-summary__text a { color: var(--c-orange); }
.course-summary__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e3e8f0;
  color: var(--c-heading);
  font-size: 14px;
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.course-summary__arrow { width: 9px; height: 11px; fill: var(--c-orange); stroke: var(--c-orange); stroke-width: 1.2; stroke-linejoin: round; transition: transform 0.2s ease; }
.course-summary__link:hover { color: var(--c-orange); }
.course-summary__link:hover .course-summary__arrow { transform: translateX(4px); }
@media (max-width: 900px) {
  .course-summary__inner:has(.course-summary__card--price) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .course-summary__card--price, .course-summary__card--brand { padding: 18px 18px 14px; }
  .course-summary__price { white-space: normal; }
  .course-summary__price strong { font-size: 30px; }
}

/* without a price: live's single slide, the phone number beside Target Zero's line */
.course-summary__card--call { grid-template-columns: auto 1fr; padding: 0; background: none; }  /* on the page's own background, never white (owner, 2026-12-03) */
.course-summary__phone { margin: 0; font-size: 38px; line-height: 1.1; font-weight: var(--fw-extrabold); white-space: nowrap; }
.course-summary__phone a { color: var(--c-orange); text-decoration: none; }
/* the call box on phones: the number above Target Zero's line, smaller, nothing running off the screen */
@media (max-width: 700px) {
  .course-summary__card--call { grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: center; }
  .course-summary__phone { font-size: 32px; }
  .course-summary__card--call .course-summary__note { margin-bottom: 0; }
}
