/* Salem Assembly public theme — aligned with salemassembly.org (Zegen / Elementor palette). */
:root {
  --sa-primary: #6777ef;
  --sa-secondary: #00407c;
  --sa-cta: #bf0a30;
  --sa-accent-pink: #e9204f;
  --sa-body-purple: #8224e3;
  --sa-body-text: #818488;
  --sa-heading: #252525;
  --sa-white: #ffffff;
  --sa-black: #000000;
  --sa-topbar-bg: #000000;
  --sa-nav-bg: #ffffff;
  --sa-nav-text: #000000;
  --sa-muted: #5c6478;
  --sa-font-heading: "Poppins", system-ui, sans-serif;
  --sa-font-body: "Open Sans", system-ui, sans-serif;
  --sa-max: 73.125rem; /* ~1170px Zegen container */
  --sa-radius: 3px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sa-font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--sa-body-text);
  background-color: var(--sa-body-purple);
  background-image:
    linear-gradient(180deg, rgba(0, 21, 47, 0.5) 0%, rgba(130, 36, 227, 0.2) 45%, rgba(0, 21, 47, 0.55) 100%),
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(103, 119, 239, 0.35), transparent 50%);
  background-attachment: fixed;
}

/* Blog index + single post: full-page backdrop like Zegen (blog-10.jpg + purple wash) */
body.is-sa-blog,
body.is-sa-single-post {
  background-color: var(--sa-body-purple);
  background-image:
    linear-gradient(180deg, rgba(0, 21, 47, 0.42) 0%, rgba(130, 36, 227, 0.38) 48%, rgba(0, 21, 47, 0.48) 100%),
    url(/images/salemassembly/uploads/2019/04/blog-10.jpg);
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: var(--sa-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sa-primary);
}

.sa-container {
  width: min(100% - 2rem, var(--sa-max));
  margin-inline: auto;
}

/* Inner pages: hero band + white content (Zegen-style) */
body.is-sa-page main.page {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.sa-page-header {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: clamp(3.25rem, 8vw, 4.75rem) 0 clamp(2.75rem, 5vw, 3.5rem);
}

/* Inner pages: flat navy band like Zegen reference screenshot */
.sa-page-header--solid {
  background-color: #000b21;
  background-image: none;
}

/* Soft 3D “moon” behind title + crest (depth layer) */
.sa-page-header-ambient {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 0;
  width: min(118vw, 580px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.06) 12%, transparent 38%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.45) 0%, transparent 52%),
    radial-gradient(circle at 48% 48%, rgba(130, 148, 255, 0.42) 0%, rgba(72, 88, 200, 0.14) 52%, transparent 74%);
  opacity: 0.88;
  filter: saturate(1.08);
}

.sa-page-header-halo {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 0;
  width: min(108vw, 500px);
  aspect-ratio: 1;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(126, 142, 241, 0.12),
    0 0 48px rgba(90, 110, 220, 0.18),
    inset 0 0 32px rgba(255, 255, 255, 0.04);
  opacity: 0.9;
}

.sa-page-header-inner {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

/* Crest behind title; fully inside banner (no spill onto white content) */
.sa-page-header-crest {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  transform: translate(-50%, 0);
  pointer-events: none;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2))
    drop-shadow(0 -4px 18px rgba(20, 28, 80, 0.4));
}

.sa-page-header-crest-svg {
  display: block;
  width: clamp(54px, 12vw, 68px);
  height: auto;
}

.sa-page-header-crest-svg--disc {
  width: clamp(60px, 14vw, 76px);
}

/* Teardrop: gradient fill from SVG; thick white rim */
.sa-page-header-crest-drop {
  stroke: #fff;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke fill;
}

.sa-page-header-crest-disc-shape {
  stroke: #fff;
  stroke-width: 2.35;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sa-page-header-crest-cross,
.sa-page-header-crest-plus {
  opacity: 0.98;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

/* Our Blog hero: photo + overlay (Zegen .zegen-blog .page-title-wrap-inner) */
.sa-page-header--solid.sa-page-header--blog {
  background-color: #00152f;
  background-image: linear-gradient(rgba(0, 21, 47, 0.86), rgba(0, 21, 47, 0.86)),
    url(/images/salemassembly/uploads/2019/10/childrens_ministry-1.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-top: clamp(4rem, 10vw, 5rem);
  padding-bottom: clamp(5rem, 12vw, 7.5rem);
}

.sa-page-header--blog .sa-page-header-ambient,
.sa-page-header--blog .sa-page-header-halo {
  display: none;
}

/* Breadcrumb link on blog hero: Zegen accent, hover to white */
.sa-page-header--blog .sa-breadcrumb a {
  color: var(--sa-cta);
  text-shadow: none;
}

.sa-page-header--blog .sa-breadcrumb a:hover {
  color: #fff;
}

/* Single post hero: women_ministry banner + solid overlay (Zegen .zegen-single-post) */
.sa-page-header--solid.sa-page-header--post {
  background-color: #00152f;
  background-image: linear-gradient(rgba(0, 21, 47, 0.88), rgba(0, 21, 47, 0.88)),
    url(/images/salemassembly/uploads/2019/10/women_ministry-1.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-top: clamp(4rem, 10vw, 5rem);
  padding-bottom: clamp(5rem, 12vw, 7.5rem);
}

.sa-page-header--post .sa-page-header-ambient,
.sa-page-header--post .sa-page-header-halo {
  display: none;
}

.sa-page-header--post .sa-breadcrumb a {
  color: var(--sa-cta);
  text-shadow: none;
}

.sa-page-header--post .sa-breadcrumb a:hover {
  color: #fff;
}

.sa-page-header--post .sa-breadcrumb-current {
  color: rgba(255, 255, 255, 0.95);
}

.sa-breadcrumb {
  font-family: var(--sa-font-heading);
  font-size: 14px;
  margin-bottom: 0.65rem;
}

.sa-breadcrumb a {
  color: #8b1532;
  text-decoration: none;
}

.sa-breadcrumb a:hover {
  color: #a91d3d;
}

.sa-breadcrumb-sep {
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 0.55rem;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.45);
}

.sa-breadcrumb-current {
  color: #fff;
}

.sa-page-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: #fff;
}

.sa-page-inner {
  position: relative;
  z-index: 1;
  background: var(--sa-white);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 4rem;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

/* Contact template: soft mesh inner + deeper hero */
body.is-sa-contact .sa-page-inner {
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(103, 119, 239, 0.11), transparent 55%),
    radial-gradient(ellipse 75% 50% at 92% 12%, rgba(191, 10, 48, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(103, 119, 239, 0.05), transparent 60%),
    linear-gradient(180deg, #f9faff 0%, #ffffff 42%, #f6f8ff 100%);
  padding-top: clamp(2rem, 5vw, 3.25rem);
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sa-page-header--contact.sa-page-header--solid {
  background-image:
    radial-gradient(ellipse 85% 90% at 50% 115%, rgba(103, 119, 239, 0.38), transparent 58%),
    linear-gradient(185deg, #000814 0%, #000b21 50%, #030d2a 100%);
}

.sa-page-header--contact .sa-page-header-ambient {
  opacity: 1;
  filter: saturate(1.14) brightness(1.05);
}

.sa-page-header--contact .sa-page-title {
  text-shadow:
    0 0 48px rgba(126, 142, 241, 0.5),
    0 2px 28px rgba(0, 0, 0, 0.45);
}

/* Wide rich text (e.g. Our Vision layout) */
.block-rich-text.sa-rich--wide .sa-rich-inner-wide {
  width: min(100% - 2rem, var(--sa-max));
  margin-inline: auto;
}

.block-rich-text.sa-rich--wide {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

/* Faithful Moments Gallery (Zegen portfolio grid on dark band) */
body.is-sa-portfolio-gallery-page .sa-page-inner {
  background: linear-gradient(165deg, #1e2a4a 0%, #121b2e 50%, #0d1628 100%);
}

/* Our Ministries hub: inner shell stays light (wins over gallery rule if both body classes exist) */
body.is-sa-ministries-hub .sa-page-inner {
  background: var(--sa-white);
}

body.is-sa-portfolio-gallery-page .block-rich-text.sa-rich--wide {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.sa-portfolio-gallery {
  margin: 0;
}

.sa-portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .sa-portfolio-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .sa-portfolio-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.sa-portfolio-gallery-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.sa-portfolio-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .sa-portfolio-gallery-item:hover {
    transform: none;
  }
}

.sa-portfolio-gallery-item a {
  display: block;
  line-height: 0;
  position: relative;
}

.sa-portfolio-gallery-item a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(103, 119, 239, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.sa-portfolio-gallery-item a:hover::after {
  background: rgba(103, 119, 239, 0.12);
}

.sa-portfolio-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* —— Lux gallery (CMS gallery block: masonry + lightbox) —— */
html.sa-lux-lightbox-open,
body.sa-lux-lightbox-open {
  overflow: hidden;
}

body.is-sa-portfolio-gallery-page .block-gallery.sa-lux-gallery {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.sa-lux-gallery--empty .sa-lux-gallery-empty {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.72);
}

.sa-lux-gallery-frame {
  position: relative;
}

.sa-lux-gallery-masonry {
  column-count: 3;
  column-gap: 1.35rem;
}

@media (max-width: 900px) {
  .sa-lux-gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .sa-lux-gallery-masonry {
    column-count: 1;
  }
}

.sa-lux-gallery-cell {
  break-inside: avoid;
  margin-bottom: 1.35rem;
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.98);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-lux-gallery-cell.is-sa-lux-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .sa-lux-gallery-cell {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.sa-lux-gallery-cell--p0 .sa-lux-gallery-tile {
  transform: rotate(-0.35deg);
}

.sa-lux-gallery-cell--p1 .sa-lux-gallery-tile {
  transform: rotate(0.4deg);
}

.sa-lux-gallery-cell--p2 .sa-lux-gallery-tile {
  transform: rotate(-0.2deg);
}

.sa-lux-gallery-cell--p3 .sa-lux-gallery-tile {
  transform: rotate(0.25deg);
}

.sa-lux-gallery-cell--p4 .sa-lux-gallery-tile {
  transform: rotate(-0.3deg);
}

.sa-lux-gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(15, 23, 42, 0.65) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 14px 44px rgba(0, 0, 0, 0.38);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.sa-lux-gallery-tile:hover {
  box-shadow:
    0 0 0 1px rgba(199, 210, 254, 0.38),
    0 22px 56px rgba(0, 0, 0, 0.48);
  transform: translateY(-5px) scale(1.012);
  z-index: 2;
}

.sa-lux-gallery-cell--p0 .sa-lux-gallery-tile:hover,
.sa-lux-gallery-cell--p1 .sa-lux-gallery-tile:hover,
.sa-lux-gallery-cell--p2 .sa-lux-gallery-tile:hover,
.sa-lux-gallery-cell--p3 .sa-lux-gallery-tile:hover,
.sa-lux-gallery-cell--p4 .sa-lux-gallery-tile:hover {
  transform: translateY(-5px) scale(1.012);
}

@media (prefers-reduced-motion: reduce) {
  .sa-lux-gallery-tile,
  .sa-lux-gallery-cell--p0 .sa-lux-gallery-tile,
  .sa-lux-gallery-cell--p1 .sa-lux-gallery-tile,
  .sa-lux-gallery-cell--p2 .sa-lux-gallery-tile,
  .sa-lux-gallery-cell--p3 .sa-lux-gallery-tile,
  .sa-lux-gallery-cell--p4 .sa-lux-gallery-tile {
    transform: none;
    transition: none;
  }

  .sa-lux-gallery-tile:hover {
    transform: none;
  }
}

.sa-lux-gallery-tile:focus-visible {
  outline: 2px solid rgba(199, 210, 254, 0.95);
  outline-offset: 4px;
}

.sa-lux-gallery-tile-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    125deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.sa-lux-gallery-tile:hover .sa-lux-gallery-tile-glare,
.sa-lux-gallery-tile:focus-visible .sa-lux-gallery-tile-glare {
  opacity: 1;
}

.sa-lux-gallery-tile-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.sa-lux-gallery-thumb {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-lux-gallery-tile:hover .sa-lux-gallery-thumb {
  transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
  .sa-lux-gallery-tile:hover .sa-lux-gallery-thumb {
    transform: none;
  }
}

.sa-lux-gallery-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.sa-lux-gallery-tile:hover .sa-lux-gallery-zoom,
.sa-lux-gallery-tile:focus-visible .sa-lux-gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

.sa-lux-gallery-caption {
  margin: 0.55rem 0 0;
  padding: 0 0.15rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.78);
}

.sa-lux-lightbox[hidden] {
  display: none !important;
}

.sa-lux-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
}

.sa-lux-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: zoom-out;
  background: rgba(4, 8, 20, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@supports not (backdrop-filter: blur(1px)) {
  .sa-lux-lightbox-backdrop {
    background: rgba(4, 8, 20, 0.94);
  }
}

.sa-lux-lightbox-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(96vw, 1180px);
}

.sa-lux-lightbox-img-wrap {
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 90px rgba(0, 0, 0, 0.55);
}

.sa-lux-lightbox-img {
  display: block;
  width: 100%;
  max-height: min(82vh, 880px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  vertical-align: middle;
}

.sa-lux-lightbox-caption {
  margin: 1rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
}

.sa-lux-lightbox-caption[hidden] {
  display: none !important;
}

.sa-lux-lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.sa-lux-lightbox-close:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(199, 210, 254, 0.45);
}

.sa-lux-lightbox-close:focus-visible {
  outline: 2px solid rgba(199, 210, 254, 0.9);
  outline-offset: 3px;
}

.sa-lux-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.sa-lux-lightbox-nav:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(199, 210, 254, 0.4);
}

.sa-lux-lightbox-nav:focus-visible {
  outline: 2px solid rgba(199, 210, 254, 0.9);
  outline-offset: 3px;
}

.sa-lux-lightbox-prev {
  left: clamp(0.15rem, 1.5vw, 0.75rem);
}

.sa-lux-lightbox-next {
  right: clamp(0.15rem, 1.5vw, 0.75rem);
}

@media (max-width: 520px) {
  .sa-lux-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.35rem;
  }

  .sa-lux-lightbox-prev {
    left: 0.1rem;
  }

  .sa-lux-lightbox-next {
    right: 0.1rem;
  }
}

/* Our Vision / Our Mission — rich text layout (Zegen-aligned, elevated) */
.sa-vision {
  position: relative;
  isolation: isolate;
  padding: clamp(1.75rem, 4.5vw, 2.85rem);
  border-radius: clamp(14px, 2.2vw, 22px);
  background:
    radial-gradient(ellipse 85% 55% at 0% 0%, rgba(103, 119, 239, 0.14), transparent 58%),
    radial-gradient(ellipse 75% 50% at 100% 88%, rgba(191, 10, 48, 0.07), transparent 55%),
    linear-gradient(168deg, #f8f9ff 0%, #ffffff 42%, #f3f5fc 100%);
  border: 1px solid rgba(103, 119, 239, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 28px 70px rgba(15, 35, 90, 0.09);
}

.sa-vision::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 18% 72%, rgba(103, 119, 239, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 82% 22%, rgba(0, 64, 124, 0.05) 0%, transparent 40%);
}

body.is-sa-mission-page .sa-vision {
  background:
    radial-gradient(ellipse 80% 52% at 100% 0%, rgba(0, 64, 124, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 48% at 0% 100%, rgba(103, 119, 239, 0.1), transparent 52%),
    linear-gradient(168deg, #f4f8fc 0%, #ffffff 44%, #eef3f9 100%);
  border-color: rgba(0, 64, 124, 0.14);
}

body.is-sa-mission-page .sa-vision::before {
  background:
    radial-gradient(circle at 78% 68%, rgba(0, 64, 124, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 22% 28%, rgba(103, 119, 239, 0.06) 0%, transparent 40%);
}

.sa-vision-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.sa-vision-text {
  min-width: 0;
}

.sa-vision-eyebrow {
  font-family: var(--sa-font-heading);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sa-primary);
  margin: 0 0 0.65rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(103, 119, 239, 0.12);
  border: 1px solid rgba(103, 119, 239, 0.2);
}

body.is-sa-mission-page .sa-vision-eyebrow {
  color: var(--sa-secondary);
  background: rgba(0, 64, 124, 0.08);
  border-color: rgba(0, 64, 124, 0.18);
}

.sa-vision-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 700;
  color: var(--sa-heading);
  line-height: 1.22;
  margin: 0 0 1.05rem;
  max-width: 40rem;
  letter-spacing: -0.02em;
}

.sa-vision-rule {
  display: block;
  width: min(4.5rem, 18vw);
  height: 4px;
  margin: 0 0 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sa-primary) 0%, rgba(103, 119, 239, 0.35) 55%, rgba(191, 10, 48, 0.55) 100%);
}

body.is-sa-mission-page .sa-vision-rule {
  background: linear-gradient(90deg, var(--sa-secondary) 0%, rgba(0, 64, 124, 0.4) 60%, var(--sa-primary) 100%);
}

.sa-vision-figure {
  position: relative;
  margin: 0;
  border-radius: clamp(12px, 1.8vw, 18px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(103, 119, 239, 0.12),
    0 20px 50px rgba(15, 30, 70, 0.14);
}

body.is-sa-mission-page .sa-vision-figure {
  box-shadow:
    0 0 0 1px rgba(0, 64, 124, 0.14),
    0 20px 50px rgba(10, 40, 70, 0.12);
}

.sa-vision-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.sa-vision-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .sa-vision-figure:hover img {
    transform: scale(1.03);
  }
}

.sa-vision-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

.sa-vision-card {
  position: relative;
  padding: 1.45rem 1.35rem 1.4rem 1.35rem;
  padding-left: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(103, 119, 239, 0.12);
  border-radius: clamp(10px, 1.5vw, 14px);
  box-shadow: 0 10px 36px rgba(20, 40, 90, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.sa-vision-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--sa-primary) 0%, rgba(103, 119, 239, 0.45) 100%);
}

body.is-sa-mission-page .sa-vision-card::before {
  background: linear-gradient(180deg, var(--sa-secondary) 0%, var(--sa-primary) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .sa-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(20, 45, 100, 0.12);
    border-color: rgba(103, 119, 239, 0.22);
  }

  body.is-sa-mission-page .sa-vision-card:hover {
    border-color: rgba(0, 64, 124, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-vision-figure img,
  .sa-vision-card {
    transition: none;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .sa-vision-card {
    background: #ffffff;
  }
}

.sa-vision-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--sa-primary) 0%, #5163d4 55%, #3d4fc4 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 1.05rem;
  box-shadow:
    0 10px 26px rgba(103, 119, 239, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

body.is-sa-mission-page .sa-vision-card-icon {
  background: linear-gradient(145deg, var(--sa-secondary) 0%, #0a5a9e 50%, var(--sa-primary) 100%);
  box-shadow:
    0 10px 26px rgba(0, 64, 124, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.sa-vision-card-title {
  font-family: var(--sa-font-heading);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--sa-heading);
  margin: 0 0 0.55rem;
  line-height: 1.3;
}

.sa-vision-card p {
  margin: 0;
  color: var(--sa-muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

body.is-sa-vision-page .block-rich-text.sa-rich--wide,
body.is-sa-mission-page .block-rich-text.sa-rich--wide {
  padding-top: clamp(2.25rem, 5.5vw, 3.25rem);
  padding-bottom: clamp(2.25rem, 5.5vw, 3.25rem);
}

@media (max-width: 900px) {
  .sa-vision-grid {
    grid-template-columns: 1fr;
  }

  .sa-vision-cards {
    grid-template-columns: 1fr;
  }
}

/* About Salem Assembly (mirrored Elementor layout) */
.sa-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.sa-about-col {
  min-width: 0;
}

.sa-about-eyebrow {
  font-family: var(--sa-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sa-primary);
  margin: 0 0 0.4rem;
}

.sa-about-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--sa-heading);
  line-height: 1.28;
  margin: 0 0 1rem;
  max-width: 36rem;
}

.sa-about-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--sa-primary);
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.sa-about-lead {
  margin: 0 0 1.75rem;
  color: var(--sa-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 40rem;
}

.sa-about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sa-about-thumb {
  margin: 0;
}

.sa-about-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--sa-radius);
}

.sa-about-feature {
  margin: 0 0 1.25rem;
}

.sa-about-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--sa-radius);
}

.sa-about-pullquote {
  font-family: var(--sa-font-heading);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--sa-heading);
  margin: 0;
}

@media (max-width: 900px) {
  .sa-about-grid {
    grid-template-columns: 1fr;
  }

  .sa-about-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .sa-about-gallery {
    grid-template-columns: 1fr;
  }
}

/* About page — refined editorial treatment (still restrained for a church org) */
.sa-about {
  position: relative;
}

.sa-about-grid {
  gap: clamp(2rem, 5vw, 3.5rem);
}

.sa-about-eyebrow {
  color: var(--sa-secondary);
  letter-spacing: 0.16em;
}

.sa-about-title {
  letter-spacing: -0.02em;
}

.sa-about-rule {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sa-primary) 0%, rgba(103, 119, 239, 0.2) 100%);
}

.sa-about-lead {
  font-size: 1.02rem;
}

.sa-about-thumb img,
.sa-about-feature img {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .sa-about-thumb img:hover,
  .sa-about-feature img:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-about-thumb img,
  .sa-about-feature img {
    transition: none;
  }

  .sa-about-thumb img:hover,
  .sa-about-feature img:hover {
    transform: none;
  }
}

.sa-about-col-right {
  display: flex;
  flex-direction: column;
}

.sa-about-feature {
  margin-bottom: clamp(1.35rem, 3vw, 1.85rem);
}

.sa-about-pullquote {
  position: relative;
  margin: 0;
  padding: clamp(1.4rem, 3.2vw, 2rem) clamp(1.35rem, 3vw, 1.85rem);
  padding-left: clamp(2.75rem, 6vw, 3.35rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.75;
  color: var(--sa-secondary);
  background: linear-gradient(145deg, rgba(0, 64, 124, 0.06) 0%, rgba(103, 119, 239, 0.07) 48%, rgba(0, 21, 47, 0.04) 100%);
  border-radius: calc(var(--sa-radius) + 4px);
  border: 1px solid rgba(0, 64, 124, 0.08);
  border-left: 4px solid var(--sa-primary);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 12px 28px rgba(0, 21, 47, 0.06);
}

.sa-about-pullquote::before {
  content: "\201C";
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 2.85rem);
  line-height: 1;
  color: var(--sa-primary);
  opacity: 0.22;
  pointer-events: none;
}

/* Salem Assembly Ext 4 — location: split panel + framed map (editorial layout) */
.sa-location {
  display: grid;
  margin: 0;
  gap: 0;
}

.sa-location-intro {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--sa-radius);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #020814;
  background-image:
    linear-gradient(118deg, rgba(0, 8, 24, 0.97) 0%, rgba(0, 28, 58, 0.88) 42%, rgba(46, 58, 140, 0.55) 100%),
    url("/images/salemassembly/uploads/2019/10/childrens_ministry-1.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  margin-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Slow-moving light pool (disabled when user prefers reduced motion) */
.sa-location-intro::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(ellipse 45% 35% at 30% 40%, rgba(103, 119, 239, 0.45), transparent 55%),
    radial-gradient(ellipse 40% 38% at 75% 60%, rgba(0, 64, 124, 0.5), transparent 50%);
  opacity: 0.85;
  animation: sa-location-aurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes sa-location-aurora {
  0% {
    transform: translate(-4%, -2%) rotate(-2deg) scale(1);
  }

  100% {
    transform: translate(5%, 3%) rotate(3deg) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-location-intro::before {
    animation: none;
    transform: none;
  }
}

/* Fine noise overlay for depth */
.sa-location-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.sa-location-card {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.35rem, 3vw, 2rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: calc(var(--sa-radius) + 6px);
  background: rgba(0, 12, 32, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 0 80px rgba(103, 119, 239, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sa-location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.5rem, 10vw, 5.5rem);
  height: clamp(4.5rem, 10vw, 5.5rem);
  margin: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #00407c, #6777ef, #9aa8ff, #00407c);
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.18),
    0 14px 36px rgba(0, 0, 0, 0.4),
    0 0 48px rgba(103, 119, 239, 0.55);
}

.sa-location-icon svg {
  width: clamp(1.65rem, 4.2vw, 2rem);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.sa-location-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Rich-text block h2/p rules win on specificity; keep location legible on dark band */
.block-rich-text.sa-rich .sa-location-intro h2.sa-location-title {
  color: #fff;
  margin-top: 0;
}

.sa-location-address {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.block-rich-text.sa-rich .sa-location-intro p.sa-location-address {
  color: rgba(255, 255, 255, 0.9);
}

.sa-location-cta {
  margin: 0;
}

.sa-location-cta .sa-btn-cta {
  background: linear-gradient(145deg, #7c8cf5 0%, var(--sa-primary) 38%, #1a3d7a 120%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 40px rgba(103, 119, 239, 0.25);
  transition:
    filter 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.sa-location-cta .sa-btn-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(103, 119, 239, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.sa-location-map-wrap {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  line-height: 0;
  padding: clamp(0.65rem, 2vw, 1.1rem);
  background:
    linear-gradient(160deg, #050d1c 0%, #0f1a32 45%, #1a2744 100%);
  box-shadow:
    0 -20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Corner brackets on the map “viewport” */
.sa-location-map-wrap::before,
.sa-location-map-wrap::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 2;
  pointer-events: none;
  border-color: rgba(154, 168, 255, 0.75);
  border-style: solid;
}

.sa-location-map-wrap::before {
  top: clamp(0.5rem, 1.5vw, 0.85rem);
  left: clamp(0.5rem, 1.5vw, 0.85rem);
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.sa-location-map-wrap::after {
  right: clamp(0.5rem, 1.5vw, 0.85rem);
  bottom: clamp(0.5rem, 1.5vw, 0.85rem);
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.sa-location-map {
  display: block;
  width: 100%;
  height: min(420px, 55vh);
  border: 0;
  border-radius: 10px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

@media (min-width: 992px) {
  .sa-location {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: stretch;
    min-height: min(540px, 78vh);
  }

  .sa-location-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: left;
    padding: clamp(2.75rem, 4vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
    border-radius: 0;
  }

  .sa-location-intro::after {
    opacity: 0.05;
  }

  .sa-location-card {
    max-width: 34rem;
    margin: 0;
    align-items: stretch;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 1.35rem;
    row-gap: 1.15rem;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem)
      clamp(1.5rem, 3vw, 2.25rem) clamp(1.85rem, 3.5vw, 2.6rem);
  }

  .sa-location-card::before {
    content: "";
    position: absolute;
    left: clamp(0.85rem, 2vw, 1.15rem);
    top: 16%;
    bottom: 16%;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #d0d6ff, #6777ef 42%, #003566);
    box-shadow: 0 0 20px rgba(103, 119, 239, 0.55);
  }

  .sa-location-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .sa-location-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    text-align: left;
  }

  .sa-location-address {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    max-width: none;
  }

  .sa-location-cta {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .sa-location-map-wrap {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    height: 100%;
    min-height: min(540px, 78vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    padding: clamp(1rem, 2.2vw, 1.75rem);
  }

  .sa-location-map {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: min(480px, 70vh);
  }
}

@media (max-width: 991px) {
  .sa-location-map-wrap {
    margin-top: clamp(0.35rem, 1.5vw, 0.75rem);
  }
}

@media (max-width: 640px) {
  .sa-location-map {
    height: 280px;
  }
}

/* —— Top bar —— */
.sa-topbar {
  background: var(--sa-topbar-bg);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--sa-font-heading);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sa-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 50px;
  flex-wrap: wrap;
}

.sa-topbar a {
  color: #fff;
  text-decoration: none;
}

.sa-topbar a:hover {
  color: var(--sa-cta);
}

/* —— Header / nav —— */
.sa-header {
  background: var(--sa-nav-bg);
  color: var(--sa-nav-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.sa-brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.sa-brand a {
  display: inline-block;
  text-decoration: none;
}

.sa-logo {
  display: block;
  max-height: 70px;
  width: auto;
  height: auto;
}

.sa-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.sa-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.35rem;
  align-items: center;
}

.sa-nav li {
  position: relative;
}

.sa-nav > ul > li > a,
.sa-nav > ul > li > a.sa-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.55rem;
  color: var(--sa-nav-text);
  text-decoration: none;
  font-family: var(--sa-font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--sa-radius);
}

.sa-nav-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 1px;
}

.sa-nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.sa-nav-text {
  line-height: 1.2;
}

.sa-nav-suffix {
  margin-left: 0.08rem;
  font-weight: 700;
  font-size: 0.92em;
  opacity: 0.88;
}

.sa-nav > ul > li > a.sa-nav-link--accent {
  color: #7a1628;
}

.sa-nav > ul > li > a:hover,
.sa-nav li.is-active-branch > a {
  color: var(--sa-cta);
}

.sa-nav li.is-current > a {
  color: var(--sa-cta);
}

.sa-nav ul ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 15rem;
  background: var(--sa-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--sa-radius);
  padding: 0.35rem 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 110;
}

.sa-nav li:hover > ul {
  display: block;
}

.sa-nav ul ul ul {
  left: 100%;
  top: 0;
  margin-left: 2px;
}

.sa-nav ul ul a {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--sa-nav-text);
  text-decoration: none;
  font-family: var(--sa-font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: capitalize;
}

.sa-nav ul ul a:hover {
  color: var(--sa-cta);
}

/* —— Hero (Rev-slider–style bands) —— */
.block-hero.sa-hero {
  position: relative;
  color: var(--sa-white);
  padding: clamp(3.5rem, 12vw, 5.5rem) 0;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
  background-size: cover;
  background-position: center;
}

.block-hero.sa-hero.sa-hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sa-hero-inner {
  position: relative;
  z-index: 1;
}

.sa-hero-accent {
  font-family: var(--sa-font-heading);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sa-accent-pink);
  margin: 0 0 0.75rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.block-hero.sa-hero h1 {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.65rem, 4.5vw, 2.65rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  color: var(--sa-white);
}

.sa-hero-lede {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
}

.sa-btn {
  display: inline-block;
  padding: 0.65rem 1.65rem;
  font-family: var(--sa-font-heading);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: var(--sa-radius);
  border: 3px solid transparent;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.sa-btn-cta {
  background: var(--sa-cta);
  color: #fff !important;
}

.sa-btn-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff !important;
}

.sa-btn-outline {
  margin-top: 0.5rem;
  border-color: var(--sa-primary);
  color: var(--sa-primary) !important;
  background: transparent;
}

.sa-btn-outline:hover {
  background: var(--sa-primary);
  color: #fff !important;
}

/* —— Home hero slider (Rev Slider–style, church welcome) —— */
.sa-hero-slider {
  --sa-hero-slider-gold: #e8c547;
  --sa-hero-slider-gold-dim: rgba(232, 197, 71, 0.45);
  --sa-hero-slider-gold-faint: rgba(232, 197, 71, 0.2);
  position: relative;
  width: 100%;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sa-hero-slider-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Cinematic vignette + bottom scrim (behind slides, above slide backgrounds) */
.sa-hero-slider-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 8, 24, 0.35) 0%, transparent 28%, transparent 62%, rgba(0, 6, 20, 0.55) 100%),
    radial-gradient(ellipse 85% 70% at 50% 38%, transparent 30%, rgba(0, 4, 18, 0.45) 100%);
}

.sa-hero-slider-track {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.88s cubic-bezier(0.25, 0.82, 0.28, 1);
  will-change: transform;
}

.sa-hero-slider--reduced-motion .sa-hero-slider-track {
  transition: none;
}

.sa-hero-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.sa-hero-slide .block-hero.sa-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  min-height: clamp(30rem, 88vh, 54rem);
  padding: clamp(3.75rem, 12vw, 6.5rem) 0;
}

/* Soft “sanctuary light” wash on the active slide */
.sa-hero-slide[aria-hidden="false"] .block-hero.sa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 248, 230, 0.12) 0%, transparent 55%);
  animation: sa-hero-sanctuary-glow 10s ease-in-out infinite alternate;
}

.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="false"] .block-hero.sa-hero::before {
  animation: none;
  opacity: 0.85;
}

@keyframes sa-hero-sanctuary-glow {
  0% {
    opacity: 0.65;
  }
  100% {
    opacity: 1;
  }
}

.sa-hero-slide .sa-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  perspective: 1400px;
}

/*
 * Hero slider copy stack: accent (small caps) → h1 → lede → CTA.
 * Each layer has its own slower, theatrical entrance when the slide is active.
 */
.sa-hero-slide .sa-hero-accent {
  color: var(--sa-hero-slider-gold);
  text-shadow:
    0 0 20px var(--sa-hero-slider-gold-faint),
    0 0 42px rgba(232, 197, 71, 0.12);
  opacity: 0;
  transform: translateY(0.65rem);
  letter-spacing: 0.36em;
  filter: blur(5px);
}

@supports ((-webkit-background-clip: text) and (color: transparent)) or (background-clip: text) {
  .sa-hero-slide .sa-hero-accent {
    background: linear-gradient(
      95deg,
      #a67c1a 0%,
      #f5e6a8 38%,
      #fffef5 50%,
      #e8c547 62%,
      #8a6a18 100%
    );
    background-size: 260% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Keep glow visible on clipped text */
    filter: blur(5px) drop-shadow(0 0 14px rgba(232, 197, 71, 0.35));
  }
}

.sa-hero-slide .block-hero.sa-hero h1 {
  font-size: clamp(1.85rem, 5vw, 3.05rem);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(255, 255, 255, 0.06);
  opacity: 0;
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  transform: translateY(2.25rem) rotateX(22deg) scale(0.94);
}

.sa-hero-slide .sa-hero-lede {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(1.85rem, 0.65rem) skewX(-2deg);
  filter: blur(5px);
  clip-path: inset(0 100% 0 0);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 95%);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 95%);
  -webkit-mask-size: 220% 100%;
  mask-size: 220% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.sa-hero-slide .sa-hero-inner .sa-btn.sa-btn-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: scale(0.84) translateY(1.1rem);
  filter: blur(4px);
}

.sa-hero-slide .sa-hero-inner .sa-btn.sa-btn-cta::after {
  content: "";
  position: absolute;
  inset: -55% -35%;
  z-index: 1;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.07) 58%,
    transparent 100%
  );
  transform: translateX(-130%) skewX(-14deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.sa-hero-slide[aria-hidden="true"] .sa-hero-accent {
  opacity: 0;
  transform: translateY(0.65rem);
  letter-spacing: 0.36em;
  filter: blur(5px);
}

@supports ((-webkit-background-clip: text) and (color: transparent)) or (background-clip: text) {
  .sa-hero-slide[aria-hidden="true"] .sa-hero-accent {
    background-position: 100% 50%;
    filter: blur(5px) drop-shadow(0 0 14px rgba(232, 197, 71, 0.35));
  }
}

.sa-hero-slide[aria-hidden="true"] .block-hero.sa-hero h1 {
  opacity: 0;
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  transform: translateY(2.25rem) rotateX(22deg) scale(0.94);
}

.sa-hero-slide[aria-hidden="true"] .sa-hero-lede {
  opacity: 0;
  transform: translate(1.85rem, 0.65rem) skewX(-2deg);
  filter: blur(5px);
  clip-path: inset(0 100% 0 0);
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.sa-hero-slide[aria-hidden="true"] .sa-hero-accent,
.sa-hero-slide[aria-hidden="true"] .block-hero.sa-hero h1,
.sa-hero-slide[aria-hidden="true"] .sa-hero-lede,
.sa-hero-slide[aria-hidden="true"] .sa-hero-inner .sa-btn.sa-btn-cta {
  animation: none !important;
}

.sa-hero-slide[aria-hidden="true"] .sa-hero-inner .sa-btn.sa-btn-cta {
  opacity: 0;
  transform: scale(0.84) translateY(1.1rem);
  filter: blur(4px);
}

.sa-hero-slide[aria-hidden="true"] .sa-hero-inner .sa-btn.sa-btn-cta::after {
  animation: none !important;
  opacity: 0;
  transform: translateX(-130%) skewX(-14deg);
}

/* 1 — Accent: procession + gold light sweeps across the type */
.sa-hero-slide[aria-hidden="false"] .sa-hero-accent {
  animation: sa-hero-accent-procession 2.25s cubic-bezier(0.18, 0.88, 0.26, 1) forwards;
  animation-delay: 0.05s;
}

@supports ((-webkit-background-clip: text) and (color: transparent)) or (background-clip: text) {
  .sa-hero-slide[aria-hidden="false"] .sa-hero-accent {
    animation:
      sa-hero-accent-procession 2.25s cubic-bezier(0.18, 0.88, 0.26, 1) forwards,
      sa-hero-accent-shimmer 2.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.05s, 0.05s;
  }
}

/* 2 — Headline: curtain rises while the line tilts out of depth (sanctuary panel) */
.sa-hero-slide[aria-hidden="false"] .sa-hero-inner > h1:first-child {
  animation: sa-hero-headline-curtain 2.15s cubic-bezier(0.12, 0.9, 0.22, 1) forwards;
  animation-delay: 0.18s;
}

.sa-hero-slide[aria-hidden="false"] .sa-hero-accent ~ h1 {
  animation: sa-hero-headline-curtain 2.15s cubic-bezier(0.12, 0.9, 0.22, 1) forwards;
  animation-delay: 0.52s;
}

/* 3 — Lede: horizontal “light” unmasks copy while it drifts into place */
.sa-hero-slide[aria-hidden="false"] .sa-hero-lede {
  animation: sa-hero-lede-illumine 2s cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
  animation-delay: 1.08s;
}

.sa-hero-slide[aria-hidden="false"] .sa-hero-accent ~ h1 ~ .sa-hero-lede,
.sa-hero-slide[aria-hidden="false"] .sa-hero-accent ~ .sa-hero-lede {
  animation-delay: 1.34s;
}

/* 4 — CTA: invitation pop + one radiant pass across the button */
.sa-hero-slide[aria-hidden="false"] .sa-hero-inner .sa-btn.sa-btn-cta {
  animation: sa-hero-cta-invite 1.45s cubic-bezier(0.3, 1.28, 0.48, 1) forwards;
  animation-delay: 1.68s;
}

.sa-hero-slide[aria-hidden="false"] .sa-hero-inner .sa-hero-lede + .sa-btn.sa-btn-cta {
  animation-delay: 1.94s;
}

.sa-hero-slide[aria-hidden="false"] .sa-hero-inner .sa-btn.sa-btn-cta::after {
  animation: sa-hero-cta-shine 1.05s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 2.92s;
}

.sa-hero-slide[aria-hidden="false"] .sa-hero-inner .sa-hero-lede + .sa-btn.sa-btn-cta::after {
  animation-delay: 3.22s;
}

@keyframes sa-hero-accent-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes sa-hero-accent-procession {
  0% {
    opacity: 0;
    transform: translateY(0.95rem) scale(0.98);
    letter-spacing: 0.42em;
    filter: blur(7px) drop-shadow(0 0 18px rgba(232, 197, 71, 0.45));
  }
  30% {
    opacity: 0.75;
    filter: blur(2px) drop-shadow(0 0 24px rgba(255, 248, 220, 0.4));
  }
  55% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 20px rgba(232, 197, 71, 0.32));
  }
  75% {
    transform: translateY(0) scale(1.02);
    letter-spacing: 0.09em;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.06em;
    filter: blur(0) drop-shadow(0 0 16px rgba(232, 197, 71, 0.26));
  }
}

@keyframes sa-hero-headline-curtain {
  0% {
    opacity: 0;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    transform: translateY(2.35rem) rotateX(26deg) scale(0.92);
    text-shadow:
      0 4px 20px rgba(0, 0, 0, 0.5),
      0 0 0 rgba(255, 255, 255, 0);
  }
  22% {
    opacity: 1;
  }
  70% {
    transform: translateY(0) rotateX(2deg) scale(1.02);
    text-shadow:
      0 2px 28px rgba(0, 0, 0, 0.35),
      0 0 48px rgba(255, 255, 255, 0.12);
  }
  100% {
    opacity: 1;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: translateY(0) rotateX(0) scale(1);
    text-shadow:
      0 2px 28px rgba(0, 0, 0, 0.35),
      0 0 60px rgba(255, 255, 255, 0.06);
  }
}

@keyframes sa-hero-lede-illumine {
  0% {
    opacity: 0;
    transform: translate(2.15rem, 0.85rem) skewX(-2.5deg);
    filter: blur(7px);
    clip-path: inset(0 100% 0 0);
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  35% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) skewX(0);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

@keyframes sa-hero-cta-invite {
  0% {
    opacity: 0;
    transform: scale(0.78) translateY(1.45rem) rotate(-2deg);
    filter: blur(6px);
    box-shadow: 0 0 0 rgba(191, 10, 48, 0);
  }
  58% {
    opacity: 1;
    transform: scale(1.06) translateY(0) rotate(0.5deg);
    filter: blur(0);
    box-shadow:
      0 12px 36px rgba(191, 10, 48, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.12);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0);
    filter: blur(0);
    box-shadow: 0 8px 28px rgba(191, 10, 48, 0.22);
  }
}

@keyframes sa-hero-cta-shine {
  0% {
    opacity: 0;
    transform: translateX(-130%) skewX(-14deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(130%) skewX(-14deg);
  }
}

/* Browsers without polygon clip-path: still get a stately headline rise */
@supports not (clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)) {
  .sa-hero-slide .block-hero.sa-hero h1 {
    clip-path: none;
    transform: translateY(2.25rem) rotateX(22deg) scale(0.94);
  }

  .sa-hero-slide[aria-hidden="false"] .sa-hero-inner > h1:first-child,
  .sa-hero-slide[aria-hidden="false"] .sa-hero-accent ~ h1 {
    animation-name: sa-hero-headline-fallback;
  }
}

@keyframes sa-hero-headline-fallback {
  0% {
    opacity: 0;
    transform: translateY(2.45rem) rotateX(20deg) scale(0.92);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

.sa-hero-slider--reduced-motion .sa-hero-slide .sa-hero-inner {
  perspective: none;
}

.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="false"] .sa-hero-accent,
.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="false"] .block-hero.sa-hero h1,
.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="false"] .sa-hero-lede,
.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="false"] .sa-hero-inner .sa-btn.sa-btn-cta {
  animation: none !important;
  opacity: 1;
  transform: none;
  filter: none;
  letter-spacing: 0.06em;
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="false"] .sa-hero-accent {
  color: var(--sa-hero-slider-gold);
  -webkit-text-fill-color: unset;
  background: none;
  background-size: auto;
  background-position: 0 0;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="false"] .sa-hero-inner .sa-btn.sa-btn-cta::after {
  display: none;
}

.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="true"] .sa-hero-accent,
.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="true"] .block-hero.sa-hero h1,
.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="true"] .sa-hero-lede,
.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="true"] .sa-hero-inner .sa-btn.sa-btn-cta {
  animation: none !important;
  opacity: 0;
  transform: none;
  filter: none;
  letter-spacing: inherit;
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.sa-hero-slider--reduced-motion .sa-hero-slide[aria-hidden="true"] .sa-hero-inner .sa-btn.sa-btn-cta::after {
  display: none;
}

.sa-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 30;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 12, 28, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.sa-hero-nav:hover {
  background: rgba(20, 28, 48, 0.58);
  border-color: var(--sa-hero-slider-gold-dim);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.32),
    0 0 0 1px var(--sa-hero-slider-gold-faint),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: scale(1.04);
}

.sa-hero-nav:focus-visible {
  outline: 2px solid var(--sa-hero-slider-gold);
  outline-offset: 3px;
}

.sa-hero-nav-prev {
  left: max(12px, env(safe-area-inset-left, 0px));
}

.sa-hero-nav-next {
  right: max(12px, env(safe-area-inset-right, 0px));
}

.sa-hero-dots {
  position: absolute;
  bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 3.5rem;
  pointer-events: none;
}

.sa-hero-dots .sa-hero-dot {
  pointer-events: auto;
}

.sa-hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease,
    width 0.28s ease,
    box-shadow 0.28s ease;
}

.sa-hero-dot:hover {
  border-color: var(--sa-hero-slider-gold);
  background: rgba(255, 255, 255, 0.12);
}

.sa-hero-dot:focus-visible {
  outline: 2px solid var(--sa-hero-slider-gold);
  outline-offset: 2px;
}

.sa-hero-dot[aria-selected="true"],
.sa-hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--sa-hero-slider-gold), #fff6d4);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 16px var(--sa-hero-slider-gold-faint);
  transform: scale(1);
}

@media (max-width: 640px) {
  .sa-hero-nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    font-size: 1.45rem;
  }

  .sa-hero-nav-prev {
    left: 6px;
  }

  .sa-hero-nav-next {
    right: 6px;
  }
}

/* —— Features / ministries —— */
.block-features.sa-features {
  padding: 3rem 0;
  background: var(--sa-white);
}

.block-features.sa-features .sa-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
}

.block-features.sa-features .feature {
  padding: 1.5rem;
  border-radius: var(--sa-radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

.block-features.sa-features .feature-thumb {
  margin: -1.5rem -1.5rem 1rem;
  aspect-ratio: 16 / 9;
  background: #e8ecff;
}

.block-features.sa-features .feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.block-features.sa-features .feature:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.block-features.sa-features .feature h3 {
  font-family: var(--sa-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--sa-heading);
}

.block-features.sa-features .feature p {
  margin: 0;
  color: var(--sa-muted);
  font-size: 0.95rem;
}

.block-features.sa-features .sa-readmore {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sa-primary);
  text-decoration: none;
}

.block-features.sa-features .sa-readmore:hover {
  text-decoration: underline;
  color: var(--sa-secondary);
}

/* Our Ministries hub: white band + two-column grid; cards stay dark (opaque, for light gutter) */
body.is-sa-ministries-hub .block-features.sa-features {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  background: var(--sa-white);
}

body.is-sa-ministries-hub .block-features.sa-features .sa-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  body.is-sa-ministries-hub .block-features.sa-features .sa-container {
    grid-template-columns: 1fr;
  }
}

body.is-sa-ministries-hub .block-features.sa-features .feature {
  background: #2c3954;
  border-color: rgba(255, 255, 255, 0.12);
}

body.is-sa-ministries-hub .block-features.sa-features .feature:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

body.is-sa-ministries-hub .block-features.sa-features .feature h3 {
  color: #f4f6ff;
}

body.is-sa-ministries-hub .block-features.sa-features .feature p {
  color: rgba(232, 236, 255, 0.82);
}

body.is-sa-ministries-hub .block-features.sa-features .feature-thumb {
  background: #1e293b;
}

body.is-sa-ministries-hub .block-features.sa-features .sa-readmore {
  color: #b8c4ff;
}

body.is-sa-ministries-hub .block-features.sa-features .sa-readmore:hover {
  color: #fff;
}

/* —— Home: ministries showcase (card carousel) —— */
.sa-home-ministries {
  position: relative;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background: #f0f2f7;
  color: var(--sa-body-text);
}

.sa-home-ministries-inner {
  position: relative;
}

.sa-home-ministries-toprow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.sa-home-ministries-header {
  grid-column: 2;
  text-align: center;
  min-width: 0;
}

.sa-home-ministries-eyebrow {
  font-family: var(--sa-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sa-cta);
  margin: 0 0 0.45rem;
}

.sa-home-ministries-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--sa-heading);
}

.sa-home-ministries-rule {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.sa-home-ministries-rule span {
  display: block;
  width: 2.15rem;
  height: 3px;
  border-radius: 1px;
  background: var(--sa-primary);
}

.sa-home-ministries-nav {
  grid-column: 3;
  justify-self: end;
  align-self: start;
  display: flex;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

.sa-home-ministries-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--sa-primary);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.sa-home-ministries-nav-btn:hover {
  background: var(--sa-secondary);
  transform: translateY(-1px);
}

.sa-home-ministries-nav-btn:focus-visible {
  outline: 2px solid var(--sa-secondary);
  outline-offset: 3px;
}

.sa-ministries-viewport {
  --sa-ministries-col: min(340px, calc(100% - 1.5rem));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.75rem 0 1rem;
  outline: none;
  background: transparent;
}

@media (min-width: 900px) {
  .sa-ministries-viewport {
    --sa-ministries-col: calc((100% - 2 * 1.25rem) / 3);
  }
}

.sa-ministries-viewport::-webkit-scrollbar {
  display: none;
}

.sa-ministries-viewport:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.22);
  outline-offset: 4px;
}

.sa-ministries-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--sa-ministries-col);
  gap: 1.25rem;
  align-items: stretch;
  background: transparent;
}

.sa-ministry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
}

.sa-ministry-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--sa-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
  transform-origin: center center;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.sa-ministry-card.is-active {
  position: relative;
  z-index: 2;
}

.sa-ministry-card.is-active .sa-ministry-card-inner {
  transform: scale(1.045);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}

.sa-home-ministries--reduced-motion .sa-ministry-card-inner,
.sa-home-ministries--reduced-motion .sa-ministry-card.is-active .sa-ministry-card-inner {
  transition: none;
  transform: none;
}

.sa-home-ministries--reduced-motion .sa-ministries-viewport {
  scroll-behavior: auto;
}

.sa-ministry-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #eceef2 0%, #e2e5ea 100%);
  overflow: hidden;
}

.sa-ministry-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-ministry-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8eaef 0%, #d8dce3 100%);
  font-size: 2.5rem;
}

.sa-ministry-card-placeholder-letter {
  font-family: var(--sa-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--sa-secondary);
  opacity: 0.85;
}

.sa-ministry-card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.sa-ministry-card-title {
  font-family: var(--sa-font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--sa-secondary);
}

.sa-ministry-card-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sa-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sa-ministry-card-more {
  margin-top: auto;
  padding-top: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sa-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-ministry-card-more:hover {
  color: var(--sa-secondary);
}

@media (max-width: 640px) {
  .sa-home-ministries-toprow {
    grid-template-columns: 1fr;
  }

  .sa-home-ministries-header {
    grid-column: 1;
  }

  .sa-home-ministries-nav {
    grid-column: 1;
    justify-self: center;
    padding-top: 0;
  }
}

/* —— Home: “Embark on a journey” contact band —— */
.sa-home-journey {
  --sa-journey-bg-image: url("/images/salemassembly/uploads/2024/03/6354d161-16f8-49ef-ab8a-04daa8819a38-1024x694.jpg");

  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.25rem, 7vw, 4.75rem) 0 clamp(6.75rem, 18vw, 10.5rem);
  color: #fff;
}

.sa-home-journey-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0a1628;
  background-image: var(--sa-journey-bg-image);
  background-position: center center;
  background-size: cover;
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .sa-home-journey-media {
    transform: none;
  }
}

.sa-home-journey-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 18, 40, 0.88) 0%,
    rgba(0, 12, 32, 0.82) 42%,
    rgba(0, 8, 28, 0.78) 100%
  );
}

.sa-home-journey-inner {
  position: relative;
  z-index: 2;
}

.sa-home-journey-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .sa-home-journey-grid {
    grid-template-columns: minmax(15.5rem, 19.5rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 3.75rem);
  }
}

.sa-home-journey-card {
  margin-top: clamp(-2rem, -4vw, -2.75rem);
  padding: 2rem 1.5rem 2.15rem;
  border-radius: 14px;
  background: var(--sa-cta);
  color: #fff;
  text-align: center;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.sa-home-journey-card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.sa-home-journey-card-icon svg {
  width: 3rem;
  height: 3rem;
  color: #fff;
  opacity: 0.95;
}

.sa-home-journey-card-title {
  font-family: var(--sa-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #fff;
}

.sa-home-journey-card-rule {
  width: 2.5rem;
  height: 2px;
  margin: 0 auto 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
}

.sa-home-journey-card-line {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
}

.sa-home-journey-card-line:last-child {
  margin-bottom: 0;
}

.sa-home-journey-card-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.sa-home-journey-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-home-journey-copy {
  padding-top: 0.25rem;
}

.sa-home-journey-eyebrow {
  font-family: var(--sa-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sa-cta);
  margin: 0 0 0.55rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.sa-home-journey-heading {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.sa-home-journey-accent {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.sa-home-journey-accent span:first-child {
  width: 2.5rem;
  height: 3px;
  border-radius: 1px;
  background: var(--sa-primary);
}

.sa-home-journey-accent span:last-child {
  width: 1.75rem;
  height: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.95);
}

.sa-home-journey-lede {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.sa-home-journey-actions {
  margin: 1.65rem 0 0;
}

.sa-home-journey-cta-btn {
  border-radius: 6px;
  padding: 0.72rem 1.85rem;
  font-weight: 700;
}

.sa-home-journey-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: clamp(5.5rem, 22vw, 10.5rem);
  pointer-events: none;
  line-height: 0;
}

.sa-home-journey-wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sa-home-journey-wave-path--back {
  opacity: 0.92;
}

.sa-home-journey-wave-path--mid {
  opacity: 0.97;
}

@media (max-width: 899px) {
  .sa-home-journey-card {
    margin-top: 0;
    margin-inline: auto;
    max-width: 22rem;
  }

  .sa-home-journey-copy {
    text-align: center;
  }

  .sa-home-journey-accent {
    justify-content: center;
  }

  .sa-home-journey-lede {
    margin-inline: auto;
  }
}

/* —— Home: latest blog posts —— */
.sa-home-latest {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: #ffffff;
}

.sa-home-latest-inner {
  position: relative;
}

.sa-home-latest-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.sa-home-latest-eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--sa-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sa-home-latest-eyebrow a {
  color: var(--sa-cta);
  text-decoration: none;
}

.sa-home-latest-eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-home-latest-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--sa-heading);
}

.sa-home-latest-rule {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.sa-home-latest-rule span:first-child {
  display: block;
  width: 2.15rem;
  height: 3px;
  border-radius: 1px;
  background: var(--sa-primary);
}

.sa-home-latest-rule span:last-child {
  display: block;
  width: 2.15rem;
  height: 3px;
  border-radius: 1px;
  background: #b8c0ce;
}

.sa-home-latest-grid {
  display: grid;
  gap: clamp(1.35rem, 3vw, 1.85rem);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .sa-home-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sa-home-latest-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
}

.sa-home-latest-card:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.1);
}

.sa-home-latest-thumb {
  position: relative;
  aspect-ratio: 1;
  background: #e8eaf0;
  overflow: hidden;
}

.sa-home-latest-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.sa-home-latest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-home-latest-img-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #e4e9f7 0%, #cfd8ef 55%, #b9c5e8 100%);
}

.sa-home-latest-ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 0 0.5rem;
  gap: 0.45rem;
  background: linear-gradient(180deg, var(--sa-primary) 0%, #5563d4 96%);
  box-shadow: 4px 0 14px rgba(0, 0, 0, 0.18);
}

.sa-home-latest-ribbon-icon {
  display: flex;
  color: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
}

.sa-home-latest-ribbon-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.sa-home-latest-ribbon-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sa-font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.15;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  max-height: 100%;
  overflow: hidden;
}

.sa-home-latest-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.65rem;
}

.sa-home-latest-card-title {
  font-family: var(--sa-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.sa-home-latest-card-title a {
  color: var(--sa-secondary);
  text-decoration: none;
}

.sa-home-latest-card-title a:hover {
  color: var(--sa-primary);
}

.sa-home-latest-readmore {
  margin-top: auto;
  font-family: var(--sa-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sa-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-home-latest-readmore:hover {
  color: var(--sa-secondary);
}

/* —— Rich text sections —— */
.block-rich-text.sa-rich {
  padding: 3rem 0;
}

.block-rich-text.sa-rich .sa-container {
  max-width: 48rem;
}

.block-rich-text.sa-rich h2 {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--sa-heading);
  margin-top: 0;
}

.block-rich-text.sa-rich p {
  color: var(--sa-muted);
}

.sa-section-title {
  font-family: var(--sa-font-heading);
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--sa-heading);
  margin: 0 0 2rem;
}

.sa-intro-muted {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  color: var(--sa-muted);
}

.sa-band-light {
  background: var(--sa-white);
}

.sa-band-dark {
  background: linear-gradient(-150deg, #00407c 35%, #6777ef 65%);
  color: var(--sa-white);
}

.sa-band-dark .sa-section-title {
  color: var(--sa-white);
}

.sa-band-dark a {
  color: #fff;
  text-decoration: underline;
}

.sa-band-dark a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* —— Blog list —— */
.sa-blog-list {
  padding: 2rem 0 4rem;
}

.sa-blog-list article {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sa-blog-list article a {
  font-family: var(--sa-font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sa-heading);
}

.sa-blog-list article a:hover {
  color: var(--sa-primary);
}

.sa-blog-meta {
  font-size: 0.85rem;
  color: var(--sa-muted);
  margin-top: 0.35rem;
}

/* —— Blog index (Our Blog): grid + sidebar —— */
.sa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sa-blog-page {
  padding-bottom: 2rem;
}

/* Listing + sidebar container (white panel on blog page backdrop) */
.sa-blog-page .sa-blog-layout {
  background: #fff;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 12px;
  box-shadow: none;
}

.sa-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.sa-blog-main {
  min-width: 0;
}

/* Masonry-style flow: multi-column so cards of different heights stagger like the reference */
.sa-blog-grid {
  column-count: 1;
  column-gap: clamp(1.25rem, 2.5vw, 1.875rem);
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .sa-blog-grid {
    column-count: 2;
  }
}

.sa-blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.875rem);
  break-inside: avoid;
  background: var(--sa-white);
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease;
}

.sa-blog-card:hover {
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.1),
    0 4px 10px rgba(15, 23, 42, 0.05);
}

/* Decorative periwinkle triangle, bottom-right (reference cards) */
.sa-blog-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 26px 26px;
  border-color: transparent transparent var(--sa-primary) transparent;
  pointer-events: none;
}

.sa-blog-card-media {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e4e7ef;
  border-radius: 10px 10px 0 0;
}

.sa-blog-card--no-media .sa-blog-card-media {
  display: none;
}

.sa-blog-card--no-media .sa-blog-card-body {
  padding-top: 1.35rem;
}

.sa-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-blog-card-body {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.sa-blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #6b7a99;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(103, 119, 239, 0.45);
}

.sa-blog-card-date-icon {
  flex-shrink: 0;
  color: var(--sa-primary);
  opacity: 0.92;
}

.sa-blog-card-date-text {
  text-decoration: inherit;
}

.sa-blog-card-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 0.15rem;
  color: #0f172a;
}

.sa-blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.sa-blog-card-title a:hover {
  color: var(--sa-primary);
}

.sa-blog-card-excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: #8b939e;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.sa-blog-card-readmore {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-family: var(--sa-font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--sa-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.sa-blog-card-readmore:hover {
  color: #5163d4;
}

.sa-blog-empty {
  column-span: all;
  margin: 0;
  padding: 1rem 0;
  color: var(--sa-muted);
}

.sa-blog-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sa-blog-widget {
  padding: 1.15rem 1.2rem;
  background: var(--sa-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.sa-blog-widget-title {
  font-family: var(--sa-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sa-heading);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sa-primary);
}

.sa-blog-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sa-blog-search-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--sa-radius);
  font: inherit;
}

.sa-blog-search-submit {
  padding: 0.55rem 1rem;
  background: var(--sa-primary);
  color: #fff;
  border: none;
  border-radius: var(--sa-radius);
  font-family: var(--sa-font-heading);
  font-weight: 600;
  cursor: pointer;
}

.sa-blog-search-submit:hover {
  filter: brightness(1.05);
}

.sa-blog-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sa-blog-sidebar-list li {
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sa-blog-sidebar-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sa-blog-sidebar-list a {
  font-size: 0.92rem;
  color: var(--sa-heading);
  text-decoration: none;
}

.sa-blog-sidebar-list a:hover {
  color: var(--sa-primary);
}

.sa-blog-popular {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sa-blog-popular-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.sa-blog-popular-item:last-child {
  margin-bottom: 0;
}

.sa-blog-popular-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--sa-radius);
  overflow: hidden;
  background: #e8eaf0;
}

.sa-blog-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-blog-popular-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sa-blog-popular-text > a {
  font-family: var(--sa-font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sa-heading);
  text-decoration: none;
}

.sa-blog-popular-text > a:hover {
  color: var(--sa-primary);
}

.sa-blog-popular-meta {
  font-size: 0.75rem;
  color: var(--sa-muted);
}

.sa-blog-widget-muted {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sa-muted);
}

.sa-blog-search-row {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--sa-radius);
  overflow: hidden;
  background: #fff;
}

.sa-blog-search-row-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.sa-blog-search-row-input:focus {
  outline: none;
}

.sa-blog-search-row-btn {
  flex-shrink: 0;
  width: 2.5rem;
  border: none;
  background: var(--sa-primary);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.sa-blog-search-row-btn:hover {
  filter: brightness(1.06);
}

.sa-blog-categories--stars li {
  position: relative;
  padding-left: 1.15rem;
}

.sa-blog-categories--stars li::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0.12rem;
  font-size: 0.62rem;
  color: var(--sa-primary);
  line-height: 1.2;
}

.sa-blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sa-blog-tag-cloud-item {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  color: var(--sa-heading);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  background: #fff;
}

.sa-blog-tag-cloud-item:hover {
  border-color: var(--sa-primary);
  color: var(--sa-primary);
}

@media (max-width: 900px) {
  .sa-blog-layout {
    grid-template-columns: 1fr;
  }

  .sa-blog-sidebar {
    position: static;
    order: -1;
  }
}

/* —— Single blog post article (mirrors Zegen single-post-template) —— */
.sa-post-article {
  max-width: 100%;
}

.sa-post-featured {
  margin: 0 0 0.25rem;
  border-radius: var(--sa-radius);
  overflow: hidden;
  background: #e8eaf0;
}

.sa-post-featured img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.sa-post-meta-bar {
  margin: 0 0 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--sa-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sa-post-meta-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--sa-muted);
}

.sa-post-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sa-post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sa-primary), var(--sa-secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-post-author-name {
  font-weight: 600;
  color: var(--sa-heading);
}

.sa-post-date-inline {
  color: var(--sa-muted);
}

.sa-post-comments-hint {
  margin-left: auto;
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .sa-post-comments-hint {
    margin-left: 0;
    width: 100%;
  }
}

.sa-post-content.sa-prose,
.sa-post-content {
  color: #616161;
}

.sa-post-content .block-rich-text {
  padding-top: 0;
  padding-bottom: 0.5rem;
}

.sa-prose blockquote,
.sa-post-content blockquote {
  margin: 1.5rem 0;
  padding: 1.15rem 1.35rem 1.2rem;
  border-left: 4px solid var(--sa-primary);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.sa-prose blockquote p,
.sa-post-content blockquote p {
  margin: 0;
}

.sa-prose blockquote p + p,
.sa-post-content blockquote p + p {
  margin-top: 0.75rem;
}

/* Inline gallery after post body (Zegen / Elementor image-gallery style) */
.sa-post-gallery {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.sa-post-gallery--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
  .sa-post-gallery--cols-2 {
    grid-template-columns: 1fr;
  }
}

.sa-post-gallery-figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #eef0f5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.sa-post-gallery-figure:hover {
  box-shadow: 0 10px 32px rgba(40, 60, 120, 0.12);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .sa-post-gallery-figure:hover {
    transform: none;
  }
}

.sa-post-gallery-figure a {
  display: block;
  line-height: 0;
}

.sa-post-gallery-figure img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.sa-post-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
  color: var(--sa-heading);
}

.sa-post-category-pill {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--sa-font-heading);
  color: #fff !important;
  background: var(--sa-primary);
  border-radius: 3px;
  text-decoration: none;
  flex-shrink: 0;
}

.sa-post-category-pill:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.sa-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  flex: 1;
  min-width: 12rem;
}

.sa-post-tag {
  font-size: 0.86rem;
  color: var(--sa-secondary);
  text-decoration: none;
  font-weight: 500;
}

.sa-post-tag:hover {
  color: var(--sa-primary);
  text-decoration: underline;
}

.sa-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sa-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--sa-radius);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.sa-post-nav-link:hover,
.sa-post-nav-link:focus-visible {
  border-color: var(--sa-primary);
  box-shadow: 0 0 0 1px var(--sa-primary);
}

.sa-post-nav-link--next {
  text-align: right;
}

.sa-post-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sa-primary);
}

.sa-post-nav-title {
  font-family: var(--sa-font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--sa-heading);
}

.sa-post-nav-link:hover .sa-post-nav-title {
  color: var(--sa-primary);
}

@media (max-width: 600px) {
  .sa-post-nav {
    grid-template-columns: 1fr;
  }

  .sa-post-nav-link--next {
    text-align: left;
  }
}

/* —— Footer (Zegen-style columns + latest posts) —— */
.sa-footer {
  position: relative;
  margin-top: 0;
  padding: 0;
  font-size: 0.95rem;
  color: rgba(248, 250, 255, 0.88);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(103, 119, 239, 0.22), transparent 55%),
    linear-gradient(180deg, #021a35 0%, #00162f 38%, #001228 100%);
  border-top: 1px solid rgba(103, 119, 239, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.sa-footer-backdrop {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 50% 40% at 15% 40%, rgba(103, 119, 239, 0.12), transparent 60%),
    radial-gradient(ellipse 45% 35% at 88% 65%, rgba(0, 64, 124, 0.2), transparent 55%);
}

.sa-footer-main {
  position: relative;
  z-index: 1;
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3rem);
}

.sa-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: start;
}

@media (min-width: 900px) {
  .sa-footer-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1.2fr);
    gap: clamp(1.75rem, 4vw, 3rem);
  }
}

.sa-footer-col {
  padding: 0.15rem 0;
}

.sa-footer-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  font-family: var(--sa-font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.25);
}

.sa-footer-heading-icon {
  display: flex;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  color: #9eb6ff;
  filter: drop-shadow(0 0 10px rgba(103, 119, 239, 0.45));
}

.sa-footer-heading-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.sa-footer-about {
  margin: 0 0 1.35rem;
  line-height: 1.75;
  color: rgba(248, 250, 255, 0.82);
  max-width: 28rem;
}

.sa-footer-contact-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sa-footer-contact-lines li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(248, 250, 255, 0.78);
}

.sa-footer-contact-icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
  width: 1.15rem;
  height: 1.15rem;
  color: #8ea8ff;
  opacity: 0.95;
}

.sa-footer-contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sa-footer a {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.sa-footer a:hover {
  color: #c8d4ff;
  text-decoration: underline;
}

.sa-footer-quicklinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sa-footer-quicklinks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sa-footer-star {
  flex-shrink: 0;
  font-size: 0.65rem;
  line-height: 1;
  color: #8eb0ff;
  text-shadow: 0 0 12px rgba(103, 119, 239, 0.5);
  transition: transform 0.2s ease, color 0.2s ease;
}

.sa-footer-quicklinks a {
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.35rem 0;
}

.sa-footer-quicklinks li:hover .sa-footer-star {
  color: #c8d8ff;
  transform: scale(1.15) rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
  .sa-footer-quicklinks li:hover .sa-footer-star {
    transform: none;
  }
}

.sa-footer-news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sa-footer-news-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sa-footer-news-item:last-child {
  border-bottom: none;
}

.sa-footer-news-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.35rem;
  margin: 0 -0.35rem;
  border-radius: 12px;
  text-decoration: none !important;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.sa-footer-news-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(103, 119, 239, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .sa-footer-news-card {
    transition: none;
  }

  .sa-footer-news-card:hover {
    transform: none;
  }
}

.sa-footer-news-thumb {
  flex-shrink: 0;
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(103, 119, 239, 0.35), rgba(0, 64, 124, 0.45));
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.sa-footer-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-footer-news-thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 4.35rem;
  background: linear-gradient(160deg, rgba(142, 168, 255, 0.25), rgba(0, 40, 80, 0.5));
}

.sa-footer-news-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.sa-footer-news-title {
  display: block;
  font-family: var(--sa-font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #fff;
  transition: color 0.2s ease;
}

.sa-footer-news-card:hover .sa-footer-news-title {
  color: #d6e0ff;
}

.sa-footer-news-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8eb0ff;
  letter-spacing: 0.02em;
}

.sa-footer-news-cal {
  display: flex;
  width: 0.95rem;
  height: 0.95rem;
  color: #8eb0ff;
  opacity: 0.95;
}

.sa-footer-news-cal svg {
  width: 100%;
  height: 100%;
}

.sa-footer-news-empty {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.sa-footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 1.1rem 0 1.25rem;
  background: linear-gradient(180deg, rgba(0, 8, 20, 0.92) 0%, #000a14 100%);
  border-top: 1px solid rgba(103, 119, 239, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.sa-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  text-align: center;
}

.sa-footer-bottom-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(103, 119, 239, 0.55);
  box-shadow: 0 0 10px rgba(103, 119, 239, 0.4);
}

.sa-footer-bottom-tag {
  opacity: 0.85;
}

.sa-footer-bottom a {
  color: var(--sa-cta);
}

.sa-footer-bottom a:hover {
  color: #fff;
}

/* —— Contact page (Zegen-style hub + elevated polish) —— */
@keyframes sa-contact-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sa-contact-bar-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.sa-contact-page {
  position: relative;
  z-index: 0;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.sa-contact-page-glow {
  position: absolute;
  inset: -4rem -20% auto;
  height: min(42rem, 85vw);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 18% 28%, rgba(103, 119, 239, 0.14), transparent 62%),
    radial-gradient(ellipse 45% 40% at 82% 18%, rgba(191, 10, 48, 0.07), transparent 58%);
  opacity: 0.95;
}

.sa-contact-page-intro {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--sa-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.sa-contact-section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
}

.sa-contact-section-eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--sa-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sa-primary);
}

.sa-contact-section-title {
  margin: 0 0 0.65rem;
  font-family: var(--sa-font-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--sa-heading);
  background: linear-gradient(120deg, #1a1d2e 0%, #3d4a8f 45%, #1a1d2e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .sa-contact-section-title {
    color: var(--sa-heading);
    background: none;
  }
}

.sa-contact-section-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sa-muted);
}

.sa-contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  margin-bottom: clamp(2rem, 4.5vw, 2.85rem);
}

@media (min-width: 768px) {
  .sa-contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sa-contact-section-head {
    animation: sa-contact-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .sa-contact-cards .sa-contact-card:nth-child(1) {
    animation: sa-contact-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  .sa-contact-cards .sa-contact-card:nth-child(2) {
    animation: sa-contact-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
  }

  .sa-contact-cards .sa-contact-card:nth-child(3) {
    animation: sa-contact-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
  }

  .sa-contact-split > * {
    animation: sa-contact-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }

  .sa-contact-map-section,
  .sa-contact-map-wrap {
    animation: sa-contact-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  }
}

.sa-contact-card {
  position: relative;
  isolation: isolate;
  border-radius: 14px;
  padding: 1.4rem 1.3rem 1.5rem;
  min-height: 11rem;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 12px 28px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.sa-contact-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 8px 12px rgba(15, 23, 42, 0.06),
    0 22px 48px rgba(40, 60, 120, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .sa-contact-card:hover {
    transform: none;
  }

  .sa-contact-card:hover .sa-contact-card-icon {
    transform: none;
  }
}

.sa-contact-card--location {
  background: linear-gradient(155deg, #0c2347 0%, #001a35 48%, #000b1d 100%);
  color: #fff;
}

.sa-contact-card--location::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.38) 0%,
    transparent 42%,
    transparent 58%,
    rgba(126, 142, 241, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.sa-contact-card--location::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.09), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.sa-contact-card--media {
  background: #0f172a var(--sa-contact-card-bg) center / cover no-repeat;
  color: #fff;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background-size 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-contact-card--media:hover {
  background-size: 108%;
}

@media (prefers-reduced-motion: reduce) {
  .sa-contact-card--media:hover {
    background-size: cover;
  }
}

.sa-contact-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(195deg, rgba(0, 11, 29, 0.35) 0%, rgba(0, 8, 22, 0.82) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.sa-contact-card--media:hover .sa-contact-card-scrim {
  opacity: 0.92;
}

.sa-contact-card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sa-contact-card-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.sa-contact-card:hover .sa-contact-card-icon {
  transform: scale(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 28px rgba(90, 110, 220, 0.35);
}

.sa-contact-card--location .sa-contact-card-icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

.sa-contact-card-title {
  margin: 0 0 0.5rem;
  font-family: var(--sa-font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: inherit;
}

.sa-contact-card-text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.93);
}

.sa-contact-card--location .sa-contact-card-text {
  color: rgba(255, 255, 255, 0.9);
}

.sa-contact-card-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.sa-contact-card-link:hover {
  color: #e8ecff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.65rem, 4vw, 2.5rem);
  align-items: stretch;
  margin-bottom: clamp(2rem, 4.5vw, 2.85rem);
}

@media (min-width: 900px) {
  .sa-contact-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
    align-items: start;
  }
}

.sa-contact-form-shell {
  min-width: 0;
}

.sa-contact-form-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.45rem, 3vw, 1.9rem) clamp(1.35rem, 3vw, 1.75rem) clamp(1.6rem, 3vw, 2rem);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.03),
    0 18px 48px rgba(40, 60, 120, 0.1);
  border: 1px solid rgba(103, 119, 239, 0.1);
  overflow: hidden;
}

.sa-contact-form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9aa8ff 0%, #6777ef 38%, #c084fc 72%, #e9204f 100%);
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .sa-contact-form-panel:hover::before {
    animation: sa-contact-bar-shift 4s ease-in-out infinite;
  }
}

.sa-contact-form-eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--sa-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sa-primary);
}

.sa-contact-form-heading {
  margin: 0 0 1.15rem;
  font-family: var(--sa-font-heading);
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
  font-weight: 800;
  color: var(--sa-heading);
}

.sa-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.sa-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0;
}

.sa-contact-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sa-heading);
}

.sa-contact-form input,
.sa-contact-form textarea {
  width: 100%;
  max-width: none;
  padding: 0.68rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  font: inherit;
  background: linear-gradient(180deg, #fafbff 0%, #f4f6fc 100%);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.sa-contact-form input:focus,
.sa-contact-form textarea:focus {
  outline: none;
  border-color: rgba(114, 124, 245, 0.55);
  box-shadow:
    0 0 0 3px rgba(114, 124, 245, 0.16),
    0 8px 24px rgba(103, 119, 239, 0.08);
  background: #fff;
}

.sa-contact-submit {
  position: relative;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.78rem 2.1rem;
  border: none;
  border-radius: 10px;
  font-family: var(--sa-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #8b9aff 0%, #6777ef 42%, #5b6be8 100%);
  box-shadow:
    0 4px 14px rgba(103, 119, 239, 0.35),
    0 12px 32px rgba(103, 119, 239, 0.22);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
}

.sa-contact-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 78%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.sa-contact-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(103, 119, 239, 0.4),
    0 18px 40px rgba(103, 119, 239, 0.2);
}

.sa-contact-submit:hover::after {
  transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
  .sa-contact-submit:hover {
    transform: none;
  }

  .sa-contact-submit::after {
    display: none;
  }
}

.sa-contact-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 14rem;
  padding: 3px;
  background: linear-gradient(135deg, #9aa8ff 0%, #6777ef 38%, #bf0a30 95%);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.05),
    0 20px 50px rgba(40, 60, 120, 0.18);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.sa-contact-visual::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 15px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.sa-contact-visual:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.08),
    0 28px 60px rgba(90, 110, 200, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .sa-contact-visual:hover {
    transform: none;
  }
}

.sa-contact-visual-img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-contact-visual:hover .sa-contact-visual-img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .sa-contact-visual:hover .sa-contact-visual-img {
    transform: none;
  }
}

.sa-contact-map-section {
  text-align: center;
  margin-bottom: 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.sa-contact-map-heading {
  margin: 0 0 0.35rem;
  font-family: var(--sa-font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--sa-heading);
}

.sa-contact-map-heading::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sa-primary), var(--sa-cta));
}

.sa-contact-map-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sa-muted);
}

.sa-contact-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 16px 44px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(103, 119, 239, 0.12);
  transition: box-shadow 0.35s ease;
}

.sa-contact-map-wrap:hover {
  box-shadow:
    0 8px 12px rgba(15, 23, 42, 0.06),
    0 22px 56px rgba(40, 60, 120, 0.14);
}

.sa-contact-map-frame {
  display: block;
  width: 100%;
  height: min(52vw, 22rem);
  min-height: 260px;
  border: none;
}

.sa-contact-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #5163d4 0%, #6777ef 50%, #7b89f4 100%);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    filter 0.2s ease,
    gap 0.2s ease;
}

.sa-contact-map-link:hover {
  filter: brightness(1.08);
  text-decoration: none;
  gap: 0.55rem;
}

.sa-contact-blocks {
  margin-top: 2rem;
}

.sa-alert-ok {
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border-radius: var(--sa-radius);
  margin-bottom: 1rem;
}

.sa-alert-err {
  color: #b91c1c;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .sa-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .sa-nav ul ul {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: transparent;
  }
}

/* —— Home: events carousel (Zegen / salemassembly.org style) —— */
.sa-home-events {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
  background: linear-gradient(155deg, #15182c 0%, #1a2744 42%, #0f3460 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  isolation: isolate;
}

.sa-home-events::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 38% at 22% 35%, rgba(103, 119, 239, 0.38), transparent 58%),
    radial-gradient(ellipse 38% 42% at 78% 65%, rgba(232, 197, 71, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 50% 100%, rgba(0, 64, 124, 0.35), transparent 52%);
  opacity: 0.88;
  animation: sa-events-aurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.sa-home-events::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

@keyframes sa-events-aurora {
  0% {
    transform: translate(-3%, -2%) rotate(-2deg) scale(1);
  }
  100% {
    transform: translate(4%, 3%) rotate(3deg) scale(1.05);
  }
}

.sa-home-events-inner {
  position: relative;
  z-index: 1;
}

.sa-home-events-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.sa-home-events-eyebrow {
  font-family: var(--sa-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8d9ff;
  margin: 0 0 0.5rem;
  text-shadow: 0 0 28px rgba(200, 180, 255, 0.35);
  animation: sa-events-fade-down 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.05s;
}

.sa-home-events-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #fff;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.25),
    0 0 48px rgba(103, 119, 239, 0.2);
  animation: sa-events-fade-down 0.95s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.14s;
}

.sa-home-events-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sa-primary), #e8c547, var(--sa-primary), transparent);
  background-size: 200% 100%;
  animation:
    sa-events-fade-down 1s cubic-bezier(0.22, 1, 0.36, 1) backwards,
    sa-events-rule-shimmer 8s ease-in-out infinite;
  animation-delay: 0.22s, 0.5s;
}

@keyframes sa-events-fade-down {
  from {
    opacity: 0;
    transform: translateY(-0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sa-events-rule-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.sa-events-carousel {
  position: relative;
}

.sa-events-carousel-viewport {
  --sa-events-col: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0 0.35rem;
  outline: none;
}

@media (min-width: 768px) {
  .sa-events-carousel-viewport {
    --sa-events-col: calc((100% - 1.25rem) / 2);
  }
}

.sa-events-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.sa-events-carousel-viewport:focus-visible {
  outline: 2px solid var(--sa-primary);
  outline-offset: 4px;
}

/* Grid: one row so every column matches the tallest card (flex+scroll was uneven). */
.sa-events-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--sa-events-col);
  gap: 1.25rem;
  align-items: stretch;
}

.sa-event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
  perspective: 1200px;
}

.sa-event-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(13.5rem, 28vw, 16.5rem);
  background: linear-gradient(165deg, #ffffff 0%, #fafbff 48%, #f5f7ff 100%);
  color: var(--sa-body-text);
  border-radius: calc(var(--sa-radius) + 6px);
  border: 1px solid rgba(103, 119, 239, 0.1);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  padding: 1.35rem 1.2rem 1.45rem;
  overflow: hidden;
  transform-origin: center bottom;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.sa-event-card-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, var(--sa-primary), #e8c547);
  opacity: 0.85;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .sa-event-card:hover .sa-event-card-inner {
    transform: translateY(-6px) rotateX(2deg);
    border-color: rgba(103, 119, 239, 0.28);
    box-shadow:
      0 28px 56px rgba(15, 25, 60, 0.22),
      0 0 0 1px rgba(103, 119, 239, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
  }

  .sa-event-card:hover .sa-event-card-inner::before {
    height: 42%;
  }

  .sa-event-card:hover .sa-event-date-badge {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(103, 119, 239, 0.2);
  }

  .sa-event-card:hover .sa-event-card-watermark {
    opacity: 1;
    transform: translate(4px, -4px) scale(1.04);
  }
}

.sa-event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.sa-event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 9.75rem;
  max-width: 11.5rem;
  border-radius: 4px 4px 2px 2px;
  overflow: visible;
  box-shadow: 0 4px 14px rgba(103, 119, 239, 0.12);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.sa-event-date-badge-notch {
  height: 7px;
  background: linear-gradient(180deg, #ebe4fb 0%, #dcd3f5 100%);
  border-radius: 3px 3px 0 0;
  position: relative;
}

.sa-event-date-badge-notch::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #6777ef;
}

.sa-event-date-line {
  background: linear-gradient(180deg, #f3effc 0%, #e8e2f7 100%);
  color: var(--sa-secondary);
  font-family: var(--sa-font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 0.5rem 0.65rem 0.35rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sa-event-time-block {
  background: linear-gradient(135deg, #5a6be8 0%, var(--sa-primary) 45%, #4a5fd4 100%);
  background-size: 200% 200%;
  color: #fff;
  font-family: var(--sa-font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.42rem 0.65rem;
  text-align: center;
  animation: sa-events-time-glow 6s ease-in-out infinite;
}

@keyframes sa-events-time-glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.sa-event-status {
  flex-shrink: 0;
  font-family: var(--sa-font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  padding: 0.38rem 0.7rem;
  border-radius: 2px;
  line-height: 1.2;
  box-shadow:
    0 2px 10px rgba(47, 122, 232, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.sa-event-card-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sa-event-card-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(0.95rem, 2.1vw, 1.08rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  flex: 1 1 auto;
  color: var(--sa-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sa-event-card-title a {
  color: inherit;
  text-decoration: none;
}

.sa-event-card-title a:hover {
  color: var(--sa-primary);
}

.sa-event-details-link {
  font-family: var(--sa-font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sa-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.9rem;
  transition:
    color 0.2s ease,
    gap 0.25s ease;
}

.sa-event-details-link::after {
  content: "\2192";
  font-size: 0.95em;
  transition: transform 0.25s ease;
}

.sa-event-details-link:hover {
  color: var(--sa-primary);
  gap: 0.55rem;
}

.sa-event-details-link:hover::after {
  transform: translateX(3px);
}

.sa-event-card-watermark {
  position: absolute;
  right: -0.25rem;
  bottom: -0.5rem;
  width: 7.5rem;
  height: 7.5rem;
  color: var(--sa-heading);
  opacity: 0.88;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: sa-events-watermark-float 9s ease-in-out infinite;
}

.sa-event-card-watermark svg {
  width: 100%;
  height: 100%;
}

@keyframes sa-events-watermark-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-3px, -5px);
  }
}

.sa-events-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.65rem;
  padding: 0 0.5rem;
}

.sa-events-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  background: transparent;
  transform: rotate(45deg);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.sa-events-dot:hover {
  border-color: rgba(255, 255, 255, 0.65);
}

.sa-events-dot[aria-selected="true"],
.sa-events-dot.is-active {
  background: linear-gradient(135deg, #fff 0%, #c8d4ff 40%, var(--sa-primary) 100%);
  border-color: #fff;
  transform: rotate(45deg) scale(1.12);
  box-shadow:
    0 0 14px rgba(103, 119, 239, 0.55),
    0 0 28px rgba(232, 197, 71, 0.2);
}

.sa-events-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sa-events-carousel--reduced-motion .sa-events-carousel-viewport {
  scroll-behavior: auto;
}

/* —— Events page (/our-events) — Zegen-style cards —— */
.sa-events-page-inner {
  padding-bottom: 0.25rem;
}

.sa-events-page-lead {
  max-width: 42rem;
  margin: 0 0 1.35rem;
  color: var(--sa-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.sa-events-page-grid-section {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0.75rem;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sa-events-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.35rem, 3vw, 1.85rem);
}

@media (min-width: 640px) {
  .sa-events-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sa-events-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sa-events-page-card {
  min-width: 0;
}

.sa-events-page-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.sa-events-page-card:hover .sa-events-page-card-inner {
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .sa-events-page-card .sa-events-page-card-inner {
    transition: none;
  }

  .sa-events-page-card:hover .sa-events-page-card-inner {
    transform: none;
  }
}

.sa-events-page-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8eaf0;
  overflow: hidden;
}

.sa-events-page-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-events-page-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.32rem 0.62rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: #1d4ed8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.sa-events-page-bar-wrap {
  padding: 0.75rem 1rem 0;
}

.sa-events-page-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  max-width: 100%;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: #727cf5;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sa-events-page-bar-icon {
  display: flex;
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.95;
}

.sa-events-page-bar-icon svg {
  width: 100%;
  height: 100%;
}

.sa-events-page-bar-icon--clock {
  margin-left: 0.15rem;
}

.sa-events-page-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 1.4rem;
}

.sa-events-page-title-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-width: 0;
}

.sa-events-page-dots {
  flex-shrink: 0;
  width: 0;
  min-height: 2.75rem;
  margin-top: 0.15rem;
  border-left: 2px dotted #727cf5;
}

.sa-events-page-title {
  margin: 0;
  font-family: var(--sa-font-heading);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.42;
}

.sa-events-page-title a {
  color: var(--sa-heading);
  text-decoration: none;
}

.sa-events-page-title a:hover {
  color: #5c67d9;
}

.sa-events-page-details {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--sa-font-heading);
  font-size: 0.87rem;
  font-weight: 600;
  color: #727cf5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-events-page-details:hover {
  color: #5a66d4;
}

.sa-events-page-media-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  background: transparent;
  line-height: 0;
}

.sa-events-page-media-open:focus-visible {
  outline: 2px solid #727cf5;
  outline-offset: 2px;
}

.sa-events-page-title-btn {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.sa-events-page-title-btn:hover {
  color: #5c67d9;
}

.sa-events-page-title-btn:focus-visible {
  outline: 2px solid #727cf5;
  outline-offset: 2px;
  border-radius: 2px;
}

button.sa-events-page-details {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* —— Event details modal (/our-events) —— */
body.sa-event-modal-open {
  overflow: hidden;
}

.sa-event-modal[hidden] {
  display: none !important;
}

.sa-event-modal.is-open {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.sa-event-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(1px)) {
  .sa-event-modal-backdrop {
    background: rgba(15, 23, 42, 0.78);
  }
}

.sa-event-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  margin: auto 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  box-shadow:
    0 0 0 1px rgba(103, 119, 239, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  max-height: min(92vh, 56rem);
  display: flex;
  flex-direction: column;
}

.sa-event-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #172554 100%);
  color: #fff;
  flex-shrink: 0;
}

.sa-event-modal-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.95);
}

.sa-event-modal-title {
  margin: 0;
  font-family: var(--sa-font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  max-width: 36rem;
}

.sa-event-modal-close {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.sa-event-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

.sa-event-modal-close:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: 2px;
}

.sa-event-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.sa-event-modal-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(90deg, #fef9c3 0%, #fef08a 100%);
  color: #713f12;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(180, 83, 9, 0.2);
}

.sa-event-modal-alert-icon {
  font-size: 1rem;
  line-height: 1;
}

.sa-event-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  padding: 1.35rem 1.5rem 0;
}

@media (min-width: 900px) {
  .sa-event-modal-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.sa-event-modal-poster {
  border-radius: 14px;
  overflow: hidden;
  background: #e8eaf0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.sa-event-modal-poster img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.sa-event-modal-theme {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sa-muted);
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sa-event-modal-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sa-event-modal-panel {
  border-radius: 12px;
  border: 1px dashed rgba(103, 119, 239, 0.35);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.sa-event-modal-panel-head {
  margin: 0;
  padding: 0.55rem 1rem;
  font-family: var(--sa-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, #5b6be8 0%, #6777ef 50%, #5163d4 100%);
}

.sa-event-modal-dl {
  margin: 0;
  padding: 0.35rem 0 0;
}

.sa-event-modal-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 32%) 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.88rem;
  line-height: 1.45;
}

.sa-event-modal-row:last-child {
  border-bottom: none;
}

.sa-event-modal-row dt {
  margin: 0;
  font-weight: 700;
  color: var(--sa-heading);
}

.sa-event-modal-row dd {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  color: var(--sa-muted);
}

.sa-event-modal-pin {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #6777ef;
}

.sa-event-modal-tel {
  color: #5163d4;
  font-weight: 600;
  text-decoration: none;
}

.sa-event-modal-tel:hover {
  text-decoration: underline;
}

.sa-event-modal-map {
  margin: 1.25rem 1.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sa-event-modal-map iframe {
  display: block;
  width: 100%;
  height: min(42vw, 16rem);
  min-height: 200px;
  border: none;
}

.sa-event-modal-map-link {
  display: block;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5163d4;
  background: #f1f5ff;
  text-decoration: none;
  border-top: 1px solid rgba(103, 119, 239, 0.15);
}

.sa-event-modal-map-link:hover {
  background: #e8eeff;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .sa-event-modal-close:hover {
    transform: none;
  }
}

/* —— Home: welcome overview (after events; Zegen-style split) —— */
.sa-home-welcome {
  background-color: #ffffff;
  background-image: none;
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

.sa-home-welcome-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}

.sa-home-welcome-visual {
  min-width: 0;
}

.sa-home-welcome-figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.sa-home-welcome-logo {
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.sa-home-welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.sa-home-welcome-eyebrow {
  font-family: var(--sa-font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sa-cta);
  margin: 0 0 0.55rem;
}

.sa-home-welcome-title {
  font-family: var(--sa-font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 700;
  color: var(--sa-heading);
  margin: 0 0 0.8rem;
  line-height: 1.22;
}

.sa-home-welcome-rule {
  display: block;
  width: 52px;
  height: 3px;
  margin: 0 0 1.35rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sa-primary), rgba(103, 119, 239, 0.35));
}

.sa-home-welcome-body p {
  margin: 0 0 1rem;
  color: var(--sa-muted);
  line-height: 1.78;
  font-size: 0.98rem;
}

.sa-home-welcome-body p:last-child {
  margin-bottom: 0;
}

.sa-home-welcome-tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--sa-muted);
  margin: 1.35rem 0 1.5rem;
  font-size: 1.03rem;
  line-height: 1.62;
}

.sa-home-welcome-cta {
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .sa-home-welcome-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sa-home-welcome-copy {
    align-items: center;
    text-align: center;
  }

  .sa-home-welcome-rule {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-home-events::before {
    animation: none;
    transform: none;
    opacity: 0.65;
  }

  .sa-home-events-eyebrow,
  .sa-home-events-title,
  .sa-home-events-rule {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .sa-home-events-rule {
    background: linear-gradient(90deg, var(--sa-primary), rgba(103, 119, 239, 0.25));
    background-size: 100% 100%;
    width: 52px;
  }

  .sa-event-time-block {
    animation: none;
    background: var(--sa-primary);
  }

  .sa-event-card-watermark {
    animation: none;
    transform: none;
  }

  .sa-event-card-inner,
  .sa-event-date-badge {
    transition: none;
  }

  .sa-event-card:hover .sa-event-card-inner,
  .sa-event-card:hover .sa-event-date-badge,
  .sa-event-card:hover .sa-event-card-watermark {
    transform: none;
  }

  .sa-events-carousel-viewport {
    scroll-behavior: auto;
  }
}
