/* Note: Mobile reordering removed; DOM order controls stacking and contact-left appears above the form */
/* Minimal custom CSS - most styles now use Tailwind
 * This file only contains truly custom patterns that can't be expressed with Tailwind utilities
 * 
 * For new components, prefer Tailwind classes
 * - Z-index layers: Use `z-nav-overlay`, `z-nav`, `z-nav-open`, `z-debug`
 */

/* Complex contact grid layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

/* No inline duplicate address used; cleanup */

/* Officers grid with custom minmax */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Debug overlay (development tool) - uses Tailwind z-debug utility */
#debug-header-overlay {
  @apply fixed top-3 right-3 z-debug px-2.5 py-2 rounded-md max-w-[360px] pointer-events-auto;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-family: monospace;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(3, 10, 18, 0.35);
}

#debug-header-overlay div {
  margin-bottom: 3px;
}

#debug-header-overlay span[data-key] {
  display: inline-block;
  min-width: 60px;
  text-align: right;
  margin-left: 6px;
}

/* Nav overlay backdrop - uses Tailwind z-nav-overlay utility */
.nav-overlay {
  @apply fixed inset-0 z-nav-overlay opacity-0 pointer-events-none;
  background: rgba(0, 32, 65, 0.92);
  transition: opacity 0.24s ease-in-out;
}

.nav-overlay.open {
  @apply opacity-100 pointer-events-auto;
}

@media (max-width: 900px) {
  .contact-grid,
  .officers-grid {
    grid-template-columns: 1fr;
  }
}
/* Make the page a column flex container to keep footer at bottom */
body,
.body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family:
    'Poppins',
    'Figtree',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 18px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.5rem;
  border: 2px solid #0b5f3c;
}
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

:root {
  --color-navy: #001a36; /* primary/navy updated */
  --color-primary: #002041;
  --color-secondary: #00509e; /* secondary blue */
  --color-link: var(--color-secondary);
  --color-accent: #990e00; /* red CTA (updated) */
  --color-underline-top: #ffd92e; /* bright yellow for top underline */
  --color-underline-bottom: #cbe039; /* slightly greenish for bottom underline */
  --color-text: #333333;
  --color-bg: #ffffff;
  --color-muted: #69727d;
  --radius: 8px;
  --header-height: 88px; /* default header height used for fixed header padding */
  --footer-height: 88px; /* default footer height used for layout calc */
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
  will-change: transform;
  transform-origin: top center;
}
.site-header.solid {
  background: #fff;
  border-bottom: 1px solid #e6eef2;
  box-shadow: 0 10px 40px rgba(3, 10, 18, 0.06);
  z-index: 1000;
}
/* Ensure nav toggle is visible when header becomes solid */
.site-header.solid .nav-toggle {
  color: var(--color-navy);
}
.site-header.solid .nav-toggle svg {
  color: var(--color-navy);
}
/* When header becomes solid we do not make it fixed; it should remain absolute and scroll away with the page */
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  width: auto;
  min-width: 280px;
  height: auto;
}
.brand .logo {
  height: auto;
  width: 100%;
  max-width: 320px;
  position: absolute;
  top: 0;
  left: 0;
}

@media (min-width: 900px) {
  .brand .logo {
    max-width: 380px;
  }
}
.brand-text {
  font-family:
    'Poppins',
    'Figtree',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Arial;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-left: 0.25rem;
  letter-spacing: 0.015em;
}
.site-header .brand .logo,
.site-header .brand .brand-text {
  transition: all 0.25s ease-in-out;
}
.brand .logo {
  transition: opacity 220ms ease;
}
/* dual logos: light/default and dark used when header becomes solid */
/* Logos: manage with opacity for smooth transition */
.logo-index,
.logo-light,
.logo-dark {
  display: block;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}
.logo-index,
.logo-light {
  opacity: 1;
  visibility: visible;
}
.logo-dark {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Homepage: hide logos until hero is scrolled past - Handled in global.css */
/*
html[data-page='home'] .logo-index,
html[data-page='home'] .logo-light,
html[data-page='home'] .logo-dark {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-page='home'] .site-header[data-show-logo='true'] .logo-index,
html[data-page='home'] .site-header[data-show-logo='true'] .logo-light,
html[data-page='home'] .site-header.scrolled-past-hero .logo-index,
html[data-page='home'] .site-header.scrolled-past-hero .logo-light {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
*/

.site-header.solid .logo-dark {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-header.solid .logo-light,
.site-header.solid .logo-index {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hide header (slide up) when scrolling down */
.site-header.hidden {
  transform: translateY(calc(-1 * var(--header-height) - 8px));
  transform: translateY(-120%);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.15rem;
  color: #fff;
  z-index: 1300;
}
.main-nav {
  margin-left: auto;
}
.main-nav.open {
  padding: 0.75rem 1rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-list a {
  padding: 0.45rem 0.7rem;
  border-radius: 0;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.nav-list a:focus,
.nav-list a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-list .cta a {
  background: var(--color-accent);
  color: #fff;
}
.site-header.solid .nav-list .cta a {
  color: #fff;
}
.site-header.solid .nav-list a {
  color: var(--color-navy);
}
.site-header.solid .brand-text {
  color: var(--color-navy);
}
.site-header.solid .nav-list a:focus,
.site-header.solid .nav-list a:hover {
  background: rgba(11, 95, 60, 0.06);
}
.nav-list a.active {
  background: rgba(255, 255, 255, 0.08);
}
.site-header.solid .nav-list a.active {
  background: rgba(11, 95, 60, 0.08);
  color: var(--color-navy);
}

/* Mobile overlay mode: ensure header and brand area remain solid when nav is open */
.site-header.nav-open,
body.nav-open .site-header {
  background: var(--color-navy);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1400;
  border-bottom: none;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}
body.nav-open .site-header .nav-toggle,
body.nav-open .site-header .nav-toggle svg {
  color: #fff;
}
body.nav-open .brand .logo-dark {
  opacity: 0;
  visibility: hidden;
}
body.nav-open .brand .logo-light,
body.nav-open .brand .logo-index {
  opacity: 1;
  visibility: visible;
}

/* overlay nav close button - hidden on desktop */
.nav-close {
  display: none;
}

/* Hero */
.hero {
  min-height: clamp(480px, 75vh, 860px);
  display: grid;
  align-items: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(11, 43, 64, 0.6) 0%, rgba(11, 43, 64, 0.4) 100%),
    url('/assets/images/hero-1024.avif');
  /* image-set fallback for modern browsers */
  @supports (background-image: image-set(url('/assets/images/hero-1024.avif') type('image/avif'))) {
    background-image:
      linear-gradient(180deg, rgba(11, 43, 64, 0.6) 0%, rgba(11, 43, 64, 0.4) 100%),
      image-set(
        url('/assets/images/hero-1024.avif') type('image/avif'),
        url('/assets/images/hero-1024.webp') type('image/webp')
      );
  }
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.25rem, calc((7vw + 1rem) * 0.9), 4.32rem);
  margin: 0 0 0.5rem;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  font-family:
    'Figtree',
    'Poppins',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.hero-text {
  text-align: left;
  max-width: 720px;
  margin: 0;
}
.lead {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
/* hero lead remains light on the dark hero background */
.hero .lead {
  color: #e6eef6;
}
.hero-cta {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}
.button-row {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}
/* Normalize buttons (native <button> + .button anchor classes) */
button,
.button {
  display: inline-block;
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-navy);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(3, 10, 18, 0.06);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.button.primary,
.button.primary:visited {
  background: var(--color-accent);
  color: #fff;
}
.button.donate {
  background: var(--color-accent);
  color: #fff;
}

.button.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button.primary {
  box-shadow: 0 6px 14px rgba(3, 10, 18, 0.08);
}
.button.primary:hover {
  transform: translateY(-2px);
}
.button:hover {
  transform: translateY(-1px);
}

.house-svg {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Sections */
.section {
  padding: 3rem 0;
}
/* First section on pages without hero gets top padding for absolute header */
.section:first-of-type {
  padding-top: calc(3rem + var(--header-height));
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.section h2 {
  color: var(--color-primary);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-family: 'Figtree', 'Poppins', Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cards .card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(3, 10, 18, 0.06);
}

/* News section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.25rem;
}
.news-card,
.event-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 16, 26, 0.06);
  transition: transform 0.22s cubic-bezier(0.16, 0.9, 0.3, 1);
}
.news-card img,
.event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Event card layout lives in `src/styles/global.css` (Tailwind) so we don't duplicate it here. */
.news-card:hover {
  transform: translateY(-6px);
}
.news-card h3,
.event-card h3 {
  font-size: 1.06rem;
  margin: 0.9rem 0.9rem 0;
  color: var(--color-link);
  font-weight: 700;
}
.news-card h3 a,
.event-card h3 a {
  color: var(--color-link);
  text-decoration: none;
}
.news-card h3 a:hover,
.event-card h3 a:hover {
  text-decoration: underline;
}
.news-card p {
  margin: 0.45rem 0.9rem 1rem;
  color: #6b7f8f;
}
.news-card .date,
.event-card .date {
  font-size: 0.85rem;
  color: #98a6b0;
  margin: 0 0.9rem 0.4rem;
}

.read-more {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
}
.read-more:hover {
  text-decoration: underline;
}

.events-actions .button {
  background: var(--color-navy);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0;
  max-width: 240px;
  display: inline-block;
  box-shadow: 0 6px 14px rgba(3, 10, 18, 0.06);
}
.events-actions .button:hover {
  transform: translateY(-1px);
}

/* Events */
.events-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.event-card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 0;
}
.events {
  background: transparent;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.event-card h3 {
  font-size: 1.06rem;
}
/* event-meta styles removed; event cards now use the news-card structure */

/* Resources */
.resource-list {
  display: grid;
  gap: 0.5rem;
}
.resource-list a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.contact-left address {
  background: #fff;
  padding: 1rem;
  border-radius: 0;
  border: 1px solid #eef6f0;
  color: var(--color-navy);
  font-style: normal;
  font-family:
    'Segoe UI',
    'Poppins',
    system-ui,
    -apple-system,
    Roboto,
    Arial;
}
.contact-right {
  padding: 1rem;
  border-radius: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
}
.contact-right .contact-form {
  background: #fff;
  padding: 0.75rem;
  border-radius: 0;
  border: 1px solid #eef6f0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Make the contact section a navy background */
.section.contact {
  background: var(--color-navy);
  color: #fff;
  padding: calc(3rem + var(--header-height)) 0 3rem 0;
  display: flex;
  align-items: stretch;
  flex: 1 0 auto;
}
.section.contact .container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Ensure the grid inside can stretch to fill the section */
.section.contact .contact-grid {
  min-height: 100%;
}
/* Ensure left and right columns fill the grid height */
.section.contact .contact-left {
  height: 100%;
}
.section.contact .contact-right {
  height: 100%;
}
.emoji {
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 1.05rem;
  line-height: 1;
  vertical-align: middle;
}

/* Form actions and map embed - kept for legacy compatibility */
.form-actions {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

/* Map embed styles */
.map-embed {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(3, 10, 18, 0.06);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-embed .map-link {
  margin-top: 0.5rem;
  text-align: right;
  font-size: 0.9rem;
}
.map-embed .map-link a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2rem 0;
  font-size: 0.95rem;
  background: var(--color-navy);
  color: #fff;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.footer-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.logo-small {
  width: 56px;
  height: 56px;
}
.footer-links {
  display: flex;
  gap: 0.5rem;
}
.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
}

/* Responsive */
/* Moved 900px media query to after 1100px for correct override order */

@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }
}

@media (max-width: 1100px) {
  /* DOM order controls stacking; no explicit ordering necessary */
  /* contact-map removed - map is back inside contact-left */
  .contact-left address {
    display: block;
  }
  .contact-info-inline {
    display: none;
  }
  /* medium width: 2-column grids for content */
  .news-grid,
  .events-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Unified Mobile/Tablet Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile browsers */
    background: var(--color-navy);
    z-index: 1300;
    padding-top: var(--header-height);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2rem;
    overflow-y: auto;

    /* Flexbox for centering */
    display: flex;
    flex-direction: column;

    /* Transition: Slide down */
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }

  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    box-shadow: none;
  }

  body.nav-open .main-nav {
    box-shadow: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Tighter gap */
    width: 100%;
    margin: auto; /* Centers vertically and horizontally in flex container */
  }

  .nav-list a {
    display: block;
    width: 100%;
    text-align: center;
    color: #fff !important; /* Force white text */
    font-size: 1.75rem; /* Larger text */
    font-weight: 700;
    padding: 0.75rem;
    background: transparent !important; /* Remove any background color */
  }

  .nav-list a.active {
    background: transparent !important; /* Ensure active link has no background */
    text-decoration: underline; /* Optional: add underline to indicate active state */
    text-underline-offset: 8px;
  }

  /* CTA button in mobile nav */
  .nav-list .cta a {
    background: var(--color-accent) !important;
    color: #fff !important;
    padding: 1rem 2rem;
    width: auto;
    display: inline-block;
    text-decoration: none !important;
    text-underline-offset: 0;
  }

  .nav-list .cta a:hover {
    opacity: 0.9;
  }

  /* Submenu Toggle Styles */
  .link-with-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
  }

  .link-with-toggle a {
    width: auto; /* Allow button to sit next to it */
    display: inline-block;
  }

  .submenu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    width: auto;
    height: auto;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
  }

  .submenu-toggle:hover {
    opacity: 0.8;
  }

  .submenu-toggle[aria-expanded='true'] {
    transform: rotate(180deg);
  }

  /* Submenus in mobile: hidden by default, disable hover */
  .nav-list .group:hover > .subnav,
  .nav-list .group > .subnav:hover {
    display: none;
  }

  .nav-list .subnav {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0;
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .nav-list .subnav.open {
    display: flex !important;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list .subnav li a {
    font-size: 1.25rem; /* Smaller than main links */
    opacity: 0.9;
    padding: 0.5rem;
    font-weight: 600;
  }

  /* Hide the close button inside nav, we use the toggle */
  .nav-close {
    display: none;
  }

  /* Ensure header stays on top and has background */
  .site-header.nav-open,
  body.nav-open .site-header {
    background: var(--color-navy);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1400;
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* Ensure toggle is white and on top */
  body.nav-open .site-header .nav-toggle,
  body.nav-open .site-header .nav-toggle svg {
    color: #fff !important;
    position: relative;
    z-index: 1401;
  }

  /* Ensure toggle is white in dark mode */
  :root.dark .nav-toggle,
  :root.dark .nav-toggle svg,
  :root.dark .site-header.solid .nav-toggle,
  :root.dark .site-header.solid .nav-toggle svg {
    color: #fff !important;
  }

  /* Ensure logo is correct and on top */
  .brand {
    position: relative;
    z-index: 1401;
  }

  body.nav-open .brand .logo-dark {
    opacity: 0;
    visibility: hidden;
  }
  body.nav-open .brand .logo-light,
  body.nav-open .brand .logo-index {
    opacity: 1;
    visibility: visible;
  }

  .nav-overlay {
    display: none; /* Not needed with full screen menu */
  }

  body.no-scroll {
    overflow: hidden;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
  /* Reduce brand min-width at medium screen so nav toggle fits */
  .brand {
    min-width: 96px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  /* Remove the conflicting .main-nav styles from here */

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .map-embed {
    height: 220px;
  }
  .brand .logo {
    height: 56px;
    width: auto;
  }
  .brand {
    min-width: 96px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }
  .footer-left,
  .footer-right {
    width: 100%;
  }
  .footer-right .footer-links {
    justify-content: center;
  }
}

/* (Duplicate mobile nav block removed: center alignment handled in the primary 900px block above) */

@media (max-width: 700px) {
  .hero {
    min-height: 480px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  /* Small screen styles: benefits will be a vertical list so no override needed */
  .hero h1 {
    font-size: 2.025rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonials .container {
    margin-top: 0;
    padding: 1rem;
  }

  .news-card img {
    height: 160px;
  }
  /* event-thumb removed - event cards now use the same img sizing as news cards */
}

/* Benefits section styles */
.benefits-list {
  margin-top: 1rem;
  padding-left: 0;
  color: #fff;
  list-style: none;
}
.benefits-list li {
  margin-bottom: 0.85rem;
}
.benefits-list h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}
.benefits-list p {
  margin: 0.375rem 0 0;
  color: rgba(230, 238, 246, 0.92);
}
.benefits-list .benefit-sub {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}
.benefits-list .benefit-sub li {
  list-style-type: disc;
  margin-bottom: 0.55rem;
  color: rgba(230, 238, 246, 0.92);
}
.benefits-list .benefit-sub li::marker {
  color: rgba(255, 255, 255, 0.9);
}
.benefits {
  background: var(--color-navy);
  padding: 3rem 0;
  color: #fff;
}
.benefits h2 {
  color: #fff;
}

/* Events lead should be readable against the light background */
.events .lead {
  color: var(--color-muted);
}

/* Headline underline animation removed (markup not used) */

/* Scroll / initial load drop-in animation for news & event cards */
.js .news-card.drop-in,
.js .event-card.drop-in {
  transform: translateY(20px);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 600ms cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 600ms ease;
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.js .news-card.drop-in.in-view,
.js .event-card.drop-in.in-view {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js .news-card.drop-in,
  .js .event-card.drop-in,
  .js .news-card.drop-in.in-view,
  .js .event-card.drop-in.in-view {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .become-cta .button {
    width: auto;
    max-width: 320px;
  }
}

/* Testimonials: navy band with white container and card-style testimonials */
.testimonials {
  padding: 6rem 0 3rem;
  background: var(--color-navy);
  color: #fff;
}
.testimonials .container {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 14px 40px rgba(6, 16, 26, 0.07);
  margin-top: -20px;
  color: var(--color-text);
}
.testimonials h2 {
  color: var(--color-navy);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.testimonial blockquote {
  font-style: italic;
  color: #23303a;
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.testimonial .cite {
  color: var(--color-navy);
  font-weight: 700;
  margin: 0;
}
/* Each testimonial as a card */
.testimonials .testimonial {
  background: #fff;
  border: 1px solid rgba(6, 16, 26, 0.06);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(6, 16, 26, 0.06);
  color: var(--color-text);
}
.testimonials .testimonial blockquote {
  color: #23303a;
}
.testimonial .cite span {
  display: block;
  color: #6b7f8f;
  font-weight: 400;
  font-size: 0.95rem;
}
.testimonial .cite strong {
  color: var(--color-accent);
}

/* Testimonial carousel styles */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  align-items: stretch;
}
.carousel-controls {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}
.carousel-controls button {
  background: transparent;
  border: none;
  padding: 0.45rem 0.7rem;
  border-radius: 0;
  color: var(--color-navy);
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.carousel-controls button svg {
  width: 26px;
  height: 26px;
}
.carousel-controls button:hover {
  background: rgba(0, 0, 0, 0.03);
}
.carousel-controls button:focus {
  outline: 2px solid rgba(0, 0, 0, 0.08);
  outline-offset: 2px;
}
.carousel-controls button[disabled] {
  opacity: 0.4;
  cursor: default;
}
.carousel-controls button[disabled] {
  opacity: 0.4;
  cursor: default;
}
.testimonials .testimonial {
  min-width: 0;
  box-sizing: border-box;
  padding: 1.25rem;
}
.testimonials .testimonial blockquote {
  width: 100%;
  margin: 0 0 0.5rem;
}

/* Post detail styles */
.post-detail h1 {
  font-size: 2rem;
  color: var(--color-navy);
  margin: 0.25rem 0 0.4rem;
}
.post-detail .meta {
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.post-hero {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}
.post-content {
  line-height: 1.75;
  color: #23303a;
}

/* Focus and accessibility */
:focus-visible {
  outline: 3px solid rgba(11, 95, 60, 0.18);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Small helpers */
.lead + .grid {
  margin-top: 1rem;
}
.error-404 {
  text-align: center;
  padding: 6rem 1rem;
}

/* Debug overlay for header debug info (visible with ?debug-header) */
#debug-header-overlay {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99999;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-family: monospace;
  border-radius: 6px;
  max-width: 360px;
  line-height: 1.2;
  pointer-events: auto;
  box-shadow: 0 6px 18px rgba(3, 10, 18, 0.35);
}
#debug-header-overlay div {
  margin-bottom: 3px;
}
#debug-header-overlay span[data-key] {
  display: inline-block;
  min-width: 60px;
  text-align: right;
  margin-left: 6px;
}

/* About page specific styles */
.about-hero .lead {
  max-width: 780px;
  margin-bottom: 1rem;
}
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.officer-card {
  background: #fff;
  border: 1px solid rgba(6, 16, 26, 0.06);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(6, 16, 26, 0.04);
}
.officer-card .role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.officer-card .role:dark-mode {
  color: #ff6b6b;
}
:root.dark .officer-card .role {
  color: #ff6b6b;
}
.officer-card .name {
  color: var(--color-navy);
  font-weight: 700;
  margin: 0.25rem 0;
}
:root.dark .officer-card .name {
  color: #e5e7eb;
}

:root.dark .officer-card .name {
  color: #fff;
}
.officer-card .org,
.officer-card .company {
  color: var(--color-muted);
  margin-bottom: 0;
  font-style: italic; /* Make company name italic */
}

/* Make the italic company font lighter in dark mode for contrast */
:root.dark .officer-card .company,
.dark .officer-card .company {
  color: #e5e7eb;
}
.officers-grid ul {
  margin: 0;
  padding-left: 1rem;
}
.contact-info address {
  font-style: normal;
  color: var(--color-text);
  background: #fff5;
  padding: 0.75rem;
  display: inline-block;
  border-radius: 8px;
}
.contact-info a {
  color: var(--color-navy);
}

@media (max-width: 900px) {
  .officers-grid {
    grid-template-columns: 1fr;
  }
  .about-hero .lead {
    font-size: 1rem;
  }
}
/* Benefit card animations removed */
