/* verb.ke site styles. Sections: 1 tokens, 2 fonts, 3 base, 4 layout, 5 components, 6 pages, 7 utilities.
   Mobile first: base rules are for phones, then min-width 768px (tablet) and 1025px (desktop). */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Colours, from the Kadence palette */
  --c-primary: #1c5d95;
  --c-primary-hover: #3489bd;
  --c-heading: #222;
  --c-text: #3b3b3b;
  --c-muted: #515151;
  --c-subtle: #626262;
  --c-border: #e1e1e1;
  --c-soft: #f7f7f7;
  --c-white: #fff;
  --c-navy: #0a1f41;
  --c-link: #58b5e3;
  --c-lead: #676a6f;
  --c-drawer: #090c10;

  /* Fonts */
  --f-body: Merriweather, serif;
  --f-heading: Lora, serif;
  --f-ui: Rubik, sans-serif;
  --f-footer: Heebo, sans-serif;
  --f-card: Telex, sans-serif;

  /* Type scale */
  --fs-body: 16px;
  --lh-body: 1.9;
  --fs-h2: 40px;
  --fs-h3: 26px;

  /* Spacing and widths */
  --gutter: 24px;
  --container: 1280px;
  --narrow: 842px;
  --radius: 10px;
  --shadow-card: 0 15px 15px -10px rgb(0 0 0 / 5%);
  --shadow-hover: 0 15px 25px -7px rgb(0 0 0 / 10%);
}

/* 2. Fonts (self-hosted, latin subset) ------------------------------------- */
@font-face { font-family: Merriweather; src: url("../fonts/merriweather-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Lora; src: url("../fonts/lora-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Rubik; src: url("../fonts/rubik-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Heebo; src: url("../fonts/heebo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Telex; src: url("../fonts/telex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font: 300 var(--fs-body)/var(--lh-body) var(--f-body);
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-heading); font-weight: 700; color: var(--c-heading); }
h1 { font-size: 65px; line-height: 1; }
h2 { font-size: var(--fs-h2); line-height: 1.5; }
h3 { font-size: var(--fs-h3); line-height: 1.6; }
h4 { font-size: 22px; line-height: 1.5; color: var(--c-text); }
h5 { font-size: 20px; line-height: 1.5; color: var(--c-text); }
p, ul, ol, figure, blockquote { margin: 0; }
p { margin-bottom: 32px; }
ul, ol { padding-left: 32px; margin-bottom: 32px; }
a { color: var(--c-link); }
a:hover { color: var(--c-primary-hover); }
strong { font-weight: 700; }
hr { margin: 0; border: 0; border-top: 1px solid var(--c-border); }
figcaption { margin: 6.4px 0 12.8px; font-size: 12.8px; line-height: 1.9; color: var(--c-muted); text-align: center; }

/* 4. Layout: site header and footer --------------------------------------- */

/* Site header: logo, primary nav and the "Get in Touch" button.
   It overlays the hero on most pages; --solid gives it a white background in the page flow. */
.site-header { position: absolute; inset: 0 0 auto; z-index: 100; padding-inline: var(--gutter); }
.site-header--solid { position: relative; background: var(--c-white); }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--container) - 2 * var(--gutter));
  min-height: 111px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-bottom: 1px solid rgb(110 116 124 / 20%);
}
.brand img { width: 200px; }

.menu-toggle {
  display: flex;
  padding: 5.6px 8.4px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--c-heading);
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus-visible { color: var(--c-link); }
.menu-toggle .icon-close { display: none; }
.menu-open body { overflow: hidden; } /* no page scrolling behind the open drawer */

.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav a { text-decoration: none; }
/* Phone and tablet: the nav is a drawer that slides in from the right (site.js toggles aria-expanded). */
@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    inset: 0 0 0 10%;
    z-index: 110;
    padding: 52px 24px 24px;
    background: var(--c-drawer);
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / 50%); /* dims the page behind the drawer */
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .menu-toggle[aria-expanded="true"] { position: fixed; top: 0; right: 24px; z-index: 120; padding: 14px 4px; color: var(--c-white); }
  .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .menu-toggle[aria-expanded="true"] + .site-nav { visibility: visible; opacity: 1; }
  .site-nav li { border-bottom: 1px solid rgb(255 255 255 / 10%); }
  .site-nav a { display: block; padding: 20px 0 21px 10px; font-size: 20px; line-height: 1.9; color: var(--c-soft); }
  .site-nav a:hover { color: #4386fc; }
  .site-nav a[aria-current="page"] { color: var(--c-subtle); }
}
/* Without JavaScript the drawer cannot open, so show the links under the bar instead. */
@media (max-width: 1024px) and (scripting: none) {
  .site-header { position: relative; background: var(--c-white); }
  .menu-toggle { display: none; }
  .site-header__bar { flex-wrap: wrap; }
  .site-nav { position: static; visibility: visible; opacity: 1; padding: 0 0 16px; background: none; box-shadow: none; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .site-nav li { margin: 0; border: 0; }
  .site-nav a { padding: 4px 0; font: 500 16px/1.9 var(--f-ui); color: var(--c-navy); }
}
@media (min-width: 1025px) {
  .menu-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; }
  .site-nav a {
    display: block;
    padding: 16.64px 12px;
    font: 500 16px/1.9 var(--f-ui);
    letter-spacing: 0.03em;
    color: var(--c-navy);
  }
  .site-nav a:hover { color: var(--c-primary-hover); }
  .site-nav a[aria-current="page"] { color: var(--c-primary); }
  .site-nav .site-nav__cta { margin-left: 20px; }
  .site-nav .site-nav__cta a {
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--c-primary);
    color: var(--c-white);
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .site-nav .site-nav__cta a:hover { background: var(--c-primary-hover); box-shadow: var(--shadow-hover); }
}

/* Site footer */
.site-footer { background: var(--c-heading); color: var(--c-subtle); }
.site-footer__top {
  display: grid;
  gap: 20px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 60px var(--gutter) 30px;
}
.site-footer__about h2 { margin-bottom: 10px; font: 500 20px/1.5 var(--f-footer); color: var(--c-white); }
.site-footer__about p { margin: 16px 0; }
.footer-nav { margin-top: 20px; } /* WordPress kept an empty middle column here */
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: block; padding: 4.8px 9.6px; color: var(--c-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--c-link); }
.footer-nav a[aria-current="page"] { color: var(--c-white); }
.site-footer__bottom {
  display: grid;
  max-width: calc(var(--container) - 2 * var(--gutter));
  padding: 20px var(--gutter) 30px;
  border-top: 1px solid var(--c-subtle);
  font-size: 13px;
  line-height: 1.9;
}
.site-footer__bottom p { margin: 13.5px 0; } /* 52px row, as before */
.site-footer__bottom .social { margin: 0; }
.social { display: flex; gap: 4.8px; }
.social span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; background: var(--c-subtle); color: var(--c-heading); }
@media (min-width: 768px) {
  .footer-nav ul { justify-content: flex-start; }
  .site-footer__bottom { grid-template-columns: 2fr 1fr; margin-inline: var(--gutter); }
  .social { justify-content: flex-end; }
}
@media (min-width: 1025px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; padding-top: 110px; padding-bottom: 60px; }
  .footer-nav { grid-column: 3; margin-top: 0; }
  .footer-nav ul { justify-content: center; }
  .site-footer__bottom { grid-template-columns: 1fr 1fr; gap: 30px; margin-inline: auto; padding-top: 30px; }
}

/* 5. Components ------------------------------------------------------------ */

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 8px 16px; background: var(--c-white); }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.button {
  display: inline-block;
  padding: 17px 40px;
  border-radius: 5px;
  background: var(--c-primary);
  color: var(--c-white);
  font: 700 18px/1.6 var(--f-body);
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
}
.button:hover, .button:focus-visible { background: var(--c-primary-hover); color: var(--c-white); box-shadow: var(--shadow-hover); }
.button--large { padding: 18px 60px; border-radius: 3px; }

/* Hero banner with a soft gradient photo behind the page title */
.hero { background: var(--c-border) url("../uploads/2020/11/page_bg_03.jpg") 100% 100% / cover no-repeat; border-radius: var(--radius); }
.eyebrow { margin-bottom: 20px; font-size: 17px; line-height: 1; color: var(--c-primary); }
.hero h1 { margin-bottom: 20px; color: var(--c-navy); }
.hero__lead { margin-bottom: 40px; color: var(--c-lead); }

/* Post cards */
.cards { display: grid; gap: 40px; max-width: var(--container); margin: 48px auto 10px; padding: 0 10px; list-style: none; }
.card { height: 100%; overflow: hidden; border-radius: 4px; background: var(--c-white); box-shadow: var(--shadow-card); }
.card__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 24px; }
.card__category { margin: 0 0 11.2px; font-size: 11.2px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.card__category a { color: var(--c-link); text-decoration: none; }
.card__title { font-size: clamp(1.75rem, 1.576rem + 0.543vw, 2rem); line-height: 42px; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover, .card__category a:hover { color: var(--c-primary-hover); }
.card__excerpt { margin: 16px 0; }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card__body { padding: 32px; }
  .card__category { margin-bottom: 0.5em; }
}
@media (min-width: 1025px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Call to action band */
.band { background: var(--c-soft); }
.band--spaced { margin-bottom: 32px; }
.cta { max-width: var(--container); margin: 0 auto; padding: 60px 30px; text-align: center; }
.cta h2 { margin-bottom: 52px; font-size: 38px; line-height: 1.3; letter-spacing: -1px; }
.cta p { margin: 0; }
.cta .button { margin-top: 24px; }
@media (min-width: 768px) {
  .cta { padding: 100px 110px; }
  .cta h2 { font-size: 50px; }
  .cta .button { margin-top: 32px; }
}
@media (min-width: 1025px) {
  .cta { padding: 130px 10px; }
  .cta h2 { font-size: 48px; }
  .cta p { margin-bottom: 50px; }
  .cta .button { margin-top: 0; }
}

/* Testimonial: photo with the quote card overlapping its right edge */
.testimonial { display: grid; max-width: var(--container); margin: 87px auto 106px; padding: 0 10px; text-align: left; }
.testimonial__photo { display: none; background: center / cover no-repeat; border-radius: 6px; }
.testimonial--jonas .testimonial__photo { background-image: url("../uploads/2024/09/br-jonas.jpg"); }
.testimonial__card { max-width: 500px; padding: 60px; border-radius: 6px; background: var(--c-soft); }
.testimonial blockquote { margin: 0; font-size: 21px; line-height: 1.5; color: var(--c-heading); }
.testimonial figcaption { margin: 9px 0 0; font-size: 16px; line-height: 24px; color: var(--c-text); text-align: left; }
.testimonial figcaption span { display: block; font-size: 14px; line-height: 14px; }
@media (min-width: 768px) {
  /* Three tracks: photo only | overlap | card only */
  .testimonial { grid-template-columns: 354fr 28fr 273fr; margin: 137px auto 136px; padding: 0 20px 0 93px; }
  .testimonial__photo { display: block; grid-area: 1 / 1 / 2 / 3; }
  .testimonial__card { grid-area: 1 / 2 / 2 / 4; margin-top: 10px; }
}
@media (min-width: 1025px) {
  .testimonial { grid-template-columns: 536fr 100fr 354.85fr; padding: 0 134px 0 155px; } /* fractional track keeps the quote wrapping as before */
  .testimonial__card { margin-bottom: 30px; }
}

/* Content blocks used inside case studies */
.spacer { height: 45px; }
.align-center { text-align: center; }
.align-center img { display: inline-block; vertical-align: top; }
.img-590 { width: 590px; }
.logo-band { width: 100%; height: 120px; object-fit: cover; }
.h-120 { width: auto; height: 120px; }
.h-160 { width: auto; height: 160px; }
.h-200 { width: auto; height: 200px; }
.video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery figure { position: relative; display: flex; flex: 1 0 calc(50% - 4px); margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 13px;
  background: linear-gradient(0deg, rgb(0 0 0 / 40%), transparent);
  color: var(--c-white);
  font-size: 13px;
  line-height: 1.9;
}
.post-body h4 { margin: 33px 0 11px; }
/* Two videos per row from 768px (GIZ case study) */
.video-row { display: grid; gap: 32px; padding-bottom: 24px; }
.video-row + p { margin-top: 32px; } /* spacing kept from the old layout */
@media (min-width: 768px) {
  .video-row { grid-template-columns: 1fr 1fr; }
}
/* A row of partner logos, four across from 768px */
.logo-row { display: grid; gap: 32px; padding-block: 24px; text-align: center; }
@media (min-width: 768px) {
  .logo-row { grid-template-columns: repeat(4, 1fr); }
}
.padded { padding-block: 24px; }
.flush { margin-bottom: 0; }

/* 6. Pages ----------------------------------------------------------------- */

/* Home hero */
.hero--home { padding: 80px 20px 30px; text-align: center; }
.hero--home .hero__inner { display: grid; align-content: end; min-height: 600px; }
.hero--home .hero__text { margin-top: 120px; }
.hero--home h1 { font-size: 45px; }
.hero--home .hero__image { display: none; }
.button--hero { padding: 17px 40px; }
@media (min-width: 768px) {
  .hero--home { padding: 150px 30px 60px; }
  .hero--home .hero__text { margin-top: 0; padding-inline: 60px; }
  .hero--home h1 { font-size: 80px; }
}
@media (min-width: 1025px) {
  .hero--home { margin: 20px 20px 0; padding: 80px 0 0; text-align: left; }
  .hero--home .hero__inner {
    grid-template-columns: 48.5fr 51.5fr;
    align-items: end;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
  }
  .hero--home .hero__text { padding: 0 0 60px 10px; }
  .hero--home h1 { font-size: 72px; }
  .hero--home .hero__image { display: block; width: 100%; aspect-ratio: 100 / 92; object-fit: cover; }
}

/* Home: three service boxes */
.services { display: grid; max-width: var(--container); margin: 30px auto; padding: 0 20px; list-style: none; text-align: center; }
.services li { padding: 16px; background: var(--c-white); }
.services li:first-child { margin-bottom: 30px; } /* only the first box had a gap below it on phones */
.services li:hover { background: var(--c-soft); }
.services img { width: 90px; margin: 0 auto 19.4px; }
.services h5 { margin-bottom: 10px; }
.services p { margin: 0; font: 400 14px/1.4 var(--f-card); color: var(--c-muted); }
@media (min-width: 768px) {
  .services { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; padding: 0 10px; }
  .services li:first-child { margin-bottom: 0; }
}
@media (min-width: 1025px) {
  .services { margin: 20px auto 0; padding: 0 var(--gutter); }
}

/* Home: partner logos */
.partners { max-width: var(--container); margin: 0 auto; padding: 46px 30px 0; text-align: center; }
.accent-rule { width: 8%; height: 1px; margin: 0 auto 73px; border-top: 3px solid var(--c-primary); }
.partners h3 { margin-bottom: 35px; font-size: 30px; }
.partners__intro { margin: 0; padding-inline: 30px; }
.partners > hr:last-child { margin-inline: -20px; }
.logo-strip { overflow-x: auto; scrollbar-width: none; margin-bottom: 35px; }
/* Start with the first logo (KFW) centred, as the old carousel did: logos moved before it with
   `order` are the ones that fit on its left, and the row is shifted left by their width. */
.logo-strip ul { --before: 1; display: flex; gap: 70px; margin: 0 0 0 calc(50% - 60px - var(--before) * 190px); padding: 0; list-style: none; }
.logo-strip li { flex: none; }
.logo-strip li:nth-child(8) { order: -1; }
.logo-strip img { width: 120px; height: 120px; object-fit: cover; }
@media (min-width: 768px) {
  .partners { padding: 66px 20px 0; }
  .partners > hr:last-child { margin-inline: -10px; }
  .logo-strip { margin-bottom: 45px; }
  .logo-strip ul { --before: 2; }
  .logo-strip li:nth-child(7) { order: -2; }
}
@media (min-width: 1025px) {
  .partners__intro { padding-inline: 285px; }
  .logo-strip { margin-bottom: 44px; }
  .logo-strip ul { --before: 3; }
  .logo-strip li:nth-child(6) { order: -3; }
}

/* Two columns: text, then a video (side by side on desktop) */
.split { display: grid; max-width: var(--container); margin: 44px auto 0; padding: 0 20px; }
.split > * { padding: 10px; }
.split > div > :last-child { margin-bottom: 0; }
.split h2 { margin-bottom: 20px; }
@media (min-width: 1025px) {
  .split { grid-template-columns: 1fr 2fr; align-items: center; margin-top: 105px; padding-inline: var(--gutter); }
}

/* Full-width hairline between home sections */
.rule { max-width: 1240px; margin: 24px max(20px, 50% - 620px) 0; }

/* About: hero, founder's vision, story, photo strip, challenge */
.hero--about { min-height: 374px; padding: 140px 40px 130px; background-color: #d8dee3; background-image: url("../uploads/2020/11/top_bg_003.jpg"); background-position: 47% 100%; }
.hero--about .eyebrow { margin-bottom: 30px; }
.hero--about h1 { margin-bottom: 12px; font-size: 45px; color: var(--c-heading); }
.vision { display: grid; max-width: 1140px; margin: -120px auto 0; }
.vision__photo { padding: 0 30px; border: 6px solid var(--c-white); border-radius: 9px; }
.vision__photo img { width: 100%; aspect-ratio: 100 / 126; object-fit: cover; border-radius: 5px; }
.vision__card { margin: 0 20px; padding: 30px 20px; border-radius: 9px; background: var(--c-white); }
.vision__card h3 { margin-bottom: 32px; line-height: 1.5; }
.vision__quote { font-size: clamp(1.1rem, 0.995rem + 0.326vw, 1.25rem); }
.vision__card p:last-child { margin: 0; }
.story { display: grid; max-width: 1140px; margin: 30px auto 0; padding: 0 40px; }
.story > :first-child { padding-top: 60px; }
.story > :last-child { padding-top: 30px; }
.story h2 { margin-bottom: 42.5px; font-size: 35px; line-height: 1.3; }
.story > * > :last-child { margin-bottom: 0; }
.story h3 { margin: 39px 0 13px; } /* 1.5em above, 0.5em below */
.story h3:first-child { margin: 0 0 33px; }
.photo-strip { padding: 40px 40px 110px; }
.photo-strip ul { --per-view: 1; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.photo-strip li { flex: none; width: calc((100% - (var(--per-view) - 1) * 20px) / var(--per-view)); scroll-snap-align: start; }
.photo-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.challenge { display: grid; max-width: 1140px; margin: 0 auto; padding: 60px 40px 30px; }
.challenge__title { margin-bottom: 40px; font-size: 40px; line-height: 1.3; }
.challenge > :first-child > :last-child { margin-bottom: 0; }
.facts { padding: 20px 0; }
.facts section { margin-bottom: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--c-border); }
.facts section:last-child { border-bottom: 0; }
.facts h3 { margin-bottom: 20px; }
.facts p { margin: 0; color: #555; }
@media (min-width: 768px) {
  .hero--about { min-height: 519px; padding: 220px 50px 160px; }
  .hero--about h1 { font-size: 80px; }
  .vision { margin-top: -150px; padding: 0 100px; }
  .vision__photo { padding: 0 0 0 30px; }
  .vision__card { padding: 40px; }
  .story { grid-template-columns: 1fr 1fr; margin-top: 60px; padding: 30px 100px 0; }
  .story > * { padding: 30px; }
  .story > :first-child, .story > :last-child { padding-top: 30px; }
  .story h2 { padding-right: 30px; font-size: 45px; }
  .photo-strip { padding: 30px 100px 60px; }
  .photo-strip ul { --per-view: 2; }
  .challenge { grid-template-columns: 1fr 1fr; margin-bottom: 30px; padding: 30px 100px; }
  .challenge > :first-child { padding: 20px 50px 20px 20px; }
  .facts { padding: 20px; }
}
@media (min-width: 1025px) {
  .hero--about { min-height: 394px; margin: 10px 20px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: end; max-width: none; }
  .hero--about .hero__text { grid-column: 2; width: min(100%, 570px); padding: 30px 30px 30px 60px; }
  .hero--about h1 { font-size: 65px; }
  .vision { grid-template-columns: 1fr 1fr; align-items: start; margin-top: 0; padding: 0; }
  .vision__photo { margin-top: -220px; padding: 0; }
  .vision__card { margin: 30px 30px 0 20px; }
  .story { margin-top: 60px; padding: 60px 0; }
  .story > *, .story > :first-child, .story > :last-child { padding: 40px; }
  .story h2 { padding-right: 90px; }
  .photo-strip { padding: 30px 0 60px; }
  .photo-strip ul { --per-view: 3; }
  .challenge { padding: 60px 0; }
}

/* Our approach: hero, three steps, testimonial */
.hero--banner { padding: 120px 10px 30px; text-align: center; background-color: #eaf0f4; background-image: url("../uploads/2020/11/bg_02_02_n.jpg"); background-position: center; }
.hero--banner .eyebrow { font: 400 17px/1.9 var(--f-card); }
.hero--banner h1 { margin-bottom: 40px; font-size: 45px; color: var(--c-heading); }
.hero--banner .hero__lead { margin-bottom: 30px; color: #60656a; }
.step { display: grid; align-items: center; max-width: var(--container); margin: 60px auto; padding: 0 20px; }
.step > * { padding: 10px; }
.step > .step__label { padding: 26px; text-align: center; }
.step__label img { width: 100px; margin: 0 auto 19.4px; }
.step__label h2 { margin-bottom: 10px; }
.step__body h3 { margin-bottom: 13px; }
.step__body p + h3 { margin-top: 39px; }
.step__body > :last-child { margin-bottom: 0; }
.step-rule { width: 70%; height: 10px; margin: 0 auto; border: 0; background: linear-gradient(var(--c-border), var(--c-border)) center / 100% 1px no-repeat; } /* hairline centred in 10px */
.testimonial--zeddy { margin: 120px auto 111px; padding: 0 2.5%; }
.testimonial--zeddy .testimonial__photo { display: block; min-height: 250px; background-image: url("../uploads/2024/11/Z1011.jpg"); background-position: 39% 9%; }
.testimonial--zeddy .testimonial__card { max-width: none; margin-top: 10px; }
@media (min-width: 768px) {
  .hero--banner { padding: 150px 60px 60px; }
  .hero--banner h1 { margin-bottom: 32.5px; padding: 20px 0 30px; font-size: 80px; }
  .hero--banner .hero__lead { margin: 0 90px; }
  .step { padding: 0 100px; }
  .step--first { padding: 0 60px; }
  .step > .step__label { text-align: left; }
  .step__label img { margin-left: 15px; }
  .testimonial--zeddy { grid-template-columns: 364fr 28fr 281fr; margin: 90px auto 110px; padding: 0 10px 0 85px; }
  .testimonial--zeddy .testimonial__photo { min-height: 400px; }
  .testimonial--zeddy .testimonial__card { align-self: center; }
}
@media (min-width: 1025px) {
  .hero--banner { margin: 10px 20px 0; padding: 150px 0 60px; text-align: left; background-attachment: fixed; }
  .hero--banner .hero__text { max-width: 1140px; margin: 0 auto; padding-left: 10px; }
  .hero--banner h1 { margin-bottom: 32.5px; padding: 0; font-size: 65px; }
  .hero--banner .hero__lead { margin: 0; }
  .step, .step--first { grid-template-columns: 2fr 3fr; margin: 90px auto 0; padding: 0 70px; }
  .step > .step__label { text-align: center; }
  .step__label img { margin-left: auto; }
  .testimonial--zeddy { grid-template-columns: 498fr 100fr 328fr; max-width: 1140px; padding: 0 100px 0 114px; }
  .testimonial--zeddy .testimonial__card { margin-bottom: 30px; }
}

/* Ed-Tech tools: one section per product */
.product__head { display: grid; max-width: var(--container); margin: 60px auto; padding: 0 20px; align-items: center; }
.product__head > div { padding: 10px; }
.product__head > div > :last-child { margin-bottom: 0; }
.product__head h2 { margin-bottom: 20px; }
.product__logo { width: 160px; margin: 50px auto 0; }
.product__logo--wide { width: 240px; }
.product__video { max-width: var(--container); margin: 60px auto; padding: 10px 30px; }
.audiences { display: grid; gap: 32px; max-width: var(--container); margin: 0 auto; padding: 24px; list-style: none; }
.audiences li { padding: 16px; background: var(--c-soft); color: #444; }
.audiences svg { margin: 10px 25px 24.4px; }
.audiences h3 { margin-bottom: 10px; }
.audiences p { margin: 0; color: var(--c-muted); }
.product__cta { max-width: var(--container); margin: 0 auto; padding: 24px 24px 48px; text-align: center; }
.product__cta .button { max-width: 100%; padding: 18px 60px; border-radius: 3px; letter-spacing: 0; }
.product--training .product__cta { margin-bottom: 90px; padding: 48px 24px 24px; }
@media (min-width: 768px) {
  .product__head { grid-template-columns: 7fr 3fr; padding: 0 100px; }
  .product__logo { max-width: calc(100% - 20px); }
  .product__video { padding-inline: 70px; }
  .audiences { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .hero--wide { margin-inline: 0; }
  .product__head { margin: 0 auto; padding: 0 24px 0 64px; }
  .product--training .product__head { padding: 50px 24px 0; }
  .product__video { margin: 20px auto 0; padding-inline: 80px; }
}

/* Get in touch */
.hero--contact { padding: 134px 30px 30px; background-color: #d8dee3; background-position: center; }
.hero--contact h1 { margin-bottom: 22.5px; font-size: 45px; color: var(--c-heading); }
.hero--contact .hero__lead { margin: 0; color: #60656a; }
.contact { display: grid; gap: 32px; max-width: 1140px; margin: 0 auto; padding: 20px 0 33px; }
.contact__logo { width: 223px; margin: 8px 32px 30px 0; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 20px; padding: 16px; background: var(--c-white); }
.contact-list svg { flex: none; box-sizing: content-box; padding: 20px; color: #444; }
.contact-list h4 { margin: 5px 0 10px; }
.contact-list p { margin: 0; font-size: clamp(0.8rem, 0.73rem + 0.217vw, 0.9rem); color: var(--c-muted); }
.contact__other > p { margin-bottom: 32px; text-align: center; }
.contact-card { padding: 16px; background: var(--c-soft); text-align: center; }
.contact-card img { width: 100px; margin: 10px auto 19.4px; }
.contact-card .contact-card__wide { width: 120px; }
.contact-card p { margin: 0; color: var(--c-muted); }
.contact__rule { width: 70%; margin: 15px auto 14px; }
@media (min-width: 768px) {
  .hero--contact { padding: 150px 30px 30px; }
  .hero--contact h1 { font-size: 65px; }
  .contact { grid-template-columns: 439fr 269fr; gap: 30px; padding: 52px 0 37px 30px; }
  .contact__logo { margin-top: 6px; }
}
@media (min-width: 1025px) {
  .hero--contact { margin: 10px 20px 0; padding: 150px 0 60px; }
  .hero--contact .hero__text { max-width: 1140px; margin: 0 auto; padding: 0 30px 0 10px; }
  .contact { grid-template-columns: 730fr 380fr; padding: 60px 0 160px; }
  .contact__logo { margin-top: 8px; margin-bottom: 24px; }
  .contact-list { margin: 0 5px; }
}

/* Project case studies: hero, cards with "Read more", contained call to action */
.hero--cases { padding: 160px 10px 120px; text-align: center; background-color: #d8dee3; background-position: center; }
.hero--cases .eyebrow { font: 400 17px/1.9 var(--f-card); }
.hero--cases h1 { margin-bottom: 40px; font-size: 45px; color: var(--c-heading); }
.hero--cases .hero__lead { margin: 0; color: #60656a; }
.cards--cases { margin-top: 30px; }
.cards--cases .card__title { font-size: 30px; line-height: 50px; }
.card__more { margin: 0; }
.card__more a { font-size: 12.8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-text); text-decoration: none; }
.card__more a:hover { color: var(--c-link); }
.cases-rule { margin: 69.5px 20px 0; }
.band--contained { max-width: 1260px; margin: 110.5px 10px 70px; }
@media (min-width: 768px) {
  .hero--cases { padding: 200px 60px 90px; }
  .hero--cases h1 { margin-bottom: 22.5px; font-size: 80px; }
  .cards--cases { margin-top: 20px; padding: 0 30px; }
  .cases-rule { margin: 39.5px 100px 0; }
  .band--contained { margin: 80.5px 40px 70px; }
}
@media (min-width: 1025px) {
  .hero--cases { margin: 10px 20px 0; padding: 150px 0 60px; text-align: left; }
  .hero--cases .hero__text { max-width: 1140px; margin: 0 auto; padding: 0 410px 0 10px; } /* text uses the left two thirds */
  .hero--cases h1 { font-size: 65px; }
  .cards--cases { margin-top: 40px; padding: 0 10px; }
  .cases-rule { max-width: 1140px; margin: 49.5px auto 0; }
  .band--contained { margin-inline: auto; }
}

/* Category archive and 404 (white header, grey page) */
.archive-title { display: grid; place-items: center; min-height: 150px; padding: 0 var(--gutter); background: var(--c-soft); text-align: center; }
.archive-title h1 { color: var(--c-heading); }
.cards--archive { gap: 40px; max-width: var(--container); margin: 32px auto; padding: 0 var(--gutter); }
.card--archive .card__title { font-size: 30px; line-height: 1.3; }
.card__meta { margin: 12.8px 0 16px; font-size: 12.8px; line-height: 25px; } /* the height of the old author avatar row */
.card__meta a { color: inherit; text-decoration: none; }
.card__meta svg { display: inline-block; margin: 0 2px 0 8px; vertical-align: -1px; }
.not-found { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 32px 8px; padding: 24px; border-radius: 4px; background: var(--c-white); box-shadow: 0 15px 25px -10px rgb(0 0 0 / 5%); }
.not-found h1 { margin-bottom: 40px; }
.not-found p { margin: 16px 0; }
.not-found p:last-child { margin-bottom: 0; }
.button--small { padding: 8px 20px; font-size: 16px; line-height: 1.8; letter-spacing: 0; }
@media (min-width: 768px) {
  .cards--archive { margin-block: 48px; }
  .not-found { margin: 48px var(--gutter); padding: 32px; }
}
@media (min-width: 1025px) {
  .cards--archive { grid-template-columns: repeat(2, 1fr); margin-block: 80px; }
  .not-found { margin: 80px auto; }
}

/* Case study (post) pages */
.main--soft { background: var(--c-soft); }
.post-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 361px; /* 111px under the overlaid header + 250px */
  padding: 111px var(--gutter) 0;
  text-align: center;
  color: var(--c-navy);
}
.post-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.post-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / 80%); }
.post-hero h1 { font-size: 30px; line-height: 1.25; color: var(--c-navy); text-transform: capitalize; }
.post-hero p { margin: 15px 0; font-size: 15px; }
.post-body {
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 32px 8px 0;
  padding: 24px;
  border-radius: 4px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}
.post-body > :last-child:not(p) { margin-bottom: 0; } /* a closing paragraph keeps its 32px margin, as before */
.post-body > figure { margin-bottom: 32px; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 40px var(--gutter);
  padding-bottom: 0;
}
.post-nav a { display: block; color: var(--c-text); text-decoration: none; }
.post-nav a:hover { color: var(--c-link); }
.post-nav small { display: block; margin: 4px 0 10px; font-size: 12.8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.post-nav__prev { position: relative; grid-column: 1; padding-right: 16px; }
.post-nav__prev::after { content: ""; position: absolute; top: 25%; right: 0; width: 1px; height: 50%; background: #a0aec0; }
.post-nav__next { grid-column: 2; padding-left: 16px; text-align: right; }
@media (min-width: 768px) {
  .post-hero h1 { font-size: 60px; }
  .post-body { margin: 48px var(--gutter) 0; padding: 32px; }
  .post-nav { margin-bottom: 48px; }
}
@media (min-width: 1025px) {
  .post-hero { min-height: 511px; }
  .post-hero h1 { font-size: 70px; }
  .post-body { margin: 80px auto 0; }
  .post-nav { margin: 40px auto 80px; }
}

/* 7. Utilities ------------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------------------
   Videos. A .video-play link shows the video's thumbnail and a play button.
   site.js opens the video in a .video-modal dialog on this page; without
   JavaScript the link opens YouTube in a new tab.
   --------------------------------------------------------------------------- */
.video-play { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
/* YouTube-style play button: a dark pill that turns red on hover, with a white triangle. */
.video-play::before { content: ""; position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgb(33 33 33 / 80%); transition: background-color 0.2s; }
.video-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff; }
.video-play:hover::before, .video-play:focus-visible::before { background: #f00; }
.video-play__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.video-modal { width: min(960px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; overflow: visible; background: transparent; }
.video-modal::backdrop { background: rgb(0 0 0 / 85%); }
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { display: block; width: 100%; height: 100%; max-width: none; border: 0; }
.video-modal__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #111; font: 400 28px/40px sans-serif; text-align: center; cursor: pointer; }
.video-modal__close:hover, .video-modal__close:focus-visible { background: #e6e6e6; }
html:has(.video-modal[open]) { overflow: hidden; }
/* Shown in the video dialog instead of the player when a page is opened from disk (see site.js). */
.video-modal__note { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; height: 100%; padding: 24px; color: #fff; font-size: 16px; text-align: center; }
.video-modal__note[hidden] { display: none; }
.video-modal__note p { margin: 0; max-width: 32em; }
.video-modal__youtube { padding: 12px 24px; border-radius: 6px; background: #f00; color: #fff; font-weight: 600; text-decoration: none; }
.video-modal__youtube:hover, .video-modal__youtube:focus-visible { background: #c00; color: #fff; }
.video-modal__frame iframe[hidden] { display: none; }
