/* ============================================================
   LawDigits — Global Stylesheet
   Colors: #F65B6A (coral) · #36498E (navy) · #1c2454 (navy-deeper)
   Fonts: Syne · Instrument Serif · Plus Jakarta Sans · Space Grotesk
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral:        #F65B6A;
  --coral-lt:     #F65B6A;
  --coral-pale:   #fce8ea;
  --navy:         #36498E;
  --navy-dk:      #36498E;
  --navy-dp:      #253e98;
  --gold:         #c9a84c;
  --gold-dk:      #7a5f1a;
  --gold-lt:      #f5e9c8;
  --green:        #16a34a;
  --green-lt:     #dcfce7;
  --amber:        #d97706;
  --peach:        #F4AA96;      /* training bg tint */
  --team-bg:      #dde1f0;      /* team section base */
  --white:        #ffffff;
  --off-white:    #f6f7fb;
  --warm-gray:    #edeef5;
  --text:         #1a1a2e;
  --text-mid:     #4a4a6a;
  --text-light:   #8888a8;
  --border:       rgba(56,70,138,.12);
  --radius:       14px;
  --shadow:       0 8px 32px rgba(56,70,138,.14);
  --transition:   .28s cubic-bezier(.4,0,.2,1);
  --font-serif:   'Poppins', system-ui, sans-serif;
  --font-accent:  'Poppins', Georgia, serif;
  --font-mono:    'Open Sauce', system-ui, sans-serif;
  --font:         'Plus Jakarta Sans', system-ui, sans-serif;

  /* Fluid spacing scale */
  --sp-xs:  clamp(2rem,   4vw,  3rem);
  --sp-sm:  clamp(3rem,   6vw,  5rem);
  --sp-md:  clamp(4rem,   8vw,  6.25rem);
  --sp-lg:  clamp(5rem,  10vw,  8rem);

  /* Nav height — used for scroll-padding */
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Default body text is left-aligned; paragraphs justify individually below */
  text-align: left;
}

/* ── Justified body paragraphs — apply only where it helps ─────────────── */
.hero-desc,
.about-text p,
.service-card p,
.training-card p,
.pillar-content p,
.team-bio,
.quote-text,
.csr-text > p,
.contact-form-wrap p,
.section-sub,
.upload-left > p,
.ut-text p,
.csr-pillar-text p,
.pce-desc,
.article-excerpt,
.modal-desc,
.exec-desc {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* ── Everything that must stay left-aligned ────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.section-title,
.tag, .badge-tier, .badge-duration,
.nav-links a, .btn, .enrol-btn, .ev-register-btn,
.pce-link, .service-link,
.footer-col ul,
.check-list, .cc-modules,
.topbar, .logo-text, .site-title,
.exec-label, .csr-eyebrow, .events-eyebrow,
.impact-lbl-ev, .pf-date-ev, .uc-venue-ev,
.pc-date-ev, .psc-date-ev, .psc-loc-ev,
table, th, td,
.stat-label,
.form-group label,
input, select, textarea,
.carousel-dot, .cat-btn,
.filter-bar, .fpill,
.footer-bottom,
.contact-item h4,
.contact-item a,
.contact-item p,
.team-name, .team-role,
.tpl-name, .tpl-desc,
.hero-eyebrow-text { text-align: left; }

/* ── Centred elements ───────────────────────────────────────────────────── */
.stat-item        { text-align: center; }
.stat-num         { text-align: center; }
.quote-inner      { text-align: center; }
.quote-text       { text-align: center; hyphens: none; }

/* Scroll-lock when mobile nav is open */
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* Fluid container — 90% up to 1160px with generous side padding */
.container {
  width: min(1160px, 100%);
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  margin-inline: auto;
}

/* Focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .875rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
  min-height: 48px; /* touch target */
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(232,141,151,.35);
}
.btn-primary:hover { background: var(--coral-lt); box-shadow: 0 8px 30px rgba(241,167,175,.4); }

.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.88);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.07); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dk); box-shadow: 0 6px 20px rgba(56,70,138,.3); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; min-height: 54px; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.tag-navy  { background: var(--navy-dp); color: var(--coral-pale); }
.tag-coral { background: var(--coral-pale); color: var(--navy-dk); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy-dp);
  letter-spacing: -.03em;
}
.section-title em { color: var(--coral); font-family: var(--font-accent); font-style: italic; font-weight: 400; }

.section-sub {
  font-size: clamp(.94rem, 1.5vw, 1.06rem);
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.75;
  margin-top: 1rem;
}

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.center { text-align: center; }
.section-header.center .section-title,
.section-header.center .section-sub { text-align: center; margin-inline: auto; }
.section-header.center .tag { display: inline-flex; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1),
              transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--navy-dp);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: .625rem 1rem;
  font-size: .75rem;
  letter-spacing: .02em;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
}
.topbar a {
  color: var(--coral-lt);
  font-weight: 700;
}
.topbar a:hover { text-decoration: underline; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(56,70,138,.1); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 71px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-footer {
  height: 48px;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-bottom: .75rem;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  padding-block: .25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: var(--navy); }

/* CTA button */
.btn-nav {
  background: var(--navy);
  color: var(--white);
  padding: .625rem 1.25rem;
  font-size: .85rem;
  font-family: var(--font);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  min-height: 44px;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--navy-dk); transform: translateY(-1px); }

/* Mobile-only CTA item — hidden on desktop, shown inside mobile drawer */
.nav-links li.mobile-cta { display: none; }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--off-white); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Animated X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy-dp);
  min-height: 92svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 { width: clamp(240px,40vw,500px); height: clamp(240px,40vw,500px); background: rgba(241,167,175,.18); top: -80px; right: -80px; }
.hero-orb-2 { width: clamp(160px,25vw,300px); height: clamp(160px,25vw,300px); background: rgba(56,70,138,.5);   bottom: -40px; left: -40px; }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  /* left text takes 55%, right column is spacer for the abs-positioned image */
  grid-template-columns: 55% 45%;
  align-items: center;
  padding-block: var(--sp-md);
  width: 100%;
}


.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-line { width: 32px; height: 2px; background: var(--coral); flex-shrink: 0; }
.hero-eyebrow-text {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-lt);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}
.hero h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--coral-lt); }

.hero-desc {
  font-size: clamp(.95rem, 1.5vw, 1.06rem);
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero photo — full-height cutout, absolutely fills right side */
.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  pointer-events: none;
  z-index: 3;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* <img> fills the right column — PNG transparency shows through on navy bg */
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Floating badge */
.hero-badge {
  position: absolute;
  bottom: 40px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  gap: .75rem;
  z-index: 4;
}
.hero-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--coral-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 1.125rem;
  flex-shrink: 0;
}
.hero-badge-num {
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1;
}
.hero-badge-text { font-size: .72rem; color: var(--text-mid); font-weight: 500; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--coral); padding: clamp(1.5rem, 3vw, 2rem) 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: .5rem 1rem;
  border-right: 1px solid rgba(255,255,255,.25);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-num sup { font-size: .5em; }
.stat-lbl { font-size: clamp(.68rem, 1.2vw, .78rem); color: rgba(255,255,255,.8); margin-top: .3rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--sp-md) 0;
  background:
    radial-gradient(ellipse 65% 55% at 95% 5%,  rgba(246,91,106,.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 0%  92%,  rgba(255,255,255,.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 55% 45%,  rgba(255,255,255,.03) 0%, transparent 60%),
    var(--navy);
  position: relative;
  overflow: hidden;
}

/* Abstract dot-grid layer */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  z-index: 0;
}

/* Floating geometric ring — top-right corner */
.services::after {
  content: '';
  position: absolute;
  top: -130px;
  right: -90px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 72px solid rgba(255,255,255,.045);
  pointer-events: none;
  z-index: 0;
}

/* Lift container above pseudo-element layers */
.services > .container { position: relative; z-index: 1; }

/* Text colours on dark section bg */
.services .section-title { color: var(--white); }
.services .section-sub   { color: rgba(255,255,255,.72); }
.services .tag-navy {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.18);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(56,70,138,.11); }
.service-card:hover::before { transform: scaleX(1); }
.service-card p,
.service-card .service-link { text-align: left; }

.service-icon {
  width: 56px; height: 56px;
  background: var(--coral-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: var(--navy-dp);
  margin-bottom: .75rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
}
.service-card p {
  font-size: .91rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-link {
  font-size: .81rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  transition: color var(--transition), gap var(--transition);
}
.service-link:hover { color: var(--coral); gap: .6rem; }

/* ============================================================
   BRAND PILLARS
   ============================================================ */
.pillars { padding: var(--sp-md) 0; background: var(--white); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.pillar {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--navy-dp); }
.pillar:hover .pillar-icon { background: rgba(241,167,175,.15); color: var(--coral-lt); }
.pillar:hover h3 { color: var(--white); }
.pillar:hover p  { color: rgba(255,255,255,.6); }

.pillar-icon {
  width: 48px; height: 48px;
  background: var(--coral-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  transition: background var(--transition), color var(--transition);
}
/* Centre icon + heading within each pillar */
.pillar-content { text-align: center; }
.pillar-content p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-dp);
  margin-bottom: .5rem;
  transition: color var(--transition);
}
.pillar p {
  font-size: .84rem;
  color: var(--text-mid);
  line-height: 1.7;
  transition: color var(--transition);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: var(--sp-md) 0; background: var(--off-white); overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: stretch;
}

/* Image column stretches to match text column height */
.about-imgs {
  position: relative;
  min-height: clamp(480px, 60vw, 720px);
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-photo-1 {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background-image: var(--img);
  background-size: cover;
  background-position: center top;
  box-shadow: none;
  border: none;
}

.about-photo-2 {
  width: 56%;
  position: absolute;
  bottom: 0; right: 0;
  border-radius: 16px;
  background-image: var(--img);
  background-size: cover;
  background-position: center top;
  box-shadow: 0 20px 40px rgba(56,70,138,.15);
  border: 4px solid var(--white);
  height: 56%;
}

.about-accent {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 72px; height: 72px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.625rem;
  font-family: var(--font-serif);
  box-shadow: 0 8px 30px rgba(241,167,175,.5);
  z-index: 2;
}

.about-text p {
  font-size: clamp(.94rem, 1.4vw, 1rem);
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.check-list {
  margin: 1.75rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .94rem;
  color: var(--text-mid);
}
.check-list li i { color: var(--coral); margin-top: 3px; font-size: .875rem; flex-shrink: 0; }

/* ============================================================
   GALLERY / EVENTS
   ============================================================ */
.gallery { padding: var(--sp-md) 0; background: var(--navy-dp); position: relative; z-index: 1; }
.gallery .section-title { color: var(--white); }
.gallery .section-sub   { color: rgba(255,255,255,.5); }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 1rem;
  margin-top: 3rem;
  overflow: visible;
}

.gallery-item {
  border-radius: 12px;
  overflow: visible;
  position: relative;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,0,.2,1), box-shadow .35s cubic-bezier(.2,0,.2,1), z-index 0s;
  z-index: 1;
}
.gallery-item:hover {
  transform: scale(1.07);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  z-index: 10;
  border-radius: 14px;
}
.gallery-item.tall  { grid-row: span 2; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.quote-section { background: var(--warm-gray); padding: var(--sp-sm) 0; }

.quote-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 10vw, 7.5rem);
  color: var(--coral);
  line-height: .55;
  display: block;
  margin-bottom: 1rem;
}

.quote-text {
  font-family: var(--font-accent);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  color: var(--navy-dp);
  line-height: 1.55;
  margin-bottom: 2rem;
  font-style: italic;
}

.quote-attr {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ============================================================
   TRAINING
   ============================================================ */
.training {
  padding: var(--sp-md) 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}
.training > .container { position: relative; z-index: 1; }

/* Training background wrap — covers intro + carousels + exec band + schedule */
.training-bg-wrap {
  position: relative;
}
.training-bg-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--peach);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.training-bg-wrap > * { position: relative; z-index: 1; }

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.training-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.training-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(56,70,138,.1); }

.training-icon {
  width: 52px; height: 52px;
  background: rgba(56,70,138,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
}

.training-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-dp);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.training-card p { font-size: .91rem; color: var(--text-mid); line-height: 1.7; }

/* ============================================================
   TRAINING — APPROACH CARDS
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.approach-card {
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  text-align: center;
}
.approach-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.approach-card:nth-child(1)::after { background: var(--coral); }
.approach-card:nth-child(2)::after { background: var(--navy); }
.approach-card:nth-child(3)::after { background: var(--gold); }
.approach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ac-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1.25rem;   /* centred */
}
.ac-coral { background: var(--coral-pale); color: var(--coral); }
.ac-navy  { background: rgba(54,73,142,.1); color: var(--navy); }
.ac-gold  { background: var(--gold-lt); color: var(--gold-dk); }
.approach-card p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.approach-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: var(--navy-dp);
  margin-bottom: .65rem;
  line-height: 1.25;
  text-align: center;
}

/* ============================================================
   TRAINING — CATEGORY TOGGLE
   ============================================================ */
.cat-toggle {
  display: flex;
  background: var(--warm-gray);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
}
.cat-btn {
  padding: 9px 22px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-mid);
  cursor: pointer;
  transition: all .22s;
}
.cat-btn.active {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(54,73,142,.12);
}

/* ============================================================
   TRAINING — CAROUSEL SECTIONS
   ============================================================ */
.carousel-section { background: var(--off-white); padding: var(--sp-md) 0; position: relative; z-index: 1; }
.carousel-section-dark {
  background: var(--navy-dp);
  position: relative;
  overflow: hidden;
}
.carousel-section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.carousel-section-dark > .container { position: relative; z-index: 1; }
.carousel-section-dark .section-title { color: var(--white); }
.carousel-section-dark .section-sub   { color: rgba(255,255,255,.6); }
.carousel-section-dark .tag-navy {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
}
.carousel-section-dark .cat-toggle { background: rgba(255,255,255,.07); }
.carousel-section-dark .cat-btn     { color: rgba(255,255,255,.6); }
.carousel-section-dark .cat-btn.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}
/* Centre the tag + title inside the carousel header text block */
.carousel-header > div:first-child { text-align: center; flex: 1; }
.carousel-header > div:first-child .section-title { text-align: center; }
.carousel-header > div:first-child .section-sub   { text-align: center; margin-inline: auto; }
.carousel-controls { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.carousel-nav { display: flex; gap: .625rem; }
.carousel-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.carousel-nav-btn:hover {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}
.carousel-section-dark .carousel-nav-btn {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.65);
}
.carousel-section-dark .carousel-nav-btn:hover {
  background: var(--coral); border-color: var(--coral); color: var(--white);
}

/* Carousel track */
.carousel-wrap  { overflow: hidden; position: relative; }
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Dots */
.carousel-dots { display: flex; gap: 6px; margin-top: 1.5rem; justify-content: center; }
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all .2s;
  border: none;
  padding: 0;
}
.carousel-dot.active { width: 22px; border-radius: 4px; background: var(--coral); }
.carousel-section-dark .carousel-dot { background: rgba(255,255,255,.2); }
.carousel-section-dark .carousel-dot.active { background: var(--coral); }

/* ============================================================
   TRAINING — COURSE CARD
   ============================================================ */
.course-card {
  min-width: 310px;
  max-width: 310px;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  flex-shrink: 0;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(54,73,142,.13); }
.cc-header { padding: 1.75rem 1.75rem 1.25rem; position: relative; }
.cc-badges { display: flex; gap: .5rem; margin-bottom: .875rem; flex-wrap: wrap; }
.badge-tier {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.badge-general { background: var(--coral-pale); color: var(--coral); }
.badge-exec    { background: var(--gold-lt); color: var(--gold-dk); }
.badge-duration {
  background: rgba(54,73,142,.08);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.cc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.course-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dp);
  line-height: 1.25;
  margin-bottom: .5rem;
}
.cc-desc { font-size: .84rem; color: var(--text-mid); line-height: 1.65; }
.cc-body {
  padding: 0 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cc-modules {
  list-style: none;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.cc-modules li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.cc-modules li i { color: var(--coral); margin-top: 3px; font-size: .7rem; flex-shrink: 0; }
.cc-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cc-price { display: flex; flex-direction: column; }
.price-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy-dp);
  line-height: 1;
  font-weight: 700;
}
.price-amount.exec-price { color: var(--gold-dk); }
.price-note { font-size: .7rem; color: var(--text-light); margin-top: 2px; }
.enrol-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .6rem 1.1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--font);
}
.enrol-btn:hover { background: var(--navy-dk); transform: translateX(2px); }
.enrol-btn.exec {
  background: linear-gradient(135deg, var(--gold), #a8872e);
  box-shadow: 0 4px 14px rgba(201,168,76,.35);
}
.enrol-btn.exec:hover { box-shadow: 0 6px 20px rgba(201,168,76,.45); }

/* ============================================================
   TRAINING — EXECUTIVE HIGHLIGHT BAND
   ============================================================ */
.exec-band {
  background: linear-gradient(135deg, var(--navy-dp) 0%, var(--navy) 100%);
  padding: clamp(4rem, 8vw, 5rem) 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.exec-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.exec-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.exec-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.exec-band h2 { color: var(--white); margin-bottom: 1rem; }
.exec-band h2 em { color: var(--gold); font-family: var(--font-accent); font-style: italic; }
.exec-band p { color: rgba(255,255,255,.6); font-size: 1rem; line-height: 1.8; margin-bottom: 1.75rem; }
.exec-features { display: flex; flex-direction: column; gap: .875rem; }
.exec-feat { display: flex; align-items: flex-start; gap: .875rem; }
.exec-feat-icon {
  width: 36px; height: 36px;
  background: rgba(201,168,76,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.exec-feat-text h4 { font-size: .875rem; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.exec-feat-text p  { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.55; }
.exec-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1.875rem;
  background: linear-gradient(135deg, var(--gold), #a8872e);
  color: var(--white);
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(201,168,76,.35);
  transition: all .25s;
  margin-top: 2.25rem;
  font-family: var(--font);
}
.exec-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,168,76,.45); }
.exec-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.exec-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.exec-stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  font-weight: 700;
}
.exec-stat-num em { color: var(--gold); font-style: normal; }
.exec-stat-lbl { font-size: .82rem; color: rgba(255,255,255,.45); margin-top: .375rem; }

/* ============================================================
   TRAINING — CERTIFICATION PATHWAY
   ============================================================ */
.cert-track { background: var(--white); padding: var(--sp-md) 0; position: relative; z-index: 1; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.25rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral-pale), var(--navy), var(--coral-pale));
  z-index: 0;
}
.step { text-align: center; padding: 0 .75rem; position: relative; z-index: 1; }
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.125rem;
  border: 3px solid;
  background: var(--white);
}
.step:nth-child(1) .step-num { color: var(--coral);   border-color: var(--coral); }
.step:nth-child(2) .step-num { color: var(--navy);    border-color: var(--navy); }
.step:nth-child(3) .step-num { color: var(--coral);   border-color: var(--coral); }
.step:nth-child(4) .step-num { color: var(--gold);    border-color: var(--gold); }
.step h4 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--navy-dp); margin-bottom: .5rem; }
.step p  { font-size: .84rem; color: var(--text-mid); line-height: 1.6; }

/* ============================================================
   TRAINING — UPCOMING SCHEDULE
   ============================================================ */
.upcoming-section { background: var(--off-white); padding: var(--sp-md) 0; position: relative; z-index: 1; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(54,73,142,.07);
}
.schedule-table thead { background: var(--navy-dp); }
.schedule-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}
.schedule-table td {
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--off-white); }
.sched-course-name { font-weight: 600; color: var(--navy-dp); }
.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.tier-g { background: var(--coral-pale); color: var(--coral); }
.tier-e { background: var(--gold-lt); color: var(--gold-dk); }
.status-open { color: var(--green); font-weight: 600; font-size: .82rem; }
.status-soon { color: var(--amber); font-weight: 600; font-size: .82rem; }
.reg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .4rem .875rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  font-family: var(--font);
}
.reg-btn:hover { background: var(--navy-dk); }
.reg-btn.exec  { background: linear-gradient(135deg, var(--gold), #a8872e); }

/* ============================================================
   TEAM
   ============================================================ */
.team {
  padding: var(--sp-md) 0;
  /* Office-feel background — richly layered so it shows through frosted cards */
  background-color: var(--team-bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 15% 10%, rgba(56,70,138,.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 88%, rgba(246,91,106,.13) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255,255,255,.12) 0%, transparent 60%),
    linear-gradient(150deg, #d8dcee 0%, #ece8e2 50%, #d6dbed 100%);
  position: relative;
  overflow: hidden;
}

/* Dot-grid overlay — office/boardroom texture */
.team::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,70,138,.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
/* Subtle line grid on top */
.team::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,70,138,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,70,138,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}
.team > .container { position: relative; z-index: 1; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.team-card {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow:
    0 4px 16px rgba(56,70,138,.08),
    0 12px 40px rgba(56,70,138,.1),
    inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.team-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 8px 24px rgba(56,70,138,.12),
    0 32px 72px rgba(56,70,138,.2),
    inset 0 1px 0 rgba(255,255,255,.7);
  border-color: var(--coral-lt);
}

/* Photo wrapper — office blur frame */
.team-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

/* Blurred office background behind each portrait */
.team-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  background-image: var(--img);
  background-size: cover;
  background-position: center top;
  filter: blur(14px) brightness(.6) saturate(.5);
  transform: scale(1.08);
  z-index: 0;
}

/* Vignette to frame the portrait */
.team-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 85% at 50% 40%, transparent 55%, rgba(28,36,84,.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: var(--img);
  background-size: cover;
  background-position: center top;
  z-index: 2;
  /* Slight drop-shadow so photo lifts off the blurred bg */
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.28));
  transition: transform .4s cubic-bezier(.2,0,.2,1);
}
.team-card:hover .team-photo { transform: scale(1.03); }

/* Office label strip at bottom of photo */
.team-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: .875rem 1.125rem .625rem;
  background: linear-gradient(to top, rgba(28,36,84,.88) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  gap: .5rem;
}
.team-photo-label-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  margin-bottom: 3px;
  box-shadow: 0 0 6px var(--coral);
}
.team-photo-label-text {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

.team-info { padding: 1.375rem 1.5rem 1.5rem; }

.team-name {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-dp);
  margin-bottom: .3rem;
  line-height: 1.15;
}

.team-role {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.team-role-coral { background: var(--coral-pale); color: var(--coral); }
.team-role-navy  { background: rgba(56,70,138,.08); color: var(--navy); }

.team-bio {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.team-certs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.team-cert {
  font-size: .68rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.cert-coral { background: rgba(232,141,151,.1); color: var(--coral); border: 1px solid rgba(232,141,151,.25); }
.cert-navy  { background: rgba(56,70,138,.08);  color: var(--navy); border: 1px solid rgba(56,70,138,.2); }

/* ============================================================
   CONTACT FORM (inside .cta-band)
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  text-align: left;
  max-width: 1000px;
  margin-inline: auto;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
}

.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--coral-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--coral);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: .72rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .25rem; }
.contact-item a,
.contact-item p { font-size: .94rem; color: rgba(255,255,255,.88); margin: 0; line-height: 1.6; }
.contact-item a:hover { color: var(--coral-lt); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-dp);
  margin-bottom: .5rem;
}
.contact-form-wrap p { font-size: .88rem; color: var(--text-mid); margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.form-group { margin-bottom: .875rem; }
.form-group label { display: block; font-size: .72rem; font-weight: 600; color: var(--navy-dp); margin-bottom: .35rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .94rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,141,151,.15);
  background: var(--white);
}
.form-group textarea { min-height: 110px; resize: vertical; }

.form-submit { width: 100%; margin-top: .25rem; }

/* ============================================================
   RESOURCES SECTION
   ============================================================ */
.resources { padding: var(--sp-md) 0; background: var(--off-white); }

/* Stats strip */
.resource-stats-bar { background: var(--coral); padding: 1.5rem 0; }
.rstat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.rstat {
  text-align: center;
  padding: .375rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,.25);
}
.rstat:last-child { border-right: none; }
.rstat-num {
  font-family: var(--font-serif);
  font-size: 2.125rem;
  color: var(--white);
  line-height: 1;
  font-weight: 700;
}
.rstat-lbl { font-size: .78rem; color: rgba(255,255,255,.8); margin-top: .25rem; }

/* Sticky filter bar */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex: 1;
  min-width: 180px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 1rem;
  height: 40px;
}
.search-box input {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: .875rem;
  color: var(--text);
  outline: none;
  flex: 1;
  min-width: 0;
}
.search-box i { color: var(--text-light); font-size: .875rem; }
.filter-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.fpill {
  padding: .5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.fpill:hover { border-color: var(--navy); color: var(--navy); }
.fpill.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.res-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5625rem 1.125rem;
  background: var(--coral);
  color: var(--white);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: all .2s;
  white-space: nowrap;
}
.res-submit-btn:hover { filter: brightness(1.1); }

/* Section header row */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.view-all {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.view-all:hover { color: var(--coral); }

/* Article cards */
.articles-section { background: var(--off-white); padding: var(--sp-sm) 0; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.375rem;
}
.article-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  cursor: pointer;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--navy-dp), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-thumb.coral  { background: linear-gradient(135deg, #c23c4a, var(--coral)); }
.article-thumb.gold   { background: linear-gradient(135deg, #a8872e, var(--gold)); }
.article-thumb.green  { background: linear-gradient(135deg, #27500a, #3b6d11); }
.article-thumb.brown  { background: linear-gradient(135deg, #412402, #633806); }
.article-thumb-icon {
  font-size: 2.625rem;
  opacity: .18;
  position: absolute;
  right: 1.25rem;
  bottom: .625rem;
}
.article-thumb-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.article-thumb-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
  max-width: 85%;
  font-weight: 700;
}
.ac-meta { padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: .625rem; flex: 1; }
.ac-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ac-tag {
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.ac-tag-dp    { background: var(--coral-pale); color: var(--coral); }
.ac-tag-ai    { background: rgba(54,73,142,.1); color: var(--navy); }
.ac-tag-cyber { background: var(--green-lt); color: var(--green); }
.ac-tag-policy{ background: var(--gold-lt); color: var(--gold-dk); }
.ac-excerpt { font-size: .84rem; color: var(--text-mid); line-height: 1.65; flex: 1; }
.ac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.ac-date { font-size: .72rem; color: var(--text-light); font-family: var(--font-mono); }
.ac-read {
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ac-read:hover { color: var(--coral); }

/* Templates section */
.templates-section { background: var(--white); padding: var(--sp-sm) 0; }
.tier-group { margin-bottom: 3.75rem; }
.tier-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--border);
}
.tier-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.tier-icon-coral { background: var(--coral-pale); color: var(--coral); }
.tier-icon-gold  { background: var(--gold-lt);   color: var(--gold-dk); }
.tier-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--navy-dp);
  font-weight: 700;
}
.tier-tier-badge {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  margin-left: .625rem;
}
.tier-desc { font-size: .84rem; color: var(--text-mid); margin-top: 3px; }
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}
.tpl-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.375rem 1.375rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.tpl-card:hover {
  background: var(--white);
  border-color: rgba(54,73,142,.22);
  box-shadow: 0 8px 24px rgba(54,73,142,.09);
  transform: translateY(-3px);
}
.tpl-card.premium { background: var(--white); border-color: rgba(201,168,76,.28); }
.tpl-card.premium:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(201,168,76,.15); }
.tpl-premium-badge {
  position: absolute;
  top: .875rem; right: .875rem;
  background: linear-gradient(135deg, var(--gold), #a8872e);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.tpl-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.tpl-icon-coral { background: var(--coral-pale); color: var(--coral); }
.tpl-icon-gold  { background: var(--gold-lt);    color: var(--gold-dk); }
.tpl-top { display: flex; align-items: flex-start; gap: .75rem; }
.tpl-info { flex: 1; min-width: 0; }
.tpl-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy-dp);
  line-height: 1.25;
  margin-bottom: 4px;
  font-weight: 700;
}
.tpl-desc { font-size: .78rem; color: var(--text-mid); line-height: 1.6; }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.tpl-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tpl-tag {
  font-size: .62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tpl-tag-word  { background: rgba(54,73,142,.09); color: var(--navy); }
.tpl-tag-pdf   { background: var(--coral-pale); color: var(--coral); }
.tpl-tag-excel { background: var(--green-lt); color: var(--green); }
.tpl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.tpl-price { display: flex; flex-direction: column; }
.tpl-price-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.tpl-price-amount {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--navy-dp);
  line-height: 1.1;
  font-weight: 700;
}
.tpl-price-amount.free      { color: var(--green); font-size: 1.1rem; }
.tpl-price-amount.premium-p { color: var(--gold-dk); }
.tpl-price-note { font-size: .65rem; color: var(--text-light); margin-top: 1px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .5625rem 1rem;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: all .2s;
}
.dl-btn-free    { background: var(--navy); color: var(--white); }
.dl-btn-free:hover { background: var(--navy-dk); }
.dl-btn-premium {
  background: linear-gradient(135deg, var(--gold), #a8872e);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(201,168,76,.3);
}
.dl-btn-premium:hover { box-shadow: 0 6px 20px rgba(201,168,76,.4); transform: translateY(-1px); }

/* Upload section */
.upload-section {
  background: var(--navy-dp);
  padding: var(--sp-sm) 0;
  position: relative;
  overflow: hidden;
}
.upload-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 3.75rem);
  align-items: start;
  position: relative;
  z-index: 1;
}
.upload-left h2 { color: var(--white); margin-bottom: .875rem; }
.upload-left h2 em { color: var(--coral); font-family: var(--font-accent); font-style: italic; }
.upload-left > p { color: rgba(255,255,255,.55); font-size: 1rem; line-height: 1.8; margin-bottom: 1.75rem; }
.upload-types { display: flex; flex-direction: column; gap: .75rem; }
.upload-type { display: flex; align-items: flex-start; gap: .75rem; }
.ut-icon {
  width: 36px; height: 36px;
  background: rgba(246,91,106,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--coral);
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ut-text h4 { font-size: .875rem; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.ut-text p  { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.55; }
.upload-panel {
  background: rgba(255,255,255,.04);
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 2.25rem;
}
.upload-panel.drag-active { border-color: var(--coral); background: rgba(246,91,106,.07); }
.upload-dropzone { text-align: center; margin-bottom: 1.75rem; cursor: pointer; }
.upload-dropzone input[type=file] { display: none; }
.drop-icon {
  width: 64px; height: 64px;
  background: rgba(246,91,106,.12);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: var(--coral);
}
.drop-title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--white); margin-bottom: .5rem; font-weight: 700; }
.drop-sub { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.drop-sub span { color: var(--coral); cursor: pointer; font-weight: 600; }
.upload-form { display: flex; flex-direction: column; gap: 1rem; }
.upload-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.upload-form .form-group { display: flex; flex-direction: column; gap: .4rem; }
.upload-form .form-group label {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.upload-form .form-group input,
.upload-form .form-group select,
.upload-form .form-group textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: .6875rem .875rem;
  font-family: var(--font);
  font-size: .875rem;
  color: var(--white);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.upload-form .form-group input::placeholder,
.upload-form .form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.upload-form .form-group input:focus,
.upload-form .form-group select:focus,
.upload-form .form-group textarea:focus { border-color: var(--coral); }
.upload-form .form-group select option { background: var(--navy-dp); color: var(--white); }
.upload-form .form-group textarea { resize: vertical; min-height: 80px; }
.price-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.ptoggle {
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: rgba(255,255,255,.5);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.ptoggle:hover { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.8); }
.ptoggle.selected-free { background: rgba(22,163,74,.15); border-color: var(--green); color: #86efac; }
.ptoggle.selected-paid { background: rgba(201,168,76,.12); border-color: var(--gold);  color: #fde68a; }
.upload-submit {
  width: 100%;
  padding: .875rem;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  margin-top: .25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
}
.upload-submit:hover { filter: brightness(1.1); }
.file-preview {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: .75rem 1rem;
  display: none;
  align-items: center;
  gap: .75rem;
  margin-bottom: .25rem;
}
.file-preview.visible { display: flex; }
.file-preview i { color: var(--coral); font-size: 1.125rem; }
.file-preview-name { font-size: .82rem; color: var(--white); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-preview-size { font-size: .75rem; color: rgba(255,255,255,.35); font-family: var(--font-mono); }
.file-remove { color: rgba(255,255,255,.35); cursor: pointer; font-size: .875rem; transition: color .2s; }
.file-remove:hover { color: var(--coral); }

/* Template & upload modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,.72);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .3s;
  box-shadow: 0 20px 60px rgba(26,26,46,.2);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  transition: all .2s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--off-white); }
.modal-body { padding: 1.5rem 1.75rem 1.75rem; }
.modal-tpl-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}
.modal-box h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-dp);
  margin-bottom: .5rem;
  font-weight: 700;
}
.modal-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.125rem; }
.modal-desc { font-size: .94rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.25rem; }
.modal-includes {
  background: var(--off-white);
  border-radius: 10px;
  padding: 1.125rem 1.25rem;
  margin-bottom: 1.5rem;
}
.modal-includes h4 {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .75rem;
}
.modal-includes ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.modal-includes li {
  display: flex;
  align-items: flex-start;
  gap: .5625rem;
  font-size: .875rem;
  color: var(--text-mid);
}
.modal-includes li i { color: var(--coral); margin-top: 3px; font-size: .75rem; flex-shrink: 0; }
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.modal-price {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--navy-dp);
  font-weight: 700;
}
.modal-price.gold   { color: var(--gold-dk); }
.modal-price.free-c { color: var(--green); }
.modal-actions { display: flex; gap: .625rem; flex-wrap: wrap; }
.btn-modal-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8125rem 1.625rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.btn-dl  { background: var(--navy); color: var(--white); }
.btn-dl:hover { background: var(--navy-dk); }
.btn-buy {
  background: linear-gradient(135deg, var(--gold), #a8872e);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201,168,76,.35);
}
.btn-buy:hover { box-shadow: 0 6px 24px rgba(201,168,76,.45); transform: translateY(-1px); }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy-dp);
  color: var(--white);
  padding: .875rem 1.5rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .625rem;
  z-index: 3000;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 20px 60px rgba(26,26,46,.2);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { color: var(--coral); }

/* ============================================================
   EVENTS & OUTREACH
   ============================================================ */

/* Events background wrapper */
.events-bg-wrap {
  position: relative;
  background-image: url('images/background-events.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.events-bg-wrap > * { position: relative; z-index: 1; }

/* Make child section backgrounds semi-transparent so the events image shows through */
.events-bg-wrap .events-impact-bar {
  background: rgba(232,141,151,.85);
}
.events-bg-wrap .csr-section {
  background: rgba(246,247,251,.82);
}
.events-bg-wrap .events-upcoming-section {
  background: rgba(28,36,84,.82);
}
.events-bg-wrap .past-events-section {
  background: rgba(255,255,255,.82);
}
.events-bg-wrap .gallery {
  background: rgba(28,36,84,.85);
}
.events-bg-wrap .partner-section-ev {
  background: rgba(246,247,251,.82);
}

/* Impact bar */
.events-impact-bar {
  background: var(--coral);
  padding: 2.5rem 0;
}
.impact-grid-ev {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.impact-stat-ev { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.impact-num-ev {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.impact-lbl-ev {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
}

/* CSR Mission */
.csr-section {
  padding: var(--sp-md) 0;
  background: var(--off-white);
}
.csr-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.csr-img-wrap {
  position: relative;
  height: 480px;
}
.csr-img-main {
  position: absolute;
  inset: 0 80px 60px 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center top;
  border-radius: 1rem;
}
.csr-img-sm {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  aspect-ratio: 4/3;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  border-radius: .875rem;
  border: 4px solid var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.csr-accent-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  padding: .35rem .75rem;
  border-radius: 999px;
  z-index: 2;
}
.csr-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.csr-eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  flex-shrink: 0;
}
.csr-text > p { color: var(--text-mid); line-height: 1.75; margin-bottom: 1rem; }
.csr-pillars { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.75rem; }
.csr-pillar { display: flex; align-items: flex-start; gap: 1rem; }
.csr-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pi-coral { background: var(--coral-pale); color: var(--coral); }
.pi-navy  { background: rgba(56,70,138,.12); color: var(--navy); }
.pi-gold  { background: var(--gold-lt); color: var(--gold-dk); }
.csr-pillar-text h4 { font-size: .95rem; color: var(--navy); margin-bottom: .3rem; }
.csr-pillar-text p  { font-size: .875rem; color: var(--text-mid); margin: 0; line-height: 1.65; }

/* Upcoming events */
.events-upcoming-section {
  background: var(--navy-dp);
  padding: var(--sp-md) 0;
}
.events-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.events-eyebrow.white { color: var(--coral); }
.events-eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  flex-shrink: 0;
}
.upcoming-grid-ev {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.upcoming-card-ev {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1rem;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2,0,.2,1), box-shadow .35s cubic-bezier(.2,0,.2,1);
  z-index: 1;
}
.upcoming-card-ev:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 28px 64px rgba(0,0,0,.4);
  z-index: 10;
  border-radius: 1rem;
}
/* clip inner content (thumb) to card corners */
.upcoming-card-ev > .uc-thumb-ev {
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}
.uc-thumb-ev {
  position: relative;
  height: 200px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transition: background-size .35s ease;
}
.upcoming-card-ev:hover .uc-thumb-ev {
  background-size: 110%;
}
.uc-thumb-ev::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(28,36,84,.7));
}
.uc-date-chip-ev {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  background: var(--coral);
  border-radius: .5rem;
  padding: .4rem .6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.uc-day { font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); }
.uc-mon { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .05em; color: rgba(255,255,255,.85); text-transform: uppercase; }
.uc-type-badge-ev {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
}
.badge-upcoming-ev { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.uc-body-ev { padding: 1.25rem 1.25rem .875rem; flex: 1; }
.uc-venue-ev {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--coral);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .625rem;
}
.uc-title-ev {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: .625rem;
}
.uc-desc-ev { font-size: .845rem; color: rgba(255,255,255,.6); line-height: 1.65; }
.uc-footer-ev {
  padding: .875rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.uc-attendees-ev {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: .4rem;
  text-transform: uppercase;
}
.ev-register-btn {
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: .5rem;
  padding: .55rem 1rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: filter .2s, transform .2s;
}
.ev-register-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Past events */
.past-events-section {
  background: var(--white);
  padding: var(--sp-md) 0;
}
.past-featured-ev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.past-featured-img-ev {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 320px;
}
.past-feat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,36,84,.85) 0%, transparent 55%);
}
.past-feat-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}
.past-feat-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: .5rem;
}
.past-feat-meta p { font-size: .845rem; color: rgba(255,255,255,.72); line-height: 1.6; margin-bottom: .625rem; }
.pf-date-ev { font-family: var(--font-mono); font-size: .68rem; color: var(--coral); letter-spacing: .05em; }
.pf-tag-ev {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.pf-tag-coral-ev { background: var(--coral); color: var(--white); }
.past-featured-side-ev { display: flex; flex-direction: column; gap: 1rem; }
.past-side-card-ev {
  display: flex;
  gap: .875rem;
  background: var(--off-white);
  border-radius: .875rem;
  overflow: hidden;
  flex: 1;
}
.psc-img-ev {
  width: 100px;
  flex-shrink: 0;
  min-height: 90px;
}
.psc-body-ev { padding: .875rem .875rem .875rem 0; display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.psc-tag-ev {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .2rem;
}
.psc-title-ev { font-size: .875rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.psc-loc-ev   { font-size: .75rem; color: var(--text-mid); display: flex; align-items: center; gap: .3rem; }
.psc-date-ev  { font-family: var(--font-mono); font-size: .65rem; color: var(--coral); letter-spacing: .04em; }

/* Past events grid */
.past-grid-ev {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: .25rem;
}
.past-card-ev {
  border-radius: .875rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--warm-gray);
  transition: transform .25s, box-shadow .25s;
}
.past-card-ev:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,.09);
}
.pc-img-ev { width: 100%; aspect-ratio: 3/2; }
.pc-body-ev { padding: 1rem; }
.pc-tag-ev {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}
.pc-title-ev { font-size: .875rem; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: .4rem; }
.pc-loc-ev   { font-size: .75rem; color: var(--text-mid); display: flex; align-items: center; gap: .3rem; margin-bottom: .25rem; }
.pc-date-ev  { font-family: var(--font-mono); font-size: .65rem; color: var(--coral); letter-spacing: .04em; }

/* Get involved / partner section */
.partner-section-ev {
  background: var(--off-white);
  padding: var(--sp-md) 0;
}
.partner-grid-ev {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.partner-card-ev {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--warm-gray);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.partner-card-ev:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}
.pce-icon {
  width: 52px;
  height: 52px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.pci-coral { background: var(--coral-pale); color: var(--coral); }
.pci-navy  { background: rgba(56,70,138,.12); color: var(--navy); }
.pci-gold  { background: var(--gold-lt); color: var(--gold-dk); }
.partner-card-ev h3 { font-size: 1.05rem; color: var(--navy); margin: 0; }
.partner-card-ev p  { font-size: .875rem; color: var(--text-mid); line-height: 1.7; margin: 0; flex: 1; }
.pce-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: .55rem 1.1rem;
  border-radius: .5rem;
  transition: filter .2s, transform .2s;
  align-self: flex-start;
}
.pce-link:hover { filter: brightness(1.1); transform: translateX(2px); }
.pce-coral { background: var(--coral-pale); color: var(--coral); }
.pce-navy  { background: rgba(56,70,138,.12); color: var(--navy); }
.pce-gold  { background: var(--gold-lt); color: var(--gold-dk); }

/* Event modal type badge */
.modal-event-type-ev {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .5rem;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: var(--sp-md) 0;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.cta-band .section-title { color: var(--white); position: relative; z-index: 1; margin-bottom: 1rem; }

.cta-band p {
  color: rgba(255,255,255,.6);
  font-size: clamp(.94rem, 1.5vw, 1.06rem);
  margin: 0 auto 2.5rem;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.cta-band .btn { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dp); padding: var(--sp-sm) 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.75rem);
  padding-bottom: 3.75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo-law { color: var(--white); }

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  margin-top: .75rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-col ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: block;
  padding-block: .15rem;
}
.footer-col ul a:hover { color: var(--coral-lt); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: .5rem;
}

.social-links { display: flex; gap: .875rem; margin-top: 1.5rem; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: .875rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-links a:hover {
  border-color: var(--coral-lt);
  color: var(--coral-lt);
  background: rgba(241,167,175,.08);
}

/* WhatsApp community links */
.footer-communities {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.footer-community-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: .25rem;
}
.footer-community-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.22);
  color: rgba(37,211,102,.9);
  border-radius: 8px;
  padding: .5rem .875rem;
  font-size: .8rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.footer-community-link i { font-size: 1rem; }
.footer-community-link:hover {
  background: rgba(37,211,102,.2);
  border-color: rgba(37,211,102,.4);
  color: #25d366;
}

/* ============================================================
   RESPONSIVE — Large tablet  (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  /* Grids */
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .training-grid  { grid-template-columns: repeat(2, 1fr); }
  .approach-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps-grid     { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .steps-grid::before { display: none; }
  .articles-grid  { grid-template-columns: repeat(2, 1fr); }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }

  /* Exec band */
  .exec-inner     { grid-template-columns: 1fr; }
  .exec-stats     { grid-template-columns: repeat(4, 1fr); }

  /* Upload / resources */
  .upload-grid    { grid-template-columns: 1fr; }
  .rstat-grid     { grid-template-columns: repeat(2, 1fr); }
  .rstat          { border-bottom: 1px solid rgba(255,255,255,.14); border-right: none; }
  .rstat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.25); }

  /* Pillars */
  .pillars-grid         { grid-template-columns: repeat(2, 1fr); }
  .pillar               { border-bottom: 1px solid var(--border); }
  .pillar:nth-child(2)  { border-right: none; }
  .pillar:nth-child(3)  { border-bottom: none; }
  .pillar:nth-child(4)  { border-right: none; border-bottom: none; }

  /* Events */
  .impact-grid-ev        { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .csr-inner             { gap: 2rem; }
  .upcoming-grid-ev      { grid-template-columns: repeat(2, 1fr); }
  .past-featured-ev      { grid-template-columns: 1fr; }
  .past-featured-img-ev  { min-height: 380px; }
  .past-featured-side-ev { flex-direction: row; }
  .past-side-card-ev     { flex: 1; }
  .past-grid-ev          { grid-template-columns: repeat(2, 1fr); }
  .partner-grid-ev       { gap: 1.25rem; }
}

/* ============================================================
   RESPONSIVE — Tablet  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Spacing */
  :root {
    --nav-h: 64px;
    --sp-sm: clamp(2.25rem, 5vw, 3.5rem);
    --sp-md: clamp(3rem,    7vw, 5rem);
    --sp-lg: clamp(3.75rem, 9vw, 6rem);
  }

  /* Nav — hamburger */
  .nav-toggle   { display: flex; }
  .nav-cta-wrap { display: none; }
  .logo-img     { height: 52px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 3px solid var(--coral);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .38s cubic-bezier(.4,0,.2,1),
                opacity .28s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li      { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a       { padding: 1rem 1.5rem; font-size: .95rem; min-height: 52px; width: 100%; }
  .nav-links li.mobile-cta { display: block; border-bottom: none; padding: 1rem 1.5rem; }

  /* Hero */
  .hero         { min-height: auto; padding-block: 0; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero h1      { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-desc    { margin-inline: auto; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-visual  { position: static; width: 100%; height: 340px; margin-bottom: 2.5rem; z-index: 1; }
  .hero-photo-wrap { width: 100%; height: 100%; }
  .hero-photo-img  { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
  .hero-badge   { left: 50%; transform: translateX(-50%); bottom: -12px; padding: .625rem .75rem; }

  /* Stats */
  .stats-bar    { padding: 1.5rem 0; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-item    { border-bottom: 1px solid rgba(255,255,255,.18); border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.25); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4)   { border-bottom: none; }

  /* About */
  .about-grid    { grid-template-columns: 1fr; align-items: flex-start; }
  .about-imgs    { min-height: 340px; height: 340px; position: relative; }
  .about-photo-1 { position: absolute; inset: 0; border-radius: 12px; }
  .about-text    { justify-content: flex-start; }
  .about-accent  { display: none; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }
  .gallery-item.tall { grid-row: span 2; }

  /* Training */
  .training-grid   { grid-template-columns: 1fr 1fr; }
  .approach-grid   { grid-template-columns: 1fr; }
  .carousel-header { flex-direction: column; align-items: flex-start; }
  .course-card     { min-width: 280px; max-width: 280px; }
  .exec-stats      { grid-template-columns: repeat(2, 1fr); }

  /* Grids */
  .articles-grid  { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .filter-inner   { flex-direction: column; align-items: stretch; }
  .upload-form .form-row { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }

  /* Resources */
  .rstat-num { font-size: 1.75rem; }

  /* Section */
  .section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }

  /* Modal */
  .modal-box    { border-radius: 14px; }
  .modal-header { padding: 1.25rem 1.25rem 1rem; }
  .modal-body   { padding: 1.125rem 1.25rem 1.5rem; }

  /* Upload */
  .upload-panel { padding: 1.5rem; }

  /* Toast */
  .toast { white-space: normal; max-width: calc(100vw - 2rem); text-align: center; }

  /* Cookie / privacy modals */
  .cookie-banner-inner   { gap: 1rem; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
  .cookie-prefs-footer   { justify-content: flex-end; }
  .pp-body   { max-height: 60vh; padding: 1.375rem; }
  .pp-header { padding: 1.375rem; }

  /* Events */
  .impact-grid-ev        { grid-template-columns: repeat(2, 1fr); }
  .csr-inner             { grid-template-columns: 1fr; }
  .csr-img-wrap          { height: 340px; }
  .upcoming-grid-ev      { grid-template-columns: 1fr; }
  .past-featured-side-ev { flex-direction: column; }
  .partner-grid-ev       { grid-template-columns: 1fr; }
  .uc-footer-ev          { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — Mobile  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Spacing */
  :root {
    --nav-h: 60px;
    --sp-xs: 1.75rem;
    --sp-sm: 2.25rem;
    --sp-md: 2.75rem;
    --sp-lg: 3.5rem;
  }

  /* Topbar */
  .topbar { font-size: .65rem; padding: .5rem 1rem; }

  /* Nav */
  .logo-img         { height: 44px; }
  .nav-links.open   { max-height: 520px; }
  .nav-links a      { font-size: .9rem; padding: .875rem 1.25rem; min-height: 48px; }

  /* Hero */
  .hero h1           { font-size: clamp(1.75rem, 8vw, 2.5rem); letter-spacing: -.02em; }
  .hero-desc         { font-size: .9rem; margin-bottom: 1.75rem; }
  .hero-visual       { height: 200px; }
  .hero-badge        { display: none; }
  .hero-eyebrow-text { font-size: .65rem; }
  .hero-actions      { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-bar  { padding: 1.25rem 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item  { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.18); padding: .75rem 1rem; }
  .stat-item:last-child { border-bottom: none; }

  /* Section */
  .section-header { margin-bottom: 1.75rem; }
  .section-title  { letter-spacing: -.02em; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card  { padding: 1.25rem; border-radius: 12px; }
  .service-icon  { width: 44px; height: 44px; margin-bottom: 1rem; font-size: 1.125rem; }

  /* Pillars */
  .pillars-grid      { grid-template-columns: 1fr; border-radius: 12px; }
  .pillar            { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.125rem; border-right: none !important; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
  .pillar-icon       { margin-bottom: 0; flex-shrink: 0; }
  .pillar-content    { flex: 1; }

  /* About */
  .about-imgs    { height: 220px; min-height: 220px; }
  .about-photo-2 { display: none; }

  /* Gallery */
  .gallery-grid      { grid-template-columns: 1fr; grid-template-rows: auto; gap: .625rem; }
  .gallery-item      { height: 170px; }
  .gallery-item.tall { grid-row: span 1; height: 220px; }

  /* Quote */
  .quote-mark { font-size: 4rem; }
  .quote-text { font-size: 1.125rem; }

  /* Training */
  .training-grid  { grid-template-columns: 1fr; }
  .approach-grid  { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr 1fr; }
  .exec-stats     { grid-template-columns: 1fr 1fr; }
  .course-card    { min-width: 240px; max-width: 240px; }
  .schedule-table { font-size: .78rem; }
  .schedule-table th, .schedule-table td { padding: .75rem; }

  /* Resources */
  .rstat-num      { font-size: 1.5rem; }
  .rstat          { padding: .375rem .75rem; }
  .fpill          { font-size: .7rem; padding: .45rem .8rem; }
  .templates-grid { gap: .75rem; }
  .tpl-card       { padding: 1.125rem 1.125rem .875rem; }
  .team-grid      { grid-template-columns: 1fr; }

  /* Upload */
  .upload-panel { padding: 1.25rem; }
  .drop-icon    { width: 52px; height: 52px; font-size: 1.375rem; }
  .drop-title   { font-size: 1.05rem; }

  /* Contact */
  .cta-band           { padding-block: var(--sp-sm); }
  .cta-band .btn      { width: min(100%, 320px); }
  .contact-item       { padding: 1rem; }
  .contact-item-icon  { width: 38px; height: 38px; font-size: .95rem; }
  .contact-form-wrap  { padding: 1.25rem; border-radius: 12px; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-tagline { max-width: 100%; }
  .footer-col h4  { margin-bottom: .75rem; }
  .footer-bottom  { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-legal-links { justify-content: center; }

  /* Toast */
  .toast { white-space: normal; max-width: calc(100vw - 2rem); bottom: 1rem; text-align: left; padding: .75rem 1.125rem; font-size: .82rem; }

  /* Modal */
  .modal-overlay  { padding: .75rem; align-items: flex-end; }
  .modal-box      { border-radius: 16px 16px 12px 12px; max-height: 92vh; }
  .modal-header   { padding: 1.125rem 1.125rem .875rem; }
  .modal-body     { padding: 1rem 1.125rem 1.375rem; }
  .modal-box h3   { font-size: 1.25rem; }
  .modal-price    { font-size: 1.5rem; }
  .modal-actions  { flex-direction: column; }
  .modal-actions .btn-modal-primary { width: 100%; justify-content: center; }

  /* Cookie / privacy modals */
  .cookie-banner-actions  { justify-content: stretch; }
  .cookie-btn             { flex: 1; justify-content: center; text-align: center; }
  .cookie-prefs-box       { border-radius: 14px; padding: 1.25rem; max-height: 92vh; overflow-y: auto; }
  .pp-box    { border-radius: 14px 14px 0 0; max-height: 92vh; }
  .pp-header { padding: 1.125rem; }
  .pp-body   { padding: 1.125rem; max-height: 62vh; }

  /* Buttons */
  .btn    { padding: .75rem 1.25rem; font-size: .875rem; }
  .btn-lg { padding: .875rem 1.5rem; font-size: .9rem; }
}

/* ============================================================
   RESPONSIVE — Very small phones  (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  :root {
    --nav-h: 56px;
    --sp-sm: 2rem;
    --sp-md: 2.5rem;
    --sp-lg: 3rem;
  }

  .topbar        { display: none; }
  .logo-sub      { display: none; }
  .logo-img      { height: 38px; }
  .hero h1       { font-size: 1.625rem; }
  .hero-desc     { font-size: .85rem; }
  .hero-visual   { height: 170px; }
  .stat-num      { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  .service-card h3   { font-size: .95rem; }
  .training-card h3  { font-size: .95rem; }
  .contact-form-wrap { padding: 1rem; }
  .gallery-item      { height: 150px; }
  .gallery-item.tall { height: 190px; }
  .quote-text        { font-size: 1rem; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-dp);
  border-top: 3px solid var(--coral);
  z-index: 4000;
  padding: 1.125rem 0;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.2, 0, .2, 1);
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  width: min(1160px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-banner-icon {
  font-size: 1.75rem;
  color: var(--coral);
  flex-shrink: 0;
}

.cookie-banner-text {
  flex: 1;
  min-width: 220px;
}
.cookie-banner-text strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-family: var(--font);
  font-weight: 600;
  margin-bottom: .2rem;
}
.cookie-banner-text p {
  font-size: .83rem;
  color: rgba(255, 255, 255, .7);
  margin: 0;
  line-height: 1.55;
}
.cookie-text-link {
  background: none;
  border: none;
  color: var(--coral-lt);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-text-link:hover { color: #fff; }

.cookie-banner-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Shared cookie button base */
.cookie-btn {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .03em;
  border-radius: 8px;
  padding: .5625rem 1rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn:active { transform: translateY(0); }

.cookie-btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.cookie-btn-primary:hover { background: var(--coral-lt); border-color: var(--coral-lt); }

.cookie-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, .75);
  border-color: rgba(255, 255, 255, .3);
}
.cookie-btn-ghost:hover { border-color: rgba(255, 255, 255, .7); color: #fff; }

.cookie-btn-outline {
  background: transparent;
  color: var(--coral-lt);
  border-color: var(--coral);
}
.cookie-btn-outline:hover { background: var(--coral); color: #fff; }

/* variants for the light modal footer */
.cookie-btn-ghost-dark {
  background: transparent;
  color: #888;
  border-color: #ccc;
}
.cookie-btn-ghost-dark:hover { border-color: #888; color: #333; }

.cookie-btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.cookie-btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ── Cookie Preferences Modal ───────────────────────────── */
.cookie-prefs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 40, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cookie-prefs-overlay.open { opacity: 1; pointer-events: all; }

.cookie-prefs-box {
  background: #fff;
  border-radius: 20px;
  width: min(520px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .35);
  transform: translateY(24px) scale(.98);
  transition: transform .28s cubic-bezier(.2, 0, .2, 1);
}
.cookie-prefs-overlay.open .cookie-prefs-box { transform: translateY(0) scale(1); }

.cookie-prefs-header {
  background: var(--navy-dp);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cookie-prefs-header h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cookie-prefs-header h3 i { color: var(--coral); }

.cookie-prefs-body {
  padding: 1.375rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.cookie-prefs-intro {
  font-size: .83rem;
  color: #666;
  margin-bottom: 1.125rem;
  line-height: 1.65;
}

.cookie-cat {
  border: 1.5px solid #e8e8f0;
  border-radius: 12px;
  padding: 1rem 1.125rem;
  margin-bottom: .75rem;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-cat-head strong {
  display: block;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .2rem;
}
.cookie-cat-desc {
  font-size: .79rem;
  color: #777;
  display: block;
  line-height: 1.5;
}
.cookie-always-on {
  font-family: var(--font-mono);
  font-size: .68rem;
  background: var(--coral-pale);
  color: var(--coral);
  padding: .25rem .7rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  width: 44px;
  height: 24px;
  background: #d0d0db;
  border-radius: 12px;
  transition: background .2s;
  position: relative;
}
.toggle-switch input:checked ~ .toggle-track { background: var(--coral); }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left .2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}
.toggle-switch input:checked ~ .toggle-track .toggle-thumb { left: 23px; }
.toggle-switch:focus-within .toggle-track {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.cookie-prefs-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .625rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Privacy Policy Modal ───────────────────────────────── */
.pp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 40, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
  overflow-y: auto;
}
.pp-overlay.open { opacity: 1; pointer-events: all; }

.pp-box {
  background: #fff;
  border-radius: 20px;
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
  transform: translateY(28px) scale(.98);
  transition: transform .3s cubic-bezier(.2, 0, .2, 1);
  margin: auto;
}
.pp-overlay.open .pp-box { transform: translateY(0) scale(1); }

.pp-header {
  background: var(--navy-dp);
  padding: 1.875rem 2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}
.pp-header h2 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: .375rem 0 .375rem;
  font-family: var(--font-serif);
}

.pp-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: 72vh;
  line-height: 1.75;
}
.pp-body h3 {
  color: var(--navy);
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 600;
  margin: 1.75rem 0 .5rem;
  padding-bottom: .375rem;
  border-bottom: 2px solid var(--coral-pale);
}
.pp-body h3:first-child { margin-top: 0; }
.pp-body p { color: #444; font-size: .875rem; margin-bottom: .875rem; }
.pp-body ul { color: #444; font-size: .875rem; padding-left: 1.375rem; margin-bottom: .875rem; }
.pp-body ul li { margin-bottom: .35rem; }
.pp-body strong { color: var(--navy-dk); }
.pp-body a { color: var(--coral); text-underline-offset: 2px; }
.pp-body a:hover { color: var(--coral-lt); }

.pp-cookie-prefs-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .625rem 1.25rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .2s, transform .15s;
}
.pp-cookie-prefs-btn:hover { background: var(--coral-lt); transform: translateY(-1px); }

/* ── Footer legal links ─────────────────────────────────── */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.footer-text-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  padding: 0;
  font-size: .8rem;
  font-family: var(--font-mono);
  transition: color .2s;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
}
.footer-text-btn:hover { color: var(--coral-lt); text-decoration-color: var(--coral-lt); }
.footer-legal-links span[aria-hidden] { color: rgba(255, 255, 255, .3); font-size: .75rem; }
