/* =========================================================
   NORTHEAST HETHUSKA SOCIETY — MASTER STYLESHEET
   Version: 2026.3
   Author: Mike Warner
   File: css/style.css
========================================================= */

/* =========================================================
1. ROOT VARIABLES
========================================================= */

:root {

  /* Brand Colors */
  --primary: #D9043D;
  --secondary: #2A0859;

  /* Earth Palette */
  --earth: #BF3F34;
  --light-earth: #BF3F3485;
  --dark-earth: #5a2a24;
  --warm-earth: #7A1F1F;

  /* Neutrals */
  --dusty: #f8f4f1;
  --parchment: #EDE7A8;
  --white: #ffffff;
  --black: #000000;
  --neutral-dark: #333333;
  --neutral-mid: #666666;
  --neutral-light: #CCCCCC;

  /* Accent */
  --highlight: #F2E966;
  --gold: #F2E966;

  /* Icon Colors */
  --icon-sage: #7A8F6A;
  --icon-gold: #D6C56E;
  --icon-clay: #C47A5A;
  --icon-sky: #8FAFC4;
  --icon-ocean: #095285;
  --icon-fall: #d67931;
  --icon-default: var(--neutral-dark);
  --icon-inverse: var(--white);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --text-default: #2a2624;

  /* Layout */
  --max-width: 1200px;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xlg: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);

  /* Overlays */
  --overlay-red: rgba(120, 0, 0, 0.55);
  --overlay-earth: rgba(191, 63, 52, 0.45);
  --overlay-dark: rgba(0, 0, 0, 0.4);
  --overlay-light: rgba(255, 255, 255, 0.25);

  /* Section-Level Hooks */
  --section-bg: transparent;
  --section-text: var(--text-default);
  --section-accent: var(--earth);
  --section-icon: var(--icon-default);
}

/* =========================================================
2. GLOBAL RESETS
========================================================= */

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-default);
  background-color: white;
}

/* Content Width Constraint */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Global Image Normalization */
img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
3. GLOBAL TYPOGRAPHY
========================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

/* Responsive Heading Scale */
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--earth);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--earth);

}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

h6 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* Paragraph and List Rhythm */
p {
  margin-bottom: 1.25rem;
}

ul, ol {
  margin-bottom: 1.5rem;
}

/* Section Text Defaults */
.section p,
.section li {
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Max-Width Text Container */
.text-max {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
4. GLOBAL SPACING UTILITIES
========================================================= */

/* Margin Top */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

/* Margin Bottom */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

/* Padding Top/Bottom (Vertical Rhythm) */
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-7 { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* Padding Left/Right (Horizontal Rhythm) */
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-7 { padding-left: var(--space-7); padding-right: var(--space-7); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

/* Full Padding */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-7 { padding: var(--space-7); }
.p-8 { padding: var(--space-8); }

/* =========================================================
5. ICONS
========================================================= */

/* Base Icon */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  color: var(--section-icon, currentColor);
}

/* Size Variants */
.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* Icons Inside Buttons */
.button .icon,
button .icon {
  margin-right: 0.5rem;
}

/* Icons Inside Links */
a .icon {
  margin-right: 0.35rem;
  vertical-align: text-bottom;
}

/* Inline SVG Reset */
.icon svg {
  width: 100%;
  height: 100%;
  stroke: inherit;
  fill: inherit;
  stroke-width: inherit;
  stroke-linecap: inherit;
  stroke-linejoin: inherit;
}

/* Sprite Usage */
.icon use {
  stroke: inherit;
  fill: inherit;
}

/* Icon Color Utilities (for page-section-icon, ponca-icon, etc.) */
.icon-gold  { color: var(--icon-gold); }
.icon-sage  { color: var(--icon-sage); }
.icon-clay  { color: var(--icon-clay); }
.icon-fall  { color: var(--icon-fall); }
.icon-ocean { color: var(--icon-ocean); }
.icon-sky   { color: var(--icon-sky); }

/* Text-Based Color Utilities */
.text-gold   { color: var(--icon-gold); }
.text-sage   { color: var(--icon-sage); }
.text-fall   { color: var(--icon-fall); }
.text-ocean  { color: var(--icon-ocean); }
.text-sky    { color: var(--icon-sky); }

.page-section-icon.icon-gold  { stroke: var(--icon-gold); }
.page-section-icon.icon-sage  { stroke: var(--icon-sage); }
.page-section-icon.icon-clay  { stroke: var(--icon-clay); }
.page-section-icon.icon-fall  { stroke: var(--icon-fall); }
.page-section-icon.icon-ocean { stroke: var(--icon-ocean); }
.page-section-icon.icon-sky   { stroke: var(--icon-sky); }

/* Ponca Icons */
.ponca-icon {
  width: 40px;
  height: 40px;
  stroke: var(--section-icon, currentColor);
  fill: none !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.page-section-icon {
  width: 48px;
  height: 48px;
  color: inherit; /* ← THIS is the missing link */
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  display: block;
  margin: 0 auto 1rem auto;
}

/* Bullet Icons */
.bullet-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
  display: inline-block;
}

.icon-list li {
  display: flex;
  align-items: center;
}

.icon-wrap {
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.icon-wrap .icon {
  width: 18px;
  height: 18px;
  color: var(--earth);
}


/* Mobile-Safe SVG Normalization */
svg {
  max-width: 100%;
  height: auto;
  overflow: visible;
  flex-shrink: 0;
}

/* =========================================================
6. UTILITIES
========================================================= */

/* Text Alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Text Formatting */
.text-italic {
  font-style: italic;
  font-size: 0.7rem !important;
}

/* Display Helpers */
.d-block        { display: block; }
.d-inline       { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex         { display: flex !important; }
.d-grid         { display: grid; }

/* Flexbox Helpers */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-top {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }

/* Visibility */
.hidden  { display: none !important; }
.visible { display: block !important; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }

/* Border Radius */
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-pill { border-radius: var(--radius-xlg); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Width Helpers */
.w-100 { width: 100%; }
.w-auto { width: auto; }

/* Max-Width Helpers */
.max-600  { max-width: 600px; margin-left: auto; margin-right: auto; }
.max-800  { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-1000 { max-width: 1000px; margin-left: auto; margin-right: auto; }

/* List Utilities */
.list-2col {
  columns: 2;
  column-gap: var(--space-5);
}

.list-center {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.list-unstyled {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

@media (max-width: 900px) {
  .list-2col {
    columns: 1;
  }
}

/* =========================================================
7. FADE CAROUSEL
========================================================= */

.fade-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
}

.fade-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
}

.fade-carousel img.active {
  opacity: 1;
}

.carousel-wrapper {
  position: relative;
  z-index: 2;
}

/* =========================================================
8. GRID HELPERS
========================================================= */

/* Simple Grids */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(4, 1fr);
}

/* Auto-Fit Responsive Grid */
.grid-auto {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Feature Grid */
.grid-feature {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Icon Grid */
.grid-icons {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Gap Utilities */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-7 { gap: var(--space-7); }
.gap-8 { gap: var(--space-8); }

/* =========================================================
9a. BUTTONS
========================================================= */

.button,
button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-xlg);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  line-height: 1.2;
}

/* Primary Button */
.button-primary {
  background: var(--earth);
  color: var(--white);
}

.button-primary:hover {
  background: #b80334;
}

/* Secondary Button */
.button-secondary {
  background: var(--secondary);
  color: var(--white);
}

.button-secondary:hover {
  background: #1f063f;
}

/* Outline Button */
.button-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--primary);
}

.button-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Ghost Button */
.button-ghost {
  background: transparent;
  color: var(--primary);
}

.button-ghost:hover {
  color: #b80334;
}

/* Light Button */
.button-light {
  background: var(--white);
  color: var(--neutral-dark);
}

.button-light:hover {
  background: var(--neutral-light);
}

/* Icons Inside Buttons */
.button .icon,
button .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* =========================================================
9b. CARDS
========================================================= */

.card-base {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Restored info-card structure */
.card-info {
    background: var(--dusty); /* or var(--white) if preferred */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

/* Restore icon behavior */
.card-info .info-icon {
    width: 64px;
    height: 64px;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}

/* Base Card */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hover Elevation */
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Card Title */
.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

/* Card Subtitle */
.card-subtitle {
  font-size: 1.05rem;
  color: var(--neutral-mid);
  margin-bottom: var(--space-2);
}

/* Card Body Text */
.card-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-default);
}

/* Card Image */
.card-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card Icon */
.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  color: var(--section-icon, var(--neutral-dark));
}

/* Card Footer */
.card-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--neutral-light);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* Card Variants */
.card-earth {
  background: var(--earth);
  color: var(--white);
}

.card-earth .card-subtitle {
  color: var(--white);
}

.card-parchment {
  background: var(--parchment);
  color: var(--neutral-dark);
}

.card-dark {
  background: #111;
  color: var(--white);
}

/* Horizontal Card */
.card-horizontal {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .card-horizontal {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}

/* Compact Card */
.card-compact {
  padding: var(--space-3);
  gap: var(--space-2);
}

.card-compact .card-title {
  font-size: 1.2rem;
}

/* =========================================================
9c. CALLOUTS
========================================================= */

/* Base Callout */
.callout {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--dusty);
  box-shadow: var(--shadow-sm);
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Callout Title */
.callout-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

/* Callout Text */
.callout-text {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Icon Callout */
.callout-icon {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.callout-icon .icon {
  width: 2rem;
  height: 2rem;
  color: var(--section-icon, var(--neutral-dark));
  flex-shrink: 0;
}

/* Quote Callout */
.callout-quote {
  padding: var(--space-6);
  border-left: 6px solid var(--earth);
  background: var(--dusty);
  font-size: 1.2rem;
  line-height: 1.7;
  font-style: italic;
}

.callout-quote .quote-author {
  margin-top: var(--space-3);
  font-weight: 600;
  font-style: normal;
  text-align: right;
}

/* Highlight Callout */
.callout-highlight {
  background: var(--parchment);
  border-left: 6px solid var(--earth);
  padding: var(--space-6);
  border-radius: var(--radius-md);
}

/* Themed Callouts */
.callout-earth {
  background: var(--earth);
  color: var(--white);
}

.callout-parchment {
  background: var(--parchment);
  color: var(--neutral-dark);
}

.callout-dark {
  background: #111;
  color: var(--white);
}

/* Callout Actions */
.callout-actions {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* =========================================================
9d. NAVBAR
========================================================= */

/* Wrapper */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--earth);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2) 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Inner Container */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Brand */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--white);
}

.navbar-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Desktop Nav */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar-nav a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  padding: var(--space-2) var(--space-1);
  transition: color 0.25s ease;
}

.navbar-nav a:hover {
  color: var(--highlight);
}

/* Active Link */
.navbar-nav .active {
  color: var(--highlight);
  border-bottom: 2px solid var(--highlight);
}

/* Mobile Toggle */
.navbar-toggle {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.navbar-toggle .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--white);
}

/* Mobile Menu */
@media (max-width: 900px) {

  .navbar-toggle {
    display: block !important;
  }

  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: #B15D59;
    padding: var(--space-4);
    gap: var(--space-3);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-nav a {
    color: var(--dusty) !important;
  }

  .navbar-nav .active {
    color: var(--dusty) !important;
    border-bottom: 2px solid var(--dusty) !important;
  }
}

/* =========================================================
9e. GLOBAL MODAL SYSTEM
========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

/* Desktop scrolling for Givebutter expansion */
#global-donate-modal .modal-donate {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--neutral-dark);
}

.modal-logo {
  width: 80px;
  display: block;
  margin: 0 auto 1rem auto;
}

.modal-header {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-body {
  text-align: center;
}

.modal-widget {
  margin-top: 1.5rem;
}

/* Compact modal variant */
.modal-compact {
  background: var(--white);
  border: 2px solid var(--earth);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 650px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: var(--space-3);
}

.modal p {
  margin-bottom: var(--space-3);
  line-height: 1.6;
}


/* ============================================
9f.   COMPONENT — ACCORDION (GLOBAL)
============================================ */

.component-accordion {
  display: grid;
  gap: var(--space-4);
}

.component-accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Trigger */
.component-accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-4);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  color: var(--neutral-dark);
}

.component-accordion-trigger:hover {
  background: var(--dusty);
}

/* Panel */
.component-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 var(--space-4);
}

.component-accordion-item.open .component-accordion-panel {
  padding: var(--space-4);
  max-height: 500px; /* safe, expandable */
}

/* ============================================
9g.   DONATE SPLIT LAYOUT (GLOBAL)
============================================ */
.donate-split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* Left Image Panel */
.donate-split-left {
  background-image: url('/images/sections/donate_tipi_leftpanel.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
}

/* Right Panel */
.donate-split-right {
  background: var(--dark-earth);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-8) var(--space-6);
}

/* Card */
.donate-split-card {
  background: var(--dusty);
  border: 4px solid var(--earth);
  border-radius: 12px;
  padding: var(--space-6);
  max-width: 550px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  text-align: center;
}

/* Logo */
.donate-split-logo {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto var(--space-4);
}

/* Mobile */
@media (max-width: 768px) {
  .donate-split-section {
    grid-template-columns: 1fr;
  }

  .donate-split-left {
    min-height: 300px;
  }

  .donate-split-right {
    padding: var(--space-6) var(--space-4);
  }
}

/* =========================================================
9h.   GLOBAL ANIMATION UTILITIES
========================================================= */

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.15s; }
.animate-delay-2 { transition-delay: 0.30s; }
.animate-delay-3 { transition-delay: 0.45s; }
.animate-delay-4 { transition-delay: 0.60s; }

/* =========================================================
9i. COMPONENT — FLYER SCROLLER
========================================================= */

/* Outer wrapper ensures masks + buttons position correctly */
.component-flyer-scroller {
    position: relative;
    overflow: hidden;
    padding: var(--space-2) 0;
}

/* Horizontal scroll row */
.component-flyer-track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
}

.component-flyer-track::-webkit-scrollbar {
    display: none;
}

/* Individual flyer cards */
.component-flyer-card {
    flex: 0 0 auto;
    width: 240px;
    scroll-snap-align: start;
    text-align: center;
    cursor: pointer;
}

.component-flyer-card img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2);
}

/* Title under each flyer */
.component-flyer-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

/* Fade masks */
.component-flyer-fade-left,
.component-flyer-fade-right {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.component-flyer-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.component-flyer-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

/* Scroll buttons */
.component-flyer-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--earth);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.25s ease;
}

.component-flyer-btn:hover {
    background: var(--warm-earth);
}

.component-flyer-btn.left { left: 10px; }
.component-flyer-btn.right { right: 10px; }

/* SVG icon inside buttons */
.component-flyer-btn svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
}

/* =========================================================
   9j. COMPONENT — INFO CARD (Societies + Education)
========================================================= */

.component-info-card {
    background: var(--dusty);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.component-info-card .info-icon {
    width: 64px;
    height: 64px;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}

.component-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.component-info-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.component-info-card a {
    margin-top: auto;
    font-weight: 600;
    color: var(--earth);
    text-decoration: underline;
}

/* Color modifiers */
.info-card--ocean .info-icon { color: var(--icon-ocean); }
.info-card--clay  .info-icon { color: var(--icon-clay); }
.info-card--sky   .info-icon { color: var(--icon-sky); }
.info-card--fall  .info-icon { color: var(--icon-fall); }
.info-card--sage  .info-icon { color: var(--icon-sage); }
.info-card--gold  .info-icon { color: var(--icon-gold); }

/* Grid for both sections */
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

/* ============================================================
9k.   GLOBAL DONATE MODAL
=============================================================== */

#global-donate-modal .modal-donate {
    background: var(--dusty);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-md);
    border: 4px solid var(--earth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 0;
}

/* Desktop scrolling for Givebutter expansion */
#global-donate-modal .modal-donate {
    max-height: 90vh;
    overflow-y: auto;
}

/* Header */
#global-donate-modal .donate-header {
    background: var(--earth);
    text-align: center;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

#global-donate-modal .donate-logo {
    height: 70px;
    margin-bottom: 0.5rem;
}

#global-donate-modal .donate-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

#global-donate-modal .donate-subtitle {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Widget container */
#global-donate-modal .donate-widget {
    padding: 1.75rem;
    display: flex;
    justify-content: center;
}


#global-donate-modal .modal-donate {
    background: var(--earth);
}

#global-donate-modal .donate-widget {
    background: var(--dusty);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #global-donate-modal .modal-donate {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* --- Mobile Modal Fixes (3.11.26) --- */

@media (max-width: 900px) {
  .donate-title {
    font-size: 1rem;
    margin-bottom: var(--space-1);
  }

  .donate-subtitle {
    display: none;
  }

  .donate-logo {
    display: none;
  }
}

/* ============================================================
9l.   COMMUNITY DONATE MODAL
=============================================================== */

#community-donate-modal .modal-donate {
    background: var(--dusty);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-md);
    border: 4px solid var(--earth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 0;
}

/* Desktop scrolling for Givebutter expansion */
#global-donate-modal .modal-donate {
    max-height: 90vh;
    overflow-y: auto;
}

/* Header */
#community-donate-modal .donate-header {
    background: var(--earth);
    text-align: center;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

#community-donate-modal .donate-logo {
    height: 70px;
    margin-bottom: 0.5rem;
}

#community-donate-modal .donate-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

#community-donate-modal .donate-subtitle {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Widget container */
#community-donate-modal .donate-widget {
    padding: 1.75rem;
    display: flex;
    justify-content: center;
    background: var(--dusty);
}

/* Override background for modal body */
#community-donate-modal .modal-donate {
    background: var(--earth);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #community-donate-modal .modal-donate {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* --- Mobile Modal Fixes (3.11.26) --- */
@media (max-width: 900px) {
    #community-donate-modal .donate-title {
        font-size: 1rem;
        margin-bottom: var(--space-1);
    }

    #community-donate-modal .donate-subtitle {
        display: none;
    }

    #community-donate-modal .donate-logo {
        display: none;
    }
}

/* =========================================================
10. HERO SYSTEM
========================================================= */

/* Base Hero */
.hero {
  position: relative;
  width: 100%;
  padding: var(--space-8) 0 var(--space-7);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  z-index: 0;
}

/* Hero Content Wrapper */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  max-width: 700px;
  color: var(--white);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Alignment Variants */
.hero-left {
  text-align: left;
  align-items: flex-start;
}

.hero-right {
  text-align: right;
  align-items: flex-end;
}

.hero-center {
  text-align: center;
  align-items: center;
}

/* Size Variants */
.hero-sm {
  padding: var(--space-6) 0 var(--space-5);
}

.hero-md {
  padding: var(--space-7) 0 var(--space-6);
}

.hero-lg {
  padding: var(--space-9, 6rem) 0 var(--space-8);
}

/* Background Image Layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .hero {
    padding: var(--space-9, 6rem) 0 var(--space-8);
  }
}

/* =========================================================
11. SECTION SYSTEM
========================================================= */

/* Base Section */
.section {
  position: relative;
  padding: var(--space-7) var(--space-4);
  background: var(--section-bg, transparent);
  color: var(--section-text, var(--text-default));
  display: flow-root;
}

.section .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Narrow and Wide Variants */
.section-narrow .container {
  max-width: 800px;
}

.section-wide .container {
  max-width: 1400px;
}

/* Section Title */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-align: center;
}

/* Section Subtitle */
.section-subtitle {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto var(--space-5);
  text-align: center;
  line-height: 1.6;
}

/* Section Grid */
.section-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 900px) {
    .section-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Split Layout */
.section-split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .section-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Image Left / Right Variants */
.section-image-left,
.section-image-right {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .section-image-left {
    grid-template-columns: 1fr 1fr;
  }
  .section-image-right {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
  }
  .section-image-right > * {
    direction: ltr;
  }
}

/* Image Block */
.section-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Callout Section */
.section-callout {
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--dusty);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* Section Color Themes */
.section-earth {
  --section-bg: var(--earth);
  --section-text: var(--white);
  --section-icon: var(--white);
}

.section-warm-earth {
  --section-bg: var(--warm-earth);
  --section-h2: var(--white);
  --section-text: var(--white);
  --section-icon: var(--earth);
}

.section-light-earth {
  --section-bg: var(--light-earth);
  --section-text: var(--neutral-dark);
  --section-icon: var(--neutral-dark);
}

.section-parchment {
  --section-bg: var(--parchment);
  --section-text: var(--neutral-dark);
  --section-icon: var(--neutral-dark);
}

.section-white {
  --section-bg: var(--white);
}

.section-dusty {
  --section-bg: var(--dusty);
}

.section-black {
  --section-bg: var(--black);
  --section-text: var(--white);
  --section-icon: var(--white);
}

/* Section Divider */
.section-divider {
  height: 2px;
  width: 80px;
  background: var(--section-accent, var(--earth));
  margin: var(--space-5) auto;
  border-radius: 2px;
}

/* =========================================================
12. PAGE-SPECIFIC OVERRIDES
========================================================= */

/* -------------------------------------
   Home Page — About Section
-------------------------------------- */

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#home-about .grid > div {
    display: flex;
    flex-direction: column;
}

/* -------------------------------------
   Home Page — About NHS Section
-------------------------------------- */

#home-about-nhs h2 {
  color: var(--earth);
}

#home-about-nhs .section-image,
#home-about-nhs .section-image img {
    box-shadow: none !important;
    filter: none !important;
}

#home-about-nhs .section-inner {
    gap: 3rem; /* matches home-about spacing */
}


#home-about-nhs .section-image {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* safety */
}

#home-about-nhs .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#home-about-nhs .section-inner {
    display: flex;
    align-items: center; /* vertically align image to text */
}

#home-about-nhs .section-image {
    display: flex;
    align-items: center;
}

#home-about-nhs .section-image img {
    height: 75%;          /* 3/4 of the container height */
    max-height: 450px;    /* safety cap so it never gets huge */
    width: auto;          /* preserve aspect ratio */
    object-fit: contain;  /* no cropping */
}

/* -------------------------------------
   Home Page — Mission & Values
-------------------------------------- */

#home-mission {
  background: var(--parchment);
  text-align: center;
}

#home-mission .row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  column-gap: var(--space-4) !important;
  row-gap: var(--space-4) !important;
}

#home-mission .value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

#home-mission .ponca-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}

#home-mission .value-honor .ponca-icon { stroke: var(--icon-clay) !important; }
#home-mission .value-responsibility .ponca-icon { stroke: var(--icon-sage) !important; }
#home-mission .value-courage .ponca-icon { stroke: var(--icon-fall) !important; }
#home-mission .value-tradition .ponca-icon { stroke: var(--icon-ocean) !important; }

@media (max-width: 900px) {
  #home-mission .row {
    grid-template-columns: 1fr !important;
  }
}

#home-mission .carousel,
#home-mission .carousel * {
  display: revert !important;
}

/* -------------------------------------
   Home Page — Impact
-------------------------------------- */
section#home-impact h2, h3 {
  color: var(--black) ;
  text-align: center;
}


#home-impact .impact-number {
  color: var(--earth) !important;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

#home-impact .support-list li,
#home-impact .looking-list li {
  padding-left: 0;
  text-align: left;
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  #home-impact .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 900px) {
  #home-impact .support-list,
  #home-impact .looking-list {
    padding-left: var(--space-4); /* or 1rem */
    margin-left: 0;
  }
}

/* -------------------------------------
   Home Page — Ceremony
-------------------------------------- */

#home-ceremony {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  padding-bottom: 40px;
}

#home-ceremony h2 {
  color: var(--white);
}

#home-ceremony .button {
  margin-top: 0;
}

#home-ceremony .carousel-wrapper {
  margin-bottom: 20px !important;
}

#home-ceremony p {
  margin-bottom: 20px !important;
}

/* -------------------------------------
   Committee Section
-------------------------------------- */

.portrait-oval {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 50% / 40%;
  object-fit: cover;
  overflow: hidden;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid var(--earth);
}

#home-leadership .ponca-icon {
  color: var(--earth);
  stroke: var(--earth);
}


/* -------------------------------------
   About NHS Page 
-------------------------------------- */
/* ABOUT NHS — Make hero images static */
#aboutnhs-hero,
#aboutnhs-paths,
#aboutnhs-gifts {
    background-attachment: scroll !important;
}

/* ABOUT NHS — Reduce image height by 75% */
.aboutnhs-img {
    max-height: 350px; /* or 300px, 400px, etc. */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* FIX GRID ROW STRETCHING ON ABOUT NHS PAGE */
#aboutnhs-origins .grid,
#aboutnhs-teachings .grid,
#aboutnhs-gifts .grid,
#aboutnhs-leaders .grid,
#aboutnhs-service .grid {
  align-items: start !important;
}

#aboutnhs-paths h2, 
#aboutnhs-gifts h2 {
  color: var(--white) !important;
}

@media (max-width: 900px) {
  .aboutnhs-img {
    max-height: 250px;
  }
}
/* -------------------------------------
   Ceremonial Page
-------------------------------------- */

.schedule-day-title {
  color: var(--earth);
}

.schedule-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.callout-earth-light {
  background: rgba(191, 63, 52, 0.08);
  border: 2px solid var(--earth);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  #ceremonial-schedule .callout-earth-light {
    margin-top: var(--space-7);
  }
}

.bring-expect-title,
.lodging-title {
  color: var(--earth);
}

section#ceremonial-bring-expect h4 {
  color: var(--black) ;
  text-align: center;
}

section#ceremonial-lodging h4 {
  color: var(--black) ;
  text-align: center;
}

.strip-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
}

@media (max-width: 600px) {
  .strip-img {
    height: 130px;
  }
}

/* -------------------------------------
   Community Page
-------------------------------------- */

.page-about .section-image img {
  /* reserved for legacy fixes */
}

#community-societies {
    background: var(--warm-earth);
}

#community-societies {
    color: var(--white);
}

#community-societies .section-title,
#community-societies .section-subtitle {
    color: var(--white);
}

#community-societies .component-info-card {
    color: var(--text-default);
}

@media (max-width: 480px) {
    .component-info-card .info-icon {
        width: 48px;
        height: 48px;
    }
}

#cultural-education {
    background: var(--parchment);
}


@media (max-width: 480px) {
    #gb-modal > div {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   FUNDRAISER PAGE — SUPPORT STYLES (FINAL)
============================================ */

#fundraiser-featured-raffle h2,
#fundraiser-featured-raffle h3,
#fundraiser-featured-raffle h4,
#fundraiser-featured-raffle h5,
#fundraiser-featured-raffle h6 {
    color: var(--earth);
}

/* ---------- MOBILE SUBHEADER ---------- */
.mobile-page-header {
  display: none;
  background: var(--dusty);
  padding: var(--space-4) 0;
}

.mobile-page-header .mobile-subheading {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--earth);
  margin: 0;
  text-align: center;
}

@media (max-width: 700px) {
  .mobile-page-header {
    display: block;
  }
}

/* ---------- SECTION SPLIT LAYOUT ---------- */
.section-split-flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: flex-start;
}

.section-split-flex > div {
  flex: 1 1 300px;
}

/* ---------- THREE-COLUMN LAYOUT ---------- */
.three-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

/* ---------- INFO CARDS ---------- */
.info-card {
  background: var(--parchment);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.info-card h5 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}

/* HOW IT WORKS card headers stay white */
#fundraiser-how-it-works .card-base h5 {
  color: var(--black);
}

/* HOW IT WORKS card headers stay white */
#fundraiser-how-it-works .card-base p {
  color: var(--black);
}

/* HOW IT WORKS section title stays white */
#fundraiser-how-it-works h2 {
  color: var(--white);
}

/* HOW IT WORKS icons */
#fundraiser-how-it-works .icon {
  color: var(--icon-fall);
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto var(--space-3);
}

/* ---------- SECTION LIST (ABOUT RAFFLES) ---------- */
.section-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.section-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-list .icon {
  flex-shrink: 0;
}

/* Match old icon sizing */
#fundraiser-about-raffles .section-list .icon {
  width: 18px;
  height: 18px;
}

/* ABOUT RAFFLES image height + crop */
#fundraiser-about-raffles .section-image img {
  height: 450px;
  object-fit: cover;
}

/* ABOUT RAFFLES heading color */
#fundraiser-about-raffles h2 {
  color: var(--earth);
}

section#fundraiser-featured-raffle h3 {
  color: var(--black) ;
  text-align: center;
}


/* ---------- BUTTON ICONS ---------- */
#fundraiser-featured-raffle .button .icon {
  color: var(--white);
}

/* Inline icon spacing utility */
.icon-inline {
  margin-right: var(--space-2);
  vertical-align: middle;
}

/* ---------- MOBILE LAYOUT — FEATURED RAFFLE ---------- */
@media (max-width: 900px) {
  #fundraiser-featured-raffle .section-split-flex {
    display: grid;
  }

  /* Flatten first column so image + button reorder cleanly */
  #fundraiser-featured-raffle .section-split-flex > div:nth-child(1) {
    display: contents;
  }

  #fundraiser-featured-raffle .section-image {
    order: 1;
  }

  #fundraiser-featured-raffle .section-split-flex > div:nth-child(2) {
    order: 2;
  }

  #fundraiser-featured-raffle .section-split-flex .text-center {
    order: 3;
    margin-top: var(--space-5);
    grid-column: 1 / -1;
  }
}

/* -------------------------------------
Donate Page
-------------------------------------- */
#donate-why-support img {
    width: 100%;
    height: auto;              /* prevents stretching */
    max-width: 500px; /* adjust until it visually matches the text height */
    max-height: 600px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
}

#donate-why-support .grid-2 > div:first-child {
    align-self: start;
}

@media (max-width: 900px) {
    #donate-why-support .grid-2 {
        grid-template-columns: 1fr !important;
    }

    #donate-why-support img {
        height: auto !important;
    }
}

.page-donate .card {
  /* reserved for legacy fixes */
}


/* Center the Givebutter widget inside the donate card */
.donate-split-widget {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make the widget behave like a block element */
.donate-split-widget givebutter-widget {
    display: block;
    margin: 0 auto;
}



/* =========================================
   DONATE — COMMUNITY CARE
========================================= */

/* Entire section uses dusty background to remove white borders */
#donate-community-care {
  background: var(--dusty);
}

/* Dusty Bands */
.ccare-band {
  width: 100%;
  padding: var(--space-6) 0;
}

#donate-community-care .ccare-body {
  overflow-x: hidden;
}

/* Header inside top band */
.ccare-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

#donate-community-care .section-subtitle {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Patterned Body (full width) */
.ccare-body {
  background: url("/images/sections/donate_community_diamonds_bg.jpg") repeat;
  background-size: 300px auto;
  padding: var(--space-7) 0 var(--space-8);
  box-shadow:
    inset 0 12px 18px rgba(0,0,0,0.18),
    inset 0 -12px 18px rgba(0,0,0,0.18);
}

/* Inner content wrapper (no container padding) */
.ccare-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0; /* ensures pattern hits full width */
}

/* Earth border on cards */
#donate-community-care .card {
  border: 2px solid var(--earth);
  border-radius: var(--radius-lg);
}

/* =========================================
   DONATE — STEWARDSHIP (Final Clean Version)
========================================= */

/* Section background */
#donate-stewardship {
  background: var(--dusty);
}

/* Hero system */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

.hero-steady {
  min-height: 35vh; /* tuned for correct crop */
}

.hero-stewardship {
  background-image: url("/images/sections/donate_stewardship_bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%; /* tuned sweet spot */
}

/* Body spacing */
#donate-stewardship .section-body {
  padding: var(--space-7) 0 var(--space-8);
}

/* Header color */
#donate-stewardship .section-title {
  color: var(--white);
}

/* Intro paragraphs */
#donate-stewardship .section-intro {
  margin-bottom: var(--space-6);
}

/* Stewardship list container — centered block, left-aligned text */
#donate-stewardship .stewardship-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) auto;
  text-align: left !important; /* overrides parent text-center */
  max-width: 400px; /* ensures alignment under header */
}

/* List items — icon + text inline */
.stewardship-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 1.15rem;
}

/* Icon styling */
.stewardship-list .icon {
  color: var(--icon-sage);
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.25));
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-stewardship {
    min-height: 220px;
  }
}

/* =========================================
   DONATE — MESSAGE FROM HEADMAN
========================================= */

#donate-headman-message {
  position: relative;
  min-height: 60vh; /* or whatever height you want */
  overflow: hidden;
  background: var(--dusty); /* fallback */
}

/* Background image */
#donate-headman-message .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/images/sections/donate_headman_message_bg.png");
  background-size: cover;
  background-position: center 55%;
  z-index: 1;
}

/* Optional overlay */
#donate-headman-message .bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 2;
}

/* Content */
#donate-headman-message .content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-9);
}

#donate-headman-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh; /* or whatever height you want */
  position: relative;
  overflow: hidden;
}

/* Title */
#donate-headman-message .title {
  margin-bottom: var(--space-6);
  color: var(--white);
}

/* Message paragraphs */
#donate-headman-message .headman-message {
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: var(--space-5);
  font-style: italic;
}

/* Signature block */
#donate-headman-message .headman-signature {
  margin-top: var(--space-6);
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.6;
}

#donate-headman-message .content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4);
}

/* --- Donate - FAQ --- */

/* FAQ icon stroke color */
.component-faq-icon .ponca-icon {
  stroke: currentColor;
  fill: none;
}

/* Left-align icon + text */
.component-accordion-trigger {
  justify-content: flex-start;
  text-align: left;
}

/* Ensure FAQ items are left-aligned */
#donate-faq .component-accordion {
  text-align: left;
}

@media (max-width: 600px) {
  .component-accordion-trigger {
    padding: var(--space-3) var(--space-4);
  }
}

/* =========================================================
13. FOOTER
========================================================= */

.footer {
  background: var(--earth);
  color: var(--white);
  padding: var(--space-4) 0;
  margin-top: 0; /* remove gap that caused white band */
  border-top: 1px solid var(--earth);
}

/* Grid */
.footer .container {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .footer .container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Typography */
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 var(--space-1) 0;
  color: var(--white);
}

.footer-text,
.footer-link {
  font-size: 0.75rem;
  color: var(--white);
  text-decoration: none;
  line-height: 1.3;
}

.footer-link:hover {
  opacity: 0.75;
}

/* Social */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
  justify-content: flex-end;
}

.footer-icon-svg {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  filter: brightness(0) invert(1);
}

/* Bottom */
.footer-bottom-compact {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.7rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Mobile Footer Fixes */
@media (max-width: 900px) {

  .footer {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .footer .container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .footer-col {
    text-align: center !important;
    align-items: center;
  }

  .footer-social {
    justify-content: center !important;
  }

  .footer-col + .footer-col {
    margin-top: var(--space-4);
  }

  .footer-bottom-compact {
    margin-top: var(--space-5);
  }
}

@media (max-width: 900px) {
  footer {
    padding: var(--space-4) 0 !important; /* smaller vertical spacing */
  }

  footer .footer-grid {
    row-gap: var(--space-3) !important; /* tighter spacing between rows */
  }

  footer p,
  footer li,
  footer a {
    font-size: 0.9rem !important; /* optional: slightly smaller text */
  }
}
