/* mycpd.co.za
   One stylesheet for the whole site. Sections, in order:
   fonts, tokens, base, layout, buttons, header + menu, footer, page components,
   forms, about us, home page, banners, FAQ, blog index, gallery + lightbox, content pages, blog posts. */

/* ---------------------------------------------------------------- fonts */
@font-face{font-family:"Open Sans";font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/open-sans-normal-latin.woff2) format("woff2");unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/open-sans-normal-latin-ext.woff2) format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Open Sans Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/opensanshebrewcondensed-bold.woff2) format("woff2")}

/* ---------------------------------------------------------------- tokens */
:root {
  --navy: #12365e;
  --orange: #f27406;
  --orange-dark: #d05204;
  --amber: #e27a30;          /* softer orange used for some headings and buttons */
  --blue: #3d75b2;
  --sky: #7bb0e7;
  --tint: #eff4f7;           /* light blue-grey: top bar, alternate sections, footer */
  --grey: #f8f8f8;
  --muted: #919191;
  /* home page (dark) */
  --night: #000;
  --night-blue: #213963;     /* borders on the dark home page, hero subline */
  --card-dark: linear-gradient(to top right, #0a1322, #050910 50%, #010305);
  --lime: #86c440;           /* brand green: home page buttons and headings, header Contact Us */
  --lime-dark: #74ad33;
  --gold: #ffc919;
  --azure: #2777b7;

  --font-head: "Open Sans Condensed", Helvetica, Arial, sans-serif;
  --font-ui: "Open Sans", Helvetica, Arial, sans-serif;
  --font-text: Helvetica, Arial, sans-serif;

  --content: 1312px;         /* widest content column (header, sections, home hero) */
  --side: 50px;              /* minimum space left and right of the content */
  --header-h: 184px;         /* fixed header height on screens 768px and wider */
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; background: #fff; color: var(--navy); font: 400 16px/1.65 var(--font-text); overflow-x: hidden; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: none; }
p { margin: .85em 0; font-size: 17px; line-height: 26.4px; font-weight: 300; }
strong, b { font-weight: 700; }
sup { line-height: 0; }
ul, ol { margin: 0 0 20px; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--navy); }
h1, .title { font: 700 50px/70px var(--font-head); letter-spacing: 1.5px; margin-bottom: 14px; }
h2 { font: 700 25px/27.5px var(--font-head); letter-spacing: 1px; margin-bottom: 10px; }
h3 { font: 600 20px/22px var(--font-ui); margin-bottom: 8px; }
h4 { font: 600 18px/19.8px var(--font-ui); }
main > :first-child { margin-top: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(var(--content), 100% - 2 * var(--side)); margin-inline: auto; }
.section { padding: 50px 0; }
.section--tint { background: var(--tint); }
.section--grey { background: var(--grey); }
.section > .wrap > :first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); column-gap: 2.5%; row-gap: 30px; }
.grid--2 { --cols: 2; }
.grid--4 { --cols: 4; }
.grid--6 { --cols: 6; }
.grid--tight { column-gap: 2%; }
.grid--wide { column-gap: 6%; }
.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6%; align-items: center; }
.split > * { min-width: 0; }
.split img { display: block; margin-inline: auto; }
.lead { margin-bottom: 0; }

@media (max-width: 767px) {
  .wrap { width: 85%; }
  .grid, .grid--2, .grid--4, .grid--6 { --cols: 1; row-gap: 20px; }
  .split { grid-template-columns: 1fr; row-gap: 20px; margin-bottom: 20px; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block; margin: 3px 0; padding: 15px 30px 13px;
  border-radius: 30px; border-bottom: 1px solid var(--orange-dark);
  background: var(--orange); color: #fff; text-align: center;
  font: 700 13px/15.6px var(--font-text);
  transition: background-color .3s ease-out;
}
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn--md { padding: 12px 30px 10px; }
.btn--lg { font-size: 17px; line-height: 20.4px; }
.btn--amber { background: var(--amber); border-color: var(--amber); }
.btn--amber:hover { background: #c9661f; }
.btn--blue { background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { background: #2f5f94; }
.btn--navy { background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: #0b2440; }
.buttons { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 23px; }

/* ---------------------------------------------------------------- header + menu */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; background: #fff; }
.topbar { position: relative; z-index: 1; background: var(--tint); padding: 17px 0 20px; font: 700 17px/17px var(--font-text); text-align: right; }
.topbar a { color: var(--navy); }
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 130px; }
/* the logo's blue mark lines up with the content edge (the image has 13px of white on its left);
   nudged up 20px (its white top tucks under the top bar) */
.logo { margin-left: -13px; align-self: flex-start; }
.logo img { display: block; width: auto; height: 130px; margin-top: -20px; }
.nav__menu { display: flex; margin: 0; padding: 0; list-style: none; }
.nav__menu > li { position: relative; }
.nav__menu > li > a, .nav__menu > li > button {
  display: block; padding: 0 25px; border: 0; background: none; cursor: pointer;
  color: var(--navy); font: 600 17px/130px var(--font-ui);
}
.nav__menu .has-sub > button::after {   /* chevron that flips when the menu is open */
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 4px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
}
.nav__menu .has-sub:hover > button::after, .nav__menu .has-sub:focus-within > button::after,
.nav__menu .has-sub > button[aria-expanded="true"]::after { transform: translateY(3px) rotate(225deg); }
.nav__sub {
  position: absolute; top: calc(50% + 23px); left: 0; z-index: 2; width: 208px; margin: 0; padding: 0; list-style: none;
  background: #fff; box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub, .has-sub > button[aria-expanded="true"] + .nav__sub {
  opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s;
}
.nav__sub a { display: block; padding: 8px 15px; border-left: 1px solid var(--tint); color: var(--navy); font: 400 16px/23px var(--font-ui); }
.nav__sub li:last-child a { border-bottom: 1px solid var(--tint); }
.nav__sub a:hover { background: var(--grey); }
.nav__menu .nav__cta { line-height: 130px; }
.nav__cta span { padding: 9px 30px; border: 2px solid var(--lime); border-radius: 30px; background: var(--lime); color: #fff; }
.nav__cta:hover span { background: var(--lime-dark); border-color: var(--lime-dark); }
.nav-toggle, .nav-backdrop { display: none; }

@media (min-width: 1100px) and (max-width: 1339px) {
  .logo { margin-left: -50px; }   /* into the side margin, so the full menu still fits on one line */
  .nav__menu > li > a, .nav__menu > li > button { padding-inline: 13px; }
}

/* below 1100px the menu becomes a panel that slides in from the right */
@media (max-width: 1099px) {
  .nav-toggle {
    display: block; position: relative; z-index: 3; width: 85px; height: 130px; margin-right: -25px; padding: 0 25px;
    border: 0; background: none; cursor: pointer; color: var(--navy);
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 25px; width: 35px; height: 3px; border-radius: 3px; background: currentColor;
  }
  .nav-toggle span { top: 50%; transition: transform .3s cubic-bezier(.55, .055, .675, .19); }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; transition: top .1s .34s ease-in, bottom .1s .34s ease-in, opacity .1s ease-in, transform .3s; }
  .nav-toggle span::before { top: -10px; }
  .nav-toggle span::after { bottom: -10px; }
  .nav-open .nav-toggle span { transform: rotate(225deg); transition-delay: .14s; transition-timing-function: cubic-bezier(.215, .61, .355, 1); }
  .nav-open .nav-toggle span::before { top: 0; opacity: 0; transition: top .1s ease-out, opacity .1s .14s ease-out; }
  .nav-open .nav-toggle span::after { bottom: 0; transform: rotate(-90deg); transition: bottom .1s ease-out, transform .3s .14s cubic-bezier(.215, .61, .355, 1); }

  .nav__menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; display: block; width: 350px; max-width: 100%;
    padding: var(--header-h) 0 40px; overflow-y: auto; background: #fff;
    transform: translateX(100%); visibility: hidden; transition: transform .5s cubic-bezier(.75, 0, .25, 1), visibility 0s linear .5s;
  }
  .nav-open .nav__menu { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__menu > li > a, .nav__menu > li > button, .nav__sub a {
    display: block; width: 100%; padding: 15px 50px; border: 0; border-bottom: 1px solid var(--tint);
    text-align: left; font: 400 16px/20.8px var(--font-ui); color: var(--navy);
  }
  .nav__menu .has-sub > button { cursor: default; }
  .nav__menu .has-sub > button::after { display: none; }
  .nav__sub { position: static; width: auto; box-shadow: none; opacity: 1; visibility: inherit; transition: none; }
  .nav__sub a { position: relative; padding-left: 70px; }
  .nav__sub a::before { content: ""; position: absolute; left: 50px; top: 50%; width: 7px; height: 1px; background: currentColor; opacity: .3; }
  .nav__sub li:last-child a { border-bottom: 1px solid var(--tint); }
  .nav__menu .nav__cta { border-bottom: 0; line-height: 20.8px; padding-top: 15px; }
  .nav__cta span { display: inline-block; }
}

@media (max-width: 767px) {
  :root { --header-h: 151px; }
  html { scroll-padding-top: 0; }
  .site-header { position: relative; }
  .topbar { text-align: center; }
  .header-bar { width: 85%; height: 80px; }
  .logo { margin-left: 0; align-self: center; }
  .logo img { height: 80px; margin-top: 0; }
  .nav-toggle { height: 80px; }
  .nav__menu { padding-top: var(--header-offset, var(--header-h)); }
}

/* the fixed header covers the top of the page on wider screens */
@media (min-width: 768px) {
  body { padding-top: var(--header-h); }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--tint); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 6%; padding: 15px 0 30px; }
.footer-cols section { margin: 30px 0; }
.footer-cols h2 { margin: 14.96px 0 8px; font: 600 17.6px/19.36px var(--font-ui); letter-spacing: 1.408px; }
.footer-cols a { color: var(--navy); }
.footer-contact { margin: 0; font-size: 16px; }
.footer-contact a { display: block; line-height: 26.4px; }
.footer-social { display: flex; gap: 10px; margin-top: 18.45px; }
.footer-social img { display: block; width: 50px; height: 50px; }
.copyright { margin-block: 0; padding: 15px 0; font: 400 11px/26.4px var(--font-text); }
.copyright a { color: var(--navy); text-decoration: underline; }
hr.divider {   /* short blue line above the footer */
  height: 100px; margin: 0; border: 0;
  background: linear-gradient(var(--sky), var(--sky)) center 12px / 300px 1px no-repeat, var(--tint);
}
.scroll-top {
  position: fixed; right: 50px; bottom: 50px; z-index: 400; display: grid; place-items: center;
  width: 50px; height: 50px; border: 1px solid var(--tint); border-radius: 2px;
  background: var(--tint); color: var(--navy); opacity: 0; visibility: hidden; transition: all .3s ease-out;
}
.scroll-top svg { width: auto; height: 15px; fill: currentColor; }
.scroll-top.is-visible { opacity: .7; visibility: visible; }
.scroll-top:hover { background: var(--grey); color: var(--orange); }

@media (max-width: 767px) {
  .footer-cols { grid-template-columns: 1fr; row-gap: 20px; padding-bottom: 50px; }
  .scroll-top { display: none; }
}

/* ---------------------------------------------------------------- page components */
/* row of buttons under text */
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 10px; margin-top: 34.45px; }
.about-e2 .actions { margin-top: 0; }
.actions .btn { margin: 3px 0 5px; }
.center .actions { justify-content: center; }

/* cards */
.card { display: flex; flex-direction: column; text-align: center; }
.card .btn { align-self: center; }
.card--soft { padding: 41px 41px 31px; border-radius: 35px; background: var(--grey); }
.card--soft h3 { margin: 14.45px 0 0; font: 700 17px/26.4px var(--font-text); }
.card--soft p:last-child { margin-bottom: 24.45px; }
.card--soft p + .btn { margin-top: 13px; }

/* call to action strip shared by most pages (_partials/cta.html, _partials/cta-form.html) */
.cta .title { margin-bottom: 0; }
.cta__form { margin: 22px 0 28px; }
.cta--full .cta__form { max-width: 569px; margin: 95px auto 30px; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.form input, .form textarea {
  width: 100%; margin: 0; padding: 13px; border: 1px solid var(--grey); border-radius: 2px;
  background: var(--grey); color: var(--muted); font: 400 17px/normal var(--font-text);
}
.form textarea { resize: vertical; }
.form button {
  margin: 0; padding: 13px 10px 14px; border: 0; border-bottom: 1px solid var(--orange-dark); border-radius: 2px;
  background: var(--orange); color: #fff; font: 400 15.64px/normal var(--font-text); cursor: pointer;
}
.form button:hover { background: var(--orange-dark); }
.form--grid { column-gap: 30px; row-gap: 50px; }
.form--grid input, .form--grid textarea { padding: 8px 6px; border-radius: 0; font-size: 16px; }
.form--grid textarea { grid-column: 1 / -1; height: 66px; line-height: 24px; }
.form--grid button { justify-self: start; width: 100px; height: 40px; padding: 10px; border: 0; font: 500 14px/20.3px var(--font-text); }
.form .is-invalid { outline: 2px solid #c0392b; }
.form-message { grid-column: 1 / -1; margin: 12px 0 0; padding: 12px 16px; border-radius: 3px; background: #e8f5e9; color: #1b5e20; font-size: 14px; line-height: 1.5; font-weight: 400; }
.form-message--error { background: #fdecea; color: #8a1c12; }

@media (max-width: 767px) {
  .form, .form--grid { grid-template-columns: 1fr; row-gap: 20px; }
  .form--grid button { justify-self: stretch; width: auto; }
  .cta--full .cta__form { margin-top: 45px; }
  .cta__form { row-gap: 8px; }
  .cta--full .cta__form { row-gap: 20px; }
}

/* ---------------------------------------------------------------- about us */
.about-intro { padding-bottom: 0; }
.about-intro .split { align-items: start; }
.about-intro__text { padding-top: 70px; }
.split img.about-intro__img, .about-e2 img { justify-self: end; max-width: calc(100% - 15px); margin: 0; }
.values { background: linear-gradient(var(--tint) 50%, #fff 50%); }
.about-e2 { padding-top: 120px; }
.about-e2 .split { align-items: start; }
.about-e2__text { padding-top: 25px; }
@media (max-width: 767px) {
  .about-intro { padding-bottom: 0; }
  .values { padding-bottom: 20px; }
}

/* fade/slide in when scrolled into view (site.js adds .is-visible) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.intro { max-width: 1050px; margin-inline: auto; }

/* help cards (find certificate) */
.help-cards { margin: 65.55px 0 10px; row-gap: 10px; }
.card--help { padding: 40px 10px 31px; background: #fff; }
.card--help img { display: block; margin: 0 auto 10px; padding: 10px 0; }
.card--help h3 { margin: 0 0 10px; font: 700 25px/27.5px var(--font-head); letter-spacing: 1px; }

/* the six "12 months / Online 24/7 / ..." icons (registration) */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 6%; margin: 56px 0 0; padding: 0; list-style: none; }
.features li { display: flex; flex-direction: column; align-items: center; margin-bottom: 4px; font: 600 18px/19.8px var(--font-ui); text-align: center; }
.features img { display: block; margin: 14px 0 27px; padding: 10px 0; box-sizing: content-box; }

@media (max-width: 767px) {
  .help-cards .card:last-child { margin-bottom: 10px; }
  .features { grid-template-columns: 1fr 1fr; column-gap: 4%; row-gap: 20px; }
}

/* ---------------------------------------------------------------- home page (dark layout from the brand design) */
.home { padding-bottom: 50px; background: var(--night); color: #fff; }
:where(.home) p { margin: 0; font: 400 16px/24px var(--font-ui); }
:where(.home) :is(h2, h3) { color: inherit; letter-spacing: 0; }
:where(.home) h2 { margin: 0 0 6px; color: var(--lime); font: 700 28px/36px var(--font-ui); }
.home-section { padding-top: 34px; }
.home-section + .home-section { padding-top: 48px; }

/* buttons: lime or outlined, fully rounded */
.pill {
  display: inline-block; padding: 9px 30px; border: 0; border-radius: 999px;
  background: var(--lime); color: #fff; text-align: center; font: 700 20px/25px var(--font-head);
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.pill:hover { background: var(--lime-dark); color: #fff; }
.pill--sm { padding: 7px 20px; font: 700 18px/23px var(--font-ui); }
.pill--wide { display: block; width: min(736px, 100%); margin-inline: auto; }
.pill--lime-line, .pill--gold-line { padding-block: 9px; border: 2px solid; background: none; }
.pill--lime-line { color: var(--lime); }
.pill--lime-line:hover { background: var(--lime); }
.pill--gold-line { color: var(--gold); }
.pill--gold-line:hover { background: var(--gold); color: #000; }

/* hero: full-width photo, as tall as the other pages' banners (1030:185), with the headline and
   offer laid over it. Sizes follow the 384px-tall design: --u = 1 design px at the current height.
   The headline and offer sit at the content edges, but never closer to the doctor than in the design. */
.hero {
  --u: calc(100cqw * 185 / 1030 / 384);
  --col: min(var(--content), 100% - 2 * var(--side));
  position: relative; overflow: hidden; background: var(--tint); container-type: inline-size;
}
.hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 1030 / 185; object-fit: cover; }
.hero__title {
  position: absolute; top: calc(65 * var(--u)); width: calc(530 * var(--u));
  left: min((100% - var(--col)) / 2 + 36 * var(--u), 50% - 620 * var(--u));
  margin: 0; text-align: center; letter-spacing: 0; line-height: normal;
}
.hero__big { display: block; color: var(--lime); font: 700 calc(116 * var(--u))/.9 var(--font-head); text-transform: uppercase; }
.hero__sub { display: block; margin-top: calc(24 * var(--u)); color: var(--night-blue); font: 700 calc(39 * var(--u))/1.2 var(--font-head); }
.hero__offer {
  position: absolute; top: calc(122 * var(--u)); width: calc(341 * var(--u));
  left: max((100% + var(--col)) / 2 - 341 * var(--u), 50% + 315 * var(--u));
  color: var(--night-blue); text-align: center; font: 400 max(13px, 21.5 * var(--u))/1.4 var(--font-ui);
}
.hero__pill {
  display: block; margin-bottom: calc(17 * var(--u)); padding: calc(10 * var(--u)) 0; border-radius: calc(20 * var(--u));
  background: var(--lime); color: #fff; font: 700 calc(55 * var(--u))/1.15 var(--font-head); transition: background-color .2s ease;
}
.hero__offer:hover .hero__pill { background: var(--lime-dark); }
.hero__offer strong { display: block; color: var(--azure); font-size: max(16px, 33 * var(--u)); line-height: 1.3; }

/* panels and tiles */
.panel {
  padding: 44px 60px 48px; border: 1.5px solid var(--night-blue); border-radius: 30px;
  background: linear-gradient(100deg, #0d182b, #070d18 50%, #010204);
}
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 202px)); justify-content: space-between; gap: 20px; margin: 23px 0 24px; padding: 0; list-style: none; }
.tiles li {
  display: flex; flex-direction: column; align-items: center; min-height: 225px; padding: 19px 14px;
  border-radius: 24px; background: rgba(0, 0, 0, .4); text-align: center; font: 400 14px/21px var(--font-ui);
}
.tiles img { width: 106px; margin-bottom: 18px; }
.tiles strong { font-weight: 600; }

.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 345px); column-gap: 38px; }
.tiles--tall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; }
.tiles--tall li { justify-content: center; min-height: 307px; padding: 20px 32px 28px; border: 1.5px solid var(--night-blue); border-radius: 30px; background: var(--card-dark); }
.tiles--tall img { width: 76px; margin-bottom: 32px; }
.why__text { display: flex; flex-direction: column; align-items: flex-start; }
.why__text h2, .why__text h3 { color: var(--gold); }
.why__text h3 { margin: 10px 0 20px; font: 700 16px/24px var(--font-ui); }
.why__text p { font-size: 14px; line-height: 21px; }
.why__text .pill { width: 100%; margin-top: auto; }

/* price cards */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 37px; margin-top: 42px; }
.plan {
  position: relative; display: grid; grid-template-columns: minmax(280px, 46%) minmax(0, 1fr); min-height: 318px;
  border: 1.5px solid var(--night-blue); border-radius: 30px; background: var(--card-dark);
}
.plan__text { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px 22px 28px; }
.plan h3 { margin: 0; font: 700 23px/30px var(--font-ui); }
.plan__was { margin-top: 8px; font-size: 14px; line-height: 21px; }
.plan__price { margin-top: 4px; color: var(--lime); font-size: 28px; line-height: 38px; font-weight: 700; }
.plan__per { margin-top: 6px; color: var(--azure); font-size: 14px; line-height: 21px; }
.plan ul { margin: 10px 0 12px; padding-left: 21px; font-size: 14px; line-height: 21px; }
.plan .pill { width: min(233px, 100%); margin-top: auto; }
.plan__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 0 28.5px 28.5px 0; }
.plan__save {
  position: absolute; top: -18.5px; right: 35px; padding: 6px 17px; border: 1px solid var(--gold); border-radius: 999px;
  background: #000; color: var(--gold); font: 700 18px/25px var(--font-ui); text-transform: uppercase;
}
.plans__note { margin-top: 17px; text-align: center; font-size: 14px; line-height: 21px; font-weight: 300; }

/* what you get */
.panel__lead { margin-bottom: 30px; font-weight: 700; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 31px 40px; margin: 0; padding: 0; list-style: none; }
.benefits li { min-height: 179px; padding: 30px 30px 28px; border-radius: 24px; background: rgba(0, 0, 0, .61); }
.benefits h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--azure); font: 700 16px/22px var(--font-ui); }
.benefits img { flex: none; width: 44px; }
.benefits p { font-size: 14px; line-height: 21px; }
.panel__actions { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 38px; margin-top: 24px; }

/* audio: waveform, listening cards, sample player (site.js) */
.listen h2 { color: var(--gold); }
.wave { display: block; width: min(872px, 100%); height: auto; margin: 47px auto 38px; fill: var(--azure); opacity: .6; transition: opacity .3s ease; }
.listen__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 22.5px; margin: 0; padding: 0; list-style: none; }
.listen-card { display: grid; grid-template-columns: 179px minmax(0, 1fr); min-height: 232px; }
.listen-card > img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px 0 0 30px; }
.listen-card__body {
  display: flex; align-items: center; gap: 24px; padding: 20px 37px 20px 33px;
  border: 1.5px solid var(--night-blue); border-radius: 0 30px 30px 0; background: var(--card-dark);
}
.listen-card h3 { margin: 0 0 4px; color: var(--gold); font: 700 23px/30px var(--font-ui); }
.listen-card p { font-size: 14px; line-height: 21px; }
.play { flex: none; width: 79px; height: 79px; margin-left: auto; fill: var(--azure); }   /* decorative */
.play circle { fill: none; stroke: var(--azure); stroke-width: 5.5; }
.listen__action { margin-top: 12.5px; text-align: center; }
.listen__action .pill { width: min(686px, 100%); }
.listen__status { margin-top: 12px; color: #c9d3e0; text-align: center; font-size: 14px; }
.listen__status:empty { display: none; }
.listen.is-playing .wave { opacity: 1; }
.listen.is-playing .wave rect { transform-box: fill-box; transform-origin: center; animation: wave .9s ease-in-out infinite alternate; }
.listen.is-playing .wave rect:nth-child(2n) { animation-duration: .7s; animation-delay: -.3s; }
.listen.is-playing .wave rect:nth-child(3n) { animation-duration: 1.1s; animation-delay: -.6s; }
@keyframes wave { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .listen.is-playing .wave rect { animation: none; } }

@media (max-width: 1199px) {
  .why { grid-template-columns: 1fr; row-gap: 32px; }
  .why__text { max-width: 760px; }
  .why__text .pill { width: auto; margin-top: 22px; }
  .plan { grid-template-columns: 1fr; }
  .plan__photo { order: -1; height: auto; aspect-ratio: 16 / 9; border-radius: 28.5px 28.5px 0 0; }
}
@media (max-width: 1099px) {
  .panel { padding: 36px 36px 40px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .listen__cards { grid-template-columns: 1fr; }
}
@media (max-width: 1099px) {
  .hero { display: flex; flex-direction: column; padding-bottom: 30px; text-align: center; }
  .hero__title, .hero__offer { position: static; width: auto; margin: 22px 7.5% 0; }
  .hero__big { font-size: clamp(46px, 10vw, 78px); line-height: .9; }
  .hero__sub { margin-top: 10px; font-size: clamp(21px, 4.2vw, 32px); }
  .hero__offer { font-size: 17px; }
  .hero__pill { width: fit-content; margin: 0 auto 8px; padding: 4px 28px; border-radius: 14px; font-size: 36px; }
  .hero__offer strong { font-size: 25px; }
}
@media (max-width: 899px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .home-section, .home-section + .home-section { padding-top: 32px; }
  :where(.home) h2 { font-size: 24px; line-height: 31px; }
  .panel { padding: 28px 20px 30px; border-radius: 24px; }
  .tiles { gap: 12px; }
  .tiles li { min-height: 0; padding: 18px 10px; border-radius: 20px; }
  .tiles img { width: 72px; margin-bottom: 12px; }
  .tiles--tall li { min-height: 190px; }
  .plans, .benefits { grid-template-columns: 1fr; }
  .plans { row-gap: 40px; }
  .benefits li { min-height: 0; padding: 24px 22px; }
  .panel__actions { grid-template-columns: 1fr; gap: 14px; }
  .listen-card { grid-template-columns: 88px minmax(0, 1fr); min-height: 0; }
  .listen-card > img { border-radius: 24px 0 0 24px; }
  .listen-card__body { gap: 10px; padding: 16px 14px 16px 16px; border-radius: 0 24px 24px 0; }
  .listen-card h3 { font-size: 19px; line-height: 25px; }
  .play { width: 40px; height: 40px; }
}
@media (max-width: 767px) {
  .hero__photo { aspect-ratio: 1050 / 430; object-position: 58% 50%; }   /* the other banners' phone shape */
}

/* ---------------------------------------------------------------- banners (photo with a centred caption) */
/* The photo sets the height and the caption is centred over it. */
.banner { --title: 50px; --title-m: 25px; --text: 16px; --text-m: 17px;
  position: relative; overflow: hidden; color: #fff; text-align: center; }
.banner img { display: block; width: 100%; height: auto; }
.banner__caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.banner h1, .banner h2 { margin: 0 0 10px; color: #fff; font: 700 var(--title)/1.1 var(--font-head); letter-spacing: 0; }
.banner p { margin: 15px 0; font-size: var(--text); line-height: 1.3; }
.banner--signup { --title: 60px; --title-m: 60px; }
.banner--contact { --title: 55px; --text: 20px; --title-m: 50px; }
.banner--quote { --text: 24px; --text-m: 13px; }
.banner--news { --title: 25px; }
@media (max-width: 767px) {
  .banner h1, .banner h2 { font-size: var(--title-m); }
  .banner p { font-size: var(--text-m); }
  /* the contact photo is a thin strip: let the caption set the height and crop the photo */
  .banner--contact img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
  .banner--contact .banner__caption { position: relative; padding: 60px 0; }
}

/* cards with an icon or logo and a button (login, registration) */
p + .icon-cards { margin-top: 44.55px; }
.card--icon { padding: 31px; border: 1px solid rgba(51, 51, 51, .09); border-radius: 35px; box-shadow: 0 0 27px rgba(0, 0, 0, .25); }
.card--icon img { display: block; margin: 0 auto 15px; }
.card--icon h2 { margin: 0 0 19px; text-align: center; }
.card--icon .price { margin: -4.55px 0 17.45px; font-weight: 700; }
.logo-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px 2.5%; }
.card--logo { width: 23.125%; }
.card--logo img { margin: 24.45px auto 27.45px; padding: 0 0; }
.login-help { margin-top: 60px; }
.login-help .actions { justify-content: center; }
.register-what { margin-top: 34.55px; }

/* find certificate */
.split--wide-left { grid-template-columns: 57.6% 36.4%; align-items: start; }
.muted { color: var(--muted); }
.help-cards--simple { margin-top: 64px; margin-bottom: 0; }
.help-cards--simple .card--help { padding: 30px 30px 33px; }
.help-cards--simple .card--help h3 { margin: 4px 0 14.45px; font: 300 17px/26.4px var(--font-text); letter-spacing: 0; }

/* contact */
.contact { align-items: start; }
.contact a { color: inherit; }
.contact__img { display: block; margin: 0 auto 10px; }
.form--labels { column-gap: 30px; row-gap: 0; margin-top: 14px; }
.form--labels .form__field { position: relative; margin-bottom: 50px; }
.form--labels .form__field--wide { grid-column: 1 / -1; }
.form--labels label { display: block; margin-bottom: 1px; font: 700 12px/20.4px var(--font-text); }
.form__req { color: #e51919; font-weight: 400; font-size: 13px; }
.form__count { position: absolute; right: 0; top: 21px; font-size: 12px; line-height: 18px; }
.form--labels .form__field--wide label { margin-bottom: 23px; }
.form--labels input, .form--labels textarea { padding: 8px 6px; border-radius: 0; font-size: 16px; }
.form--labels textarea { height: 66px; line-height: 24px; }
.form--labels button { justify-self: start; width: 100px; height: 40px; padding: 10px; border: 0; font: 500 14px/20.3px var(--font-text); }

/* thank you, 404 */
.thanks { padding: 130px 0; }
.not-found { padding: 64px 0 70px; }
.not-found h1 { margin: 0; color: var(--orange); font: 700 17px/26.4px var(--font-text); letter-spacing: 0; }
.not-found h1 + p { margin-top: 0; }
.not-found strong { color: var(--orange); }
.not-found ul { margin: 0 0 0 7px; padding-left: 16px; }
.not-found li { padding: 3px 0; }

@media (max-width: 767px) {
  .icon-cards { row-gap: 20px; }
  .card--logo { width: 100%; }
  .logo-cards { row-gap: 20px; }
  .split--wide-left { grid-template-columns: 1fr; }
  .form--labels { grid-template-columns: 1fr; }
  .form--labels .form__field { margin-bottom: 20px; }
}

/* ---------------------------------------------------------------- FAQ accordions (details/summary) */
.faq-intro { margin: 0 0 10px; }
.faq-heading { margin: 34px 0 30px; color: var(--amber); text-align: center; }
.faq + .faq-heading { margin-top: 50px; }
.faq details { border-bottom: 1px solid #1c355b; }
.faq details:first-child { border-top: 1px solid #1c355b; }
.faq summary {
  position: relative; display: block; padding: 35px 55px 30px 35px; background: #fff; cursor: pointer; list-style: none;
  font: 300 17px/28.05px var(--font-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--grey); }
.faq summary::before, .faq summary::after { content: ""; position: absolute; background: #1c355b; }
.faq summary::before { right: 45px; top: calc(50% + 14px); width: 11px; height: 2px; }
.faq summary::after { right: 49.5px; top: calc(50% + 9.5px); width: 2px; height: 11px; }
.faq details[open] summary::after { display: none; }
.faq__answer { padding: 20px 35px 30px; background: var(--grey); font-size: 15px; line-height: 1.4; }
.faq__answer p { line-height: 1.4; }
.faq__answer ul { margin: 0 0 20px 7px; }
.faq-page { padding-bottom: 100px; }

.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 58px 0 80px; padding: 0; list-style: none; }
.logos img { display: block; width: calc(100% - 2px); margin: 0 auto; box-shadow: 0 0 2px rgba(0, 0, 0, .3); }
.get-started { text-align: left; }
.get-started__logo { display: block; margin: 14px auto 0; }
@media (max-width: 767px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 14px; }
  .logos img { width: 100%; }
}

/* ---------------------------------------------------------------- blog index */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 15px; width: calc(100% + 5px); }
.post-card { position: relative; display: block; aspect-ratio: 395 / 517; overflow: hidden; color: var(--navy); }
.post-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__text { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 20px; background: var(--grey); }
.post-card__text::before {   /* small arrow pointing up at the photo */
  content: ""; position: absolute; top: -5px; left: 50%; width: 14px; height: 14px; margin-left: -5px;
  background: var(--grey); transform: rotate(45deg);
}
.post-card__title { position: relative; display: block; font: 600 15px/19.5px var(--font-ui); }
.post-card__excerpt { display: block; padding-top: 4px; }
.post-card__date { display: block; color: var(--muted); font-size: 11px; line-height: 26.4px; }
.post-card:hover .post-card__title { color: var(--orange); }
@media (min-width: 768px) and (max-width: 989px) { .post-card__excerpt { display: none; } }
@media (max-width: 767px) { .posts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- gallery + lightbox */
.gallery { --cols: 4; position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 15px; margin: 15px 0; }
.gallery.is-laid-out { display: block; }
.gallery__item img { display: block; width: 100%; }
@media (max-width: 1339px) { .gallery { --cols: 3; } }
@media (max-width: 767px) { .gallery { --cols: 2; } }
@media (max-width: 479px) { .gallery { --cols: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(11, 11, 11, .88); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; background: #444; box-shadow: 0 0 25px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; padding: 10px 18px; border: 0; background: none; color: #fff; cursor: pointer; opacity: .75; font: 300 44px/1 Arial, sans-serif; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font-size: 60px !important; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; color: #ccc; text-align: center; font: 12px/1 Arial, sans-serif; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next, .lightbox--single .lightbox__count { display: none; }
.lightbox-open { overflow: hidden; }

/* ---------------------------------------------------------------- content pages (Medical, Psychology, ...) */
.banner--articles { container-type: inline-size; aspect-ratio: 1700 / 445; }
.banner--articles img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 71.7% 50%; }
.banner--articles .banner__caption { justify-content: flex-start; align-items: center; padding-top: 7.12cqw; font-family: var(--font-ui); }
.banner--articles p { margin: 0; font-size: 2.12cqw; line-height: 1.36; font-weight: 400; }
.banner--articles .banner__kicker { font-size: 3.35cqw; }
.banner__links { display: flex; justify-content: center; gap: 1.9cqw; margin-top: 2.12cqw; }
.banner__links a {
  padding: .794cqw 1.985cqw; border-radius: 2.76cqw; background: var(--amber); color: #fff;
  font: 600 .882cqw/1.36 var(--font-ui); letter-spacing: .1765cqw;
}
.banner__links a:hover { background: var(--orange-dark); }

.articles-heading { margin: 34.55px 0 28px; font: 600 20px/22px var(--font-ui); letter-spacing: 0; text-align: center; }
.articles-heading a { color: inherit; text-decoration: underline; }
.articles + .articles-heading { margin-top: 60px; }
.articles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px 2%; margin-bottom: 15px; }
.article-card { grid-column: span 2; padding: 30px 10px; border: 1px solid #e5e5e5; }
/* a last row of two cards shares the full width */
.article-card:nth-child(3n+1):nth-last-child(2), .article-card:nth-child(3n+2):last-child { grid-column: span 3; }
.article-card h3 { margin: 0 0 4px; font: 600 18px/19.8px var(--font-ui); }
.article-card p { line-height: 23.1px; }
.article-card > :last-child { margin-bottom: 0; }
.article-card__points { text-transform: uppercase; }
@media (max-width: 767px) {
  .articles { grid-template-columns: 1fr; row-gap: 20px; }
  .article-card, .article-card:nth-child(3n+1):nth-last-child(2), .article-card:nth-child(3n+2):last-child { grid-column: auto; }
}
@media (max-width: 767px) {
  .banner--articles { aspect-ratio: auto; container-type: normal; }
  .banner--articles img { object-fit: none; object-position: 50% 50%; }
  .banner--articles .banner__caption { position: relative; width: 85%; margin: 0 auto; padding: 50px 0; }
  .banner--articles .banner__kicker { margin-bottom: 14px; font: 700 50px/70px var(--font-head); letter-spacing: 1.5px; }
  .banner--articles p { font: 700 17px/26.4px var(--font-text); }
  .banner__links { flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; }
  .banner__links a { padding: 12px 30px 10px; border-radius: 30px; background: var(--orange); font: 700 13px/15.6px var(--font-text); letter-spacing: 0; }
}

/* ---------------------------------------------------------------- blog posts */
.post { padding: 50px 0 182px; }
.post .wrap { max-width: 736px; }
.post__image { display: block; width: 180px; margin: 6px auto 0; border-radius: 4px; overflow: hidden; background: var(--muted); }
.post__image img { display: block; }
.post__title { margin: 0; padding: 15px 0; text-align: center; }
.post__date { position: relative; top: -8px; display: block; margin-bottom: 15.55px; color: var(--muted); font-size: 14.9px; line-height: 31.28px; text-align: center; }
.post__body { text-align: justify; }
.post__body p, .post__body li { line-height: 31.28px; }
.post__body strong { color: var(--orange); }
.post__body h2, .post__body h3 { margin: 60.2px 0 0; color: var(--orange); font: 700 17px/31.28px var(--font-text); letter-spacing: 0; text-align: left; }
.post__body > h2:first-child { margin-top: 14.45px; }
.post__body h2 + p, .post__body h3 + p { margin-top: 0; }
.post__body ul, .post__body ol { margin: 0 0 20px 15px; padding-left: 18.4px; }
.post__body li { padding: 3px 0; font-size: 17px; font-weight: 300; }

/* previous / next post tabs fixed to the sides of the screen */
.post-nav a {
  position: fixed; top: 50%; z-index: 450; display: flex; align-items: center; height: 110px; margin-top: -55px; padding: 15px;
  background: rgba(0, 0, 0, .1); color: #fff; transition: background-color .3s ease-out;
}
.post-nav a::before { content: ""; width: 8px; height: 8px; border: solid #fff; border-width: 0 0 2.5px 2.5px; }
.post-nav__prev { left: 0; border-radius: 0 4px 4px 0; }
.post-nav__prev::before { transform: rotate(45deg); margin-left: -2px; }
.post-nav__next { right: 0; flex-direction: row-reverse; border-radius: 4px 0 0 4px; }
.post-nav__next::before { transform: rotate(-135deg); margin-right: -2px; }
.post-nav__info { display: flex; align-items: center; gap: 0; width: 1px; height: 80px; overflow: hidden; transition: width .3s ease-out; }
.post-nav__info span { flex: 0 0 120px; margin: 0 20px; font-size: 13px; line-height: 1.65; }
.post-nav__info img { flex: 0 0 80px; width: 80px; height: 80px; border-radius: 50%; }
.post-nav a:hover, .post-nav a:focus-visible { background: rgba(0, 0, 0, .8); }
.post-nav a:hover .post-nav__info, .post-nav a:focus-visible .post-nav__info { width: 240px; }
@media (max-width: 767px) {
  .post-nav { display: none; }
}
