:root {
  --aqua: #39b7c7;
  --aqua-dark: #0789a4;
  --aqua-pale: #dff7fa;
  --ink: #075775;
  --text: #34444b;
  --white: #fff;
  --line: #c9e9ed;
  --max: 1180px;
  --radius: 0.55rem;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--aqua-dark);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #005a70;
  outline-offset: 3px;
}
.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}
.site-header {
  background: var(--aqua);
  color: #fff;
}
.header-row {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.65rem;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 0.66rem;
  margin-top: 0.35rem;
}
.desktop-nav {
  display: none;
}
.mobile-menu summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.7rem;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu nav {
  position: absolute;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem #004b5c22;
}
.mobile-menu nav a {
  display: block;
  padding: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.hero {
  background: linear-gradient(120deg, var(--aqua-pale), #fff);
  padding: 3.5rem 0;
}
.hero-grid {
  display: grid;
  gap: 2rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--aqua-dark);
  font-size: 0.8rem;
}
.hero h1,
.page-hero h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2.35rem, 9vw, 4.8rem);
  margin: 0.4rem 0 1rem;
  letter-spacing: -0.03em;
}
.lead {
  font-size: 1.12rem;
  max-width: 42rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.35rem;
  background: var(--aqua-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
}
.button:hover {
  filter: brightness(0.94);
}
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0.6rem 1.8rem #0757751f;
  background: var(--aqua-pale);
  aspect-ratio: 3/2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.proof-grid,
.card-grid,
.steps {
  display: grid;
  gap: 1rem;
}
.proof-grid {
  padding: 1.25rem 0;
}
.proof {
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.proof strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
}
.section {
  padding: 3.5rem 0;
}
.section.alt {
  background: #f6fcfd;
}
/* Content under a page hero needs only a small gap: the hero already ends in its own padding. */
.page-hero + .section {
  padding-top: 1.5rem;
}
.page-hero + .section .content > h2:first-child {
  margin-top: 0;
}
.intro .content {
  margin-inline: auto;
}
.section-title {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}
.section-title h2 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  margin: 0 0 0.5rem;
}
.step,
.card,
.testimonial {
  margin: 0 0 1.75rem;
}
.testimonial .quote {
  position: relative;
  background: #5bc0de;
  color: #073b4c;
  border-radius: 0.5rem;
  padding: 1.4rem 3rem 1.6rem;
  font-style: italic;
}
.testimonial .quote:before,
.testimonial .quote:after {
  position: absolute;
  font:
    normal 4rem/1 Georgia,
    "Times New Roman",
    serif;
}
.testimonial .quote:before {
  content: "\201C";
  top: 0.2rem;
  left: 0.6rem;
}
.testimonial .quote:after {
  content: "\201D";
  right: 0.6rem;
  bottom: -0.35em;
}
.testimonial .quote p {
  margin: 0.75rem 0 0;
}
.testimonial .quote p:first-child {
  margin-top: 0;
}
.testimonial .info {
  margin: 0.6rem 0 0 1.9rem;
  color: var(--ink);
}
.testimonials-intro {
  max-width: 52rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-items: center;
  align-content: start;
}
.step h3 {
  margin: 0;
}
.step p {
  grid-column: 1 / -1;
  margin: 0.9rem 0 0;
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--aqua);
  color: #fff;
  font-weight: 700;
}
.card h3 {
  margin: 0.4rem 0;
}
.text-link {
  font-weight: 700;
  text-decoration: none;
}
.quote-band {
  background: var(--aqua-dark);
  color: #fff;
  padding: 2.75rem 0;
  text-align: center;
}
.quote-band blockquote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  max-width: 54rem;
  margin: 0 auto 0.75rem;
}
.quote-band blockquote.long {
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  line-height: 1.55;
}
.cta {
  text-align: center;
  background: var(--aqua-pale);
}
.page-hero {
  padding: 3rem 0;
  background: var(--aqua-pale);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
}
.content {
  max-width: 52rem;
}
/* A narrow content column that is itself the .wrap: keep its left edge level with the other pages' content
   and the hero text, rather than centring the narrow column inside the wide wrap. */
.wrap.content {
  margin-inline: max(1rem, calc((100% - var(--max)) / 2)) auto;
}
.content h2 {
  margin-top: 2.5rem;
}
.course-meta {
  font-weight: 700;
  color: var(--ink);
}
.notice {
  border-left: 0.3rem solid var(--aqua);
  padding: 1rem 1.25rem;
  background: #f2fbfc;
}
.testimonials {
  max-width: 52rem;
}
.testimonials-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.testimonials-pager a {
  padding: 0.6rem 1rem;
  border: 1px solid var(--aqua-dark);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.testimonials-pager [aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.contact-grid {
  display: grid;
  gap: 2rem;
}
.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
label {
  font-weight: 700;
  color: var(--ink);
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem;
  border: 1px solid #91cfd7;
  border-radius: 0.3rem;
  background: #fff;
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
.req {
  color: #b3261e;
  font-weight: 700;
}
.required-key {
  margin: 0 0 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
}
.site-footer {
  background: #064f69;
  color: #e9fbfd;
  padding: 2.5rem 0;
}
.site-footer a {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
}
.small {
  font-size: 0.9rem;
}
.legal {
  border-top: 1px solid #ffffff33;
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--ink);
}
@media (min-width: 48rem) {
  .mobile-menu {
    display: none;
  }
  .desktop-nav {
    display: flex;
    align-items: center;
  }
  .desktop-nav a {
    color: #fff;
    padding: 0.7rem;
    text-decoration: none;
    font-weight: 700;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .proof {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .proof:last-child {
    border-right: 0;
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 1.35fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 2fr;
  }
  .hero-photo {
    aspect-ratio: 3/2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Full-width photographic home hero */
.hero-full {
  position: relative;
  isolation: isolate;
  min-height: 34rem;
  padding: 0;
  display: flex;
  align-items: flex-end;
  background: #075775;
  overflow: hidden;
}
.hero-full .hero-picture {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-full .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-full .hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    rgba(0, 48, 65, 0.08) 15%,
    rgba(0, 48, 65, 0.32) 52%,
    rgba(0, 48, 65, 0.82) 100%
  );
}
.hero-full .hero-content {
  padding-block: 7rem 2.5rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-full .eyebrow,
.hero-full h1 {
  color: #fff;
}
.hero-full h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 11vw, 5.2rem);
}
.hero-full .lead {
  max-width: 38rem;
  font-size: 1.15rem;
}
.hero-full .button {
  text-shadow: none;
  background: var(--aqua);
  color: #053f53;
}
@media (min-width: 48rem) {
  .hero-full {
    min-height: 42rem;
    align-items: center;
  }
  .hero-full .hero-bg {
    object-position: center 48%;
  }
  .hero-full .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(0, 50, 68, 0.86) 0%,
      rgba(0, 50, 68, 0.62) 38%,
      rgba(0, 50, 68, 0.16) 68%,
      rgba(0, 50, 68, 0.04) 100%
    );
  }
  .hero-full .hero-content {
    padding-block: 5rem;
  }
  .hero-full .lead {
    font-size: 1.25rem;
  }
}

/* Subtle home-hero parallax enhancement */
.hero-full .hero-bg {
  transform: scale(1.12);
  will-change: transform;
}
.hero-full .hero-content {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-full .hero-bg,
  .hero-full .hero-content {
    transform: none !important;
    will-change: auto;
  }
}

/* Current page in public navigation */
.desktop-nav a[aria-current="page"] {
  background: var(--ink);
  border-radius: 0.3rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.mobile-menu nav a[aria-current="page"] {
  background: var(--aqua-pale);
  box-shadow: inset 0.25rem 0 var(--ink);
  border-radius: 0.2rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.25em;
}
.booking-event {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}
.booking-event legend {
  font-weight: 700;
  color: var(--ink);
  padding: 0 0.4rem;
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.35rem 0;
}
.check input {
  width: 1.25rem;
  height: 1.25rem;
}
/* Photographic header: the hero image sits behind a transparent navigation bar on every page */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.hero-full {
  min-height: 100vh;
  min-height: 100svh;
}
.hero-full .hero-content {
  padding-top: 7rem;
}
.hero-full .hero-shade {
  background: linear-gradient(
      180deg,
      rgba(0, 40, 55, 0.7) 0,
      rgba(0, 40, 55, 0) 9rem
    ),
    linear-gradient(
      90deg,
      rgba(0, 50, 68, 0.86) 0%,
      rgba(0, 50, 68, 0.62) 38%,
      rgba(0, 50, 68, 0.16) 68%,
      rgba(0, 50, 68, 0.04) 100%
    );
}
.page-hero {
  padding: 8.5rem 0 3rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  background-color: #075775;
  background-image: linear-gradient(
      180deg,
      rgba(0, 40, 55, 0.7) 0,
      rgba(0, 40, 55, 0.45) 40%,
      rgba(0, 40, 55, 0.62) 100%
    ),
    url(/images/home-hero-wide-1200.jpg);
  background-image: linear-gradient(
      180deg,
      rgba(0, 40, 55, 0.7) 0,
      rgba(0, 40, 55, 0.45) 40%,
      rgba(0, 40, 55, 0.62) 100%
    ),
    image-set(
      url(/images/home-hero-wide-1200.avif) type("image/avif"),
      url(/images/home-hero-wide-1200.webp) type("image/webp"),
      url(/images/home-hero-wide-1200.jpg) type("image/jpeg")
    );
  background-size: cover;
  background-position: center 45%;
}
.page-hero .eyebrow,
.page-hero h1 {
  color: #fff;
}
/* One band height on every inner page, so the header image does not shift between pages */
.page-hero {
  min-height: 28rem;
}
/* Logo image replaces the text brand */
.brand img {
  height: 3.25rem;
  width: auto;
  max-width: 60vw;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
@media (max-width: 47.999rem) {
  .brand img {
    height: 2.75rem;
  }
}
.footer-brand {
  display: inline-block;
}
.footer-brand img {
  height: 3.25rem;
  width: auto;
  max-width: 100%;
}
.mobile-menu nav {
  text-shadow: none;
}
/* Mock exam event cards */
.event-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.75rem;
}
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 3px rgba(7, 87, 117, 0.08);
}
.event-card header {
  padding-right: 5.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.event-card h3 {
  margin: 0;
}
.event-card p {
  margin: 0;
}
.event-card .status {
  padding: 0.15rem 0.7rem;
  border-radius: 2rem;
  background: var(--aqua-pale);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}
.event-card .status-full,
.event-card .status-closed {
  background: #eee;
  color: #555;
}
.event-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.event-meta {
  font-weight: 700;
  color: var(--ink);
}
.event-card .session-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.event-card .session-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.event-card .session-list em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.875rem;
  text-transform: capitalize;
}
.event-card .button {
  margin-top: auto;
  align-self: flex-start;
}
@media (min-width: 48rem) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.bulleted-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.5rem;
}
.bulleted-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
}
.ticked-list-item {
  flex: none;
  width: 1em;
  height: 1em;
  background: #309eb5;
  transform: translateY(0.12em);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.section.no-top-padding {
  padding-top: 0;
}
.book-grid {
  display: grid;
  gap: 1.5rem;
}
.book {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.book img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 0.2rem 0.6rem #0757752b;
}
.book-no-cover {
  grid-template-columns: 1fr;
}
.book h3 {
  margin: 0 0 0.4rem;
}
.book p {
  margin: 0 0 1rem;
}
@media (min-width: 48rem) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book {
    grid-template-columns: 9rem 1fr;
  }
}
