/*
Theme Name: Kitaworkshub
Theme URI: https://kitaworkshub.com
Author: Kitaworkshub Sdn Bhd
Description: Block theme for Kitaworkshub, project management training and consulting in Malaysia.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: kitaworkshub
*/

:root { --kwh-radius: 14px; --kwh-shadow: 0 10px 30px rgba(5,50,37,.08); }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
body { overflow-x: hidden; }

/* Header */
.kwh-header { position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--white); border-bottom: 1px solid var(--wp--preset--color--line); }
.kwh-header .wp-block-navigation a { font-weight: 500; }
.kwh-btn-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--leaf-700); border: 2px solid var(--wp--preset--color--leaf-700); }
.kwh-logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--wp--preset--color--leaf-900); text-decoration: none; }
@media (max-width: 781px) { .kwh-header .wp-block-buttons { display: none; } }

/* Cards and badges */
.kwh-card { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: var(--kwh-radius); box-shadow: var(--kwh-shadow); }
.kwh-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--wp--preset--color--leaf-50); color: var(--wp--preset--color--leaf-900); font-weight: 600; font-size: .85rem; }
.kwh-placeholder { background: repeating-linear-gradient(135deg, var(--wp--preset--color--leaf-50) 0 12px, #fff 12px 24px); display: grid; place-items: center; color: var(--wp--preset--color--leaf-700); font-weight: 600; border-radius: var(--kwh-radius); min-height: 280px; padding: 1rem; text-align: center; }

/* Long words and titles never force sideways scroll */
h1, h2, h3, .wp-block-post-title { overflow-wrap: anywhere; text-wrap: balance; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Programmes, trainers, classes */
.kwh-crumbs a { font-size: .9rem; color: var(--wp--preset--color--muted); }
.kwh-prog__facts, .kwh-prog__ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }
.kwh-badge--hrd { background: var(--wp--preset--color--leaf-700); color: #fff; }
.kwh-badge--plain { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--ink); font-weight: 500; }
.kwh-badge--full { background: #fbe9e7; color: #8a2a17; }
.kwh-btn-ghost { background: transparent !important; color: var(--wp--preset--color--leaf-700) !important; border: 2px solid currentColor; }
.kwh-sec { margin-block: 2.5rem; }
.kwh-roles, .kwh-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.kwh-role { padding: 1rem 1.2rem; font-weight: 600; }
.kwh-person { display: grid; gap: .3rem; padding: 1rem; text-decoration: none; color: inherit; justify-items: start; }
.kwh-person span { color: var(--wp--preset--color--muted); font-size: .9rem; }
.kwh-initials { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--leaf-50); color: var(--wp--preset--color--leaf-700); font-weight: 700; font-size: 1.25rem; }
.kwh-trainer .kwh-initials { width: 120px; height: 120px; font-size: 2rem; }
.kwh-avatar { border-radius: 50%; width: 64px; height: 64px; object-fit: cover; }
.kwh-ticks { list-style: none; padding: 0; display: grid; gap: .6rem; }
.kwh-ticks li::before { content: "\2713"; color: var(--wp--preset--color--leaf-500); font-weight: 700; margin-right: .6rem; }
.kwh-outline li { margin-block: .4rem; }
.kwh-classes { list-style: none; padding: 0; display: grid; gap: .8rem; }
.kwh-class { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--kwh-radius); background: #fff; }
.kwh-class__when span { display: block; color: var(--wp--preset--color--muted); font-size: .9rem; }
.kwh-class__prog { grid-column: 1 / -1; font-weight: 600; }
@media (min-width: 700px) { .kwh-class { grid-template-columns: 1.2fr 1.5fr auto auto; } .kwh-class__prog { grid-column: auto; } }
.kwh-faq { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: .9rem; }
.kwh-faq summary { cursor: pointer; font-weight: 600; }
.kwh-band { background: var(--wp--preset--color--leaf-900); color: #fff; padding: 2rem; border-radius: var(--kwh-radius); }
.kwh-band h2 { color: #fff; margin-top: 0; }
.kwh-band .wp-element-button { background: #fff; color: var(--wp--preset--color--leaf-900); }
.kwh-empty { padding: 1rem 1.2rem; background: var(--wp--preset--color--sand); border-radius: var(--kwh-radius); }
.kwh-tile { height: 100%; }
.kwh-tile__topic a { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--leaf-700); text-decoration: none; }
.kwh-topics a { display: inline-block; padding: .35rem .9rem; margin: .2rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; text-decoration: none; font-size: .95rem !important; }

/* Pages */
.kwh-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.kwh-hero .kwh-badge { background: rgba(255,255,255,.12); color: #fff; }
.kwh-btn-on-dark .wp-block-button__link { color: #fff; border-color: #fff; }
.kwh-path { padding: 1.8rem; }
.kwh-quote { padding: 1.4rem; }
.kwh-tri { padding: 1.4rem; border-top: 6px solid; }
.kwh-tri--wow { border-top-color: #1aa3e0; }
.kwh-tri--ps { border-top-color: #f26b1d; }
.kwh-tri--ba { border-top-color: #6b2fd6; }
.kwh-tri-intro { margin-bottom: 1.5rem; }
.kwh-tri-graphic { margin: 0 auto; max-width: 360px; }
.kwh-tri-graphic img { width: 100%; height: auto; }
.kwh-tri__img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto 1rem; }
.kwh-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.kwh-logos span { border: 1px dashed var(--wp--preset--color--line); border-radius: 10px; padding: 1.4rem; text-align: center; color: var(--wp--preset--color--muted); }
.kwh-steps, .kwh-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.kwh-services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kwh-step, .kwh-service { padding: 1.3rem; }
.kwh-step h3, .kwh-service h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.kwh-step p, .kwh-service p { margin: 0; }
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: .9rem; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

/* Forms, newsletter, WhatsApp */
.kwh-form { display: grid; gap: .2rem; max-width: 640px; }
.kwh-field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.kwh-field--checkbox { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; }
.kwh-field.kwh-field--checkbox input { width: auto; margin-top: .3rem; }
.kwh-field--checkbox label { flex: 1; font-weight: 400; margin: 0; }
.kwh-field--checkbox a { flex-basis: 100%; padding-left: 1.6rem; }
.kwh-field input, .kwh-field select, .kwh-field textarea, .kwh-newsletter input[type=email] { width: 100%; box-sizing: border-box; padding: .75rem .9rem; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; font: inherit; background: #fff; color: var(--wp--preset--color--ink); }
.kwh-field input:focus, .kwh-field select:focus, .kwh-field textarea:focus { outline: 3px solid var(--wp--preset--color--leaf-50); border-color: var(--wp--preset--color--leaf-700); }
.kwh-form-errors { background: #fdecea; color: #7a1f12; padding: .8rem 1rem; border-radius: 10px; }
.kwh-form-done { background: var(--wp--preset--color--leaf-50); color: var(--wp--preset--color--ink); padding: 1.2rem; border-radius: var(--kwh-radius); }
.kwh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kwh-newsletter { display: flex; gap: .5rem; flex-wrap: wrap; }
.kwh-newsletter input[type=email] { flex: 1 1 180px; width: auto; }
.kwh-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Accounts */
.kwh-auth { max-width: 460px; padding: 1.8rem; margin-inline: auto; }
.kwh-auth h1 { font-size: 1.8rem; margin-top: 0; }
.kwh-auth #loginform p { margin-block: .8rem; }
.kwh-auth #loginform label { display: block; font-weight: 600; margin-bottom: .3rem; }
.kwh-auth #loginform input[type=text], .kwh-auth #loginform input[type=password] { width: 100%; box-sizing: border-box; padding: .75rem .9rem; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; }
.kwh-auth #wp-submit { background: var(--wp--preset--color--leaf-700); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.6rem; font-weight: 600; cursor: pointer; }

/* Tap targets: at least 44px for thumbs */
.wp-element-button, .wp-block-button__link, .kwh-form button, .kwh-newsletter button { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Header actions, HRD Corp marks */
.kwh-header .wp-block-navigation { font-size: .95rem; gap: 1.4rem; }
.kwh-header__actions { gap: 1rem; align-items: center; }
.kwh-login-link { margin: 0; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.kwh-login-link a { color: var(--wp--preset--color--ink); text-decoration: none; }
.kwh-header .wp-block-button__link { white-space: nowrap; padding: .6rem 1.1rem; font-size: .95rem; }
@media (max-width: 781px) { .kwh-header__actions { display: none; } }
.kwh-hrd-logo { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 3px; }
.kwh-footer-hrd, .kwh-hrd-line { display: flex; align-items: center; gap: .8rem; }
.kwh-footer-hrd img { width: 72px; height: 72px; background: #fff; border-radius: 50%; padding: 3px; }
.kwh-hrd-line img { width: 56px; height: 56px; }
/* Full-width bands sit flush against each other on the home page */
.kwh-hero + .kwh-hrd-band, .kwh-hero + * { margin-block-start: 0; }

/* Photos */
.kwh-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--kwh-radius); box-shadow: var(--kwh-shadow); display: block; }
.kwh-hero .kwh-photo img { aspect-ratio: 4 / 3; }

/* Facts band */
.kwh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.kwh-fact strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--wp--preset--color--leaf-700); letter-spacing: -0.02em; }
.kwh-fact span { color: var(--wp--preset--color--ink); }

/* Icons */
.kwh-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--wp--preset--color--leaf-50); color: var(--wp--preset--color--leaf-700); margin-bottom: .6rem; }
.kwh-tri--wow .kwh-icon { color: #1a7fb0; background: #e6f4fb; }
.kwh-tri--ps .kwh-icon { color: #c4520f; background: #fdeee4; }
.kwh-tri--ba .kwh-icon { color: #5a26b8; background: #efe8fb; }

/* Certification path */
.kwh-path-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; counter-reset: s; }
.kwh-path-steps li { padding: 1.4rem; position: relative; }
.kwh-path-steps h3 { margin: .2rem 0 .3rem; font-size: 1.15rem; }
.kwh-path-steps p { margin: 0; }
.kwh-path-steps__n { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--leaf-700); margin-bottom: .5rem; }
@media (min-width: 782px) { .kwh-path-steps li:not(:last-child)::after { content: "\2192"; position: absolute; right: -0.85rem; top: 50%; transform: translateY(-50%); color: var(--wp--preset--color--leaf-500); font-size: 1.2rem; z-index: 1; } }
/* Certification path as a rising staircase: glossy numbered badges in deepening greens. */
.kwh-path-steps--stairs { --c1: #6fc28c; --c2: #4f9d69; gap: 1.25rem 1.25rem; row-gap: 4rem; padding-top: 3rem; align-items: start; }
.kwh-path-step--2 { --c1: #4f9d69; --c2: #2f6b46; }
.kwh-path-step--3 { --c1: #2f6b46; --c2: #053225; }
.kwh-path-steps--stairs .kwh-path-step { padding: 3.4rem 1.4rem 1.4rem; border-top: 6px solid var(--c2); background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 10%, #fff) 0%, #fff 55%); }
.kwh-path-step__badge { position: absolute; top: -44px; left: 1.2rem; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: #fff; overflow: hidden;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c2) 30%, transparent); border: 3px solid var(--c2); }
.kwh-path-step__badge .kwh-illo svg { width: 70px; height: 70px; }
.kwh-path-steps--stairs .kwh-path-steps__n { color: var(--c2); }
.kwh-path-step__chip { display: inline-block; margin-top: .9rem; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #7a4a06; background: #fdf1dc; border: 1px solid #f3d29a; }
@media (min-width: 782px) {
  .kwh-path-step--1 { margin-top: 3rem; }
  .kwh-path-step--2 { margin-top: 1.5rem; }
  .kwh-path-steps--stairs .kwh-path-step:not(:last-child)::after { content: none; }
}

/* Programme catalogue */
.kwh-filters { display: grid; gap: .4rem; margin-block: 1.5rem 1.2rem; }
.kwh-filters__label { margin: .4rem 0 0; font-weight: 700; font-size: .9rem; }
.kwh-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.kwh-chip { min-height: 44px; padding: .4rem .95rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: #fff; color: var(--wp--preset--color--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.kwh-chip.is-on { background: var(--wp--preset--color--leaf-700); border-color: var(--wp--preset--color--leaf-700); color: #fff; }
.kwh-chip:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.kwh-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.kwh-pcard { overflow: hidden; display: flex; flex-direction: column; }
.kwh-pcard[hidden] { display: none; }
.kwh-pcard__img { margin: 0; }
.kwh-pcard__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.kwh-pcard__body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .4rem; }
.kwh-pcard__topic { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--wp--preset--color--leaf-700); }
.kwh-pcard__title { margin: 0; font-size: 1.15rem; }
.kwh-pcard__title a { color: var(--wp--preset--color--leaf-900); text-decoration: none; }
.kwh-pcard__title a:hover { text-decoration: underline; }
.kwh-pcard__text { margin: 0; color: var(--wp--preset--color--muted); font-size: .95rem; }
.kwh-pcard__facts { margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.kwh-prog__hero img { width: 100%; aspect-ratio: 3 / 1.4; object-fit: cover; border-radius: var(--kwh-radius); }

/* Gentle reveal: only elements below the fold are hidden, and only when JS is running */
.kwh-will-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.kwh-will-reveal.is-in { opacity: 1; transform: none; }

/* List rows for Training and Upcoming Classes (warm panels, photo alternating sides) */
.kwh-rows { display: grid; gap: 14px; }
.kwh-row { display: grid; grid-template-columns: 1fr minmax(150px, 190px); gap: 1.6rem; align-items: center; background: #f5f1eb; padding: 1.6rem 1.8rem; border-radius: 0; border: 0; box-shadow: none; }
.kwh-row[hidden] { display: none; }
.kwh-rows > .kwh-row:nth-child(even) { grid-template-columns: minmax(150px, 190px) 1fr; }
.kwh-rows > .kwh-row:nth-child(even) .kwh-pcard__img { order: -1; }
.kwh-row .kwh-pcard__body { padding: 0; gap: .35rem; }
.kwh-row .kwh-pcard__img { margin: 0; }
.kwh-row .kwh-pcard__img img { aspect-ratio: 1 / 1; border-radius: 12px; width: 100%; object-fit: cover; }
.kwh-pcard__eyebrow { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--wp--preset--color--leaf-700); }
.kwh-row .kwh-pcard__title { font-size: 1.2rem; line-height: 1.35; }
.kwh-row .kwh-pcard__title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; color: var(--wp--preset--color--ink); }
.kwh-pcard__pdus { font-weight: 400; font-size: .95rem; color: var(--wp--preset--color--ink); }
.kwh-row .kwh-pcard__text { color: var(--wp--preset--color--ink); font-size: 1rem; }
.kwh-row .kwh-pcard__facts { display: none; }
.kwh-crow__when { margin: 0; }
.kwh-crow__cta { margin: .4rem 0 0; }
@media (max-width: 640px) {
  .kwh-row, .kwh-rows > .kwh-row:nth-child(even) { grid-template-columns: 1fr; padding: 1.2rem; }
  .kwh-row .kwh-pcard__img, .kwh-rows > .kwh-row:nth-child(even) .kwh-pcard__img { order: -1; }
  .kwh-row .kwh-pcard__img img { aspect-ratio: 16 / 9; }
}
.kwh-pcard__body { position: relative; }
.kwh-pcard__hrd { float: right; margin: 0 0 .4rem 1rem; }
.kwh-hrd-mark { width: 56px; height: 56px; display: block; }
.kwh-prog__facts { align-items: center; }
.kwh-prog__facts .kwh-hrd-mark { width: 64px; height: 64px; }

/* Leadership team */
.kwh-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
.kwh-team__card { padding: 1.4rem; text-align: center; display: grid; justify-items: center; align-content: start; gap: .3rem; }
.kwh-team__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; padding: 4px; background: #fff; border: 3px solid var(--wp--preset--color--leaf-500); box-shadow: 0 6px 14px rgba(5, 50, 37, .12); }
.kwh-team__initials { width: 120px; height: 120px; font-size: 2rem; }
.kwh-team__name { margin: .6rem 0 0; font-size: 1.1rem; }
.kwh-team__role { margin: 0; font-weight: 700; color: var(--wp--preset--color--leaf-700); font-size: .9rem; }
.kwh-team__bio p { margin: .4rem 0 0; font-size: .92rem; color: var(--wp--preset--color--muted); }

/* EN | BM switch */
.kwh-lang { display: flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.kwh-lang a { color: var(--wp--preset--color--muted); text-decoration: none; padding: .55rem .3rem; min-height: 44px; display: inline-flex; align-items: center; }
.kwh-lang a:hover { color: var(--wp--preset--color--leaf-700); }
.kwh-lang__on { color: var(--wp--preset--color--leaf-700); }
.kwh-lang__sep { color: var(--wp--preset--color--line); }
@media (max-width: 781px) { .kwh-header__actions { display: flex; } .kwh-header__actions .kwh-login-link, .kwh-header__actions .wp-block-buttons { display: none; } }
/* All five leaders on one row on desktop */
/* Three across, then the last row centred (3 + 2 for five people). */
@media (min-width: 900px) { .kwh-team { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem; } .kwh-team__card { grid-column: span 2; } .kwh-team__card:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; } .kwh-team__card:nth-child(3n+1):last-child { grid-column: 3 / span 2; } }

/* Illustrations (inc/illustrations.php): zoom with a tilt on hover; the moving part of each scene animates too. */
.kwh-illo { display: inline-block; line-height: 0; margin-bottom: .6rem; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.kwh-illo svg { overflow: visible; filter: drop-shadow(0 4px 6px rgba(5, 50, 37, .12)); }
.kwh-illo__move { transform-box: fill-box; transition: transform .6s ease; }
.kwh-illo__wave { transform-origin: left center; }
.kwh-illo__grow { transform-origin: center bottom; }
.kwh-illo__needle { transform-origin: left bottom; }
.kwh-illo__spin, .kwh-illo__pop { transform-origin: center; }
.kwh-card:hover .kwh-illo, .kwh-card:focus-within .kwh-illo { transform: scale(1.12) rotate(-4deg); }
.kwh-card:hover .kwh-illo__spin, .kwh-card:focus-within .kwh-illo__spin { transform: rotate(360deg); }
.kwh-card:hover .kwh-illo__needle { transform: rotate(-70deg); }
.kwh-card:hover .kwh-illo__wave { transform: skewY(-8deg) scaleX(1.08); }
.kwh-card:hover .kwh-illo__grow { transform: scale(1.12); }
.kwh-card:hover .kwh-illo__pop { transform: translateY(-4px) scale(1.06); }
.kwh-service__meta { display: grid; grid-template-columns: auto 1fr; gap: .3rem .7rem; margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--wp--preset--color--line); font-size: .9rem; }
.kwh-service__meta dt { font-weight: 700; color: var(--wp--preset--color--leaf-700); }
.kwh-service__meta dd { margin: 0; }
/* Five services: three across, then two centred. */
@media (min-width: 900px) { .kwh-services { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kwh-services > .kwh-service { grid-column: span 2; } .kwh-services > .kwh-service:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; } .kwh-services > .kwh-service:nth-child(3n+1):last-child { grid-column: 3 / span 2; } }
/* Our Trainers cards. */
.kwh-trainer-grid .kwh-tile .wp-block-post-featured-image img { border: 3px solid var(--wp--preset--color--leaf-500); padding: 3px; background: #fff; }
.kwh-trainer-card { display: grid; gap: .45rem; font-size: .92rem; }
.kwh-trainer-card p { margin: 0; }
.kwh-trainer-card__role { font-weight: 700; color: var(--wp--preset--color--leaf-700); }
.kwh-trainer-card__exp strong { color: var(--wp--preset--color--ink); }
.kwh-trainer-card__quals { display: flex; flex-wrap: wrap; gap: .35rem; }
.kwh-trainer-card__quals .kwh-badge { margin: 0; }
.kwh-trainer-card__teaches { color: var(--wp--preset--color--muted); }
@media (min-width: 900px) { .wp-block-post-template.kwh-trainer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } .kwh-trainer-grid > li { grid-column: span 2; } .kwh-trainer-grid > li:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; } .kwh-trainer-grid > li:nth-child(3n+1):last-child { grid-column: 3 / span 2; } }
.kwh-crow__facts { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .4rem 0 .6rem; font-size: .92rem; }
.kwh-crow__facts dt { font-weight: 700; color: var(--wp--preset--color--leaf-700); }
.kwh-crow__facts dd { margin: 0; }
