/* =========================================
   MASSB FOUNDATION — Global Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

/* --- RESET & ROOT --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
--black:      #0a0a0a;
--yellow:     #F1D340;
--yellow-dk:  #d9bb2a;
--red:        #C8362C;
--red-lt:     #e04035;
--cream:      #FFFAE5;
--cream-dk:   #F5EFD0;
--offwhite:   #FAFAF7;
--gray-lt:    #F0EFE9;
--gray-md:    #D4D0C4;
--gray-text:  #6B6860;
--text:       #1a1a18;
--text-light: #5a5a55;

--serif:      'Source Serif 4', "Source Serif 4", serif;
--sans:       'DM Sans', system-ui, sans-serif;

--shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
--shadow-md: 0 4px 16px rgba(0,0,0,0.10);
--shadow-lg: 0 12px 40px rgba(0,0,0,0.13);

--max-w: 1200px;
--nav-h: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }

/* =========================================
   NAVIGATION
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,250,229,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dk);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.01em;
}

.nav-logo-tag {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--gray-text);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-links a,
.nav-dropdown > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-dropdown > a:hover {
  background: var(--cream-dk);
  color: var(--black);
}

.nav-links a.active {
  color: var(--red);
  font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--gray-md);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 300;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  border-radius: 0;
  transition: background 0.15s;
}

.dropdown-menu a:hover {
  background: var(--gray-lt);
}

/* Donate button */
.btn-donate {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  border: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-donate:hover {
  background: var(--yellow-dk);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--black);
  padding: 0.25rem;
}

/* =========================================
   HERO — STANDARD
   ========================================= */

.page-hero {
  background: var(--black);
  color: #fff;
  padding: 5rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(241,211,64,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(200,54,44,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.page-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  line-height: 1.7;
}

/* =========================================
   HERO — HOME (with image)
   ========================================= */

.home-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/herobanner.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.38;
  transform: scale(1.03);
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.55) 55%,
    rgba(10,10,10,0.25) 100%
  );
}

.home-hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
}

.home-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.home-hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.home-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--yellow);
}

.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.home-hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.home-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  transition: all 0.22s ease;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--yellow-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241,211,64,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,54,44,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn-ghost:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================
   SECTIONS
   ========================================= */

.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-alt {
  background: var(--cream);
}

.section-dark {
  background: var(--black);
  color: #fff;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--red);
}

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 1rem;
}

.section-dark h2.section-title { color: #fff; }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.section-dark .section-lead { color: rgba(255,255,255,0.7); }

/* =========================================
   CARDS
   ========================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-md);
  transition: box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-body {
  padding: 1.75rem;
}

.card-accent-bar {
  height: 4px;
  background: var(--yellow);
}

.card-accent-bar.red   { background: var(--red); }
.card-accent-bar.black { background: var(--black); }

.card-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card-body p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 1.1rem;
  transition: gap 0.2s;
}

.card-link:hover { gap: 0.5rem; }

/* =========================================
   STAT BLOCKS
   ========================================= */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--gray-md);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.stat-block {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--gray-md);
}

.stat-block:last-child { border-right: none; }

.stat-number {
  font-family: var(--sans);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number.yellow { color: var(--yellow-dk); }
.stat-number.red    { color: var(--red); }
.stat-number.black  { color: var(--black); }

.stat-label {
  font-size: 0.88rem;
  color: var(--gray-text);
  font-weight: 500;
  max-width: 160px;
  margin: 0 auto;
  line-height: 1.5;
}

/* =========================================
   TEAM CARDS
   ========================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.team-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--gray-md);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.team-card-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-lt);
  margin: 1.75rem auto 0;
  display: block;
  border: 3px solid var(--cream-dk);
}

.team-card-body {
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
}

.team-card-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.2rem;
}

.team-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.team-card-bio {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* =========================================
   NEWSLETTER BLOCK
   ========================================= */

.newsletter-block {
  background: linear-gradient(135deg, #fff8d6 0%, #fff3c0 100%);
  border: 1px solid var(--cream-dk);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.newsletter-block h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.newsletter-block p {
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.newsletter-edition {
  font-weight: 600;
  color: var(--red);
}

.newsletter-embed {
  max-width: 860px;
  margin: 2rem auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.newsletter-embed iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  display: block;
}

/* =========================================
   CONFERENCE CARDS
   ========================================= */

.conf-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--gray-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}

.conf-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.conf-card-header {
  padding: 2rem;
  background: var(--black);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.conf-card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 80px;
  height: 80px;
  background: var(--yellow);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}

.conf-card-year {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 0.25rem;
}

.conf-card-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.conf-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.conf-card-body p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* =========================================
   LOCAL BOARDS
   ========================================= */

.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.board-item {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--gray-md);
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.board-item.linked {
  color: var(--red);
  border-color: rgba(200,54,44,0.25);
}

.board-item.linked:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.board-item.no-board {
  color: var(--gray-md);
  background: var(--gray-lt);
  border-color: var(--gray-lt);
  cursor: default;
  font-style: italic;
}

.board-item .board-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* =========================================
   IMPACT AWARD CARDS
   ========================================= */

.award-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--gray-md);
  border-top: 4px solid var(--yellow);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.award-card.second { border-top-color: var(--gray-md); }
.award-card.third  { border-top-color: #c8a84b; }

.award-place {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 0.5rem;
}

.award-amount {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow-dk);
  margin-bottom: 0.25rem;
}

.award-card.second .award-amount { color: var(--gray-text); }

.award-county {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.award-title {
  font-size: 0.85rem;
  color: var(--red);
  font-style: italic;
  margin-bottom: 1rem;
}

.award-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =========================================
   INFO BOX
   ========================================= */

.info-box {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--gray-md);
  border-left: 4px solid var(--yellow);
  padding: 1.75rem 2rem;
}

.info-box.red { border-left-color: var(--red); }

.info-box h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-box p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =========================================
   DONATION MODAL
   ========================================= */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--gray-lt);
}

.modal-header h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.35rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--gray-lt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}

.modal-close:hover { background: var(--gray-md); }

.modal-body {
  padding: 1.75rem 2rem 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-md);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--yellow-dk);
  box-shadow: 0 0 0 3px rgba(241,211,64,0.15);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.amount-btn {
  padding: 0.65rem;
  border: 1.5px solid var(--gray-md);
  border-radius: 6px;
  background: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--yellow-dk);
  background: var(--yellow);
  color: var(--black);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--yellow-dk);
}

.paypal-redirect-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-top: 0.75rem;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.85);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1rem;
}

.footer-brand address {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
  transition: color 0.18s;
}

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

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  transition: color 0.18s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* =========================================
   PORTAL / LOGIN
   ========================================= */

.portal-gate {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 3rem 1.5rem;
}

.portal-box {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--gray-md);
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
}

.portal-header {
  background: var(--black);
  padding: 2.25rem 2.25rem 2rem;
  text-align: center;
}

.portal-header img {
  height: 44px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.portal-header h1 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.portal-header p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.portal-body {
  padding: 2.25rem;
}

.portal-body .form-group label {
  font-size: 0.82rem;
}

.portal-msg {
  padding: 0.85rem 1rem;
  border-radius: 7px;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: none;
}

.portal-msg.success {
  background: #e8f9ef;
  border: 1px solid #a3d9b8;
  color: #1a6b3e;
  display: block;
}

.portal-msg.error {
  background: #fde8e7;
  border: 1px solid #f0a9a5;
  color: #8b1a17;
  display: block;
}

.portal-divider {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-text);
  margin: 1.25rem 0;
  position: relative;
}

.portal-divider::before,
.portal-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--gray-md);
}

.portal-divider::before { left: 0; }
.portal-divider::after  { right: 0; }

/* =========================================
   MEMBER PORTAL DASHBOARD
   ========================================= */

.portal-page {
  min-height: calc(100vh - var(--nav-h));
  background: var(--cream);
  padding: 3rem 2rem;
}

.portal-dash-inner {
  max-width: 960px;
  margin: 0 auto;
}

.portal-welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.portal-welcome-bar h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
}

.portal-welcome-bar p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--gray-md);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doc-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.doc-info h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.doc-info p {
  font-size: 0.8rem;
  color: var(--gray-text);
}

.portal-section-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-md);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .btn-donate { display: none; }

  .newsletter-embed { display: none !important; }
  .newsletter-mobile-note { display: block !important; }

  [style*="grid-template-columns: 1fr 1fr"] {
  grid-template-columns: 1fr !important;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--nav-h));
  background: var(--cream);
  padding: 1.5rem;
  gap: 0;
  overflow-y: auto;
  z-index: 190;
  -webkit-overflow-scrolling: touch;
}

.nav-links.open li a,
.nav-links.open .nav-dropdown > a {
  padding: 0.9rem 0.75rem;
  font-size: 0.98rem;
  font-weight: 500;
  border-bottom: 1px solid var(--cream-dk);
  border-radius: 0;
  display: block;
  width: 100%;
}

.nav-links.open .dropdown-menu {
  background: var(--gray-lt);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
}

.nav-links.open .dropdown-menu a {
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  border-bottom: none;
}

.nav-links.open .btn-donate {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 1.25rem;
  border-radius: 6px;
}

.nav-links.open .nav-dropdown .dropdown-menu {
  display: none;
}

.nav-links.open .nav-dropdown.open .dropdown-menu {
  display: block;
}

  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--gray-md); }
  .stat-block:last-child { border-bottom: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }

  .amount-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 3.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .home-hero-inner { padding: 4rem 1.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
