html {
  height: 100%;
}

:root {
  /* ARCC brand colors, sampled from img/ARCC_Logo.png */
  --primary: #6b3fa0;         /* purple */
  --primary-dark: #3d2060;
  --primary-light: #efe6f8;

  --secondary: #0e9ba8;       /* teal */
  --secondary-dark: #086b75;
  --secondary-light: #e3f6f7;

  --accent-green: #6faf3f;
  --accent-green-dark: #4f7f2f;
  --accent-blue: #1f6fa3;
  --accent-blue-dark: #123f5c;

  --crisis: #e0453c;          /* reserved for 988 / emergency messaging */
  --crisis-light: #fdecea;

  --brand-dot: #9a5fc2;        /* lighter brand purple, used for nav separators */
  --topbar-bg: #241a33;        /* near-black purple for the crisis-line top bar */

  --text-dark: #241f30;
  --text-body: #4a4458;
  --text-light: #948da3;

  --bg-light: #f8f6fb;
  --bg-white: #ffffff;
  --border-color: #e6e0ee;

  --font-family: "Inter", system-ui, -apple-system, sans-serif;

  --container-width: 1200px;
  --shadow-sm: 0 1px 3px rgba(36, 31, 48, 0.08);
  --shadow-md: 0 4px 12px rgba(36, 31, 48, 0.1);
  --shadow-lg: 0 15px 30px rgba(36, 31, 48, 0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.25em;
  margin-bottom: 0.35em;
}

p { color: var(--text-body); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-dark); text-decoration: underline; }

ul, ol { list-style-position: outside; }
img { max-width: 100%; height: auto; display: block; }
summary { cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding-top: 48px; padding-bottom: 48px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background-color: var(--primary); color: var(--bg-white); }
.btn-primary:hover { background-color: var(--primary-dark); color: var(--bg-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: var(--secondary); color: var(--bg-white); }
.btn-secondary:hover { background-color: var(--secondary-dark); color: var(--bg-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--bg-white); }
.btn-crisis { background-color: var(--crisis); color: var(--bg-white); }
.btn-crisis:hover { background-color: #b8332c; color: var(--bg-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-help-now {
  background-color: var(--crisis);
  color: var(--bg-white);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-help-now:hover { background-color: #b8332c; color: var(--bg-white); }

/* --- Top bar (crisis line + search) --- */
/* --- Top bar (crisis line + right-aligned search) --- */
.top-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 33%, var(--accent-green) 66%, var(--accent-blue) 100%);
  color: var(--bg-white);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px clamp(16px, 2.5vw, 40px);
}
.top-bar-crisis {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar-crisis a { color: var(--bg-white); font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.top-bar-crisis a:hover { color: var(--secondary-light); text-decoration: underline; }
.top-bar-crisis .top-bar-label { text-decoration: none; font-weight: 800; }
.top-bar-phone {
  background: rgba(255, 255, 255, 0.22);
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.top-bar-phone:hover {
  background: rgba(255, 255, 255, 0.38);
  text-decoration: none !important;
}
.top-bar-sep {
  opacity: 0.55;
  margin: 0 2px;
}

/* --- Search form (in top gradient banner, right-aligned) --- */
.search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.search-form:focus-within {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.search-form input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  color: var(--bg-white);
  font-size: 0.85rem;
  width: 140px;
  transition: width 0.2s ease;
}
.search-form input[type="search"]:focus {
  width: 170px;
}
.search-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.85);
}
.search-form button {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: var(--bg-white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.search-form button:hover {
  background: rgba(255, 255, 255, 0.45);
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-white);
  color: var(--text-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1200;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--primary-light); text-decoration: none; }
.search-results .no-results { padding: 10px 16px; font-size: 0.85rem; color: var(--text-light); }

/* --- Sticky header stack: top bar + header stay pinned; everything
   else scrolls underneath. --- */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: 0 1px 6px rgba(36, 31, 48, 0.08);
}

.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 96px;
  padding: 10px 20px;
  position: relative;
}
body.page-home .header-container {
  min-height: 96px;
  padding: 10px 20px;
}
.header-container:has(.header-logo-link:not(.header-logo-link-horizontal)) {
  min-height: 130px;
  padding: 12px 20px;
}
.header-container:has(.header-logo-link-horizontal) {
  min-height: 84px;
  padding: 10px 20px;
}

.header-logo-link {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  z-index: 10;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header-logo-link:hover { opacity: 0.9; }
.header-logo-link.header-logo-link-horizontal {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin-right: 0;
  flex-shrink: 0;
  padding: 4px 14px 4px 0;
}
.header-logo {
  max-width: 375px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.header-logo.header-logo-horizontal {
  max-width: 340px;
  max-height: 52px;
  height: 48px;
  width: auto;
}

/* --- Main Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.header-logo-link.header-logo-link-horizontal ~ .main-nav {
  margin: 0 auto;
}
.main-nav .nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > .nav-list > .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.main-nav > .nav-list > .nav-item:not(:first-child)::before {
  content: "•";
  color: var(--brand-dot);
  margin: 0 8px;
  font-size: 0.95rem;
}
.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

.dropdown-chevron {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
  flex-shrink: 0;
}
.nav-item.has-dropdown:hover .dropdown-chevron,
.nav-item.has-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary-dark);
}

/* Dropdown Menu Popup */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  min-width: 270px;
  max-width: 330px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(107, 63, 160, 0.12);
  box-shadow: 0 14px 36px -4px rgba(24, 39, 75, 0.18), 0 4px 12px -2px rgba(24, 39, 75, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1000;
}
/* Invisible bridge above dropdown to prevent mouse hover dropout */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: block;
  margin: 0;
  padding: 0;
}
.dropdown-link {
  display: block;
  padding: 9px 14px;
  color: var(--text-dark);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 8px;
  text-decoration: none;
  white-space: normal;
  text-align: left;
  transition: all 0.16s ease;
}
.dropdown-link:hover,
.dropdown-link:focus {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  transform: translateX(3px);
  text-decoration: none;
}
.dropdown-link.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-left: auto;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: var(--primary-light);
  border-color: var(--border-color);
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- "Scroll for more" indicator (bottom-right, decorative — mirrors dev.genhs.org) --- */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 900;
  pointer-events: none;
  max-width: 200px;
  text-align: right;
  line-height: 1.2;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.scroll-indicator.hidden { opacity: 0; visibility: hidden; }
.scroll-arrow {
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
}
.scroll-arrow svg { width: 16px; height: 16px; fill: var(--primary); }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}
@media (max-width: 850px) {
  .scroll-indicator { display: none; }
}

/* Medium Desktop (993px - 1200px) */
@media (max-width: 1200px) and (min-width: 993px) {
  .header-container {
    padding: 8px 16px;
  }
  .main-nav .nav-link {
    padding: 6px 10px;
    font-size: 0.92rem;
    gap: 4px;
  }
  .main-nav > .nav-list > .nav-item:not(:first-child)::before {
    margin: 0 4px;
  }
  .dropdown-menu {
    min-width: 250px;
  }
}

/* Mobile & Tablet Portrait Breakpoint: <= 992px */
@media (max-width: 992px) {
  .header-container {
    min-height: 80px;
    padding: 8px 16px;
    justify-content: flex-end;
  }
  .header-logo-link {
    left: 16px;
    padding: 0;
  }
  .header-logo {
    max-width: 225px;
    max-height: 66px;
  }
  .header-logo.header-logo-horizontal {
    max-width: 210px;
    max-height: 42px;
    height: 38px;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 12px 28px rgba(36, 31, 48, 0.15);
    padding: 12px 16px 20px;
    z-index: 999;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .main-nav > .nav-list > .nav-item {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav > .nav-list > .nav-item:not(:first-child)::before {
    content: none;
  }
  .main-nav .nav-link {
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .main-nav .nav-link:hover,
  .main-nav .nav-link.active {
    background: var(--primary-light);
  }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    background: #f8f6fc;
    margin: 4px 0 8px 12px;
    padding: 6px 8px;
    border-radius: 6px;
  }
  .dropdown-menu::before {
    display: none;
  }
  .dropdown-link {
    padding: 9px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 16px;
  }
  .search-form {
    width: 100%;
  }
  .search-form input[type="search"] {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand-desc {
    display: none;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .header-container {
    padding: 6px 12px;
    min-height: 50px;
  }
  .top-bar-crisis {
    font-size: 0.8rem;
  }
}

/* --- Homepage Full-Screen #a5dcf8 Light Sky Hero Section --- */
.home-hero-stage {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 106px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #a5dcf8;
  background: #a5dcf8;
  flex: 1;
}

.home-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-hero-church-img {
  width: 68%;
  max-width: 1400px;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 1;
  display: block;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0px,
    transparent 30px,
    rgba(0, 0, 0, 0.2) calc(30px + 5%),
    rgba(0, 0, 0, 0.8) calc(30px + 14%),
    rgba(0, 0, 0, 1) calc(30px + 22%)
  );
  mask-image: linear-gradient(
    to right,
    transparent 0px,
    transparent 30px,
    rgba(0, 0, 0, 0.2) calc(30px + 5%),
    rgba(0, 0, 0, 0.8) calc(30px + 14%),
    rgba(0, 0, 1) calc(30px + 22%)
  );
}

.home-hero-scrim {
  display: none;
}

.home-hero-container {
  position: relative;
  z-index: 2;
  padding: 40px 32px 40px 92px;
  width: 100%;
  max-width: 100%;
}

.home-hero-card {
  max-width: 560px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-brand-header {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-main-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(10, 45, 68, 0.15));
  transition: transform 0.3s ease;
}
.hero-main-logo:hover {
  transform: scale(1.02);
}

.hero-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}

.hero-brand-comma {
  width: 108px;
  height: 108px;
  object-fit: contain;
  margin-top: 2px;
  margin-left: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(10, 45, 68, 0.2));
  transition: transform 0.3s ease;
}
.hero-brand-comma:hover {
  transform: rotate(-8deg) scale(1.06);
}

.hero-title-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

.hero-title .brand-badge {
  color: var(--primary);
  font-weight: 800;
}

.hero-tagline {
  font-size: 0.88rem;
  font-weight: 700;
  color: #086b75;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
  margin-left: 5px;
  margin-bottom: 0;
}

.hero-lead {
  color: var(--text-dark);
  font-size: 1.28rem;
  line-height: 1.62;
  margin-top: 20px;
  margin-bottom: 32px;
  font-weight: 500;
  max-width: 560px;
  width: 100%;
  text-align: left;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: 560px;
}

.btn-hero-crisis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--crisis);
  color: #ffffff !important;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(224, 69, 60, 0.35);
  transition: var(--transition);
  text-decoration: none !important;
  border: 2px solid transparent;
}

.btn-hero-crisis:hover {
  background-color: #b8332c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 69, 60, 0.45);
}

.btn-hero-about {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  color: var(--primary-dark) !important;
  border: 2px solid var(--primary);
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  text-decoration: none !important;
}

.btn-hero-about:hover {
  background: var(--primary-light);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107, 63, 160, 0.2);
}

@media (max-width: 900px) {
  .home-hero-stage {
    min-height: auto;
    padding: 30px 0;
  }
  .home-hero-container {
    padding: 24px 20px;
  }
  .home-hero-church-img {
    width: 100%;
    opacity: 0.3;
  }
  .home-hero-scrim {
    background: rgba(227, 246, 247, 0.92);
  }
  .hero-title-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-brand-comma {
    width: 52px;
    height: 52px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
}

/* --- Homepage Main Content & Pillars --- */
.home-main-content {
  padding: 48px 0 60px;
  background: var(--bg-white);
}

.home-pillars-section {
  margin-bottom: 48px;
}

.section-intro {
  margin-bottom: 36px;
}

.section-intro h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 8px;
}

.section-intro p {
  font-size: 1.08rem;
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto;
}

.home-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.home-pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none !important;
  color: inherit;
}

.home-pillar-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pillar-card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-card-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pillar-card-body {
  flex: 1;
}

.pillar-card-body h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px 0;
}

.pillar-card-body p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 12px;
}

.pillar-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.home-pillar-card:hover .pillar-link {
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* --- Homepage Urgent / Crisis Assistance Banner --- */
.home-urgent-banner {
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-sm);
}

.urgent-badge {
  display: inline-block;
  background: var(--crisis);
  color: var(--bg-white);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.urgent-banner-content h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 6px 0;
}

.urgent-banner-content p {
  font-size: 0.98rem;
  color: var(--text-body);
  margin: 0;
}

.urgent-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .home-hero-stage {
    min-height: 480px;
  }
  .home-pillar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .home-hero-stage {
    min-height: auto;
    padding: 24px 0;
  }
  .home-hero-scrim {
    background: rgba(255, 255, 255, 0.92);
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-lead {
    font-size: 1.02rem;
  }
  .home-urgent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .urgent-banner-actions {
    width: 100%;
  }
  .urgent-banner-actions .btn {
    width: 100%;
  }
}

/* --- Hanging "Page Name" tab & Sticky Logo (top-right, flush under header, matching dev.genhs.org) --- */
.sticky-page-tab-wrapper {
  position: fixed;
  top: var(--header-stack-height, 116px);
  right: 40px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 360px;
  gap: 8px;
  pointer-events: auto;
  transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(0);
  opacity: 1;
}
.sticky-page-tab-wrapper.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.sticky-page-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: var(--primary);
  color: var(--bg-white);
  padding: 6px 16px 7px 14px;
  border-radius: 0 0 8px 8px;
  border: none;
  border-top: none;
  box-shadow: 0 4px 12px rgba(36, 31, 48, 0.2);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.2s ease;
  white-space: nowrap;
}
.sticky-page-tab:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(36, 31, 48, 0.28);
}
.sticky-page-tab .tab-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.sticky-page-tab:hover .tab-arrow {
  transform: translateY(-2px);
}
.sticky-page-tab .tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

@media (max-width: 900px) {
  .sticky-page-tab-wrapper {
    right: 20px;
    gap: 6px;
    max-width: 260px;
  }
  .sticky-page-tab {
    font-size: 0.74rem;
    padding: 5px 12px 6px 10px;
  }
  .sticky-page-tab .tab-title {
    max-width: 200px;
  }
}
@media (max-width: 600px) {
  .sticky-page-tab-wrapper {
    right: 12px;
    gap: 4px;
    max-width: 200px;
  }
  .sticky-page-tab {
    font-size: 0.7rem;
    padding: 4px 10px 5px 8px;
  }
  .sticky-page-tab .tab-title {
    max-width: 140px;
  }
}

/* --- Plain page title (hub/content pages) — sits right under the header --- */
.page-header {
  background: var(--bg-white);
  padding: 34px 0 16px;
}
.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.page-header-text {
  flex: 1 1 auto;
  min-width: 0;
}
.page-header h1 {
  position: relative;
  top: 4px;
  margin-top: 0;
  margin-bottom: 4px;
  line-height: 1.2;
}
.page-header .breadcrumb {
  padding: 4px 0 10px;
}
.page-header .lead {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 100%;
  margin: 0;
}
@media (max-width: 992px) {
  .page-header-inner {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 28px 0 12px;
  }
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .page-header .breadcrumb {
    padding: 2px 0 8px;
  }
  .page-header .lead {
    font-size: 0.98rem;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 6px 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep::after { content: "/"; margin: 0 6px; color: #b8b0c8; }

/* --- Section headers --- */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section-header p { margin-top: 10px; }

/* --- Card grid (hub pages) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  width: 100%;
  align-items: start;
}
.card-grid:has(> :nth-child(4)) {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card-grid.card-grid--horizontal-2x2 {
  grid-template-columns: repeat(2, 1fr);
}
.nav-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.nav-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  border-color: var(--primary);
}
.nav-card-image {
  background: var(--primary-light);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.nav-card-image img {
  max-height: 190px;
  width: auto;
  margin: 0 auto;
  transition: transform 0.25s ease;
}
.nav-card:hover .nav-card-image img {
  transform: scale(1.05);
}
.nav-card-label {
  padding: 18px 16px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-card--horizontal-2x2 {
  flex-direction: row;
  text-align: left;
}
.nav-card--horizontal-2x2 .nav-card-image {
  min-height: 0;
  flex: 0 0 40%;
  padding: 20px;
}
.nav-card--horizontal-2x2 .nav-card-image img {
  max-height: 110px;
}
.nav-card--horizontal-2x2 .nav-card-label {
  justify-content: flex-start;
  text-align: left;
}
/* --- Interactive Expandable Nav Cards --- */
.expandable-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  outline: none;
  text-align: left;
}
.expandable-card:hover,
.expandable-card.expanded,
.expandable-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.expandable-card .nav-card-image {
  background: var(--primary-light);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  height: 160px;
  transition: background-color 0.25s ease;
}
.expandable-card:hover .nav-card-image,
.expandable-card.expanded .nav-card-image {
  background: #ede3f8;
}
.expandable-card .nav-card-image img {
  max-height: 125px;
  width: auto;
  margin: 0 auto;
  transition: transform 0.25s ease;
}
.expandable-card:hover .nav-card-image img,
.expandable-card.expanded .nav-card-image img {
  transform: scale(1.05);
}
.expandable-card-header {
  padding: 12px 18px 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.expandable-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  line-height: 1.35;
  margin: 0;
  min-height: 2.7em;
  display: block;
}
.expandable-card-toggle {
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.expandable-card:hover .expandable-card-toggle,
.expandable-card.expanded .expandable-card-toggle {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(180deg);
}
.expandable-card-preview {
  padding: 0 18px 14px;
  font-size: 0.84rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.expandable-card-body {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #faf8fd;
  border-top: 1px solid transparent;
}
.expandable-card:hover .expandable-card-body,
.expandable-card.expanded .expandable-card-body,
.expandable-card:focus-within .expandable-card-body {
  max-height: 480px;
  opacity: 1;
  visibility: visible;
  padding: 18px 20px 22px;
  border-top-color: var(--border-color);
}
.expandable-card--static-expanded {
  cursor: default;
}
.card-grid.card-grid--static-expanded {
  align-items: stretch;
}
.expandable-card--static-expanded .expandable-card-body {
  display: flex;
  flex-direction: column;
}
.expandable-card--static-expanded .expandable-card-body > p {
  min-height: 140px;
}
.expandable-card--static-expanded .expandable-card-actions {
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  justify-content: center;
}
.expandable-card--static-expanded .expandable-card-actions .btn-sm {
  padding: 8px 12px;
  font-size: 0.82rem;
}
.expandable-card.expandable-card--static-expanded .expandable-card-body {
  max-height: none;
  opacity: 1;
  visibility: visible;
  padding: 18px 20px 22px;
  border-top-color: var(--border-color);
  flex: 1;
}
.expandable-card-body p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 12px;
}
.expandable-card-meta {
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.expandable-card-meta strong {
  color: var(--primary-dark);
}
.expandable-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.expandable-card-actions .btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 800px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-card--horizontal-2x2 { flex-direction: column; text-align: center; }
  .nav-card--horizontal-2x2 .nav-card-image { flex: none; }
  .nav-card--horizontal-2x2 .nav-card-label { justify-content: center; text-align: center; }
}

/* --- Service cards (homepage intro) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none; }
.service-image { height: 160px; overflow: hidden; background: var(--bg-light); }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service-content { padding: 20px; }
.service-content h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.service-content p { font-size: 0.92rem; }
.learn-more { color: var(--primary); font-weight: 700; font-size: 0.85rem; }

/* --- Resource blocks (homepage) --- */
.resource-block { margin-bottom: 40px; }
.resource-block h2 { text-align: center; margin-bottom: 16px; }
.resource-block h3 { color: var(--primary-dark); margin: 24px 0 10px; }
.resource-block p { margin-bottom: 12px; }
.resource-block ul { margin: 0 0 12px 22px; }

.phone-pill {
  display: inline-block;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(107, 63, 160, 0.3);
}

/* --- 988 / crisis banner --- */
.crisis-banner {
  background: linear-gradient(135deg, var(--crisis-light), #fff5f4);
  border: 2px solid #f6bdb8;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.crisis-banner-title { font-size: 1.3rem; font-weight: 800; color: var(--crisis); margin-bottom: 4px; }
.crisis-banner-text { color: #7a2c26; font-size: 0.95rem; max-width: 520px; }
.crisis-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Reusable "Connect With Us" CTA --- */
.cta-connect {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  margin: 48px 0 16px;
  text-align: center;
}
.cta-connect .cta-connect-title { color: var(--bg-white); font-size: 1.6rem; font-weight: 800; margin: 0 0 10px; }
.cta-connect-text { color: rgba(255, 255, 255, 0.92); max-width: 560px; margin: 0 auto 20px; }
.cta-connect-btn.btn-primary { background-color: var(--bg-white); color: var(--primary-dark); }
.cta-connect-btn.btn-primary:hover { background-color: var(--bg-light); color: var(--primary-dark); }

/* --- About page: Mission/Vision/Values/Philosophy --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0 8px;
  align-items: start;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.value-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.value-item:hover .value-icon { transform: scale(1.08); }
.value-item:nth-child(7n+1) .value-icon { background: #efe6f8; color: #6b3fa0; }
.value-item:nth-child(7n+2) .value-icon { background: #e3f2f0; color: #1f7a6c; }
.value-item:nth-child(7n+3) .value-icon { background: #fdeee9; color: #c0592e; }
.value-item:nth-child(7n+4) .value-icon { background: #eaf1fc; color: #2a5faa; }
.value-item:nth-child(7n+5) .value-icon { background: #fdf3d9; color: #a8791a; }
.value-item:nth-child(7n+6) .value-icon { background: #fbe8ef; color: #b23a63; }
.value-item:nth-child(7n+7) .value-icon { background: #e9f7e6; color: #3c8a2e; }
.value-label { font-weight: 700; color: var(--text-dark); font-size: 0.92rem; }
.value-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.4;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.value-item:hover .value-desc {
  max-height: 140px;
  opacity: 1;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Quote cards --- */
.quote-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  margin: 4px 0 6px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.quote-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  margin: 0;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow-md);
}
.quote-card-body {
  flex: 1;
}
.quote-card-text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 8px;
}
.quote-card-author {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  .quote-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px 16px;
  }
}

/* --- Content Media Row (Text Left, Image Right) --- */
.content-media-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 4px 0 16px;
}
h2 + .content-media-row,
h3 + .content-media-row,
h4 + .content-media-row {
  margin-top: 2px;
}
.content-media-text {
  flex: 1;
  min-width: 0;
}
.content-media-text > :first-child {
  margin-top: 0;
}
.content-media-text > :last-child {
  margin-bottom: 0;
}
.content-media-img,
.content-media-figure {
  flex: 0 0 320px;
  max-width: 320px;
}
.content-media-img img,
.content-media-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: block;
  object-fit: cover;
}
@media (max-width: 768px) {
  .content-media-row {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .content-media-img,
  .content-media-figure {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* --- Help card grid (Get Help Now page) --- */
.help-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.help-card {
  flex: 0 1 calc(33.333% - 14px);
  min-width: 270px;
  max-width: 370px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: left;
}
.help-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.help-card-media {
  background: var(--bg-white);
  padding: 12px 14px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.help-card-media img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  object-position: center bottom;
  margin: 0 auto;
  border-radius: 0;
  display: block;
  transition: transform 0.28s ease;
}
.help-card:hover .help-card-media img {
  transform: scale(1.04);
}
.help-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.help-card-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 6px;
}
.help-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 5px;
  line-height: 1.25;
}
.help-card-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 12px;
  flex-grow: 1;
}
.help-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.help-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: var(--bg-white);
  text-decoration: none;
  transition: var(--transition);
}
.help-btn-call:hover {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  text-decoration: none;
}
.help-btn-call .icon-phone-svg {
  flex-shrink: 0;
}
.help-btn-link {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  text-align: center;
}
.help-secondary-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-dark);
  text-align: center;
  margin-top: 1px;
}
.help-secondary-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.help-card-note {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 2px;
}
@media (max-width: 900px) {
  .help-card {
    flex: 0 1 calc(50% - 10px);
    max-width: 380px;
  }
}
@media (max-width: 600px) {
  .help-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 32, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}
.modal-close {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--crisis); color: var(--bg-white); border-color: transparent; }
.modal-title { font-size: 1.15rem; margin: 0; color: var(--bg-white); }

/* --- On-brand Video Modal (theater experience with gradient accent) --- */
.modal-content.modal-video {
  max-width: 860px;
  width: 95vw;
  padding: 0;
  background: #191224;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(107, 63, 160, 0.35);
  overflow: hidden;
  border: none;
}
.modal-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(90deg, #2b1c42 0%, #1c2738 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  gap: 16px;
}
.modal-header-brand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 33%, var(--accent-green) 66%, var(--accent-blue) 100%);
}
.modal-brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-header-logo {
  height: 76px;
  width: auto;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  padding: 4px 8px;
  box-shadow: var(--shadow-sm);
}
.modal-video-body {
  padding: 0;
  background: #000;
}
.modal-video-body .video-embed {
  margin: 0;
  border-radius: 0;
}

/* --- Flyer thumbnail cards (Community Outreach) --- */
.flyer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 24px 0;
}
.flyer-card {
  display: block;
  flex: 0 1 260px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.flyer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  text-decoration: none;
}
.flyer-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: var(--primary-light);
  display: block;
}
.flyer-card-label {
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-dark);
}

/* --- Compact On-brand Video Banner Card (spans full width under text) --- */
.video-banner-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 20px 0 28px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: left;
  user-select: none;
}
.video-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #f6f0fc 100%);
}
.video-banner-icon {
  flex-shrink: 0;
}
.video-banner-play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(107, 63, 160, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.video-banner-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}
.video-banner-card:hover .video-banner-play {
  transform: scale(1.12);
}
.video-banner-info {
  flex-grow: 1;
}
.video-banner-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 4px;
}
.video-banner-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  line-height: 1.3;
}
.video-banner-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.4;
}
.video-banner-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--bg-white);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.video-banner-duration {
  background: rgba(255, 255, 255, 0.22);
  color: var(--bg-white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}
.video-banner-card:hover .video-banner-cta {
  background: var(--primary-dark);
  transform: translateX(2px);
}
.video-banner-card:hover .video-banner-duration {
  background: rgba(255, 255, 255, 0.3);
}
@media (max-width: 680px) {
  .video-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .video-banner-cta {
    width: 100%;
    justify-content: center;
  }
}

/* --- Footer --- */
.footer-spacer { flex: 1; }
.footer {
  background: var(--text-dark);
  color: #d9d4e3;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h3 { color: var(--bg-white); font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c9c2d6; }
.footer-col a:hover { color: var(--bg-white); }
.footer-logo { height: 60px; width: auto; margin-bottom: 14px; background: var(--bg-white); border-radius: var(--radius-sm); padding: 6px 10px; }
.footer-contact p { color: #c9c2d6; margin-bottom: 6px; font-size: 0.9rem; }
.social-links { display: flex; gap: 10px; margin-top: 6px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-weight: 700;
  font-size: 0.8rem;
}
.social-links a:hover { background: var(--secondary); text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  font-size: 0.8rem;
  color: #a89fbb;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  margin-top: 8px;
}
.funding-ack {
  font-size: 0.72rem;
  line-height: 1.4;
  color: #8f87a3;
  max-width: 900px;
  margin: 0 auto 10px;
  text-align: center;
}
.funding-ack a { color: #a89fbb; }
.funding-ack a:hover { color: var(--bg-white); }
.funding-ack:last-of-type { margin-bottom: 0; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .crisis-banner { flex-direction: column; align-items: flex-start; }
}

/* --- App/store badges + QR row (Transcend app) --- */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}
.app-badges img { max-width: 130px; margin: 0 auto; }

/* --- "On This Page" sticky sidebar (long content pages) --- */
.library-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.library-sidebar {
  position: sticky;
  top: calc(var(--header-stack-height, 116px) + 20px);
  height: fit-content;
  max-height: calc(100vh - var(--header-stack-height, 116px) - 36px);
  overflow-y: auto;
  background: var(--bg-light);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.library-sidebar h4 {
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
}
.sidebar-nav { list-style: none; margin: 0; padding: 0; }
.sidebar-nav > li { margin-bottom: 6px; }
.sidebar-nav a {
  display: block;
  padding: 7px 12px;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sidebar-nav a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}
.sidebar-nav a.active {
  background: var(--primary);
  color: var(--bg-white);
  font-weight: 700;
}
.sidebar-nav a.active:hover { background: var(--primary-dark); color: var(--bg-white); }

/* --- Expandable / Collapsible Group Items --- */
.sidebar-parent-item {
  margin-bottom: 6px;
}
.sidebar-item-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: transparent;
  overflow: hidden;
}
.sidebar-item-row:hover {
  background: var(--primary-light);
}
.sidebar-item-row:has(.sidebar-link.active),
.sidebar-item-row.active {
  background: var(--primary);
  color: var(--bg-white);
}
.sidebar-item-row .sidebar-link {
  flex-grow: 1;
  padding: 8px 12px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.88rem;
  background: transparent !important;
  display: flex;
  align-items: center;
  border-radius: 0;
}
.sidebar-item-row:hover .sidebar-link {
  color: var(--primary-dark);
  text-decoration: none;
}
.sidebar-item-row:has(.sidebar-link.active) .sidebar-link,
.sidebar-item-row.active .sidebar-link {
  color: var(--bg-white);
}
.sidebar-toggle-btn {
  background: transparent !important;
  border: none;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-body);
  border-radius: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 0 4px 0 0;
  flex-shrink: 0;
}
.sidebar-item-row:hover .sidebar-toggle-btn {
  color: var(--primary-dark);
}
.sidebar-item-row:has(.sidebar-link.active) .sidebar-toggle-btn,
.sidebar-item-row.active .sidebar-toggle-btn {
  color: var(--bg-white);
}
.sidebar-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.25s ease;
}
.sidebar-parent-item.collapsed .sidebar-toggle-btn svg {
  transform: rotate(-90deg);
}

.sidebar-sub-list {
  list-style: none;
  margin: 3px 0 6px 6px;
  padding: 0 0 0 6px;
  border-left: 2px solid rgba(107, 63, 160, 0.18);
  display: block;
}
.sidebar-parent-item.collapsed .sidebar-sub-list {
  display: none;
}
.sidebar-sub-list li {
  margin-bottom: 2px;
}
.sidebar-sub-list a {
  padding: 4px 10px;
  font-size: 0.82rem;
  color: #585066;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.sidebar-sub-list a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.sidebar-sub-list a.active {
  background: var(--primary);
  color: var(--bg-white);
  font-weight: 700;
}

@media (max-width: 900px) {
  .library-layout { grid-template-columns: 1fr; }
  .library-sidebar { position: static; margin-bottom: 30px; }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .sidebar-nav > li { margin-bottom: 0; }
  .sidebar-sub-list { margin-left: 0; border-left: none; }
}

.content-body h2[id], .content-body h3[id] {
  scroll-margin-top: calc(var(--header-stack-height, 116px) + 20px);
}
.content-body h2 { margin: 32px 0 14px; color: var(--primary-dark); }
.content-body h3 { margin: 24px 0 10px; }
.content-body p { margin-bottom: 14px; }
.content-body ul, .content-body ol { margin: 0 0 14px 22px; }
.content-body img { border-radius: var(--radius-md); margin: 20px auto; }
.content-body .video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 24px 0; border-radius: var(--radius-md); overflow: hidden; }
.content-body .video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* --- Side-by-side / two-cell content layout (text + media) --- */
.split-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 18px 0 28px;
}
.split-content .video-embed {
  margin: 0;
}
@media (max-width: 850px) {
  .split-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

