/* ==========================================================================
   Pages in our design (templates/pages/standard_page.html): the page's text beside live's enquiry form,
   then the page's questions and answers. The shared bands bring their own CSS (components/).
   ========================================================================== */

/* --- text and enquiry form, inside the white content box ---------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.page-layout__main { overflow-wrap: break-word; }
.page-layout__main > :first-child { margin-top: 0; }
.page-layout__main table { width: 100%; border-collapse: collapse; }
.page-layout__main td, .page-layout__main th { padding: 0.5em; border: 1px solid var(--c-input-border); }
.page-layout__main iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.page-layout__aside { position: sticky; top: 24px; }
@media (max-width: 991px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-layout__aside { position: static; }
}

/* --- "Enquire about …" (partials/enquiry_form.html) --------------------------------------------- */
.enquiry {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--c-orange);
  color: var(--c-white);
}
.enquiry__title {
  margin: 0 0 8px;
  color: inherit;
  font-size: 26px;
  line-height: 30px;
  font-weight: var(--fw-extrabold);
}
.enquiry__text { margin: 0 0 16px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: var(--fw-medium); }
.enquiry__form { display: flex; flex-direction: column; gap: 10px; }
.enquiry__form input {
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: var(--c-input-text);
  font: inherit;
  font-size: var(--fs-small);
}
.enquiry__form input::placeholder { color: var(--c-placeholder); }
.enquiry__form button {
  height: 42px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-blue-dark);
  color: var(--c-white);
  font: inherit;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  cursor: pointer;
}
.enquiry__form button:hover { background: var(--c-blue); }

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

/* --- questions and answers (blocks/faq.html) ----------------------------------------------------- */
.page-faq {
  width: var(--content-share);
  max-width: var(--content-width);
  margin: 0 auto 60px;  /* as .content-box */
}
.page-faq__title {
  margin: 0 0 24px;
  color: var(--c-heading);
  font-size: var(--fs-medium);
  line-height: var(--lh-medium);
  font-weight: var(--fw-extrabold);
  text-align: center;
}
.page-faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}
@media (max-width: 767px) {
  .page-faq__list { grid-template-columns: minmax(0, 1fr); }
}
.faq-item {
  border-radius: var(--radius);
  background: var(--c-white);
}
.faq-item__question {
  position: relative;
  padding: 18px 64px 18px 24px;
  color: var(--c-blue-dark);
  font-weight: var(--fw-bold);
  list-style: none;
  cursor: pointer;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after {  /* live's orange round button with the white arrow */
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--c-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 2 L22 22 H2 Z' fill='white'/%3E%3C/svg%3E") center / 14px no-repeat;
  transform: rotate(180deg);
  transition: transform 0.2s;
}
.faq-item[open] .faq-item__question::after { transform: none; }
.faq-item__answer { padding: 0 24px 18px; }
.faq-item__answer > :last-child { margin-bottom: 0; }

/* --- landing pages (page.landing): the call strip, then the course cards across the white box ---------- */
/* (the call strip's rules are in components/callback-cta.css: it is also an "Add block" band) */

.landing-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 24px;
}
.landing-body > :not(.course-card) { grid-column: 1 / -1; }  /* text between the cards spans the row */

.course-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--c-input-border);
  border-top: 4px solid var(--c-orange);
  border-radius: var(--radius);
  background: var(--c-white);
}
.course-card__title {
  margin: 0 0 12px;
  color: var(--c-heading);
  font-size: var(--fs-regular);
  line-height: var(--lh-regular);
  font-weight: var(--fw-extrabold);
}
.course-card__facts ul { margin: 0 0 16px; padding: 0; list-style: none; }
.course-card__facts li { position: relative; padding-left: 18px; font-weight: var(--fw-medium); }
.course-card__facts li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
}
.course-card__labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.course-card__label {
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--c-page);
  color: var(--c-blue-dark);
  font-size: 14px;
  font-weight: var(--fw-bold);
}
.course-card__actions { display: flex; gap: 10px; margin-top: auto; }
.course-card__button {
  flex: 1;
  padding: 10px 8px;
  white-space: nowrap;
  border: 2px solid var(--c-orange);
  border-radius: var(--radius);
  background: var(--c-orange);
  color: var(--c-white);
  font: inherit;
  font-size: 14px;
  font-weight: var(--fw-bold);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.course-card__button:hover { border-color: var(--c-blue-dark); background: var(--c-blue-dark); color: var(--c-white); }
.course-card__button--light { background: var(--c-white); color: var(--c-orange); }

/* "View details": the browser's own pop-up (popover), centred over a dimmed page */
.course-card__details {
  width: min(1000px, 92vw);
  max-height: 86vh;
  padding: 40px;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text);
}
.course-card__details::backdrop { background: rgb(0 0 0 / 0.6); }
.course-card__close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  margin: -24px -24px 0 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-orange);
  color: var(--c-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.course-card__columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; }
.course-card__columns > :only-child { grid-column: 1 / -1; }
.course-card__columns h2 { font-size: var(--fs-regular); line-height: var(--lh-regular); }
.course-card__columns img { max-width: 100%; height: auto; }
.course-card__delivery { padding: 24px; border-radius: var(--radius); background: var(--c-page); }
@media (max-width: 767px) {
  .course-card__details { padding: 28px 20px; }
  .course-card__columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* --- "How to Get There" on the venue pages: live draws each travel icon 56px wide, on the line of its
   "By Car:" label (its inline width and flex row are dropped by the cleaner, so the look comes back here) --- */
.page-layout__main figure:has(> img[src*="/icon-"]) {
  display: inline-block;
  margin: 0 12px 0 0;
  vertical-align: middle;
}
.page-layout__main figure > img[src*="/icon-"] { display: block; width: 56px; height: auto; }
.page-layout__main figure:has(> img[src*="/icon-"]) + p { display: inline-block; margin: 0; vertical-align: middle; }

/* --- location pages (page.location): live's course dates on a blue band, above the text ------------------
   The cards' details come from components/sessions.css; the frame, months and grid are set here. */
/* Live's look (owner's request, 2026-11-25): orange month bars, square white cards, 1260px wide. */
.page-dates { --dates-width: min(1260px, 92%); }
.page-dates .more_advise { padding: 30px 0 40px; background: var(--c-blue); }
.page-dates #more_advise .ses-title { width: var(--dates-width); margin: 0 auto 16px; color: var(--c-white); font-size: 20px; }
.page-dates .month-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: var(--dates-width);
  margin: 16px auto 0;
  padding: 14px 20px;
  border-radius: 6px;
  background: var(--c-orange);
  color: var(--c-white);
  font-size: 15px;
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  cursor: pointer;
}
.page-dates .accordion-arrow { display: inline-flex; transition: transform 0.2s; }
.page-dates .accordion-arrow.rotated { transform: rotate(180deg); }
.page-dates #more_advise .ses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: var(--dates-width);
  max-width: none;
  margin: 20px auto 0;
  padding: 0;
}
.page-dates #more_advise .ses-grid[hidden] { display: none; }
@media (max-width: 1000px) { .page-dates #more_advise .ses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .page-dates #more_advise .ses-grid { grid-template-columns: minmax(0, 1fr); } }
.page-dates .card-course-container-new { display: flex; }
.page-dates .card-course { display: flex; flex-direction: column; width: 100%; padding: 10px 10px 0; background: var(--c-white); font-size: 14px; }
.page-dates .ses-top { flex: 1 0 auto; }
.page-dates .ses-dates { margin: 4px 0 10px; font-weight: var(--fw-medium); }
.page-dates .course-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.page-dates .course-card__price { display: flex; flex-direction: column; text-align: right; color: var(--c-orange); font-size: 18px; line-height: 18px; font-weight: var(--fw-extrabold); }
.page-dates .ses-act { gap: 4%; padding: 10px 0; }
.page-dates .ses-act 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;
}
.page-dates .ses-act a.ses-book { background: var(--c-orange); }
.page-dates .ses-act a:hover { background: var(--c-blue-dark); }
.page-dates .ses-klarna { margin-bottom: 10px; }

/* --- a page's own menu of its sections (live's dropdowns, e.g. the e-learning categories) ------------- */
.page-text #page-menu {
  margin: 0 0 40px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--c-page);
  columns: 3 260px;
  column-gap: 32px;
}
.page-text #page-menu h3 { margin: 0 0 6px; break-after: avoid; color: var(--c-heading); font-size: 18px; line-height: 24px; }
.page-text #page-menu ul { margin: 0 0 18px; padding: 0; list-style: none; }
.page-text #page-menu li { margin: 0; padding: 2px 0; font-size: 15px; line-height: 20px; break-inside: avoid; }
.page-text #page-menu li::before { content: none; }
.career-facts { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radius); background: var(--c-page); list-style: none; }
.prose .career-facts li { padding-left: 0; }
.prose .career-facts li::before { content: none; }

.page-text > :first-child { margin-top: 0; }

/* --- a job's "Apply online" form (pages/career.html) --------------------------------------------------- */
.job-apply { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--c-page); }
.job-apply h2 { margin-top: 0; }
.job-apply form { display: flex; flex-direction: column; gap: 14px; }
.job-apply label { display: flex; flex-direction: column; gap: 6px; font-weight: var(--fw-semibold); }
.job-apply input[type="text"], .job-apply input[type="email"], .job-apply textarea {
  padding: 10px 12px; border: 1px solid var(--c-input-border); border-radius: var(--radius); font: inherit; font-weight: var(--fw-regular);
}
.job-apply button { align-self: flex-start; padding: 10px 28px; border: 0; border-radius: var(--radius); background: var(--c-orange); color: var(--c-white); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
.job-apply button:hover { background: var(--c-blue-dark); }

/* --- the free mock tests (templates/mocktests/quiz.html), after live's look --------------------------- */
.quiz-hero__lead { font-size: 22px; font-weight: var(--fw-extrabold); }
.quiz__title { margin: 0 0 16px; color: var(--c-orange); font-size: var(--fs-medium); line-height: var(--lh-medium); }
.quiz__title a { color: inherit; text-decoration: underline; }
.quiz__subtitle { margin: 0 0 8px; color: var(--c-blue-dark); }
.quiz__categories button, .quiz__tests button, .quiz__nav button, .quiz__restart {
  margin: 10px 10px 10px 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--c-blue-dark);
  color: var(--c-white);
  font: inherit;
  cursor: pointer;
}
.quiz__categories button:hover, .quiz__tests button:hover, .quiz__categories .is-active { background: #1d4ed8; }
.quiz__tests h4 { margin: 30px 0 0; }
.quiz__run { padding: 20px; border-radius: 12px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.1); }
.quiz__timer { display: inline-block; width: 240px; margin: 0 0 15px; padding: 15px 25px; background: red; color: var(--c-white); font-weight: var(--fw-semibold); text-align: center; }
.quiz__question h3 { margin: 0 0 15px; font-size: 18px; line-height: 26px; }
.quiz__options { margin: 0; padding: 0; list-style: none; }
.quiz__options li { margin-bottom: 10px; padding: 10px; background: lightblue; }
.quiz__options label { display: block; cursor: pointer; }
.quiz__warning { margin: 10px 0 0; color: #c00; font-weight: var(--fw-semibold); }
.quiz__nav button { margin: 20px 10px 0 0; padding: 8px 14px; font-size: 14px; }
.quiz__nav button:disabled { background: #9ca3af; cursor: not-allowed; }
.quiz__nav .quiz__stop { background: red; }
.quiz__result { margin-top: 10px; text-align: center; }
.quiz__score { font-size: 22px; font-weight: var(--fw-bold); }
.quiz__restart { padding: 15px 25px; border-radius: 0; }
.quiz__send { display: flex; flex-direction: column; gap: 10px; max-width: 600px; margin: 20px auto; text-align: left; }
.quiz__send input { padding: 10px; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.quiz__send button { padding: 15px 25px; border: 0; background: var(--c-orange); color: var(--c-white); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
@media (max-width: 768px) { .quiz__categories button, .quiz__tests button { width: 100%; } }

/* --- "Open A Business Account" (partials/open_account_form.html), live's blue box ----------------------- */
.prose .open-account { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--c-blue); color: var(--c-white); }
.prose .open-account h2 { margin-top: 0; color: var(--c-white); }
.open-account__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-bottom: 20px; }
.open-account label { display: flex; flex-direction: column; gap: 6px; font-weight: var(--fw-semibold); }
.open-account input, .open-account select { height: 42px; padding: 0 10px; border: 0; border-radius: var(--radius); font: inherit; font-weight: var(--fw-regular); }
.open-account button { display: block; margin: 0 auto; padding: 12px 30px; border: 0; border-radius: var(--radius); background: var(--c-orange); color: var(--c-white); font: inherit; font-weight: var(--fw-bold); text-transform: uppercase; cursor: pointer; }
.open-account button:hover { background: var(--c-blue-dark); }
@media (max-width: 600px) { .open-account__grid { grid-template-columns: 1fr; } }
