/* =====================================================================
   Configure SL — public website styles
   Custom CSS, mobile-first, no framework. Brand colours are defined once as
   custom properties below; change them here to re-theme the whole site.
   ===================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy: #0F2B5B;
  --navy-800: #0B2149;
  --navy-900: #081A3A;
  --navy-950: #061229;
  --green: #1EB53A;          /* brand accent (graphics, fills) */
  --green-text: #13792A;     /* accessible green for text on white (AA) */
  --green-soft: #E6F6EA;
  --amber: #F5A623;
  --amber-soft: #FEF3DF;
  --charcoal: #1B1F2A;
  --slate: #5B6472;          /* secondary text, 5.9:1 on white */
  --slate-light: #C9D2E3;
  /* Surfaces */
  --bg: #FFFFFF;
  --bg-tint: #F5F7FA;
  --line: #DDE2EA;
  --line-strong: #C3CBD8;
  /* Type */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: 1.2rem;
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(15, 43, 91, .06), 0 1px 3px rgba(15, 43, 91, .08);
  --shadow: 0 10px 30px -12px rgba(15, 43, 91, .25);
  --shadow-lg: 0 24px 60px -20px rgba(8, 26, 58, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--amber);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65; color: var(--charcoal); background: var(--bg); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.025em; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 700; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-text); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
::selection { background: var(--green); color: #fff; }
button { font: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.muted { color: var(--slate); }
.small { font-size: var(--fs-sm); }
.mt-lg { margin-top: 2.5rem; }
.lead { font-size: var(--fs-lg); color: var(--slate); max-width: 62ch; }
.eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green-text); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); border-radius: 2px; }
.eyebrow--light { color: #7EE29A; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn { --btn-bg: var(--navy); --btn-fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.35rem; border-radius: 10px; border: 2px solid transparent; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--navy); }
.btn-primary:hover { --btn-bg: var(--navy-800); }
.btn-accent { --btn-bg: var(--amber); --btn-fg: var(--navy-950); }
.btn-accent:hover { --btn-bg: #FFB842; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); box-shadow: none; }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .7rem; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .75; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header & navigation ---------- */
/* The frosted-glass blur sits on a ::before layer, NOT on the header itself: a backdrop-filter
   (or filter/transform) on an ancestor turns it into the containing block for position:fixed
   children, which would shrink the full-screen mobile menu to the header's height. */
.site-header { position: sticky; top: 0; z-index: 100; isolation: isolate; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); pointer-events: none; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(15, 43, 91, .35); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; transition: height .25s var(--ease); }
.site-header.is-scrolled .header-inner { height: 62px; }
.site-header--many .header-inner { max-width: 1440px; }
.brand { flex: none; }
.brand img { width: auto; height: 34px; transition: height .25s var(--ease); }
.site-header.is-scrolled .brand img { height: 30px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile navigation (default) */
.primary-nav { position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 99; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 1rem var(--gutter) 2rem; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; border-top: 1px solid var(--line); }
.site-header.is-scrolled .primary-nav { top: 62px; height: calc(100vh - 62px); height: calc(100dvh - 62px); }
.primary-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header::before { background: #fff; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { border-bottom: 1px solid var(--line); }
.nav-link-row { display: flex; align-items: center; justify-content: space-between; }
.nav-link { display: block; padding: .95rem .25rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none; flex: 1; }
.nav-link.is-active { color: var(--green-text); }
.mega-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: var(--navy); border-radius: 8px; }
.mega-toggle .icon { transition: transform .3s var(--ease); }
.mega-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mega-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.mega-panel > .mega-inner { overflow: hidden; min-height: 0; padding: 0; }
.has-mega.is-open .mega-panel { grid-template-rows: 1fr; }
.mega-groups { display: grid; gap: 1rem; padding-bottom: 1rem; }
.mega-group ul { list-style: none; margin: 0; padding: 0; }
.mega-group-title { font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: .5rem 0 .3rem; font-weight: 600; }
.mega-link { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .5rem; border-radius: 10px; text-decoration: none; color: var(--charcoal); transition: background .2s; }
.mega-link:hover, .mega-link:focus-visible { background: var(--bg-tint); color: var(--charcoal); }
.mega-link strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--navy); font-weight: 600; }
.mega-link small { display: block; color: var(--slate); font-size: .8rem; line-height: 1.45; }
.mega-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft); color: var(--green-text); flex: none; }
.mega-icon .icon { width: 19px; height: 19px; }
.mega-aside { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: var(--slate-light); border-radius: var(--radius); padding: 1.1rem; margin: 0 0 1rem; }
.mega-aside p { margin: 0; }
.mega-aside--linkonly { display: none; }
.mega-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; max-height: 160px; }
.mega-empty { margin: 0; padding: .5rem; }
/* Dropdown sub-menus (simple list under a header item) */
.dropdown-heading { font-family: var(--font-head); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: .6rem .5rem .2rem; font-weight: 600; }
.dropdown-list { list-style: none; margin: 0; padding: 0 0 .5rem; }
.dropdown-link { display: flex; gap: .65rem; align-items: center; padding: .6rem .5rem; border-radius: 8px; text-decoration: none; color: var(--navy); transition: background .2s, color .2s; }
.dropdown-link.has-desc { align-items: flex-start; }
.dropdown-link:hover, .dropdown-link:focus-visible { background: var(--bg-tint); color: var(--navy); }
.dropdown-title { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.dropdown-title .icon { width: 13px; height: 13px; opacity: .6; }
.dropdown-link small { display: block; color: var(--slate); font-size: .8rem; line-height: 1.45; margin-top: .1rem; }
.dropdown-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--green-soft); color: var(--green-text); flex: none; }
.dropdown-icon .icon { width: 16px; height: 16px; }
.dropdown-icon--blank { background: none; }
.mega-aside-title { font-family: var(--font-head); color: #fff; font-weight: 600; font-size: 1rem; }
.mega-all { color: #fff; font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; }
.mega-all .icon { width: 15px; height: 15px; }
.nav-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--navy); border: 1px solid var(--line); }
.nav-cta { flex: 1; }

/* Desktop navigation. Switched off by .is-crowded (set by app.js when the header items do not
   fit on one line), in which case the hamburger menu is used at any width. */
@media (min-width: 1200px) {
  .nav-link { white-space: nowrap; }
  .site-header:not(.is-crowded) .nav-toggle { display: none; }
  .site-header:not(.is-crowded) .primary-nav { position: static; height: auto; z-index: auto; transform: none; visibility: visible; opacity: 1; padding: 0; overflow: visible; background: none; border: 0; display: flex; align-items: center; gap: 1.25rem; transition: none; }
  .site-header:not(.is-crowded) .nav-list { display: flex; align-items: center; gap: .1rem; }
  .site-header:not(.is-crowded) .nav-item { border: 0; position: static; }
  .site-header:not(.is-crowded) .nav-link { padding: .55rem .7rem; font-size: .93rem; border-radius: 8px; position: relative; }
  .site-header:not(.is-crowded) .nav-link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-header:not(.is-crowded) .nav-link:hover::after, .site-header:not(.is-crowded) .nav-link.is-active::after { transform: scaleX(1); }
  .site-header:not(.is-crowded) .nav-link:hover { color: var(--navy); }
  .site-header:not(.is-crowded) .has-mega .nav-link { padding-right: .2rem; }
  .site-header:not(.is-crowded) .mega-toggle { width: 26px; height: 32px; }
  .site-header:not(.is-crowded) .mega-toggle .icon { width: 16px; height: 16px; }
  .site-header:not(.is-crowded) .mega-panel { position: absolute; left: 0; right: 0; top: 100%; display: block; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-header:not(.is-crowded) .has-mega.is-open .mega-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s; }
  .site-header:not(.is-crowded) .mega-panel > .mega-inner { overflow: visible; padding: 1.75rem var(--gutter) 2rem; display: grid; grid-template-columns: 1fr 260px; gap: 2rem; }
  .site-header:not(.is-crowded) .mega-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; padding: 0; align-content: start; }
  .site-header:not(.is-crowded) .mega-groups--single { grid-template-columns: 1fr; }
  .site-header:not(.is-crowded) .mega-groups--1 { grid-template-columns: 1fr; }
  .site-header:not(.is-crowded) .mega-groups--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header:not(.is-crowded) .mega-groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header:not(.is-crowded) .mega-inner--nocard { grid-template-columns: 1fr !important; }
  .site-header:not(.is-crowded) .mega-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem 1rem; }
  .site-header:not(.is-crowded) .mega-aside { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: var(--slate-light); border-radius: var(--radius); padding: 1.4rem; font-size: .9rem; }
  .site-header:not(.is-crowded) .mega-aside { margin: 0; }
  .site-header:not(.is-crowded) .mega-aside p { margin: 0; }
  .site-header:not(.is-crowded) .mega-aside-title { font-family: var(--font-head); color: #fff; font-weight: 600; font-size: 1.05rem; }
  .site-header:not(.is-crowded) .mega-all { color: #fff; font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; }
  .site-header:not(.is-crowded) .mega-all:hover { color: #7EE29A; }
  .site-header:not(.is-crowded) .mega-all .icon { width: 15px; height: 15px; }
  .site-header:not(.is-crowded) .mega-aside--linkonly { display: flex; background: none; padding: .25rem 0; justify-content: flex-end; }
  .site-header:not(.is-crowded) .mega-aside--linkonly .mega-all { color: var(--navy); margin-top: 0; }
  .site-header:not(.is-crowded) .mega-aside--linkonly .mega-all:hover { color: var(--green-text); }
  .site-header:not(.is-crowded) .mega-card-img { max-height: none; }
  .site-header:not(.is-crowded) .mega-aside--image { padding: .75rem .75rem 1.25rem; }
  .site-header:not(.is-crowded) .mega-aside--image > :not(img) { margin-left: .5rem; margin-right: .5rem; }
  .site-header:not(.is-crowded) .nav-actions { margin: 0; flex: none; }
  .site-header:not(.is-crowded) .nav-search { flex: none; }
  .site-header:not(.is-crowded) .nav-list--compact .nav-link { padding-left: .5rem; padding-right: .5rem; font-size: .88rem; }
  .site-header:not(.is-crowded) .nav-list--compact .nav-link::after { left: .5rem; right: .5rem; }
  .site-header:not(.is-crowded) .nav-list--compact .has-mega .nav-link { padding-right: .15rem; }
  .site-header:not(.is-crowded) .nav-cta { flex: none; }
  .site-header:not(.is-crowded) .has-dropdown { position: relative; }
  .site-header:not(.is-crowded) .has-dropdown .dropdown-panel { left: 0; right: auto; top: calc(100% + 6px); min-width: 250px; max-width: 340px; width: max-content; border: 1px solid var(--line); border-radius: 12px; }
  .site-header:not(.is-crowded) .has-dropdown .dropdown-panel > .dropdown-inner { display: block; padding: .45rem; }
  .site-header:not(.is-crowded) .has-dropdown .dropdown-list { padding: 0; }
  .site-header:not(.is-crowded) .has-dropdown .dropdown-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .site-header:not(.is-crowded) .has-dropdown .dropdown-link small { white-space: normal; }
  .site-header:not(.is-crowded) .nav-list > .has-dropdown:nth-last-child(-n+2) .dropdown-panel { left: auto; right: 0; }
}

/* ---------- Training courses ---------- */
.section--tight-top { padding-top: 2rem; }
.course-filters { display: grid; gap: .9rem; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: 0 10px 30px -24px rgba(15, 43, 91, .45); margin-bottom: 1.75rem; }
.cf-field { display: grid; gap: .3rem; min-width: 0; }
.cf-field label { font-family: var(--font-head); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.cf-field input, .cf-field select { width: 100%; min-width: 0; }
.cf-actions { display: flex; gap: .6rem; align-items: flex-end; }
@media (min-width: 640px) { .course-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cf-field--search { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .course-filters { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); align-items: end; } .cf-field--search { grid-column: auto; } .cf-actions { grid-column: 1 / -1; } }
.course-count { color: var(--slate); margin: -.5rem 0 1rem; font-size: .92rem; }
.course-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card:focus-within { outline: 3px solid var(--green); outline-offset: 2px; }
.course-card-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #EEF3FB, #E6F6EA); overflow: hidden; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.course-card:hover .course-card-media img { transform: scale(1.03); }
.course-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--green-text); }
.course-card-placeholder .icon { width: 56px; height: 56px; opacity: .7; }
.course-sale { position: absolute; top: .75rem; left: .75rem; background: var(--green); color: #fff; font-family: var(--font-head); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 6px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
.course-card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.15rem 1.2rem 1.25rem; flex: 1; }
.course-card-title { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.course-card-title a { color: var(--navy); text-decoration: none; }
.course-card-excerpt { margin: 0; color: var(--slate); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-tags { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.course-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .22rem .6rem; border-radius: 6px; background: var(--bg-tint); color: var(--navy); border: 1px solid var(--line); }
.course-tag .icon { width: 13px; height: 13px; }
.course-tag--level { background: var(--green-soft); color: var(--green-text); border-color: #BFE7C9; }
.course-meta { font-size: .78rem; color: var(--slate); }
.course-price { margin: auto 0 0; padding-top: .5rem; display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.course-price s { color: var(--slate); font-size: .88rem; }
.course-price strong { color: var(--green-text); font-family: var(--font-head); font-size: 1.15rem; }

.course-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-950) 100%); color: #fff; padding: 2.75rem 0 3rem; }
.course-hero-inner { display: grid; gap: 1.75rem; align-items: end; }
.course-hero h1 { color: #fff; margin-bottom: .75rem; max-width: 22ch; }
.course-hero .lead { color: var(--slate-light); margin: 0 0 1.1rem; max-width: 62ch; }
.course-hero .eyebrow, .course-hero .eyebrow a { color: #7EE29A; text-decoration: none; }
.course-tags--hero .course-tag { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.course-tags--hero .course-tag--level { background: rgba(30, 181, 58, .18); border-color: rgba(126, 226, 154, .35); color: #9BF0B2; }
.course-hero-buy { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.course-hero-price { margin: 0; color: var(--slate-light); line-height: 1.3; }
.course-hero-price strong { color: #fff; font-family: var(--font-head); font-size: 1.6rem; }
.course-discount { display: inline-block; background: var(--amber); color: var(--navy-950); font-size: .72rem; font-weight: 700; padding: .12rem .45rem; border-radius: 5px; margin-left: .3rem; }
@media (min-width: 900px) { .course-hero-inner { grid-template-columns: 1fr auto; } .course-hero-buy { align-items: flex-end; text-align: right; } }

.course-layout { display: grid; gap: 2.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .course-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; } .course-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); } }
.course-media { margin-bottom: 1.75rem; }
.course-image { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }
.video-frame--native { background: #000; }
.video-frame--native video { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster--plain { background: linear-gradient(135deg, var(--navy), var(--navy-950)); }
.course-preview-label { margin: .6rem 0 0; color: var(--slate); font-size: .88rem; }
.course-description { margin-bottom: 2rem; }
.course-block { margin: 2.5rem 0; }
.course-block h2 { font-size: 1.45rem; margin-bottom: .9rem; }
.eyebrow--dark { color: var(--green-text); margin-bottom: .4rem; }
.check-grid, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem 1.5rem; }
.check-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-grid li, .check-list li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.check-grid .icon, .check-list .icon { color: var(--green-text); flex: none; width: 18px; height: 18px; margin-top: .2rem; }
.check-list--small { font-size: .9rem; gap: .5rem; }
.curriculum { display: grid; gap: .6rem; margin-top: 1rem; }
.cur-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.cur-item summary { list-style: none; display: flex; gap: .9rem; align-items: center; padding: .95rem 1.1rem; cursor: pointer; }
.cur-item summary::-webkit-details-marker { display: none; }
.cur-item summary:hover { background: var(--bg-tint); }
.cur-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-tint); border: 1px solid var(--line); font-weight: 700; font-size: .82rem; color: var(--navy); flex: none; }
.cur-item[open] .cur-num { background: var(--green-soft); color: var(--green-text); border-color: #BFE7C9; }
.cur-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cur-title strong { color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.cur-title small { color: var(--slate); font-size: .78rem; }
.cur-chevron .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); color: var(--slate); }
.cur-item[open] .cur-chevron .icon { transform: rotate(180deg); }
.cur-lesson-list { list-style: none; margin: 0; padding: 0 1.1rem .6rem 3.9rem; }
.cur-lesson-list li { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.cur-lesson-name { flex: 1; display: inline-flex; gap: .5rem; align-items: center; min-width: 0; }
.cur-lesson-name .icon { width: 15px; height: 15px; color: var(--slate); flex: none; }
.cur-preview { font-size: .7rem; font-weight: 700; color: var(--green-text); background: var(--green-soft); padding: .1rem .45rem; border-radius: 5px; }
.cur-duration { color: var(--slate); font-size: .82rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .cur-lesson-list { padding-left: 1.1rem; } }
.instructor-card { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.instructor-card img, .instructor-initial { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.instructor-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green-text); font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.instructor-card h2 { font-size: 1.2rem; margin: 0; }
.instructor-role { color: var(--green-text); font-weight: 600; font-size: .9rem; margin: .15rem 0 .6rem; }
.instructor-card p { margin: 0 0 .6rem; }
.instructor-link { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; }
.instructor-link .icon { width: 16px; height: 16px; }
@media (max-width: 520px) { .instructor-card { flex-direction: column; } }
.course-buy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 18px 40px -30px rgba(15, 43, 91, .55); display: grid; gap: .8rem; }
.course-aside-price { margin: 0; color: var(--slate); line-height: 1.35; }
.course-aside-price strong { color: var(--navy); font-family: var(--font-head); font-size: 1.7rem; }
.btn-whatsapp { --btn-bg: #1EB53A; --btn-fg: #fff; }
.btn-whatsapp:hover { --btn-bg: #179A30; }
.btn .icon { flex: none; }
.course-buy-note { margin: 0; color: var(--slate); font-size: .8rem; line-height: 1.5; }
.course-facts { margin: .3rem 0 0; display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.course-facts div { display: grid; grid-template-columns: 110px 1fr; gap: .5rem; font-size: .88rem; }
.course-facts dt { display: inline-flex; gap: .4rem; align-items: center; color: var(--slate); }
.course-facts dt .icon { width: 15px; height: 15px; }
.course-facts dd { margin: 0; color: var(--navy); font-weight: 500; }
.course-includes-title { font-size: .95rem; margin: .4rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--navy-900); font-size: .82rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: .65rem 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--slate-light); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { color: #7EE29A; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 80% 0%, #143A78 0%, var(--navy) 40%, var(--navy-950) 100%); color: #fff; padding: 4rem 0 4.5rem; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(201, 210, 227, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 210, 227, .07) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); animation: grid-drift 30s linear infinite; }
@keyframes grid-drift { to { background-position: 48px 48px; } }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.hero-glow--a { width: 420px; height: 420px; background: #1EB53A; right: -120px; top: -140px; opacity: .22; animation: float 14s ease-in-out infinite; }
.hero-glow--b { width: 360px; height: 360px; background: #F5A623; left: -160px; bottom: -200px; opacity: .14; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(30px, 20px); } }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero-rotator-line { font-family: var(--font-head); font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); font-weight: 500; color: var(--slate-light); margin-bottom: 1.25rem; }
.rotator { display: grid; justify-items: start; color: #fff; font-weight: 700; }
.rotator-item { grid-area: 1 / 1; white-space: nowrap; transition: opacity .5s var(--ease), transform .5s var(--ease); background: linear-gradient(90deg, #7EE29A, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator-item:not(.is-active) { opacity: 0; transform: translateY(.45em); visibility: hidden; }
.rotator-item.is-leaving { opacity: 0; transform: translateY(-.45em); visibility: visible; }
.rotator-dot { color: #fff; }
.hero-desc { color: var(--slate-light); max-width: 56ch; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero-visual { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.hero-network { width: 100%; height: auto; }
.net-nodes circle { fill: var(--slate-light); opacity: .8; }
.pulse { stroke-dasharray: 24 400; animation: pulse 4.5s linear infinite; }
.pulse.p2 { animation-delay: 1.5s; }
.pulse.p3 { animation-delay: 3s; }
@keyframes pulse { from { stroke-dashoffset: 424; } to { stroke-dashoffset: 0; } }
.hero-card { position: absolute; background: rgba(8, 26, 58, .82); border: 1px solid rgba(201, 210, 227, .18); backdrop-filter: blur(8px); border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); font-size: .8rem; animation: bob 7s ease-in-out infinite; }
.hero-card--code { left: -6%; bottom: 12%; }
.hero-card--code .dots { display: flex; gap: 5px; margin-bottom: .5rem; }
.hero-card--code .dots i { width: 8px; height: 8px; border-radius: 50%; background: #F87171; }
.hero-card--code .dots i:nth-child(2) { background: var(--amber); }
.hero-card--code .dots i:nth-child(3) { background: var(--green); }
.hero-card--code code { color: var(--slate-light); line-height: 1.7; }
.hero-card--code b { color: var(--amber); }
.hero-card--code .ok { color: #7EE29A; }
.hero-card--shield { right: -4%; top: 10%; display: flex; gap: .7rem; align-items: center; animation-delay: -3s; }
.hero-card--shield .icon { width: 30px; height: 30px; color: var(--green); }
.hero-card--shield strong { display: block; color: #fff; font-family: var(--font-head); }
.hero-card--shield small { color: var(--slate-light); }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (min-width: 960px) {
  .hero { padding: 5.5rem 0 6rem; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
}
@media (max-width: 520px) {
  .hero-card { display: none; }
  .rotator-item { white-space: normal; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-950) 100%); color: #fff; padding: 3.25rem 0 3.5rem; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(201, 210, 227, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 210, 227, .06) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero-bg::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--green); filter: blur(90px); opacity: .18; }
.page-hero h1 { color: #fff; max-width: 24ch; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.page-hero .lead { color: var(--slate-light); margin: 0; }
.page-hero .eyebrow { color: #7EE29A; }
.page-hero-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; background: rgba(30, 181, 58, .16); color: #7EE29A; }
.page-hero-icon .icon { width: 28px; height: 28px; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head--row h2 { margin: 0; }
.section-foot { margin: 2.25rem 0 0; text-align: center; }
.section-title { margin-bottom: 1.75rem; }
@media (min-width: 900px) { .section { padding: 5.5rem 0; } }

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Value / stats ---------- */
.value-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .value-grid { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }
.tick-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.tick-list li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.tick-list .icon { color: var(--green-text); margin-top: .2rem; }
.tick-list--sm { font-size: .93rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.stat { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.stat dt { color: var(--slate); font-size: .85rem; font-weight: 500; }
.stat dd { margin: .2rem 0 0; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat dd.stat-text { font-size: 1.25rem; padding-top: .35rem; }
.stat--accent { background: var(--navy); border-color: var(--navy); }
.stat--accent dt { color: var(--slate-light); }
.stat--accent dd { color: #fff; }

/* ---------- Service cards ---------- */
.service-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--green), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card:hover, .service-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-card h3, .service-card h2 { font-size: 1.08rem; margin: 1rem 0 .5rem; }
.service-card h3 a, .service-card h2 a { text-decoration: none; color: var(--navy); }
.service-card p { color: var(--slate); font-size: .93rem; flex: 1; margin-bottom: 1rem; }
.service-icon { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 12px; background: var(--green-soft); color: var(--green-text); transition: background .3s, color .3s, transform .3s var(--ease); }
.service-card:hover .service-icon { background: var(--navy); color: #fff; transform: rotate(-6deg); }
.service-icon .icon { width: 26px; height: 26px; }
.card-more { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: .35rem; }
.card-more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.service-card:hover .card-more .icon { transform: translateX(4px); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Why / industries ---------- */
.why-item { padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--green); display: block; margin-bottom: .5rem; }
.why-item p { color: var(--slate); margin: 0; font-size: .95rem; }
.industry-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
.industry-tile { display: flex; gap: .9rem; align-items: flex-start; height: 100%; padding: 1.2rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--charcoal); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.industry-tile:hover { border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--charcoal); }
.industry-tile strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .97rem; margin-bottom: .2rem; }
.industry-tile small { color: var(--slate); font-size: .84rem; line-height: 1.5; display: block; }
.industry-icon { flex: none; display: inline-flex; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; background: var(--navy); color: #fff; }

/* ---------- Trust ---------- */
.trust { background: linear-gradient(135deg, var(--navy-900), var(--navy-950)); color: var(--slate-light); position: relative; overflow: hidden; }
.trust::after { content: ""; position: absolute; right: -10%; bottom: -40%; width: 560px; height: 560px; border: 70px solid rgba(30, 181, 58, .06); border-radius: 50%; pointer-events: none; }
.trust h2 { color: #fff; }
.trust .lead { color: var(--slate-light); }
.trust-grid { display: grid; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .trust-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.trust-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(201, 210, 227, .14); color: #fff; font-weight: 500; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.trust-list li:hover { background: rgba(30, 181, 58, .08); border-color: rgba(30, 181, 58, .4); transform: translateX(4px); }
.trust-icon { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; background: rgba(30, 181, 58, .18); color: #7EE29A; flex: none; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(3, 1fr); } .process--compact { grid-template-columns: repeat(6, 1fr); } }
.process-step { position: relative; padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.process-step h3 { margin: .35rem 0 .4rem; }
.process-step p { color: var(--slate); margin: 0; font-size: .93rem; }
.process-num { font-family: var(--font-head); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); font-weight: 600; }
.process-icon { position: absolute; right: 1.2rem; top: 1.2rem; color: var(--line-strong); }
.process-icon .icon { width: 30px; height: 30px; }
.process--compact .process-step { padding: 1.2rem; }

/* ---------- Posts & projects ---------- */
.post-card, .project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover, .project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media, .project-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-tint); }
.post-card-media img, .project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover img, .project-card:hover img { transform: scale(1.05); }
.post-card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--navy-950)); color: rgba(126, 226, 154, .8); }
.post-card-placeholder .icon { width: 56px; height: 56px; }
.post-card-placeholder--lg .icon { width: 90px; height: 90px; }
.post-card-body, .project-card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-family: var(--font-head); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-text); text-decoration: none; font-weight: 600; }
.post-card-title { font-size: 1.12rem; margin: .45rem 0 .55rem; }
.post-card-title a, .project-card h3 a { color: var(--navy); text-decoration: none; }
.post-card-title a:hover, .project-card h3 a:hover { color: var(--green-text); }
.post-card p { color: var(--slate); font-size: .93rem; }
.post-card .post-meta { margin-top: auto; }
.post-meta { color: var(--slate); font-size: .82rem; margin: 0; }
.project-client { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-text); margin: 0 0 .3rem; font-weight: 600; }
.project-card p { color: var(--slate); font-size: .93rem; }

/* ---------- Testimonials ---------- */
.testimonial { margin: 0; padding: 1.6rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1rem; }
.testimonial blockquote p::before { content: "“"; font-family: var(--font-head); font-size: 2.5rem; color: var(--green); line-height: 0; vertical-align: -.4em; margin-right: .1em; }
.testimonial figcaption strong { display: block; color: var(--navy); }
.testimonial figcaption span { color: var(--slate); font-size: .88rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #12407F 100%); color: #fff; padding: 3.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 50%, rgba(30, 181, 58, .25), transparent 40%); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; position: relative; }
.cta-inner h2 { color: #fff; margin-bottom: .4rem; }
.cta-inner p { color: var(--slate-light); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* ---------- Contact strip ---------- */
.contact-strip-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-strip-grid { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.contact-cards li { display: flex; gap: .8rem; align-items: flex-start; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.contact-cards .icon { color: var(--green-text); margin-top: .2rem; }
.contact-cards small { display: block; color: var(--slate); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-cards a { font-weight: 600; word-break: break-word; }

/* ---------- Content pages ---------- */
.content-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; } }
.side-stack { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 1000px) { .side-stack { position: sticky; top: calc(var(--header-h) + 1.25rem); } }
.side-card { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.side-card h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.side-card--accent { background: linear-gradient(150deg, var(--navy), var(--navy-950)); border: 0; color: var(--slate-light); }
.side-card--accent h2 { color: #fff; }
.side-card--accent .btn + .btn { margin-top: .6rem; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.side-links a { display: flex; gap: .6rem; align-items: center; padding: .45rem .3rem; text-decoration: none; border-radius: 8px; font-size: .93rem; }
.side-links a:hover { background: #fff; }
.side-links .icon { width: 18px; height: 18px; color: var(--green-text); }
.side-links.plain a { padding: .25rem 0; }
.facts { margin: 0 0 1.25rem; display: grid; gap: .7rem; }
.facts div { display: grid; gap: .1rem; }
.facts dt { font-size: .78rem; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.feature-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; background: var(--bg-tint); border-radius: 10px; padding: .9rem 1rem; font-weight: 500; }
.feature-list .icon { color: var(--green-text); flex: none; margin-top: .15rem; }
.detail-image { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; object-fit: cover; }
.case-block { border-left: 3px solid var(--green); padding-left: 1.2rem; margin-bottom: 2rem; }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery img { border-radius: 10px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.chip-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { display: inline-flex; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--navy); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.chip:hover, .chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.service-group { margin-bottom: 3rem; }
.group-title { font-size: 1.35rem; display: flex; align-items: center; gap: .75rem; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.empty-state { text-align: center; padding: 3rem 1.5rem; background: var(--bg-tint); border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--slate); }
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--green-text); }
.empty-state--inline { text-align: left; padding: 1.25rem; }
.sitemap-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sitemap-grid h2 { font-size: 1.1rem; margin-top: 1.25rem; }

/* ---------- Prose (rich text from the CMS) ---------- */
.prose { font-size: 1.04rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.55rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--green-text); }
.prose blockquote { margin: 1.75rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--green); background: var(--bg-tint); border-radius: 0 10px 10px 0; font-style: italic; color: var(--navy); }
.prose pre { background: var(--navy-950); color: #E2E8F0; padding: 1.1rem 1.25rem; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.prose code { background: var(--bg-tint); padding: .1em .35em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--bg-tint); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
.prose img { border-radius: 10px; height: auto; }
.prose figure { margin: 1.75rem 0; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: .85rem; color: var(--slate); margin-top: .5rem; text-align: center; }
/* Image alignment + text wrapping (set from the admin editor) */
.prose .align-left, .prose .align-right { max-width: 46%; margin-top: .35rem; margin-bottom: 1rem; }
.prose .align-left { float: left; margin-right: 1.6rem; }
.prose .align-right { float: right; margin-left: 1.6rem; }
.prose .align-center { margin-left: auto; margin-right: auto; max-width: 75%; clear: both; }
.prose .align-center img { margin: 0 auto; }
.prose .align-full { width: 100%; max-width: none; clear: both; }
.prose .size-small { max-width: 30%; }
.prose .size-medium { max-width: 46%; }
.prose .size-large { max-width: 75%; }
.prose::after { content: ""; display: table; clear: both; }
.prose h2, .prose h3 { clear: none; }
@media (max-width: 600px) {
  .prose .align-left, .prose .align-right, .prose .size-small, .prose .size-medium, .prose .size-large { float: none; max-width: 100%; margin-left: 0; margin-right: 0; }
}
.prose--intro { margin-bottom: 2rem; max-width: 760px; }

/* ---------- Blog ---------- */
.blog-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; } }
.blog-sidebar { display: grid; gap: 1.25rem; align-content: start; }
.featured-post { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: var(--slate-light); margin-bottom: 1.75rem; }
@media (min-width: 760px) { .featured-post { grid-template-columns: 1.1fr 1fr; } }
.featured-media { display: block; min-height: 220px; background: var(--navy-900); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: 1.5rem; margin: .7rem 0; }
.featured-body h2 a { color: #fff; text-decoration: none; }
.featured-body h2 a:hover { color: #7EE29A; }
.featured-body .post-meta { color: var(--slate-light); }
.badge { display: inline-flex; align-self: flex-start; padding: .25rem .65rem; border-radius: 999px; background: var(--amber); color: var(--navy-950); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: .45rem .5rem; border-radius: 8px; text-decoration: none; font-size: .93rem; }
.cat-list a span { color: var(--slate); font-size: .82rem; background: #fff; border-radius: 999px; padding: 0 .55rem; }
.cat-list a:hover, .cat-list a.is-active { background: #fff; color: var(--green-text); font-weight: 600; }
.tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag { display: inline-flex; padding: .3rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; text-decoration: none; color: var(--navy); transition: border-color .2s, color .2s; }
.tag:hover { border-color: var(--green); color: var(--green-text); }
.results-note { background: var(--bg-tint); padding: .75rem 1rem; border-radius: 10px; }

.search-form { display: flex; gap: .5rem; margin-bottom: 2rem; }
.search-form input { flex: 1; min-width: 0; }
.search-form--compact { margin: 0; }
.search-group { margin-top: 2rem; }
.search-group h2 { font-size: 1.2rem; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.search-results li { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; }
.search-results a { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.search-results p { margin: .3rem 0 0; color: var(--slate); font-size: .93rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: 2.5rem; }
.pagination ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.page-num, .page-link, .page-gap { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 42px; height: 42px; padding: 0 .75rem; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--navy); }
.page-num:hover, .page-link:hover { border-color: var(--navy); }
.page-num.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-gap { border: 0; }
.page-link .icon { width: 16px; height: 16px; }

/* Article */
.preview-bar { background: var(--amber); color: var(--navy-950); text-align: center; padding: .6rem 1rem; font-size: .9rem; }
.article-head { background: linear-gradient(180deg, var(--bg-tint), #fff); padding: 3rem 0 2rem; }
.article-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.article-cats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.article-cats a { font-family: var(--font-head); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--green-text); background: var(--green-soft); padding: .3rem .7rem; border-radius: 999px; text-decoration: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; color: var(--slate); font-size: .9rem; margin: 1.25rem 0 0; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta .icon { width: 16px; height: 16px; }
.author-chip { font-weight: 600; color: var(--navy); }
.avatar { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .85rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.3rem; flex: none; }
.article-hero { margin: 0 auto 2rem; max-width: 1000px; }
.article-hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.article-layout { display: grid; gap: 1.5rem; max-width: 900px; padding-bottom: 3rem; }
@media (min-width: 900px) { .article-layout { grid-template-columns: 56px minmax(0, 1fr); gap: 2.5rem; } }
.share-rail { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (min-width: 900px) { .share-rail { flex-direction: column; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.share-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); font-weight: 600; }
.share-rail a, .share-rail button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.share-rail a:hover, .share-rail button:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.share-rail .icon { width: 18px; height: 18px; }
.copy-feedback { font-size: .78rem; color: var(--green-text); font-weight: 600; min-height: 1em; }
.article-body { min-width: 0; }
.video-embed { margin: 2.5rem 0; }
.video-title { font-size: 1.25rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; border: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; padding: 0; }
.video-play { width: 76px; height: 76px; border-radius: 50%; background: rgba(15, 43, 91, .88); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .25s var(--ease), background .25s; }
.video-play .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-poster:hover .video-play, .video-poster:focus-visible .video-play { transform: scale(1.08); background: var(--green); }
.video-embed figcaption { margin-top: .6rem; color: var(--slate); font-size: .88rem; }
.article-tags { margin: 2rem 0; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--radius); background: var(--bg-tint); margin: 2rem 0; }
.author-label { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.author-name { margin: 0 0 .3rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.author-box p:last-child { margin-bottom: 0; }
.post-nav { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.post-nav a:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.post-nav span { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--slate); }
.post-nav span .icon { width: 15px; height: 15px; }
.post-nav strong { display: block; color: var(--navy); font-family: var(--font-head); margin-top: .25rem; }
.post-nav-next { text-align: right; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .form-card { padding: 2.2rem; } }
.form-grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 1rem; font-size: 1.05rem; padding: 0; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--charcoal); }
.req { color: #B42318; }
.optional { color: var(--slate); font-weight: 400; font-size: .82rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="search"], input[type="number"], input[type="password"], input[type="file"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .72rem .9rem; transition: border-color .2s, box-shadow .2s, background .2s; min-height: 48px; }
textarea { resize: vertical; min-height: 120px; }
input[type="file"] { padding: .55rem; background: var(--bg-tint); }
input:hover, select:hover, textarea:hover { border-color: var(--slate); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 43, 91, .12); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea, [aria-invalid="true"] { border-color: #B42318; background: #FFF8F7; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--green); }
.field-error { color: #B42318; font-size: .84rem; margin: 0; font-weight: 500; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.hint { font-size: .82rem; color: var(--slate); margin: 0; }
.check-label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; cursor: pointer; }
.check-label input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--navy); flex: none; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { min-width: 220px; }
.form-alert { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; animation: slide-in .4s var(--ease); }
.form-alert:focus { outline: none; box-shadow: var(--focus); }
.form-alert .icon { flex: none; margin-top: .1rem; }
.form-alert p { margin: 0 0 .25rem; }
.form-alert-title { font-weight: 700; }
.form-alert--success { background: var(--green-soft); border: 1px solid #A7E3B5; color: #0E5A20; }
.form-alert--error { background: #FEF3F2; border: 1px solid #FECDCA; color: #912018; }
.ref-number { font-family: ui-monospace, Menlo, Consolas, monospace; background: #fff; padding: .1rem .45rem; border-radius: 6px; letter-spacing: .04em; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; word-break: break-word; }
.contact-list .icon { color: var(--green-text); margin-top: .2rem; }
.steps-mini { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 1rem; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: .1rem .8rem; }
.steps-mini li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); }
.steps-mini strong { color: var(--navy); }
.steps-mini span { color: var(--slate); font-size: .9rem; }
.job-meta { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.job-meta li { display: inline-flex; align-items: center; gap: .4rem; background: var(--bg-tint); border-radius: 999px; padding: .35rem .8rem; font-size: .88rem; }
.job-meta .icon { width: 16px; height: 16px; color: var(--green-text); }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.job-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.3rem; border: 1px solid var(--line); border-radius: 12px; }
.job-item h3 { margin: 0 0 .3rem; }
.job-item h3 a { text-decoration: none; }
.job-item p { margin: 0 0 .3rem; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-light); padding-top: 4rem; font-size: .93rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } .footer-grid--3 { grid-template-columns: 1.5fr 1fr 1.2fr; } .footer-grid--2 { grid-template-columns: 1.5fr 1fr; } }
.footer-grid--1 { grid-template-columns: 1fr !important; max-width: 640px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 42ch; }
.footer-title { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.footer-links, .footer-contact, .social-list { list-style: none; margin: 0; padding: 0; }
.footer-links { display: grid; gap: .5rem; }
.site-footer a { color: var(--slate-light); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #7EE29A; }
.footer-contact { display: grid; gap: .75rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; word-break: break-word; }
.footer-contact .icon { color: var(--green); margin-top: .2rem; width: 18px; height: 18px; }
.social-list { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social-list a { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(201, 210, 227, .2); align-items: center; justify-content: center; }
.social-list a:hover { border-color: var(--green); }
.social-list .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(201, 210, 227, .12); padding: 1.25rem 0; font-size: .84rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-bottom p { margin: 0; }

/* ---------- Scroll to top ---------- */
.scroll-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; border-radius: 14px; border: 0; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px) scale(.9); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; }
.scroll-top[hidden] { display: none; }
.scroll-top.is-visible { opacity: 1; transform: none; }
.scroll-top:hover { background: var(--green-text); }
.scroll-top .icon { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.scroll-top:hover .icon { transform: translateY(-3px); }

/* ---------- Error & maintenance ---------- */
.error-page { padding: 5rem 0; text-align: center; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 4rem + 6vw, 9rem); font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--navy), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .lead { margin: 0 auto 2rem; }
.error-page .search-form { max-width: 520px; margin: 0 auto 1.5rem; }
.error-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.maintenance-body { background: linear-gradient(135deg, var(--navy), var(--navy-950)); min-height: 100vh; display: grid; place-items: center; color: var(--slate-light); padding: 24px; }
.maintenance { max-width: 560px; text-align: center; }
.maintenance img { margin: 0 auto 2rem; width: 300px; }
.maintenance h1 { color: #fff; }
.maintenance a { color: #7EE29A; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card-grid > .reveal:nth-child(2), .js .process > .reveal:nth-child(2) { transition-delay: .07s; }
.js .card-grid > .reveal:nth-child(3), .js .process > .reveal:nth-child(3) { transition-delay: .14s; }
.js .card-grid > .reveal:nth-child(4), .js .process > .reveal:nth-child(4) { transition-delay: .21s; }
.js .process > .reveal:nth-child(5) { transition-delay: .28s; }
.js .process > .reveal:nth-child(6) { transition-delay: .35s; }

/* Subtle page entrance */
@media (prefers-reduced-motion: no-preference) {
  main { animation: page-in .45s var(--ease) both; }
  @keyframes page-in { from { opacity: 0; } }
}

/* ---------- Reduced motion: disable non-essential animation ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-grid, .hero-glow, .hero-card, .pulse { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .scroll-top, .share-rail, .cta-band, .breadcrumbs { display: none !important; }
  .page-hero, .hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
}

/* ---------- FAQ accordion, dates, author profiles (AEO / GEO additions) ---------- */
.faq-block { margin-top: 2.75rem; }
.faq-title { font-size: 1.4rem; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--green); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { box-shadow: var(--focus); border-radius: 12px; }
.faq-chevron { transition: transform .3s var(--ease); color: var(--green-text); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.2rem 1.1rem; color: var(--charcoal); }
.faq-answer p { margin: 0; }
.faq-item[open] .faq-answer { animation: faq-in .3s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
.faq-more { margin: .9rem 0 0; font-weight: 600; }
.faq-more a { display: inline-flex; align-items: center; gap: .35rem; }
.faq-more .icon { width: 16px; height: 16px; }
.updated-note { margin-top: 2rem; font-size: .85rem; color: var(--slate); }
.author-hero { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.author-hero h1 { margin-bottom: .2rem; }
.avatar--xl { width: 88px; height: 88px; font-size: 2.2rem; border: 3px solid rgba(126, 226, 154, .5); }
.author-chip a { color: var(--navy); text-decoration: none; }
.author-chip a:hover, .author-name a:hover { color: var(--green-text); text-decoration: underline; }
.author-name a { color: var(--navy); text-decoration: none; }

/* Maintenance notices */
.maintenance-admin-bar { background: var(--amber); color: var(--navy-950); font-size: .88rem; padding: .55rem var(--gutter); text-align: center; line-height: 1.5; }
.maintenance-admin-bar a { color: var(--navy-950); font-weight: 700; }
.maintenance-preview-note { position: fixed; top: 0; left: 0; right: 0; margin: 0; background: var(--amber); color: var(--navy-950); text-align: center; font-weight: 600; font-size: .88rem; padding: .5rem 1rem; z-index: 10; }

/* ---------- Team (About page) ---------- */
.section--team { background: radial-gradient(1200px 400px at 50% 0%, rgba(245, 166, 35, .07), transparent 70%), var(--bg-tint); }
.team-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; } }
.team-grid .team-card, .team-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px -22px rgba(15, 43, 91, .45);
  transition: opacity .6s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.js .team-grid .team-card.is-visible:hover, .js .team-grid .team-card.is-visible:focus-within, .team-grid .team-card:hover, .team-grid .team-card:focus-within {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 0 0 3px var(--amber), 0 30px 60px -28px rgba(15, 43, 91, .55);
  z-index: 1; }
.team-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #E9EDF8, #DDE4F3); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--amber), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.team-card:hover .team-photo::after, .team-card:focus-within .team-photo::after { transform: scaleX(1); }
.team-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--navy-950)); color: var(--amber); font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; letter-spacing: .04em; }
.team-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.team-name { font-size: 1.45rem; font-weight: 800; color: var(--navy-950); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.team-role { margin: .3rem 0 0; font-weight: 600; font-size: .95rem; color: var(--navy); }
.team-bio { margin: .9rem 0 0; color: var(--slate); line-height: 1.65; }
.team-socials { list-style: none; margin: 1.35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: 1.35rem; }
.team-social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--amber); text-decoration: none; box-shadow: 0 6px 14px -8px rgba(15, 43, 91, .8);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.team-social .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.team-social:hover, .team-social:focus-visible { background: var(--amber); color: var(--navy-950); transform: translateY(-3px) scale(1.08); box-shadow: 0 10px 18px -8px rgba(245, 166, 35, .9); }
.team-social:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.team-social:active { transform: translateY(0) scale(.96); }
.instructor-card .team-socials { margin-top: .4rem; padding-top: .4rem; }
@media (prefers-reduced-motion: reduce) {
  .js .team-grid .team-card.is-visible:hover, .team-grid .team-card:hover, .team-grid .team-card:focus-within { transform: none; }
  .team-card:hover .team-photo img, .team-social:hover, .team-social:focus-visible { transform: none; }
}
