/* S.A.F.E. Mission page - the approved design's stylesheets (htmlSafeMission css/), every rule scoped to .sm-page
   so the site's navbar and footer keep their own look, followed by the site adjustments
   (database/data/safe-mission/site.css). Re-create with database/data/safe-mission/convert-from-html.cjs. */

/* ---- base/variables.css ---- */
/* ========================================================
   variables.css - Design tokens shared by every section.

   Breakpoints used across the stylesheets (media queries
   cannot read custom properties, so they are listed here):
     380px  small phones
     560px  phones
     640px  large phones
     860px  small tablets
     1024px tablets / small laptops
     1280px laptops
   ======================================================== */

.sm-page {
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-condensed: 'Roboto Condensed', 'Plus Jakarta Sans', sans-serif;

  /* Brand colours */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-forest: #064e3b;
  --color-green: #16a34a;
  --color-orange: #ea580c;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --gutter: clamp(16px, 4vw, 24px);
}


/* ---- base/reset.css ---- */
/* ========================================================
   reset.css - Minimal modern reset
   ======================================================== */

.sm-page *,
.sm-page *::before,
.sm-page *::after {
  box-sizing: border-box;
}

.sm-page * {
  margin: 0;
  padding: 0;
}

.sm-page {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.sm-page,
.sm-page {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-black);
}

/* Nothing may push the page sideways on small screens */
.sm-page {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  .sm-page {
    overflow-x: clip;
  }
}

.sm-page img,
.sm-page picture,
.sm-page video {
  display: block;
  max-width: 100%;
}

.sm-page input,
.sm-page button,
.sm-page textarea,
.sm-page select {
  font: inherit;
  color: inherit;
}

.sm-page button {
  -webkit-tap-highlight-color: transparent;
}

.sm-page a {
  color: inherit;
}

.sm-page ul[role='list'],
.sm-page ol[role='list'] {
  list-style: none;
}


/* ---- base/base.css ---- */
/* ========================================================
   base.css - Page-wide defaults, utilities and a11y helpers
   ======================================================== */

.sm-page {
  font-family: var(--font-sans);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sections that receive focus after in-page navigation */
.sm-page [tabindex='-1']:focus {
  outline: none;
}

/* Hidden visually, still read by screen readers */
.sm-page .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard users can jump straight past the hero video */
.sm-page .skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--color-white);
  color: var(--color-forest);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.sm-page .skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sm-page *,
.sm-page *::before,
.sm-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---- components/hero.css ---- */
/* ========================================================
   hero.css - Full-screen video header
   ======================================================== */

.sm-page .hero {
  width: 100%;
  height: 100vh;
  height: 100svh; /* mobile: excludes the browser toolbar */
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-page .hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Portrait screens (phones, upright tablets): `cover` would crop the 16:9 video down to
   its middle third and cut off its centred title, so show the whole video instead and
   put the tabs on black underneath it (see tabs.css). */
@media (max-aspect-ratio: 1/1) {
  .sm-page .hero {
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .sm-page .hero-video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}


/* ---- components/tabs.css ---- */
/* ========================================================
   tabs.css - Frosted glass section tabs over the hero video

   Every tab keeps the same box in both states, so switching
   the active tab never shifts the others. Phones (<= 600px)
   get four equal columns with the icon above the label.
   ======================================================== */

.sm-page .hero-tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  position: absolute;
  bottom: 40px;
  left: 0;
  z-index: 20;
  pointer-events: none;
}

/* Outer frosted glass capsule */
.sm-page .tabs-capsule {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 6px;
  list-style: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25);
  max-width: 100%;
  user-select: none;
}

.sm-page .tabs-capsule > li {
  display: flex;
  min-width: 0;
}

/* Tab button (an in-page link) */
.sm-page .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px 0 5px;
  border-radius: 9999px;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition:
    background-color 0.25s var(--ease-out-expo),
    color 0.25s var(--ease-out-expo),
    box-shadow 0.25s var(--ease-out-expo),
    transform 0.25s var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}

.sm-page .tab-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

/* Icon holder: glowing icon when active, tinted circle badge when inactive */
.sm-page .tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.sm-page .tab-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  transition: width 0.25s ease, height 0.25s ease;
}

.sm-page .tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: text-shadow 0.2s ease;
}

/* ---------- Inactive ---------- */
.sm-page .tab-btn:not(.is-active) {
  opacity: 0.95;
}

.sm-page .tab-btn[data-theme='orange']:not(.is-active) .tab-icon {
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  box-shadow: 0 0 14px rgba(255, 106, 0, 0.25);
}

.sm-page .tab-btn[data-theme='green']:not(.is-active) .tab-icon {
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
}

.sm-page .tab-btn[data-theme='blue']:not(.is-active) .tab-icon {
  box-shadow: 0 0 14px rgba(0, 162, 255, 0.25);
}

.sm-page .tab-btn[data-theme='purple']:not(.is-active) .tab-icon {
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

@media (hover: hover) {
  .sm-page .tab-btn:not(.is-active):hover {
    opacity: 1;
    transform: translateY(-1px);
  }

  .sm-page .tab-btn:not(.is-active):hover .tab-label {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  }

  .sm-page .tab-btn[data-theme='orange']:not(.is-active):hover .tab-icon {
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.45);
  }

  .sm-page .tab-btn[data-theme='green']:not(.is-active):hover .tab-icon {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
  }

  .sm-page .tab-btn[data-theme='blue']:not(.is-active):hover .tab-icon {
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.5);
    transform: scale(1.05);
  }

  .sm-page .tab-btn[data-theme='purple']:not(.is-active):hover .tab-icon {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
  }
}

/* ---------- Active (solid white capsule) ---------- */
.sm-page .tab-btn.is-active {
  background: #ffffff;
  color: #0b1727;
  font-weight: 700;
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.22);
}

.sm-page .tab-btn.is-active:hover {
  box-shadow:
    0 0 32px rgba(255, 255, 255, 0.45),
    0 5px 18px rgba(0, 0, 0, 0.28);
}

.sm-page .tab-btn.is-active .tab-icon img {
  width: 28px;
  height: 28px;
}

.sm-page .tab-btn.is-active[data-theme='orange'] .tab-icon {
  filter: drop-shadow(0 0 12px rgba(255, 115, 0, 0.7));
}

.sm-page .tab-btn.is-active[data-theme='green'] .tab-icon {
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.7));
}

.sm-page .tab-btn.is-active[data-theme='blue'] .tab-icon {
  filter: drop-shadow(0 0 12px rgba(0, 162, 255, 0.7));
}

.sm-page .tab-btn.is-active[data-theme='purple'] .tab-icon {
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.7));
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
  .sm-page .tabs-capsule {
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .sm-page .hero-tabs {
    bottom: 28px;
    padding: 0 16px;
  }

  .sm-page .tabs-capsule {
    gap: 10px;
  }

  .sm-page .tab-btn {
    height: 48px;
    gap: 10px;
    padding: 0 20px 0 5px;
    font-size: 15px;
  }

  .sm-page .tab-icon {
    width: 38px;
    height: 38px;
  }

  .sm-page .tab-icon img {
    width: 22px;
    height: 22px;
  }

  .sm-page .tab-btn.is-active .tab-icon img {
    width: 24px;
    height: 24px;
  }
}

/* Phones: four equal columns, icon above label - always fits, never scrolls */
@media (max-width: 600px) {
  .sm-page .hero-tabs {
    bottom: 20px;
    padding: 0 12px;
  }

  .sm-page .tabs-capsule {
    display: flex;
    width: 100%;
    max-width: 440px;
    gap: 2px;
    padding: 5px;
    border-radius: 24px;
  }

  .sm-page .tabs-capsule > li {
    flex: 1 1 0;
  }

  .sm-page .tab-btn {
    width: 100%;
    height: auto;
    min-height: 64px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 2px;
    border-radius: 19px;
    font-size: clamp(10.5px, 3.3vw, 13px);
  }

  .sm-page .tab-label {
    max-width: 100%;
  }

  .sm-page .tab-icon {
    width: 32px;
    height: 32px;
  }

  .sm-page .tab-icon img,
.sm-page .tab-btn.is-active .tab-icon img {
    width: 20px;
    height: 20px;
  }
}

/* Portrait screens: the tabs sit below the whole video instead of over it (see hero.css) */
@media (max-aspect-ratio: 1/1) {
  .sm-page .hero-tabs {
    position: static;
    padding: 20px 16px 28px;
    background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(34, 197, 94, 0.14) 0%, transparent 70%);
  }
}


/* ---- sections/about.css ---- */
/* ========================================================
   about.css - "About SAFE Mission"
   Banner layout: text + Vision/Mission cards on the left,
   hexagon photo cluster on a colour backdrop on the right.

   The section fills the screen (full width, full height).
   --stage-w is the photo stage on the right: as tall as the
   screen where possible, never more than 47% of the width.
   --s is one design pixel of the 1024px-wide reference
   banner, sized so the text column fits beside the stage.
   The right stage uses its own unit --u (1/424 of its width).
   ======================================================== */

.sm-page .about-section {
  --stage-w: min(calc(100vh * 0.995), 47vw);
  --pad-l: clamp(24px, 5vw, 96px);
  --s: clamp(0.82px, calc((100vw - var(--stage-w) - var(--pad-l)) / 590), 1.45px);
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  font-family: var(--font-sans);
}

/* Subtle top divider to transition cleanly from hero */
.sm-page .about-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 5;
  background: linear-gradient(90deg, transparent 0%, rgba(22, 163, 74, 0.4) 50%, transparent 100%);
}

.sm-page .about-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sm-page .about-container {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stage-w);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ========================================================
   LEFT COLUMN: CONTENT & TYPOGRAPHY
   ======================================================== */
.sm-page .about-content-col {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: calc(36 * var(--s)) calc(8 * var(--s)) calc(30 * var(--s)) var(--pad-l);
}

/* Orange + green accent dashes */
.sm-page .about-accent-badge {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--s));
  margin-bottom: calc(15 * var(--s));
}

.sm-page .accent-pill-orange,
.sm-page .accent-pill-green {
  display: inline-block;
  width: calc(30 * var(--s));
  height: calc(3.2 * var(--s));
  border-radius: 9999px;
}

.sm-page .accent-pill-orange {
  background: #f07b1f;
}

.sm-page .accent-pill-green {
  background: #1b5e20;
}

.sm-page .about-title {
  font-size: calc(38 * var(--s));
  font-weight: 800;
  color: #1f2937;
  line-height: 1.15;
  margin: 0 0 calc(10 * var(--s));
  letter-spacing: -0.02em;
}

.sm-page .title-green {
  color: #1e6b2f;
}

.sm-page .about-subtitle {
  font-size: calc(19.5 * var(--s));
  font-weight: 700;
  color: #1d6a30;
  line-height: 1.3;
  margin: 0 0 calc(16 * var(--s));
}

.sm-page .subtitle-brand {
  letter-spacing: 0.06em;
}

.sm-page .about-desc {
  font-size: max(14px, calc(13.2 * var(--s)));
  line-height: 1.66;
  color: #3d4651;
  max-width: calc(582 * var(--s));
  margin: 0 0 calc(26 * var(--s));
}

.sm-page .desc-highlight {
  color: #1b6a2e;
  font-weight: 700;
}

/* ========================================================
   VISION & MISSION CARDS
   ======================================================== */
.sm-page .about-cards-row {
  position: relative;
  display: flex;
  align-items: stretch;
}

.sm-page .about-cards-decor {
  position: absolute;
  left: calc(-50 * var(--s));
  top: calc(-28 * var(--s));
  width: calc(140 * var(--s));
  height: calc(200 * var(--s));
  pointer-events: none;
  z-index: 0;
}

.sm-page .about-value-card {
  position: relative;
  flex: 0 1 calc(290 * var(--s));
  min-width: 0;
  min-height: calc(137 * var(--s));
  display: flex;
  z-index: 1;
  transition: transform 0.28s ease;
}

.sm-page .about-value-card + .about-value-card {
  margin-left: calc(-12 * var(--s));
}

@media (hover: hover) {
  .sm-page .about-value-card:hover {
    transform: translateY(-3px);
  }
}

.sm-page .about-value-card.vision {
  --accent-text: #1b5e20;
  --accent-line: #2e8b3a;
  --panel-border: #cfe6cb;
  --mini-hex: #d5ebd1;
  --icon-shadow: rgba(30, 120, 50, 0.35);
}

.sm-page .about-value-card.mission {
  --accent-text: #e8620e;
  --accent-line: #f07b1f;
  --panel-border: #f8d6b2;
  --mini-hex: #fde0c0;
  --icon-shadow: rgba(234, 100, 20, 0.35);
}

/* Elongated hexagon panel (non-scaling round-joined strokes give soft corners) */
.sm-page .about-card-panel {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: calc(28 * var(--s) + 6px);
  right: 6px;
  width: calc(100% - 28 * var(--s) - 12px);
  height: calc(100% - 12px);
  overflow: visible;
}

.sm-page .panel-border {
  fill: var(--panel-border);
  stroke: var(--panel-border);
  stroke-width: 12;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sm-page .panel-fill {
  stroke-width: 9;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sm-page .vision .panel-fill-a { stop-color: #e5f2e2; }
.sm-page .vision .panel-fill-b { stop-color: #f4faf2; }
.sm-page .mission .panel-fill-a { stop-color: #ffeedd; }
.sm-page .mission .panel-fill-b { stop-color: #fff8f0; }

/* Hexagon icon badge */
.sm-page .about-card-icon {
  position: absolute;
  left: 0;
  top: calc(10 * var(--s));
  width: calc(60 * var(--s));
  height: calc(66 * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 calc(5 * var(--s)) calc(9 * var(--s)) var(--icon-shadow));
}

.sm-page .about-icon-hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sm-page .vision .icon-hex-a { stop-color: #5dbb4a; }
.sm-page .vision .icon-hex-b { stop-color: #1d7c36; }
.sm-page .mission .icon-hex-a { stop-color: #fb9d35; }
.sm-page .mission .icon-hex-b { stop-color: #e9590c; }

.sm-page .about-card-glyph {
  position: relative;
  width: calc(29 * var(--s));
  height: calc(29 * var(--s));
  color: #ffffff;
}

.sm-page .about-card-mini-hex {
  position: absolute;
  left: calc(45 * var(--s));
  top: calc(93 * var(--s));
  width: calc(23 * var(--s));
  height: calc(26 * var(--s));
  fill: var(--mini-hex);
  z-index: 1;
}

.sm-page .about-card-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: calc(15 * var(--s)) calc(22 * var(--s)) calc(18 * var(--s)) calc(78 * var(--s));
}

.sm-page .about-card-heading {
  font-size: max(15px, calc(17 * var(--s)));
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--accent-text);
  margin: 0 0 calc(6 * var(--s));
}

.sm-page .about-card-line {
  display: block;
  width: calc(32 * var(--s));
  height: calc(3 * var(--s));
  border-radius: 2px;
  background: var(--accent-line);
  margin-bottom: calc(9 * var(--s));
}

.sm-page .about-card-copy {
  font-size: max(12px, calc(11 * var(--s)));
  line-height: 1.52;
  color: #4a5361;
  margin: 0;
}

/* ========================================================
   RIGHT COLUMN: PHOTO STAGE & BACKDROP
   ======================================================== */
.sm-page .about-visual-col {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.sm-page .about-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 424 / 426;
  container-type: inline-size;
  --u: calc(100cqw / 424);
  z-index: 1;
}

.sm-page .visual-backdrop-svg,
.sm-page .visual-front-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sm-page .visual-backdrop-svg {
  z-index: 0;
}

.sm-page .visual-front-svg {
  z-index: 4;
}

/* Photo frame: --l/--t/--w/--h in stage units, --p = white border width */
.sm-page .cluster-frame {
  position: absolute;
  left: calc(var(--l) * var(--u));
  top: calc(var(--t) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  filter: drop-shadow(0 calc(8 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.2));
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s var(--ease-spring);
}

.sm-page .frame-hex-big {
  --l: 96;
  --t: 22;
  --w: 284;
  --h: 328;
  --p: 6.5;
}

.sm-page .frame-hex-top {
  --l: 3;
  --t: 33;
  --w: 129;
  --h: 149;
  --p: 5;
  z-index: 3;
}

.sm-page .frame-hex-bottom {
  --l: 10;
  --t: 197;
  --w: 129;
  --h: 149;
  --p: 5;
  z-index: 3;
}

.sm-page .hex-border-pad {
  width: 100%;
  height: 100%;
  background: #ffffff;
  clip-path: url(#aboutHexClip);
  /* vertical padding x1.1547 keeps the inner hexagon regular, so the border is even */
  padding: calc(var(--p) * 1.1547 * var(--u)) calc(var(--p) * var(--u));
}

.sm-page .hex-media-container {
  width: 100%;
  height: 100%;
  clip-path: url(#aboutHexClip);
  overflow: hidden;
  background: #065f46;
}

.sm-page .cluster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .sm-page .cluster-frame:hover {
    transform: scale(1.03);
  }

  .sm-page .cluster-frame:hover .cluster-img {
    transform: scale(1.06);
  }
}

.sm-page .main-crop-img {
  object-position: 45% center;
}

/* ========================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ======================================================== */
@media (max-width: 1023.98px) {
  .sm-page .about-section {
    --s: 1px;
    padding-top: 56px;
    min-height: 0;
  }

  .sm-page .about-container {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .sm-page .about-content-col {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .sm-page .about-title {
    font-size: clamp(28px, 5.5vw, 40px);
  }

  .sm-page .about-subtitle {
    font-size: clamp(16px, 2.6vw, 21px);
  }

  .sm-page .about-desc {
    font-size: 15px;
  }

  .sm-page .about-value-card {
    flex: 1 1 0;
  }

  .sm-page .about-visual-col {
    margin-top: 40px;
    overflow: hidden;
  }

  .sm-page .about-stage {
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Phones: Vision and Mission stack */
@media (max-width: 639.98px) {
  .sm-page .about-content-col {
    padding: 0 18px;
  }

  .sm-page .about-cards-row {
    flex-direction: column;
    gap: 18px;
  }

  .sm-page .about-value-card {
    flex: none;
    width: 100%;
    max-width: 420px;
  }

  .sm-page .about-value-card + .about-value-card {
    margin-left: 0;
  }

  .sm-page .about-desc {
    font-size: 14.5px;
  }

  .sm-page .about-visual-col {
    margin-top: 28px;
  }
}


/* ---- sections/objectives.css ---- */
/* ========================================================
   objectives.css - "Five Core Business Objectives"
   Five cards, plus an expanded detail panel for the card
   whose "Read More" was clicked.
   ======================================================== */

.sm-page .objectives-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffe5cc;
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  font-family: var(--font-sans);
  transition: padding-bottom 0.25s ease;
}

.sm-page .objectives-section.has-active-detail {
  padding-bottom: 40px;
  justify-content: flex-start;
}

.sm-page .objectives-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ========================================================
   SECTION HEADER
   ======================================================== */
.sm-page .objectives-header {
  text-align: center;
  margin-bottom: 44px;
}

.sm-page .objectives-title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 800;
  color: #064e3b;
  letter-spacing: -0.025em;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.sm-page .title-orange {
  color: #ea580c;
}

.sm-page .objectives-pill-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 12px auto;
}

.sm-page .pill-bar-green,
.sm-page .pill-bar-orange {
  width: 28px;
  height: 4px;
  border-radius: 9999px;
  display: inline-block;
}

.sm-page .pill-bar-green {
  background: #065f46;
}

.sm-page .pill-bar-orange {
  background: #f97316;
}

.sm-page .objectives-subtitle {
  font-size: 15px;
  color: #64748b;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

/* ========================================================
   CARDS (flex-wrap so an incomplete last row is centred)
   ======================================================== */
.sm-page .objectives-grid {
  --cols: 5;
  --gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  align-items: stretch;
}

.sm-page .obj-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  padding: 12px 12px 18px 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
}

@media (hover: hover) {
  .sm-page .obj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  }

  .sm-page .obj-card:hover .obj-image {
    transform: scale(1.09);
  }
}

.sm-page .obj-card.card-selected {
  border-color: #059669;
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.14);
}

/* Card top image */
.sm-page .obj-image-wrapper {
  width: 100%;
  height: 154px;
  border-radius: 16px;
  overflow: visible;
  position: relative;
  background: #e2e8f0;
  margin-bottom: 22px;
}

.sm-page .obj-image-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.sm-page .obj-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  transform: scale(1.04);
}

/* Overlapping badges between image & content */
.sm-page .badge-row {
  position: absolute;
  bottom: -15px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.sm-page .num-pill {
  background: #ffffff;
  padding: 4px 13px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Per-theme colours */
.sm-page .theme-green { --obj-color: #16a34a; --obj-soft: #dcfce7; --obj-btn-bg: #ecfdf5; --obj-btn-fg: #047857; }
.sm-page .theme-orange { --obj-color: #ea580c; --obj-soft: #ffedd5; --obj-btn-bg: #fff7ed; --obj-btn-fg: #c2410c; }
.sm-page .theme-blue { --obj-color: #2563eb; --obj-soft: #dbeafe; --obj-btn-bg: #eff6ff; --obj-btn-fg: #1d4ed8; }
.sm-page .theme-purple { --obj-color: #7c3aed; --obj-soft: #f3e8ff; --obj-btn-bg: #f5f3ff; --obj-btn-fg: #6d28d9; }
.sm-page .theme-teal { --obj-color: #0d9488; --obj-soft: #ccfbf1; --obj-btn-bg: #f0fdfa; --obj-btn-fg: #0f766e; }

.sm-page .num-pill {
  color: var(--obj-color);
}

.sm-page .icon-badge-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--obj-soft);
  color: var(--obj-color);
}

.sm-page .badge-row .icon-badge-circle {
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.sm-page .badge-row .icon-badge-circle svg {
  width: 19px;
  height: 19px;
}

/* ========================================================
   CARD CONTENT
   ======================================================== */
.sm-page .obj-content-box {
  padding: 0 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sm-page .obj-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.35;
  margin: 0 0 10px 0;
  min-height: 44px;
}

.sm-page .obj-card-line {
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
  margin-bottom: 12px;
  background: var(--obj-color);
}

.sm-page .obj-card-desc {
  font-size: 12.8px;
  line-height: 1.58;
  color: #64748b;
  margin: 0;
  flex: 1;
}

/* ========================================================
   CARD FOOTER ACTION
   ======================================================== */
.sm-page .obj-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  padding: 0 2px;
}

.sm-page .btn-read-more {
  border: none;
  outline: none;
  cursor: pointer;
  min-height: 34px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: var(--obj-btn-bg);
  color: var(--obj-btn-fg);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.sm-page .btn-read-more:focus-visible {
  outline: 2px solid var(--obj-color);
  outline-offset: 2px;
}

.sm-page .arrow-sym {
  font-size: 13px;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .sm-page .btn-read-more:hover {
    opacity: 0.9;
    transform: translateX(2px);
  }

  .sm-page .btn-read-more:hover .arrow-sym {
    transform: translateX(3px);
  }
}

.sm-page .btn-read-more.active-read {
  background: #064e3b;
  color: #ffffff;
}

.sm-page .obj-card-footer .icon-badge-circle {
  width: 32px;
  height: 32px;
}

.sm-page .obj-card-footer .icon-badge-circle svg {
  width: 16px;
  height: 16px;
}

/* Templates holding each objective's detail content */
.sm-page .obj-detail-template {
  display: none;
}

/* ========================================================
   EXPANDED DETAIL PANEL
   ======================================================== */
.sm-page .obj-expanded-detail-wrapper {
  margin-top: 48px;
  width: 100%;
  background-color: #282828;
  padding: 56px 24px 64px;
  animation: expandFadeIn 0.38s var(--ease-out-expo);
}

.sm-page .obj-expanded-detail-wrapper[hidden] {
  display: none;
}

.sm-page .obj-expanded-detail-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

@keyframes expandFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sm-page .obj-expanded-detail-card {
  position: relative;
  background: linear-gradient(135deg, #f7fdf9 0%, #edf8f2 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 38px 44px;
  overflow: hidden;
}

.sm-page .obj-detail-close-btn {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d1fae5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #064e3b;
  transition: all 0.22s ease;
}

.sm-page .obj-detail-close-btn:hover,
.sm-page .obj-detail-close-btn:focus-visible {
  background: #064e3b;
  color: #ffffff;
  transform: rotate(90deg);
}

.sm-page .obj-detail-close-btn:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.sm-page .obj-detail-close-btn svg {
  width: 17px;
  height: 17px;
}

/* Grid layout: 3 columns */
.sm-page .obj-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ---------- 1. Left column: stepper & heading ---------- */
.sm-page .detail-left-col {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  min-width: 0;
}

.sm-page .detail-stepper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding-top: 2px;
}

.sm-page .stepper-step {
  background: none;
  border: none;
  padding: 3px 0;
  min-width: 32px;
  min-height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sm-page .stepper-step:hover {
  color: #064e3b;
  transform: translateX(2px);
}

.sm-page .stepper-step:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
  border-radius: 6px;
}

.sm-page .stepper-step.step-active {
  color: #064e3b;
  font-weight: 800;
  font-size: 16px;
}

.sm-page .stepper-step.step-active .step-num {
  background: #064e3b;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sm-page .step-indicator-bar {
  display: none;
  width: 20px;
  height: 3px;
  background: #16a34a;
  border-radius: 2px;
}

.sm-page .stepper-step.step-active .step-indicator-bar {
  display: inline-block;
}

.sm-page .detail-left-content {
  flex: 1;
  min-width: 0;
}

.sm-page .detail-heading {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #064e3b;
  line-height: 1.15;
  margin: 0 0 16px 0;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.sm-page .detail-accent-bar {
  width: 44px;
  height: 3.5px;
  background: #16a34a;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ---------- 2. Middle column: tilted photo with decorations ---------- */
.sm-page .detail-middle-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
  padding: 24px 0 40px;
}

/* Decorations are placed relative to the photo, so they stay in line at any width */
.sm-page .detail-visual {
  --w: min(255px, 58vw);
  position: relative;
  width: var(--w);
  aspect-ratio: 255 / 330;
}

.sm-page .detail-bg-ring {
  position: absolute;
  top: calc(var(--w) * -0.04);
  left: calc(var(--w) * -0.084);
  width: calc(var(--w) * 0.55);
  aspect-ratio: 1;
  border: calc(var(--w) * 0.063) solid #065f46;
  border-radius: 50%;
  opacity: 0.9;
  z-index: 1;
}

.sm-page .detail-offset-card {
  position: absolute;
  top: calc(var(--w) * 0.09);
  left: calc(var(--w) * 0.19);
  width: 100%;
  height: 100%;
  background: #065f46;
  border-radius: calc(var(--w) * 0.1);
  z-index: 2;
  transform: rotate(1.5deg);
}

.sm-page .detail-perspective-frame {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.1);
  border: 5px solid #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transform: perspective(900px) rotateY(-8deg) rotateX(1deg);
  transition: transform 0.3s ease;
  background: #064e3b;
}

.sm-page .detail-perspective-frame:hover {
  transform: perspective(900px) rotateY(-4deg) rotateX(0deg) scale(1.02);
}

.sm-page .detail-middle-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-page .detail-floating-leaf {
  position: absolute;
  top: calc(var(--w) * 0.55);
  left: calc(var(--w) * -0.163);
  width: calc(var(--w) * 0.17);
  height: calc(var(--w) * 0.17);
  z-index: 4;
  pointer-events: none;
}

/* ---------- 3. Right column: bullet card ---------- */
.sm-page .detail-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.sm-page .detail-bullets-card {
  padding: 24px 28px;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.05);
  background: linear-gradient(135deg, #f0fdf4 0%, #eaf8ef 100%);
  border: 1.5px solid #bbf7d0;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

@media (hover: hover) {
  .sm-page .detail-bullets-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.09);
  }
}

.sm-page .detail-custom-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm-page .detail-custom-bullets li {
  position: relative;
  padding: 0 0 12px 22px;
  font-size: 13.8px;
  line-height: 1.55;
  color: #1e293b;
  font-weight: 500;
  border-bottom: 1px solid rgba(187, 247, 208, 0.6);
}

.sm-page .detail-custom-bullets li::before {
  content: '•';
  position: absolute;
  left: 2px;
  top: 1px;
  color: #16a34a;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.sm-page .detail-custom-bullets li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* Corner decorations inside the detail card */
.sm-page .detail-top-left-rings {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 1;
}

.sm-page .detail-bottom-left-leaf {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 1;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 1280px) {
  .sm-page .objectives-grid {
    --cols: 3;
  }

  .sm-page .obj-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .sm-page .detail-right-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .sm-page .obj-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* One column: stepper becomes a row above the heading */
  .sm-page .detail-left-col {
    flex-direction: column;
    gap: 14px;
  }

  .sm-page .detail-stepper {
    padding-right: 48px; /* only the stepper row shares the top with the close button */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
  }

  .sm-page .stepper-step:hover {
    transform: none;
  }

  .sm-page .step-indicator-bar,
.sm-page .stepper-step.step-active .step-indicator-bar {
    display: none;
  }
}

@media (max-width: 860px) {
  .sm-page .objectives-section {
    padding: 64px 0 72px;
    min-height: 0;
  }

  .sm-page .objectives-section.has-active-detail {
    padding-bottom: 0;
  }

  .sm-page .objectives-container {
    padding: 0 16px;
  }

  .sm-page .objectives-header {
    margin-bottom: 36px;
  }

  .sm-page .obj-expanded-detail-wrapper {
    padding: 40px 16px 48px;
    margin-top: 36px;
  }

  .sm-page .objectives-grid {
    --cols: 2;
    --gap: 16px;
  }

  .sm-page .obj-expanded-detail-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .sm-page .obj-detail-close-btn {
    top: 16px;
    right: 16px;
  }

  .sm-page .detail-bullets-card {
    padding: 20px 18px;
  }
}

@media (max-width: 560px) {
  .sm-page .objectives-grid {
    --cols: 1;
  }

  .sm-page .obj-card {
    max-width: 440px;
  }

  .sm-page .obj-image-wrapper {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .sm-page .obj-card-title {
    min-height: 0;
  }

  .sm-page .obj-card-desc {
    font-size: 13.5px;
  }

  .sm-page .objectives-subtitle {
    font-size: 14px;
  }

  .sm-page .detail-stepper {
    gap: 6px;
  }

  .sm-page .stepper-step {
    justify-content: center;
  }

  .sm-page .detail-custom-bullets li {
    font-size: 13.5px;
  }

  .sm-page .detail-top-left-rings,
.sm-page .detail-bottom-left-leaf {
    width: 100px;
    height: 100px;
  }
}


/* ---- sections/why.css ---- */
/* ========================================================
   why.css - "Why S.A.F.E. Mission Is Needed"
   Full-bleed photo top-right, heading on the left and two
   comparison cards below.
   ======================================================== */

.sm-page .why-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  position: relative;
  padding: 60px 24px;
  overflow: hidden;
  font-family: var(--font-sans);
}

.sm-page .why-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.sm-page .why-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ========================================================
   TOP-RIGHT FULL-BLEED FARM PHOTO
   ======================================================== */
.sm-page .why-media {
  position: absolute;
  top: 0;
  right: 0;
  width: min(calc(50% + 150px), calc(100% - 474px));
  height: 480px;
  z-index: 2;
}

/* Orange swoosh hugging the photo's curved left edge */
.sm-page .why-media-swoosh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Photo masked to an organic curved shape (same 634x330 box as the swoosh) */
.sm-page .why-media-photo {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 634 330' preserveAspectRatio='none'%3E%3Cpath d='M62 0H634V322C520 300 330 262 205 252C172 249 156 236 150 214C128 140 96 62 62 0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 634 330' preserveAspectRatio='none'%3E%3Cpath d='M62 0H634V322C520 300 330 262 205 252C172 249 156 236 150 214C128 140 96 62 62 0Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.sm-page .why-farm-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 90.5%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 20%;
  display: block;
}

/* ========================================================
   HERO ROW: HEADING & DESCRIPTION
   ======================================================== */
.sm-page .why-hero-row {
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.sm-page .why-text-col {
  flex: 0 1 540px;
  max-width: 540px;
  min-width: 0;
  z-index: 6;
}

.sm-page .why-accent-bar {
  width: 56px;
  height: 5px;
  background-color: #ea580c;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.sm-page .why-main-title {
  margin: 0 0 18px 0;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
}

.sm-page .why-title-dark,
.sm-page .why-title-highlight {
  display: block;
}

.sm-page .why-title-dark {
  color: #0d2820;
}

.sm-page .why-title-highlight {
  color: #ea580c;
}

.sm-page .why-desc-row {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.sm-page .why-description {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  max-width: 470px;
  margin: 0;
  font-weight: 400;
}

/* Dot grid matrix */
.sm-page .why-dots-grid {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.sm-page .why-dot {
  width: 5px;
  height: 5px;
  background-color: #f97316;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.8;
}

/* ========================================================
   BOTTOM ROW: TWO COMPARISON CARDS
   ======================================================== */
.sm-page .why-cards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  position: relative;
  z-index: 6;
}

.sm-page .why-card {
  border-radius: 20px;
  padding: 18px 12px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sm-page .why-card-traditional {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(253, 213, 190, 0.6) 0%, rgba(253, 213, 190, 0) 55%),
    linear-gradient(180deg, rgba(255, 244, 237, 0.95) 0%, rgba(255, 249, 245, 0.95) 100%);
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.08);
}

.sm-page .why-card-safe {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(187, 247, 208, 0.55) 0%, rgba(187, 247, 208, 0) 55%),
    linear-gradient(180deg, rgba(234, 249, 239, 0.95) 0%, rgba(243, 252, 246, 0.95) 100%);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.08);
}

@media (hover: hover) {
  .sm-page .why-card:hover {
    transform: translateY(-3px);
  }

  .sm-page .why-card-traditional:hover {
    box-shadow: 0 22px 44px rgba(234, 88, 12, 0.12);
  }

  .sm-page .why-card-safe:hover {
    box-shadow: 0 22px 44px rgba(22, 163, 74, 0.12);
  }
}

.sm-page .why-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 12px;
  margin-bottom: 16px;
}

.sm-page .why-icon-bubble {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sm-page .bubble-peach {
  background: radial-gradient(circle at 35% 30%, #fff1ea 0%, #fcd9c7 100%);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.12);
}

.sm-page .bubble-mint {
  background: radial-gradient(circle at 35% 30%, #f0fdf4 0%, #c9f2d8 100%);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.12);
}

.sm-page .why-card-icon-svg {
  width: 40px;
  height: 40px;
}

.sm-page .why-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sm-page .why-card-heading {
  font-size: 22px;
  font-weight: 800;
  color: #0d2820;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.sm-page .why-card-line {
  width: 38px;
  height: 3px;
  border-radius: 9999px;
  margin-top: 8px;
}

.sm-page .why-card-line.line-orange {
  background-color: #ea580c;
}

.sm-page .why-card-line.line-green {
  background-color: #16a34a;
}

/* Inner white box */
.sm-page .why-card-inner {
  background: #ffffff;
  border-radius: 14px;
  padding: 4px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sm-page .why-points-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-page .why-point-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
}

.sm-page .why-point-item:last-child {
  border-bottom: none;
}

.sm-page .why-badge-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sm-page .badge-cross {
  background-color: #fde8de;
}

.sm-page .badge-check {
  background-color: #dcf5e4;
}

.sm-page .why-symbol-svg {
  width: 13px;
  height: 13px;
}

.sm-page .stroke-cross {
  color: #e4572e;
}

.sm-page .stroke-check {
  color: #15803d;
}

.sm-page .why-point-text {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  min-width: 0;
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================== */
@media (max-width: 1080px) {
  .sm-page .why-text-col {
    flex-basis: 440px;
    max-width: 440px;
  }

  .sm-page .why-description {
    max-width: 400px;
  }

  .sm-page .why-media {
    width: calc(100% - 440px);
  }
}

/* Tablets & phones: the photo moves above the content */
@media (max-width: 900px) {
  .sm-page .why-section {
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px 72px;
    min-height: 0;
  }

  .sm-page .why-media {
    position: relative;
    width: auto;
    height: 300px;
    margin: 0 -24px 28px;
  }

  .sm-page .why-media-swoosh {
    display: none;
  }

  .sm-page .why-media-photo {
    -webkit-mask-image: none;
    mask-image: none;
    border-bottom-left-radius: 80px;
    overflow: hidden;
  }

  .sm-page .why-farm-image {
    width: 100%;
  }

  .sm-page .why-text-col {
    flex-basis: auto;
    max-width: 100%;
  }

  .sm-page .why-description {
    max-width: 100%;
  }

  .sm-page .why-cards-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .sm-page .why-section {
    padding: 0 16px 64px;
  }

  .sm-page .why-media {
    height: 220px;
    margin: 0 -16px 24px;
  }

  .sm-page .why-media-photo {
    border-bottom-left-radius: 56px;
  }

  .sm-page .why-main-title {
    font-size: clamp(26px, 8vw, 32px);
  }

  .sm-page .why-description {
    font-size: 14px;
  }

  .sm-page .why-dots-grid {
    display: none;
  }

  .sm-page .why-card {
    padding: 16px 10px 10px;
    border-radius: 18px;
  }

  .sm-page .why-card-header {
    gap: 12px;
    padding: 0 8px;
  }

  .sm-page .why-icon-bubble {
    width: 56px;
    height: 56px;
  }

  .sm-page .why-card-icon-svg {
    width: 32px;
    height: 32px;
  }

  .sm-page .why-card-heading {
    font-size: 19px;
  }

  .sm-page .why-card-inner {
    padding: 4px 12px;
  }

  .sm-page .why-point-item {
    gap: 10px;
    padding: 9px 0;
  }

  .sm-page .why-badge-pill {
    width: 24px;
    height: 24px;
  }

  .sm-page .why-symbol-svg {
    width: 12px;
    height: 12px;
  }

  .sm-page .why-point-text {
    font-size: 13px;
  }
}


/* ---- sections/how.css ---- */
/* ========================================================
   how.css - "How S.A.F.E. Mission Works"
   Serpentine journey board: rows of 2 - 3 - 3 - 2 cards,
   joined by arrows that js/components/how-journey.js draws.

   Desktop (>= 1024px): board sizes are written in board
   units (--u). The board is 1500 units wide and --u is
   1/1500 of its rendered width, so it scales as one piece.
   Tablet & phone: one column, --u becomes a fixed px size.
   ======================================================== */

.sm-page .how-section {
  width: 100%;
  position: relative;
  padding: 64px 20px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 70%),
    linear-gradient(180deg, #e2eef9 0%, #d9e8f5 55%, #dbe9f6 100%);
  font-family: var(--font-sans);
}

.sm-page .how-container {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  width: 100%;
}

/* ========================================================
   SECTION HEADER
   ======================================================== */
.sm-page .how-title-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 44px;
}

.sm-page .how-main-heading {
  margin: 0 0 12px;
  font-family: var(--font-condensed);
  font-size: clamp(32px, 4.6vw, 70px);
  font-weight: 800;
  color: #0c2a4d;
  letter-spacing: -0.015em;
  line-height: 1.06;
}

.sm-page .how-heading-safe {
  background: linear-gradient(90deg, #1463d6 0%, #1f7ae8 55%, #2b8cf2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sm-page .how-subtitle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.sm-page .how-sub-line {
  height: 3px;
  width: clamp(40px, 7vw, 100px);
  border-radius: 2px;
  flex-shrink: 0;
}

.sm-page .how-line-left {
  background: linear-gradient(90deg, #14b8a6 0%, #1d6fe0 100%);
}

.sm-page .how-line-right {
  background: linear-gradient(90deg, #1d6fe0 0%, #3b8cf5 100%);
}

.sm-page .how-subtitle {
  font-size: clamp(16px, 1.75vw, 26px);
  font-weight: 500;
  color: #17345a;
  margin: 0;
  line-height: 1.35;
  word-spacing: 0.08em;
}

/* ========================================================
   BOARD
   ======================================================== */
.sm-page .how-board {
  position: relative;
  width: 100%;
  max-width: 1200px; /* the whole board (cards and badges) scales down with this */
  margin: 0 auto;
  container-type: inline-size;
  --u: calc(100cqw / 1500);
}

/* A row of cards, centred, with room for an arrow in each gap.
   Rows stay unpositioned so each step's offsetTop/offsetLeft is measured from the board. */
.sm-page .how-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: calc(110 * var(--u));
}

.sm-page .how-row:first-of-type {
  margin-top: calc(34 * var(--u));
}

.sm-page .how-row + .how-row {
  margin-top: calc(150 * var(--u));
}

.sm-page .how-row:last-of-type {
  margin-bottom: calc(34 * var(--u));
}

/* Arrows between the steps (drawn by JS, in px) */
.sm-page .how-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.sm-page .how-arrows path {
  fill: none;
  stroke: #7fa2d8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sm-page .how-arrows .how-arrow-head {
  stroke: #1d5fd1;
}

.sm-page .how-arrows circle {
  fill: #7fa2d8;
}

/* One step. Colours: --accent (badge, bullets), --border, --title */
.sm-page .how-step {
  position: relative;
  flex: 0 0 calc(400 * var(--u));
  min-width: 0;
  z-index: 2;
}

.sm-page .how-step[data-step='01'],
.sm-page .how-step[data-step='04'] { --accent: #16a34a; --border: #22c55e; --title: #15803d; }
.sm-page .how-step[data-step='02'] { --accent: #2563eb; --border: #3b82f6; --title: #1565d8; }
.sm-page .how-step[data-step='03'] { --accent: #f97316; --border: #fb923c; --title: #e8590c; }
.sm-page .how-step[data-step='05'] { --accent: #e11d48; --border: #fb7185; --title: #d1213f; }
.sm-page .how-step[data-step='06'] { --accent: #7c3aed; --border: #a78bfa; --title: #4f3fd1; }
.sm-page .how-step[data-step='07'] { --accent: #f59e0b; --border: #fbbf24; --title: #dd5a0e; }
.sm-page .how-step[data-step='08'] { --accent: #f43f5e; --border: #fb7185; --title: #dc1f3c; }
.sm-page .how-step[data-step='09'] { --accent: #2563eb; --border: #60a5fa; --title: #1d40a8; }
.sm-page .how-step[data-step='10'] { --accent: #7c3aed; --border: #a78bfa; --title: #6d28d9; }

/*
  Card - all cards share the same size while collapsed (--collapsed-min is measured
  in JS: photo + heading + one line of text + Read more). An open card grows downward.
*/
.sm-page .how-card {
  position: relative;
  width: 100%;
  min-height: var(--collapsed-min, 0px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: calc(11 * var(--u));
  background: linear-gradient(
    140deg,
    #ffffff 0%,
    #ffffff 50%,
    color-mix(in srgb, var(--accent) 7%, #ffffff) 100%
  );
  border: calc(2.5 * var(--u)) solid var(--border);
  border-radius: calc(14 * var(--u));
  box-shadow:
    0 0 calc(14 * var(--u)) color-mix(in srgb, var(--accent) 28%, transparent),
    0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(15, 40, 80, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Heading row inside the card: step number, then the heading */
.sm-page .how-card-head {
  display: flex;
  align-items: center;
  gap: calc(11 * var(--u));
  margin-bottom: calc(7 * var(--u));
}

/* Circular step number */
.sm-page .how-badge {
  flex-shrink: 0;
  width: max(30px, calc(50 * var(--u)));
  height: max(30px, calc(50 * var(--u)));
  border-radius: 50%;
  border: calc(3.5 * var(--u)) solid #ffffff;
  background: radial-gradient(
    circle at 32% 28%,
    color-mix(in srgb, var(--accent) 55%, #ffffff) 0%,
    var(--accent) 55%,
    color-mix(in srgb, var(--accent) 82%, #000000) 100%
  );
  box-shadow:
    0 0 0 calc(2.5 * var(--u)) color-mix(in srgb, var(--accent) 55%, transparent),
    0 calc(4 * var(--u)) calc(12 * var(--u)) color-mix(in srgb, var(--accent) 40%, transparent);
  color: #ffffff;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: max(13px, calc(21 * var(--u)));
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .sm-page .how-step:hover .how-card {
    transform: translateY(calc(-5 * var(--u)));
    box-shadow:
      0 0 calc(20 * var(--u)) color-mix(in srgb, var(--accent) 40%, transparent),
      0 calc(14 * var(--u)) calc(30 * var(--u)) rgba(15, 40, 80, 0.14);
  }

  .sm-page .how-step:hover .how-badge {
    transform: scale(1.08);
  }
}

/* One-time intro: each card lifts in turn, like a hover */
.sm-page .how-step.is-pulse .how-card {
  transform: translateY(calc(-6 * var(--u))) scale(1.03);
  box-shadow:
    0 0 calc(22 * var(--u)) color-mix(in srgb, var(--accent) 45%, transparent),
    0 calc(16 * var(--u)) calc(32 * var(--u)) rgba(15, 40, 80, 0.16);
}

.sm-page .how-step.is-pulse .how-badge {
  transform: scale(1.14);
}

/* Photo on top, shown whole at its own proportions (760 x 430) */
.sm-page .how-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 430;
  object-fit: cover;
  border-radius: calc(9 * var(--u));
  flex-shrink: 0;
  background: #e2e8f0;
  box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.12);
}

/* Heading and text below the photo */
.sm-page .how-card-info {
  flex: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-top: calc(13 * var(--u));
  padding: 0 calc(8 * var(--u));
}

.sm-page .how-card-title {
  font-family: var(--font-condensed);
  font-size: max(15px, calc(23 * var(--u)));
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--title);
  margin: 0;
  min-width: 0;
  text-wrap: balance;
}

.sm-page .how-card-desc {
  font-family: var(--font-condensed);
  font-size: max(13px, calc(15.5 * var(--u)));
  font-weight: 400;
  line-height: 1.36;
  color: #4b5563;
  margin: 0;
}

/* Collapsed: only the first line of text, ending in ... */
.sm-page .how-card:not([data-open]) .how-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

/* Remaining text (bullets / chain): slides open inside the card */
.sm-page .how-card-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.sm-page .how-card-more-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}

.sm-page .how-card[data-open] .how-card-more {
  grid-template-rows: 1fr;
}

.sm-page .how-card[data-open] .how-card-more-inner {
  visibility: visible;
  transition-delay: 0s;
}

/* Read more / Read less, kept at the bottom of the card */
.sm-page .how-card-toggle {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--u));
  min-height: 32px;
  padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(2 * var(--u));
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: max(12.5px, calc(15 * var(--u)));
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--title);
}

.sm-page .how-card-toggle:hover .how-toggle-label,
.sm-page .how-card-toggle:focus-visible .how-toggle-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sm-page .how-card-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sm-page .how-toggle-icon {
  width: 1em;
  height: 1em;
  transition: transform 0.3s ease;
}

.sm-page .how-card[data-open] .how-toggle-icon {
  transform: rotate(180deg);
}

/* Bullet points with an accent-coloured dot */
.sm-page .how-card-points {
  list-style: none;
  margin: calc(6 * var(--u)) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(2.5 * var(--u));
}

.sm-page .how-card-points li {
  position: relative;
  padding-left: max(11px, calc(13 * var(--u)));
  font-family: var(--font-condensed);
  font-size: max(12.5px, calc(15 * var(--u)));
  font-weight: 500;
  line-height: 1.3;
  color: #334155;
}

.sm-page .how-card-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: max(5px, calc(6 * var(--u)));
  height: max(5px, calc(6 * var(--u)));
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 calc(2 * var(--u)) color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Step 7 infrastructure chain: Packhouse -> CFC -> ... */
.sm-page .how-card-chain {
  margin: calc(7 * var(--u)) 0 0;
  font-family: var(--font-condensed);
  font-size: max(12.5px, calc(15 * var(--u)));
  font-weight: 500;
  line-height: 1.5;
  color: #334155;
}

.sm-page .how-chain-arrow {
  color: var(--accent);
  font-weight: 700;
}

.sm-page .how-chain-item {
  white-space: nowrap;
}

/* ========================================================
   TABLET & PHONE (< 1024px): one column with arrows between
   ======================================================== */
@media (max-width: 1023.98px) {
  .sm-page .how-title-column {
    margin-bottom: 32px;
  }

  .sm-page .how-board {
    --u: 0.82px;
    max-width: 480px;
  }

  .sm-page .how-row {
    flex-direction: column;
    align-items: stretch;
    gap: 60px;
  }

  .sm-page .how-row:first-of-type,
.sm-page .how-row:last-of-type {
    margin-top: 0;
    margin-bottom: 0;
  }

  .sm-page .how-row + .how-row {
    margin-top: 60px;
  }

  .sm-page .how-step {
    flex: none;
    width: 100%;
  }

  .sm-page .how-card {
    padding: 10px;
  }

  .sm-page .how-card-info {
    margin-top: 12px;
    padding: 0 6px;
  }

  .sm-page .how-card-toggle {
    padding: 8px 6px 4px;
    font-size: 14px;
  }

  .sm-page .how-card-title {
    font-size: 18px;
  }

  .sm-page .how-card-desc {
    font-size: 14px;
  }

  .sm-page .how-card-points li,
.sm-page .how-card-chain {
    font-size: 13.5px;
  }

  .sm-page .how-step.is-pulse .how-card {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
      0 0 18px color-mix(in srgb, var(--accent) 45%, transparent),
      0 12px 26px rgba(15, 40, 80, 0.14);
  }

  .sm-page .how-step.is-pulse .how-badge {
    transform: scale(1.12);
  }
}

@media (max-width: 560px) {
  .sm-page .how-section {
    padding: 48px 14px 60px;
  }

  .sm-page .how-board {
    --u: 0.7px;
  }

  .sm-page .how-row,
.sm-page .how-row + .how-row {
    gap: 52px;
  }

  .sm-page .how-row + .how-row {
    margin-top: 52px;
  }

  .sm-page .how-card-title {
    font-size: 17px;
  }

  .sm-page .how-card-desc {
    font-size: 13.5px;
  }

  .sm-page .how-card-points li,
.sm-page .how-card-chain {
    font-size: 13px;
  }

  .sm-page .how-subtitle-wrap {
    gap: 10px;
  }

  .sm-page .how-subtitle {
    font-size: 15px;
  }

  .sm-page .how-sub-line {
    width: 24px;
  }
}

@media (max-width: 380px) {
  .sm-page .how-board {
    --u: 0.62px;
  }

  .sm-page .how-card-title {
    font-size: 16px;
  }

  .sm-page .how-card-desc {
    font-size: 13px;
  }

  .sm-page .how-card-points li,
.sm-page .how-card-chain {
    font-size: 12.5px;
  }
}


/* ---- sections/district.css ---- */
/* ========================================================
   district.css - Integrated District Model (20-Acre AEZ)
   Text on the left, pie chart on the right.
   ======================================================== */

.sm-page .district-model-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfae1;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  padding: 60px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.sm-page .district-model-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
  position: relative;
  z-index: 5;
  width: 100%;
}

/* ========================================================
   LEFT COLUMN: TITLE, ACCENT BAR & TEXT
   ======================================================== */
.sm-page .district-model-content {
  flex: 1 1 440px;
  max-width: 490px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.sm-page .district-model-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.sm-page .district-title-line {
  display: block;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
}

.sm-page .district-title-dark {
  color: #0b1426;
}

.sm-page .district-title-gold {
  color: #c88b1f;
  margin-top: 4px;
}

/* Orange-to-green accent divider */
.sm-page .district-accent-bar {
  width: 74px;
  height: 5.5px;
  background: linear-gradient(90deg, #fd8804 0%, #fc9a08 30%, #cb9c17 48%, #388e2e 72%, #067430 100%);
  border-radius: 9999px;
  margin: 20px 0 24px 0;
}

.sm-page .district-model-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}

.sm-page .district-model-paragraph {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  color: #171d2b;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.sm-page .district-text-highlight {
  color: #067430;
  font-weight: 800;
}

/* ========================================================
   RIGHT COLUMN: PIE CHART
   ======================================================== */
.sm-page .district-model-visual {
  flex: 1.25 1 580px;
  max-width: 660px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sm-page .district-model-visual-frame {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-page .district-model-pie-image {
  width: 100%;
  max-width: 650px;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s var(--ease-spring);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.05));
}

@media (hover: hover) {
  .sm-page .district-model-pie-image:hover {
    transform: scale(1.02);
  }
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1080px) {
  .sm-page .district-model-section {
    padding: 80px 24px 88px;
  }

  .sm-page .district-model-container {
    gap: 36px;
  }

  .sm-page .district-title-line {
    font-size: clamp(32px, 3.6vw, 44px);
  }
}

@media (max-width: 880px) {
  .sm-page .district-model-section {
    padding: 72px 20px 80px;
    min-height: 0;
  }

  .sm-page .district-model-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }

  .sm-page .district-model-content {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .sm-page .district-model-text {
    max-width: 100%;
  }

  .sm-page .district-model-visual {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    flex: 1 1 auto;
  }

  .sm-page .district-title-line {
    font-size: clamp(30px, 5.2vw, 40px);
  }
}

@media (max-width: 540px) {
  .sm-page .district-model-section {
    padding: 64px 16px 72px;
  }

  .sm-page .district-model-container {
    gap: 26px;
  }

  .sm-page .district-accent-bar {
    margin: 16px 0 18px 0;
  }

  .sm-page .district-model-paragraph {
    font-size: 14.8px;
    line-height: 1.48;
  }

  .sm-page .district-title-line {
    font-size: clamp(26px, 7vw, 34px);
  }
}


/* ---- sections/join.css ---- */
/* ========================================================
   join.css - "Join Safe Mission"
   Full-screen section: photo card on the left, form card
   on the right, soft green shapes in the background.
   ======================================================== */

.sm-page .join-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(40px, 9vh, 96px) clamp(16px, 2.5vw, 48px);
  overflow: hidden;
  background: linear-gradient(180deg, #f8faf8 0%, #f3f7f4 100%);
  font-family: var(--font-sans);
}

/* ---------- Background shapes ---------- */
.sm-page .join-blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

/* Green circle peeking out above the photo */
.sm-page .join-blob-top {
  width: clamp(110px, 9.5vw, 180px);
  aspect-ratio: 1;
  left: calc(16% - clamp(55px, 4.75vw, 90px));
  top: calc(clamp(40px, 9vh, 96px) - clamp(95px, 8.2vw, 155px));
  background: linear-gradient(160deg, #d3f1cf 0%, #8fdc8f 55%, #5cc76a 100%);
  opacity: 0.85;
}

/* Pale mint curve along the left edge */
.sm-page .join-blob-left {
  width: 560px;
  aspect-ratio: 1;
  left: -470px;
  top: -80px;
  background: linear-gradient(90deg, #e3f2e6 0%, #edf7ef 100%);
}

/* Pale mint swoosh at the bottom left */
.sm-page .join-blob-bottom {
  width: 620px;
  aspect-ratio: 1;
  left: -330px;
  bottom: -520px;
  background: linear-gradient(20deg, #e1f1e4 0%, #eef7f0 100%);
}

/* ---------- Layout ---------- */
.sm-page .join-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1840px;
  min-height: 80vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); /* photo narrower, form wider */
  gap: clamp(16px, 1.6vw, 32px);
  align-items: stretch;
}

/* ---------- Photo card ---------- */
.sm-page .join-media {
  position: relative;
  min-height: 360px;
  border-radius: clamp(20px, 2.3vw, 40px);
  overflow: hidden;
  background: #dfe9e2;
  box-shadow:
    0 26px 60px -22px rgba(16, 60, 32, 0.35),
    0 6px 18px rgba(16, 60, 32, 0.08);
}

.sm-page .join-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 92% center; /* keep the drone in view */
  display: block;
}

/* ---------- Form card ---------- */
.sm-page .join-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 7vh, 72px) clamp(20px, 2vw, 36px);
  background: #ffffff;
  border-radius: clamp(20px, 2.3vw, 40px);
  box-shadow:
    0 26px 60px -26px rgba(16, 60, 32, 0.22),
    0 4px 14px rgba(16, 60, 32, 0.05);
}

/* Yellow-green crescent in the top-right corner */
.sm-page .join-card-blob {
  position: absolute;
  top: calc(clamp(130px, 13.5vw, 250px) * -0.5);
  right: calc(clamp(130px, 13.5vw, 250px) * -0.12);
  width: clamp(130px, 13.5vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(200deg, #e9f0c4 0%, #f4f1d1 55%, #fbf8e6 100%);
  overflow: hidden;
  pointer-events: none;
}

.sm-page .join-card-blob::after {
  content: '';
  position: absolute;
  top: 18%;
  right: -34%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(215deg, #47bb55 0%, #78cc72 45%, #b5e2a0 100%);
}

.sm-page .join-title {
  position: relative;
  margin: 0 0 clamp(10px, 1.6vh, 16px);
  padding-right: 48px; /* clear of the corner crescent */
  font-size: clamp(30px, 2.65vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #174d33;
}

.sm-page .join-subtitle {
  position: relative;
  margin: 0 0 clamp(24px, 5vh, 48px);
  font-size: clamp(14.5px, 1.07vw, 19px);
  line-height: 1.5;
  color: #5b6470;
}

.sm-page .join-form {
  position: relative;
}

.sm-page .join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(14px, 1.15vw, 20px);
  row-gap: clamp(16px, 2.6vh, 26px);
}

.sm-page .join-field {
  min-width: 0;
}

.sm-page .join-field-wide {
  grid-column: 1 / -1;
}

.sm-page .join-label {
  display: block;
  margin-bottom: clamp(7px, 1.1vh, 11px);
  font-size: clamp(14px, 0.93vw, 16.5px);
  font-weight: 700;
  color: #1f5135;
}

.sm-page .join-control {
  position: relative;
}

.sm-page .join-control-icon {
  position: absolute;
  left: clamp(14px, 1.15vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(19px, 1.35vw, 24px);
  height: clamp(19px, 1.35vw, 24px);
  color: #374151;
  pointer-events: none;
  z-index: 1;
}

/* Message box: icon sits on the first line */
.sm-page .join-field-wide .join-control-icon {
  top: clamp(14px, 1.7vh, 18px);
  transform: none;
}

.sm-page .join-input {
  width: 100%;
  height: clamp(48px, 7vh, 62px);
  padding: 0 16px 0 clamp(46px, 3.9vw, 70px);
  border: 1.5px solid #e0e6e3;
  border-radius: 12px;
  background: #ffffff;
  font: inherit;
  font-size: clamp(15px, 0.98vw, 17px); /* >= 15px: no zoom-on-focus on iOS at 16px base */
  color: #1f2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm-page .join-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.sm-page .join-input:hover {
  border-color: #c9d4ce;
}

.sm-page .join-input:focus {
  outline: none;
  border-color: #2f8a52;
  box-shadow: 0 0 0 4px rgba(47, 138, 82, 0.14);
}

.sm-page .join-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.sm-page .join-select:invalid {
  color: #6b7280;
}

.sm-page .join-select option {
  color: #1f2937;
}

.sm-page .join-select-chevron {
  position: absolute;
  right: clamp(14px, 1.15vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(18px, 1.25vw, 22px);
  height: clamp(18px, 1.25vw, 22px);
  color: #1f2937;
  pointer-events: none;
}

.sm-page .join-textarea {
  display: block;
  height: auto;
  min-height: clamp(76px, 9.5vh, 86px);
  padding-top: clamp(13px, 1.6vh, 16px);
  padding-bottom: 12px;
  line-height: 1.5;
  resize: vertical;
}

/* Mobile number: one box holding the country code picker and the number */
.sm-page .join-phone {
  display: flex;
  align-items: center;
  padding-left: clamp(42px, 3.3vw, 58px);
  padding-right: 0;
}

.sm-page .join-phone:focus-within {
  border-color: #2f8a52;
  box-shadow: 0 0 0 4px rgba(47, 138, 82, 0.14);
}

.sm-page .join-code {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  height: 60%;
  padding-right: clamp(6px, 0.5vw, 9px);
  margin-right: clamp(8px, 0.65vw, 11px);
  border-right: 1.5px solid #e0e6e3;
  font-size: 0.92em;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.sm-page .join-code-chevron {
  width: 12px;
  height: 12px;
  color: #4b5563;
}

/* The native list opens from here, but stays invisible: only "+91 v" shows */
.sm-page .join-code-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}

.sm-page .join-code:focus-within {
  border-radius: 4px;
  outline: 2px solid rgba(47, 138, 82, 0.5);
  outline-offset: 2px;
}

.sm-page .join-phone-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

.sm-page .join-phone-input:focus {
  outline: none;
}

.sm-page .join-phone-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

/* Validation, hint and character counter */
.sm-page .has-error .join-input {
  border-color: #e05252;
}

.sm-page .has-error .join-input:focus,
.sm-page .has-error .join-phone:focus-within {
  border-color: #e05252;
  box-shadow: 0 0 0 4px rgba(224, 82, 82, 0.14);
}

.sm-page .join-help {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.sm-page .join-help:empty,
.sm-page .join-help[hidden] {
  display: none;
}

.sm-page .join-error,
.sm-page .join-hint {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.sm-page .join-error {
  color: #d93838;
}

.sm-page .join-error:empty {
  display: none;
}

.sm-page .join-hint {
  color: #6b7280;
}

.sm-page .join-counter {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sm-page .join-counter.is-ok {
  color: #1d7a44;
}

/* ---------- Submit ---------- */
.sm-page .join-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: clamp(18px, 2.4vh, 26px) auto 0;
  padding: clamp(13px, 1.9vh, 17px) clamp(36px, 3vw, 54px);
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #1e5c3d 0%, #174d33 100%);
  color: #ffffff;
  font: inherit;
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(23, 77, 51, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sm-page .join-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #19513a 0%, #123f29 100%);
  box-shadow: 0 16px 28px -10px rgba(23, 77, 51, 0.65);
}

.sm-page .join-submit:active {
  transform: translateY(0);
}

.sm-page .join-submit:focus-visible {
  outline: 3px solid rgba(47, 138, 82, 0.45);
  outline-offset: 3px;
}

.sm-page .join-submit-icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s ease;
}

.sm-page .join-submit:hover .join-submit-icon {
  transform: translateX(3px);
}

.sm-page .join-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #1d7a44;
  text-align: center;
}

/* Stays in the page (a live region must exist before it changes); shown once filled */
.sm-page .join-success:not(.is-visible) {
  margin: 0;
}

.sm-page .join-success:not(.is-visible) .join-success-icon {
  display: none;
}

.sm-page .join-success-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========================================================
   RESPONSIVE (TABLETS & MOBILE)
   ======================================================== */
@media (max-width: 960px) {
  .sm-page .join-section {
    min-height: 0;
    padding: 56px 16px 64px;
  }

  .sm-page .join-container {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .sm-page .join-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 440px;
  }

  .sm-page .join-card {
    padding: 36px 22px 32px;
  }

  .sm-page .join-card-blob {
    width: 150px;
    top: -68px;
    right: -34px;
  }

  .sm-page .join-title {
    font-size: clamp(28px, 6vw, 38px);
  }

  .sm-page .join-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .sm-page .join-label {
    font-size: 14.5px;
  }

  .sm-page .join-input {
    height: 52px;
    padding-left: 48px;
    font-size: 16px;
  }

  .sm-page .join-textarea {
    height: auto;
    min-height: 104px;
    padding-top: 14px;
  }

  .sm-page .join-phone {
    padding-left: 46px;
  }

  .sm-page .join-control-icon {
    left: 15px;
    width: 20px;
    height: 20px;
  }

  .sm-page .join-field-wide .join-control-icon {
    top: 15px;
  }

  .sm-page .join-select-chevron {
    right: 16px;
  }

  .sm-page .join-submit {
    font-size: 17px;
    padding: 14px 44px;
  }
}

@media (max-width: 560px) {
  .sm-page .join-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sm-page .join-card {
    padding: 30px 18px 28px;
  }

  .sm-page .join-media {
    aspect-ratio: 4 / 3;
  }

  .sm-page .join-submit {
    width: 100%;
  }

  .sm-page .join-success {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .sm-page .join-card {
    padding: 26px 14px 24px;
  }

  .sm-page .join-input {
    padding-left: 42px;
  }

  .sm-page .join-phone {
    padding-left: 40px;
  }

  .sm-page .join-control-icon {
    left: 12px;
    width: 19px;
    height: 19px;
  }

  .sm-page .join-code {
    margin-right: 8px;
  }

  /* Keeps the whole placeholder visible beside the country code; typed text stays 16px */
  .sm-page .join-phone-input {
    padding-right: 8px;
  }

  .sm-page .join-phone-input::placeholder {
    font-size: 14px;
  }
}


/* ---- sections/testimonials.css ---- */
/* ========================================================
   testimonials.css - S.A.F.E. Mission Testimonials
   Carousel showing 3 / 2 / 1 cards. On phones the arrows
   move below the card so it can use the full width.
   ======================================================== */

.sm-page .testimonials-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f4f8;
  padding: 60px 24px;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.sm-page .testimonials-container {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Main white rounded board */
.sm-page .testimonials-board {
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 40px 34px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.sm-page .testimonials-main-heading {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 900;
  color: #083c28;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 24px 0;
  text-align: center;
}

/* Prev arrow | cards | next arrow, dots underneath */
.sm-page .testimonials-carousel {
  --gap: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'prev viewport next'
    '.    dots     .';
  align-items: center;
  column-gap: 16px;
  row-gap: 20px;
  width: 100%;
}

.sm-page .testimonials-arrow-left {
  grid-area: prev;
}

.sm-page .testimonials-arrow-right {
  grid-area: next;
}

.sm-page .testimonials-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #d9e2ec;
  color: #083c28;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.25s var(--ease-spring);
  padding: 0;
  outline: none;
  flex-shrink: 0;
  user-select: none;
  z-index: 5;
}

.sm-page .testimonials-nav-arrow svg {
  width: 22px;
  height: 22px;
  stroke: #083c28;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.sm-page .testimonials-nav-arrow:focus-visible {
  outline: 3px solid rgba(0, 82, 204, 0.4);
  outline-offset: 2px;
}

@media (hover: hover) {
  .sm-page .testimonials-nav-arrow:hover {
    background: #083c28;
    border-color: #083c28;
    box-shadow: 0 6px 20px rgba(8, 60, 40, 0.25);
    transform: scale(1.08);
  }

  .sm-page .testimonials-nav-arrow:hover svg {
    stroke: #ffffff;
  }

  .sm-page .testimonials-arrow-left:hover svg {
    transform: translateX(-2px);
  }

  .sm-page .testimonials-arrow-right:hover svg {
    transform: translateX(2px);
  }
}

.sm-page .testimonials-nav-arrow:active {
  transform: scale(0.95);
}

/* Viewport clipping the sliding cards */
.sm-page .testimonials-slider-viewport {
  grid-area: viewport;
  overflow: hidden;
  min-width: 0;
  padding: 8px 4px 14px;
  margin: -8px -4px -14px;
  touch-action: pan-y;
}

.sm-page .testimonials-slider-track {
  display: flex;
  gap: var(--gap);
  list-style: none;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  width: 100%;
}

/* Card width = (track - gaps) / visible cards */
.sm-page .testimonial-card {
  --card-w: calc((100% - (var(--visible-cards, 3) - 1) * var(--gap)) / var(--visible-cards, 3));
  background: #0052cc;
  border-radius: 18px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  flex: 0 0 var(--card-w);
  min-width: 0;
  min-height: 240px;
  box-shadow: 0 8px 22px rgba(0, 82, 204, 0.2);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  position: relative;
}

@media (hover: hover) {
  .sm-page .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 82, 204, 0.28);
  }
}

.sm-page .card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
}

.sm-page .card-quote-icon {
  width: 24px;
  height: 24px;
  fill: #f59e0b;
  display: block;
  flex-shrink: 0;
}

.sm-page .card-avatar-badge {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #083c28;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.sm-page .card-title-text {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 2px 0;
  letter-spacing: -0.015em;
}

.sm-page .card-subtitle-text {
  font-size: 12px;
  font-weight: 500;
  color: #93c5fd;
  margin: 0 0 12px 0;
  line-height: 1.3;
  display: block;
}

.sm-page .card-quote-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 450;
  margin: 0 0 16px 0;
  flex: 1;
}

.sm-page .card-tag-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.sm-page .card-focus-pill {
  background: #ffffff;
  color: #083c28;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4.5px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  letter-spacing: -0.01em;
}

/* Page dots */
.sm-page .testimonials-dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.sm-page .testimonials-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.sm-page .testimonials-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #c7d2e0;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.sm-page .testimonials-dot[aria-current='true']::before {
  width: 22px;
  background: #0052cc;
}

.sm-page .testimonials-dot:focus-visible {
  outline: 2px solid rgba(0, 82, 204, 0.5);
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 960px) {
  .sm-page .testimonials-board {
    padding: 30px 24px 30px;
  }
}

@media (max-width: 640px) {
  .sm-page .testimonials-section {
    padding: 56px 16px 64px;
    min-height: 0;
  }

  .sm-page .testimonials-board {
    padding: 24px 14px 20px;
    border-radius: 18px;
  }

  .sm-page .testimonials-main-heading {
    margin-bottom: 18px;
  }

  /* Card on its own row, arrows and dots below it */
  .sm-page .testimonials-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'viewport viewport viewport'
      'prev     dots     next';
    row-gap: 16px;
    column-gap: 8px;
  }

  .sm-page .testimonial-card {
    min-height: 0;
    padding: 20px 18px 18px;
  }

  .sm-page .card-title-text {
    font-size: 16.5px;
  }

  .sm-page .card-subtitle-text {
    font-size: 13px;
  }

  .sm-page .card-quote-body {
    font-size: 14px;
    line-height: 1.55;
  }

  .sm-page .card-focus-pill {
    font-size: 11.5px;
  }

  .sm-page .testimonials-nav-arrow {
    width: 40px;
    height: 40px;
  }

  .sm-page .testimonials-nav-arrow svg {
    width: 20px;
    height: 20px;
  }
}


/* ---------- On the FEED site (not in the design) ---------- */
/* The site sets its own font on every element (global.css "*"): the page uses the design's */
.sm-page * {
  font-family: inherit;
}
/* The site's navbar stays on top of the page: sections reached from the hero tabs stop below it */
.sm-page main > section {
  scroll-margin-top: 88px;
}
/* The video's first picture shows while the video loads */
.sm-page .hero-video {
  background: #000 center / cover no-repeat;
}
/* Bot trap: a field people never see */
.sm-page .join-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Form: while sending, and the message when sending fails */
.sm-page .join-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.sm-page .join-success.is-error {
  color: #b42318;
}
.sm-page .join-success.is-error .join-success-icon {
  display: none;
}
/* The objective icon sprite takes no room */
.sm-page .sm-sprite {
  position: absolute;
}
/* Portrait screens show the whole video (the design's hero.css): it starts below the site's navbar,
   so the navbar doesn't cover the video's title */
@media (max-aspect-ratio: 1/1) {
  .sm-page .hero {
    padding-top: 84px;
  }
}
