/* Shared by the Singapore and UAE pages. Each page keeps only its own colours and the few rules that differ. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}
h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  margin-top: 0;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
}
p {
  margin-top: 0;
}
a {
  color: inherit;
}
.inline-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.container {
  width: min(92%, var(--max));
  margin: auto;
}
.topbar {
  background: var(--navy);
  text-align: center;
  padding: 9px 20px;
  font-size: 0.92rem;
}
.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
}
.button {
  display: inline-block;
  background: var(--navy);
  text-decoration: none;
  padding: 14px 23px;
  border-radius: 5px;
  font-weight: 700;
}
.button:hover {
  transform: translateY(-1px);
  background: var(--navy-light);
}
.button.gold {
  background: var(--gold);
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  font-size: 0.95rem;
  color: var(--muted);
}
.trustbar {
  padding: 24px 0;
  background: var(--white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1080px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}
.trust-item {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--white);
  text-align: center;
}
.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.12rem;
}
.trust-item span {
  color: var(--muted);
  font-size: .9rem;
}
.trust-item > span {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}
.trust-item-link {
  color: inherit;
  background: #fff8eb;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.trust-item-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.trust-review-stars {
  margin: 0 0 7px !important;
  font-size: .88rem !important;
  letter-spacing: .1em;
  line-height: 1;
}
.trust-review-count {
  font-size: 1.3rem;
}
.trust-review-cta {
  margin-top: 8px !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lead {
  font-size: 1.16rem;
  color: var(--muted);
}
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cream {
  background: var(--cream);
}
.cefr-overview {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}
.cefr-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.cefr-level {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--white);
}
.cefr-level strong {
  display: block;
  color: var(--navy);
}
.profile-panel {
  text-align: center;
}
.profile-photo {
  display: block;
  height: auto;
  aspect-ratio: 742 / 1000;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(23, 35, 61, .12);
}
.profile-photo-mobile {
  display: none;
}
.subject-box {
  background: var(--navy);
  border-radius: 9px;
}
.subject-list {
  display: grid;
  gap: 16px;
}
.subject {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
}
.subject strong {
  display: block;
  font-size: 1.1rem;
}
.reviews {
  text-align: center;
}
.rating {
  font-weight: 800;
  color: var(--navy);
}
.review-platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.platform {
  border-radius: 7px;
}
.platform strong {
  display: block;
  color: var(--navy);
}
.testimonial-excerpt {
  max-width: 700px;
  margin: 28px auto 0;
  text-align: left;
}
.testimonial-excerpt blockquote {
  margin: 0 0 16px;
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.rate-price {
  margin: 16px 0 12px;
  color: var(--navy);
}
.rate-amount {
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 800;
}
.rate-unit {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 400;
}
.rate-note {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.rates-action {
  margin-top: 24px;
}
.time-box {
  border-left: 4px solid var(--gold);
  margin-top: 25px;
}
.steps {
  display: grid;
}
.cta {
  background: var(--navy);
  text-align: center;
}
footer {
  color: #cbd2df;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 5px;
  cursor: pointer;
}
.menu-toggle-icon {
  position: relative;
  display: inline-block;
}
.menu-toggle-icon::before {
  top: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span {
  opacity: 0;
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}
/* With JavaScript on, the button stays hidden until the visitor scrolls down */
.regional-js .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.regional-js .back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (max-width: 926px) {
  .nav-inner {
    position: relative;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 4%;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links > a:not(.button) {
    padding: 13px 6px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .button {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Larger tap areas for small links on touch screens. The extra area is invisible,
   so nothing moves and nothing looks different. */
@media (pointer: coarse), (max-width: 760px) {
  .footer-inner a, .pathway-link a, .subject-link a, .card > p > a, a[href^="mailto:"] {
    position: relative;
  }
  .footer-inner a::after, .pathway-link a::after, .subject-link a::after,
  .card > p > a::after, a[href^="mailto:"]::after {
    content: "";
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: -6px;
    right: -6px;
  }
}

/* Rate cards (UAE and Singapore): description first, price at the bottom,
   one font and one line for the price (option B, 1 November 2026). */
.rates-grid .card { display: flex; flex-direction: column; }
.rates-grid .card .rate-languages { order: 1; margin: 4px 0 6px; color: var(--muted); font-size: inherit; font-weight: 600; white-space: normal; }
.rates-grid .card > p:not(.rate-languages) { order: 2; flex: 1; }
.rates-grid .card .rate-price { order: 3; display: block; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .1); color: var(--muted); font-size: 1rem; font-weight: 400; line-height: 1.4; }
.rates-grid .card .rate-prefix { margin-right: 4px; color: var(--muted); font-size: .95rem; font-weight: 400; }
.rates-grid .card .rate-amount { color: var(--navy); font-size: 1.35rem; font-weight: 700; }
.rates-grid .card .rate-unit { display: inline; margin: 0 0 0 4px; color: var(--muted); font-size: .95rem; font-weight: 400; }

/* Hero with the four highlight boxes: text on the left and one white card on
   the right on desktop, so the boxes are in the first view; on phones the
   boxes simply follow the buttons. */
.hero-split .trust-grid {
  margin: 28px 0 0;
}
@media (min-width: 851px) {
  header.hero {
    padding: 44px 0 44px;
  }
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
  .hero-split h1 {
    font-size: clamp(2.4rem, 3.6vw, 3.5rem);
    text-wrap: balance;
  }
  .hero-split .hero-sub {
    font-size: 1.12rem;
  }
  .hero-split .hero-actions {
    margin-bottom: 0;
  }
  .hero-split .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  }
  .hero-split .trust-item {
    padding: 22px 16px;
    border-left: 0;
    background: transparent;
  }
  .hero-split .trust-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .hero-split .trust-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }
  .hero-split .trust-item-link {
    background: #fff8eb;
  }
}

/* "Read reviews ↓": underline the words only, so the line does not cut through the arrow */
.trust-review-cta span[aria-hidden="true"] {
  display: inline-block;
  margin-left: .3em;
  text-decoration: none;
}

/* Phones (25 November 2026, replaces the German | Italian switch of 10 Nov): the two pathway cards swipe sideways
   like the homepage Subjects, with German | Italian buttons above them (built by the ".lang-swipe" block in
   site.js). Each page sets the button colours with --swipe-1 and --swipe-2. Without JavaScript the cards can
   still be swiped. Computers and tablets unchanged. */
.lang-swipe-tabs { display: none; }
@media (max-width: 650px) {
  .js-lang-swipe .lang-swipe-tabs { display: flex; gap: 10px; margin: 0 0 14px; }
  .lang-swipe-tabs button { flex: 1; min-height: 46px; border-radius: 999px; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; background: #fff; transition: background .2s, color .2s; }
  .lang-swipe-tabs button:nth-child(1) { color: var(--swipe-1, #17233d); border: 2px solid var(--swipe-1, #17233d); }
  .lang-swipe-tabs button:nth-child(2) { color: var(--swipe-2, #17233d); border: 2px solid var(--swipe-2, #17233d); }
  .lang-swipe-tabs button:nth-child(1)[aria-pressed="true"] { color: #fff; background: var(--swipe-1, #17233d); }
  .lang-swipe-tabs button:nth-child(2)[aria-pressed="true"] { color: #fff; background: var(--swipe-2, #17233d); }
  .lang-swipe-tabs button:focus-visible { outline: 3px solid var(--navy, #17233d); outline-offset: 3px; }
  .lang-grid.lang-swipe { display: flex; gap: 36px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 4vw; margin-inline: -4vw; padding: 0 4vw; align-items: flex-start; scrollbar-width: none; overscroll-behavior-x: contain; transition: height .25s ease; }
  .lang-grid.lang-swipe::-webkit-scrollbar { display: none; }
  .lang-grid.lang-swipe > .lang-card { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
  .js-lang-swipe .lang-grid.lang-swipe > .lang-card > h3 { display: none; }
}
@media (max-width: 650px) and (prefers-reduced-motion: reduce) {
  .lang-grid.lang-swipe { transition: none; }
}


/* First screen on laptops (26 November 2026, option B): on computers, less space in the hero, no top bar and a slightly smaller hero heading, so more of the About section shows without scrolling. UAE and Singapore; phones unchanged. */
@media (min-width: 851px) {
  .topbar {
    display: none;
  }
  header.hero {
    padding: 28px 0;
  }
  .hero-split .eyebrow {
    margin-bottom: 12px;
  }
  .hero-split h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin-bottom: 16px;
  }
  .hero-split .hero-sub {
    margin-bottom: 22px;
  }
}
