﻿/* ============================================================
   HEED FINLAND – Main Stylesheet
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
/* Palette derived from HEED Finland logo:
   Royal Blue (#1B3FA0) from "HEED FINLAND" wordmark (primary)
   Red (#D42B2B) from heart icon (secondary – donate CTAs only)
   Deep Navy (#0F172A) for dark sections & text
   Cream tints for backgrounds                                    */
:root {
  --primary:        #1B3FA0;
  --primary-dark:   #132D7E;
  --primary-light:  #EEF2FF;
  --secondary:      #D42B2B;
  --secondary-dark: #B01E1E;
  --accent:         #F59E0B;
  --dark:           #0F172A;
  --text:           #1E293B;
  --text-mid:       #475569;
  --text-light:     #94A3B8;
  --border:         #E2E8F0;
  --light:          #F8FAFC;
  --white:          #FFFFFF;
  --success:        #16A34A;
  --error:          #DC2626;
  --nav-h:          72px;
  --shadow-sm:      0 2px 8px rgba(0,0,0,.07);
  --shadow-md:      0 4px 20px rgba(0,0,0,.11);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.15);
  --radius:         12px;
  --radius-sm:      6px;
  --transition:     0.3s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-mid); line-height: 1.8; }

/* ── Utilities ──────────────────────────────────────────────── */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section          { padding: 80px 0; }
.section-sm       { padding: 48px 0; }
.section-label    { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-title    { margin-bottom: 16px; }
.section-subtitle { color: var(--text-mid); font-size: 1.05rem; max-width: 600px; }
.text-center      { text-align: center; }
.text-white       { color: var(--white) !important; }
.bg-light         { background: var(--light); }
.bg-dark          { background: var(--dark); }
.bg-primary       { background: var(--primary); }
.grid-2           { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3           { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4           { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-stats-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flex             { display: flex; }
.flex-center      { display: flex; align-items: center; justify-content: center; }
.gap-2            { gap: 16px; }
.gap-3            { gap: 24px; }
.mt-2             { margin-top: 16px; }
.mt-3             { margin-top: 24px; }
.mt-4             { margin-top: 32px; }
.mb-3             { margin-bottom: 24px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline   { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-white    { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--light); }
.btn-dark-blue { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-dark-blue:hover { background: var(--white); color: var(--primary); }
.btn-lg       { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm       { padding: 8px 20px; font-size: .85rem; }

/* ── Badge / Tag ────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 600; background: var(--primary-light); color: var(--primary);
}
.badge-orange { background: #fff3ee; color: var(--secondary); }
.badge-yellow { background: #fffbeb; color: #b45309; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-brand a { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 38px; height: 38px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--dark); line-height: 1; }
.brand-sub  { font-size: .68rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }

.nav-menu {
  display: flex; align-items: center; gap: 4px; flex: 1;
  margin-left: 16px;
}
.nav-menu > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--primary);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active   { color: var(--secondary); background: rgba(212, 43, 43, .08); }
.nav-link .chevron { font-size: .7rem; transition: transform var(--transition); display: inline-block; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all var(--transition);
  padding: 8px;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open  .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .chevron,
.has-dropdown.open  .chevron  { transform: rotate(180deg); }
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover  { background: var(--primary-light); color: var(--primary); }
.dropdown li a i      { width: 18px; color: var(--primary); font-size: .85rem; }
.dropdown-divider     { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Hide ALL Google Translate UI elements */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-gadget,
.goog-tooltip,
.goog-tooltip-card,
#goog-gt-tt,
.goog-te-menu-value:hover,
.goog-te-spinner,
iframe.skiptranslate { display: none !important; }
body { top: 0 !important; min-height: 100%; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
iframe.goog-te-menu-frame { display: none !important; }

/* Language toggle — side by side, desktop only */
.lang-toggle {
  display: flex; flex-direction: row;
  border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden; gap: 0;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .lang-toggle { display: none; }
}

/* Language toggle — mobile only, sits beside the hamburger */
.lang-toggle-mobile { display: none; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  padding: 2px 8px; font-size: .7rem; font-weight: 600;
  color: var(--text-mid); font-family: inherit; line-height: 1.4;
  transition: all var(--transition);
}
.lang-btn:first-child { border-right: 1px solid var(--border); }
.lang-btn:hover  { color: var(--primary); background: var(--primary-light); }
.lang-btn.active { background: var(--primary); color: white; }
.nav-donate {
  background: var(--secondary); color: var(--white);
  padding: 9px 22px; border-radius: 50px; font-weight: 600; font-size: .875rem;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-donate:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.nav-appt {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 7px 18px; border-radius: 50px; font-weight: 600; font-size: .875rem;
  transition: all var(--transition); white-space: nowrap;
}
.nav-appt:hover { background: var(--primary); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Page body offset for fixed nav */
body { padding-top: var(--nav-h); }

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 80px 0 60px; text-align: center; color: white;
}
.page-hero h1  { color: white; margin-bottom: 12px; }
.page-hero p   { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.breadcrumb    { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; margin-top: 20px; color: rgba(255,255,255,.6); }
.breadcrumb a  { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: white; }

/* ── Home Hero ──────────────────────────────────────────────── */
/* TO REPLACE THE BACKGROUND IMAGE:
   Change the url() below to your own image path, e.g. url('/images/hero.jpg') */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background:
    linear-gradient(135deg, rgba(15,23,42,.72) 0%, rgba(27,63,160,.55) 100%),
    url('/images/hero-bg2.jpg')
    center center / cover no-repeat;
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::before { display: none; }
.hero-content { position: relative; z-index: 1; padding: 60px 0; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 50px; padding: 6px 18px; font-size: .8rem; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 24px; max-width: 100%; flex-wrap: wrap; backdrop-filter: blur(4px); }
.hero h1 { color: #ffffff; font-size: clamp(1.9rem, 5.5vw, 4rem); margin-bottom: 24px; }
.hero h1 span { color: #93c5fd; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 100%; margin-bottom: 40px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; }
.hero-stat-item { text-align: left; }
.hero-stat-item .stat-num { font-size: 2rem; font-weight: 800; color: #ffffff; line-height: 1; }
.hero-stat-item .stat-label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.hero-visual { position: relative; }

/* ── Hero Events Panel ──────────────────────────────────────── */
.hero-inner { display: grid; grid-template-columns: 1fr 390px; gap: 48px; align-items: center; padding: 60px 0; min-width: 0; }
.hero-events {
  background: #FFFFFF; border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; box-shadow: 0 8px 32px rgba(27,63,160,.08);
}
.hero-events-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.hero-events-header h3 { color: var(--dark); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.hero-events-header a  { color: var(--text-light); font-size: .8rem; display: flex; align-items: center; gap: 5px; transition: color var(--transition); }
.hero-events-header a:hover { color: var(--primary); }
.hero-event-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--light); border-radius: 12px; padding: 13px 14px;
  margin-bottom: 10px; transition: background var(--transition); cursor: pointer;
}
.hero-event-card:last-of-type { margin-bottom: 0; }
.hero-event-card:hover { background: var(--primary-light); }
.hero-event-date {
  min-width: 50px; text-align: center; background: var(--primary);
  border-radius: 10px; padding: 8px 6px; flex-shrink: 0;
}
.hero-event-date .day   { font-size: 1.35rem; font-weight: 800; color: white; line-height: 1; }
.hero-event-date .month { font-size: .62rem; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.hero-event-info { flex: 1; min-width: 0; }
.hero-event-info h4 { color: var(--dark); font-size: .85rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-event-info .event-loc { color: var(--text-light); font-size: .75rem; display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero-event-info .event-loc i { flex-shrink: 0; }
.hero-event-reg {
  color: var(--primary); font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: 5px 11px; border: 1px solid rgba(27,63,160,.3); border-radius: 50px;
  transition: all var(--transition); flex-shrink: 0;
  background: none; cursor: pointer; font-family: inherit;
}
.hero-event-reg:hover { background: var(--primary); color: white; }
.hero-events-footer { margin-top: 14px; }
.hero-events-footer .btn { width: 100%; justify-content: center; font-size: .85rem; }

/* ── Facebook feed (compact, hero events panel) ──────────────── */
.fb-feed { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.fb-feed-header {
  display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700;
  color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px;
}
.fb-feed-header i { color: #1877F2; font-size: 1rem; }
.fb-post-mini {
  display: flex; align-items: center; gap: 12px;
  background: var(--light); border-radius: 12px; padding: 10px;
  margin-bottom: 8px; text-decoration: none; color: inherit;
  transition: background var(--transition);
}
.fb-post-mini:last-child { margin-bottom: 0; }
.fb-post-mini:hover { background: var(--primary-light); }
.fb-post-mini img {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.fb-post-mini .fb-icon-placeholder {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  background: var(--primary-light); color: #1877F2;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.fb-post-mini-body { min-width: 0; }
.fb-post-mini-body p {
  font-size: .8rem; color: var(--dark); line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fb-post-mini-body .fb-post-date { font-size: .7rem; color: var(--text-light); margin-top: 4px; display: inline-block; }

/* ── Facebook feed (card grid, Events page) ──────────────────── */
.fb-post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.fb-post-card .card-img {
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
}
.fb-post-card .card-img i { font-size: 2.4rem; color: #1877F2; opacity: .5; }
.fb-post-card .card-body p {
  font-size: .9rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* Nav logo image — wide landscape format for HEED Finland logo */
.nav-logo-img  { height: 44px; width: auto; max-width: 160px; object-fit: contain; display: block; }
/* Footer logo — original colors */
.footer-logo-img { height: 48px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.hero-img-wrapper {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1B3FA0 0%, #0F172A 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-float {
  position: absolute; bottom: -20px; left: -30px;
  background: white; border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-lg); min-width: 200px;
}
.hero-card-float .card-icon { font-size: 1.5rem; margin-bottom: 4px; }
.hero-card-float strong { display: block; font-size: 1.4rem; color: var(--primary); }
.hero-card-float span   { font-size: .8rem; color: var(--text-mid); }

/* ── Impact Stats Bar ───────────────────────────────────────── */
.stats-bar { background: var(--primary); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; text-align: center; max-width: 1100px; margin: 0 auto; }
/* Hide any <font> elements Google Translate injects as direct grid children */
.stats-grid > font { display: none !important; }
.stat-item { color: white; display: flex; flex-direction: column; align-items: stretch; text-align: center; min-width: 0; }
.stat-item .stat-num  { font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 800; line-height: 1; text-align: center; }
.stat-item .stat-label{ font-size: .7rem; color: rgba(255,255,255,.75); margin-top: 6px; text-align: center; word-break: break-word; }
.stat-item .stat-icon { font-size: 1.3rem; margin-bottom: 6px; opacity: .8; text-align: center; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img    { aspect-ratio: 16/10; overflow: hidden; }
.card-img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body   { padding: 24px; }
.card-meta   { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-date, .card-read { font-size: .8rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.card-title  { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); line-height: 1.35; }
.card-title a:hover { color: var(--primary); }
.card-excerpt{ font-size: .9rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.card-author { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-mid); }
.card-link   { font-size: .875rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.card-link:hover { gap: 8px; }

/* Program card */
.program-card { text-align: center; padding: 40px 28px; }
.program-icon {
  width: 72px; height: 72px; border-radius: 20px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  font-size: 1.8rem; color: var(--primary); transition: background var(--transition);
}
.card:hover .program-icon { background: var(--primary); color: white; }
.program-card h3 { margin-bottom: 12px; }
.program-card p  { font-size: .9rem; }

/* Event card */
.event-card { display: flex; gap: 0; overflow: hidden; }
.event-date-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 80px; background: var(--primary); color: white; padding: 20px 16px;
}
.event-date-block .day   { font-size: 2rem; font-weight: 800; line-height: 1; }
.event-date-block .month { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.event-info  { padding: 20px 24px; flex: 1; }
.event-info h4 { margin-bottom: 6px; }
.event-meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.event-meta-item { font-size: .78rem; color: var(--text-mid); display: flex; align-items: center; gap: 5px; }

/* Team card */
.team-card { text-align: center; padding: 32px 20px; }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--primary-light); overflow: hidden; border: 3px solid var(--border);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin-bottom: 4px; }
.team-card .role { font-size: .85rem; color: var(--primary); font-weight: 500; }
.team-card .bio  { font-size: .85rem; margin-top: 10px; }
.team-social { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.team-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--text-mid); transition: all var(--transition); }
.team-social a:hover { background: var(--primary); color: white; }

/* Team card with a full photo + info footer */
.team-card-photo { padding: 0; }
.team-card-photo .team-photo { width: 100%; height: 200px; }
.team-card-photo .team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.team-card-photo .team-info { padding: 18px 20px 24px; }
.team-card-photo .team-info h4 { margin-bottom: 4px; }
.team-card-photo .email { font-size: .8rem; color: var(--text-mid); margin-top: 6px; word-break: break-all; }
.team-card-photo .email a { color: inherit; text-decoration: none; }
.team-card-photo .email a:hover { color: var(--primary); }

/* ── Section Layouts ────────────────────────────────────────── */
.section-header { margin-bottom: 48px; }
.stories-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* Featured story */
.featured-story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.featured-story-img { aspect-ratio: 1/1; overflow: hidden; }
.featured-story-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-story-content { padding: 48px; background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.featured-story-content .section-label { margin-bottom: 16px; }
.featured-story-content h2 { margin-bottom: 16px; }
.featured-story-content p  { margin-bottom: 28px; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 80px 0; text-align: center; }
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Involve cards */
.involve-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.involve-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  text-align: center; box-shadow: var(--shadow-sm); border-top: 4px solid transparent;
  transition: all var(--transition);
}
.involve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.involve-card.green  { border-color: var(--primary); }
.involve-card.orange { border-color: var(--secondary); }
.involve-card.yellow { border-color: var(--accent); }
.involve-icon { font-size: 2.8rem; margin-bottom: 16px; }
.involve-card h3 { margin-bottom: 12px; }
.involve-card p  { font-size: .9rem; margin-bottom: 24px; }

/* Testimonial */
.testimonial-section { background: var(--light); padding: 80px 0; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow-sm); position: relative;
}
.testimonial-card::before { content: '\201C'; font-size: 5rem; color: var(--primary-light); position: absolute; top: -10px; left: 24px; line-height: 1; font-family: Georgia, serif; }
.testimonial-text { font-size: 1.05rem; color: var(--text); font-style: italic; margin-bottom: 24px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.t-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-light); }
.t-name   { font-weight: 700; color: var(--dark); }
.t-role   { font-size: .82rem; color: var(--text-light); }
.stars    { color: var(--accent); font-size: .9rem; margin-bottom: 16px; }

/* Partners */
.partners-section { padding: 60px 0; }

.partners-carousel {
  overflow: hidden;
  position: relative;
  margin-top: 36px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: scroll-partners 11.2s linear infinite;
}

.partners-track:hover { animation-play-state: paused; }

@keyframes scroll-partners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  flex-shrink: 0;
  padding: 14px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  height: 88px; width: 180px;
}
.partner-logo img {
  max-width: 140px; max-height: 55px;
  width: auto; height: auto;
  object-fit: contain;
  transition: all var(--transition);
}
.partner-logo:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

/* Newsletter */
.newsletter-section { background: var(--dark); padding: 60px 0; }
.newsletter-inner { display: flex; align-items: center; gap: 48px; }
.newsletter-text h3 { color: white; margin-bottom: 8px; }
.newsletter-text p  { color: rgba(255,255,255,.65); }
.newsletter-form    { flex: 1; display: flex; gap: 12px; }
.newsletter-form input {
  flex: 1; padding: 14px 20px; border-radius: 50px; border: none;
  background: rgba(255,255,255,.1); color: white; font-size: .9rem;
  outline: none; border: 1px solid rgba(255,255,255,.15);
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: var(--primary-light); }
.newsletter-form .btn { flex-shrink: 0; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-section { padding: 80px 0; }
.form-wrapper {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 48px; max-width: 760px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 7px; color: var(--dark); }
.form-group label span.req { color: var(--secondary); }
.form-control {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; color: var(--text);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,63,160,.12); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--primary); cursor: pointer; }
.form-check label { font-size: .875rem; color: var(--text-mid); cursor: pointer; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-submit { margin-top: 10px; }
.form-note { font-size: .8rem; color: var(--text-light); margin-top: 12px; }

/* Alert */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem;
  margin-bottom: 20px; display: none; align-items: center; gap: 10px;
}
.alert.show { display: flex; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Donate Page ────────────────────────────────────────────── */
.donate-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.donate-main { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px; }
.donate-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.donate-sidebar-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.sidebar-img { aspect-ratio: 3/2; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; }
.sidebar-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-body { padding: 24px; }
.sidebar-body h4 { margin-bottom: 8px; }
.sidebar-body p  { font-size: .875rem; margin-bottom: 16px; }
.impact-list li { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-mid); padding: 6px 0; border-bottom: 1px solid var(--border); }
.impact-list li:last-child { border: none; }
.impact-list li i { color: var(--primary); width: 16px; flex-shrink: 0; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.amount-btn {
  padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer; font-weight: 600; font-size: 1rem;
  color: var(--text); transition: all var(--transition); text-align: center;
}
.amount-btn:hover, .amount-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.frequency-tabs { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 24px; }
.freq-btn {
  flex: 1; padding: 10px; background: none; border: none; cursor: pointer;
  font-weight: 600; font-size: .875rem; color: var(--text-mid); transition: all var(--transition);
}
.freq-btn.active { background: var(--primary); color: white; }

/* ── About Page Specifics ───────────────────────────────────── */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-intro-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-intro-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h4 { margin-bottom: 8px; }
.value-card p  { font-size: .875rem; }
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid white; box-shadow: 0 0 0 2px var(--primary); }
.timeline-year { font-size: .8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.timeline-item h4 { margin: 4px 0 6px; }
.timeline-item p  { font-size: .875rem; }

/* ── Services ───────────────────────────────────────────────── */
.services-hero-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 28px;
}
.service-detail { padding: 40px; background: var(--white); }
.service-detail h3 { margin-bottom: 12px; }
.service-detail p  { margin-bottom: 20px; }
.service-detail ul { list-style: none; }
.service-detail ul li { padding: 6px 0; font-size: .9rem; color: var(--text-mid); display: flex; align-items: center; gap: 8px; }
.service-detail ul li::before { content: '✓'; color: var(--primary); font-weight: 700; }
.service-img { background: var(--primary-light); overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 340px 1fr; gap: 48px; }
.contact-info-card { background: var(--primary); border-radius: var(--radius); padding: 40px; color: white; }
.contact-info-card h3 { color: white; margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: .9rem; }
.contact-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.12); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-item-text strong { display: block; color: white; font-size: .875rem; margin-bottom: 2px; }
.contact-item-text span   { color: rgba(255,255,255,.7); font-size: .85rem; }
.contact-social { display: flex; gap: 10px; margin-top: 32px; }
.contact-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: white; transition: background var(--transition); }
.contact-social a:hover { background: rgba(255,255,255,.25); }
.contact-form-wrapper { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 40px; }

/* ── Volunteer ──────────────────────────────────────────────── */
.why-volunteer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.why-card { text-align: center; padding: 28px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.why-icon { font-size: 2.5rem; margin-bottom: 14px; }
.why-card h4 { margin-bottom: 8px; }
.why-card p  { font-size: .875rem; }

/* ── Appointments ───────────────────────────────────────────── */
.appt-steps { display: flex; gap: 0; margin-bottom: 48px; }
.appt-step { flex: 1; text-align: center; padding: 24px 16px; position: relative; }
.appt-step:not(:last-child)::after { content: '→'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1.2rem; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.appt-step h4 { margin-bottom: 6px; font-size: .95rem; }
.appt-step p  { font-size: .82rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.75); }
.footer-main { padding: 48px 0; }
.footer-minimal {
  display: flex; flex-direction: column;
  align-items: center; gap: 28px; text-align: center;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; font-size: .8rem; text-align: center;
}

/* ── Toast notification ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--dark); color: white; padding: 14px 22px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .875rem;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(80px); opacity: 0; transition: all .35s ease;
  min-width: 280px; max-width: 420px;
}
.toast.show  { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .grid-4        { grid-template-columns: repeat(2, 1fr); }
  .donate-layout { grid-template-columns: 1fr; }
  .donate-sidebar{ position: static; }
  .hero          { min-height: auto; }
  .contact-layout{ grid-template-columns: 1fr; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  /* Nav */
  .nav-container { gap: 10px; }
  .hamburger { display: flex; margin-left: 0; }
  .lang-toggle-mobile {
    display: flex; margin-left: auto; flex-shrink: 0;
    border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden;
  }
  .lang-toggle-mobile .lang-btn { padding: 5px 10px; font-size: .72rem; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; margin: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 20px 16px; gap: 2px; overflow-y: auto;
    transform: translateX(-100%); transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link      { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
  .dropdown      { position: static; opacity: 1; visibility: visible; transform: none;
                   box-shadow: none; border: none; background: var(--light);
                   padding: 4px 8px; margin-top: 4px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta       { display: none; }

  /* Grids */
  .grid-3        { grid-template-columns: repeat(2, 1fr); }
  .grid-2        { grid-template-columns: 1fr; }
  .grid-4        { grid-template-columns: repeat(2, 1fr); }
  .grid-stats-3  { grid-template-columns: repeat(2, 1fr); }
  .involve-cards { grid-template-columns: repeat(2, 1fr); }
  .values-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-volunteer { grid-template-columns: repeat(2, 1fr); }

  /* Stats bar — revert to larger 3-column layout below desktop */
  .stats-grid { grid-template-columns: repeat(3, 1fr); max-width: 720px; gap: 32px; }
  .stat-item .stat-num  { font-size: clamp(2rem, 4vw, 2.8rem); }
  .stat-item .stat-label{ font-size: .875rem; }
  .stat-item .stat-icon { font-size: 1.6rem; margin-bottom: 8px; }

  /* Layout panels */
  .hero-inner    { grid-template-columns: 1fr; padding: 40px 0 32px; }
  .hero-events   { margin-top: 8px; }
  .hero-visual   { display: none; }
  .featured-story{ grid-template-columns: 1fr; }
  .about-intro   { grid-template-columns: 1fr; }
  .services-hero-card { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }

  /* Form */
  .form-row      { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form  { flex-direction: column; }
  .appt-steps    { flex-wrap: wrap; }
  .appt-step:not(:last-child)::after { display: none; }

  /* Padding reductions */
  .page-hero             { padding: 56px 0 40px; }
  .featured-story-content{ padding: 32px; }
  .service-detail        { padding: 28px; }
  .contact-form-wrapper  { padding: 28px; }
  .contact-info-card     { padding: 28px; }
  .donate-main           { padding: 28px; }
  .testimonial-card      { padding: 28px; }
  .section-header        { margin-bottom: 36px; }

  /* Hero double-padding fix */
  .hero-content          { padding: 0; }
  .hero-events           { padding: 20px; }
}

/* Mobile */
@media (max-width: 600px) {
  .section        { padding: 48px 0; }
  .container      { padding: 0 16px; }

  /* ── Blue / dark background sections — centering fixes ── */
  .page-hero,
  .stats-bar,
  .cta-section,
  .newsletter-section { text-align: center; }

  /* Center all containers inside blue sections */
  .page-hero .container,
  .stats-bar .container,
  .cta-section .container,
  .newsletter-section .container {
    display: flex; flex-direction: column; align-items: center;
  }

  /* Page hero text */
  .page-hero h1,
  .page-hero p,
  .breadcrumb,
  .cta-section h2,
  .cta-section p  { text-align: center; width: 100%; }

  .page-hero p,
  .cta-section p  { margin-left: auto; margin-right: auto; max-width: 100%; }

  /* Section labels */
  .section-label  { text-align: center; }

  /* Stats bar */
  .stat-item { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
  .stat-item .stat-num,
  .stat-item .stat-label,
  .stat-item .stat-icon { text-align: center; }

  /* Hero section (homepage with background image) */
  .hero-content   { text-align: center; }
  .hero-label     { justify-content: center; }
  .hero h1,
  .hero .lead     { text-align: center; }
  .hero-btns      { justify-content: center; }
  .hero-stats     { justify-content: center; }
  .hero-stat-item { text-align: center; }

  /* Newsletter inner */
  .newsletter-inner { text-align: center; align-items: center; }
  .newsletter-text  { text-align: center; }

  /* Contact info card */
  .contact-info-card         { text-align: center; }
  .contact-item              { flex-direction: column; align-items: center; text-align: center; }
  .contact-icon              { margin: 0 auto; }
  .contact-social            { justify-content: center; }
  .contact-item-text         { text-align: center; }
  .contact-appt-box          { text-align: center; }
  .contact-form-wrapper h3,
  .contact-form-wrapper > p  { text-align: center; }
  .contact-layout            { gap: 28px; }

  /* Page hero */
  .page-hero      { padding: 40px 0 28px; }
  .page-hero p    { font-size: .95rem; }

  /* Nav brand */
  .brand-sub      { display: none; }

  /* Grids → single column */
  .grid-3         { grid-template-columns: 1fr; }
  .grid-4         { grid-template-columns: 1fr 1fr; }
  .stats-grid     { gap: 20px; }
  .values-grid    { grid-template-columns: 1fr; }
  .why-volunteer  { grid-template-columns: 1fr; }
  .involve-cards  { grid-template-columns: 1fr; }
  .checkbox-grid  { grid-template-columns: 1fr; }
  .amount-grid    { grid-template-columns: repeat(2, 1fr); }

  /* Hero */
  .hero-btns      { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats     { gap: 20px; flex-wrap: wrap; }

  /* Buttons */
  .btn-lg         { padding: 13px 24px; font-size: .95rem; }
  .cta-btns       { flex-direction: column; align-items: center; }
  .cta-btns .btn  { width: 100%; max-width: 280px; justify-content: center; }
  .cta-section    { padding: 48px 0; }

  /* Paddings */
  .form-wrapper          { padding: 20px; }
  .service-detail        { padding: 20px; }
  .contact-form-wrapper  { padding: 20px; }
  .contact-info-card     { padding: 20px; }
  .donate-main           { padding: 20px; }
  .testimonial-card      { padding: 20px; }
  .featured-story-content{ padding: 20px; }
  .section-header        { margin-bottom: 28px; }
  .stories-header        { margin-bottom: 28px; }
  .newsletter-section    { padding: 40px 0; }
  .footer-main           { padding: 40px 0 24px; }
  .footer-actions        { flex-direction: column; align-items: center; }
  .footer-actions .btn   { width: 100%; max-width: 240px; justify-content: center; }

  /* Event cards */
  .event-card         { flex-direction: column; }
  .event-date-block   { flex-direction: row; gap: 16px; padding: 12px 20px;
                        align-items: center; min-width: 0; width: 100%; }

  /* Hero */
  .hero-inner          { padding: 28px 0 20px; }
  .hero h1             { font-size: clamp(1.6rem, 7.5vw, 2rem); }
  .hero-label          { font-size: .72rem; padding: 5px 14px; letter-spacing: .04em; }
  .hero .lead          { font-size: .95rem; margin-bottom: 24px; }
  .hero-stats          { margin-top: 28px; }
  .hero-events         { padding: 16px; }
  .hero-event-card     { padding: 10px 12px; gap: 10px; }

  /* Partners */
  .partner-logo        { padding: 10px 20px; font-size: .85rem; }

  /* Section paddings missed by .section override */
  .stats-bar           { padding: 36px 0; }
  .testimonial-section { padding: 48px 0; }
  .partners-section    { padding: 36px 0; }

}

/* Very small phones */
@media (max-width: 420px) {
  .nav-container   { padding: 0 14px; }
  .brand-name      { font-size: 1.1rem; }
  .grid-4          { grid-template-columns: 1fr; }
  .grid-stats-3    { grid-template-columns: 1fr; }
  .stats-grid      { gap: 12px; }
  .hero-stats      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats .hero-stat-item:last-child { grid-column: 1 / -1; }
  .page-hero h1    { font-size: clamp(1.5rem, 8vw, 2rem); }
  .form-wrapper    { padding: 16px; }
  .hero-events     { padding: 12px; }
  .hero-event-card { gap: 8px; padding: 9px 10px; }
  .hero-event-reg  { padding: 4px 9px; font-size: .7rem; }
  .hero-event-date { min-width: 44px; padding: 6px 4px; }
  .hero-label      { font-size: .68rem; }
}

/* ── Donate modal detail rows ───────────────────────────────── */
.donate-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 0; gap: 16px;
}
.donate-detail-label { font-size: .8rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.donate-detail-value { font-size: .9rem; color: var(--dark); font-weight: 600; text-align: right; }

/* ── Story Modal ─────────────────────────────────────────────── */
.story-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.story-modal.open { opacity: 1; visibility: visible; pointer-events: all; }
.story-modal.open .story-modal-box { transform: translateY(0); opacity: 1; }

.story-modal-box {
  background: var(--white); border-radius: var(--radius);
  max-width: 680px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.story-modal-close {
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--light); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--text-mid); z-index: 10;
  transition: all var(--transition);
}
.story-modal-close:hover { background: var(--dark); color: white; }

.story-modal-img { width: 100%; max-height: 480px; overflow: hidden; clear: both; background: #f0f4ff; display: flex; align-items: center; justify-content: center; }
.story-modal-img img { width: 100%; max-height: 480px; object-fit: contain; }

.story-modal-body { padding: 32px; }
.story-modal-body h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--dark); }

.story-modal-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-light);
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.story-modal-meta span { display: flex; align-items: center; gap: 6px; }

.story-modal-text {
  font-size: .95rem; color: var(--text-mid);
  line-height: 1.9;
}
.story-modal-text h3 {
  font-size: 1.1rem; color: var(--dark);
  margin: 28px 0 10px; font-weight: 700;
  padding-bottom: 6px; border-bottom: 2px solid var(--primary-light);
}
.story-modal-text p  { margin-bottom: 14px; }
.story-modal-text ul { padding-left: 20px; margin-bottom: 14px; }
.story-modal-text ul li { margin-bottom: 10px; line-height: 1.7; }
.story-modal-text a  { color: var(--primary); text-decoration: underline; }

/* Card hover effect to hint clickability */
.story-card:hover .card-link { gap: 8px; }

@media (max-width: 600px) {
  .story-modal-body { padding: 20px; }
  .story-modal-body h2 { font-size: 1.2rem; }
}

/* ── Past Events Timeline ────────────────────────────────────── */
.past-events-timeline {
  max-width: 800px; margin: 0 auto;
}
.past-event-item {
  margin-bottom: 36px; display: flex;
  flex-direction: column; gap: 6px;
}
.past-event-item:last-child { margin-bottom: 0; }
.past-event-dot { display: none; }
.past-event-date {
  font-size: .78rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .06em;
}
.past-event-card {
  background: var(--white); border-radius: var(--radius);
  padding: 0; box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.past-event-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.past-event-card > div:last-child { padding: 0 20px 20px; }
.past-event-img { width: 100%; max-height: 320px; overflow: hidden; background: #f0f4ff; display: flex; align-items: center; justify-content: center; }
.past-event-img img { width: 100%; max-height: 320px; object-fit: contain; transition: transform .4s ease; }
.past-event-card:hover .past-event-img img { transform: scale(1.02); }
#peModalDesc p { margin-bottom: 14px; }
#peModalDesc p:last-child { margin-bottom: 0; }

/* ── Events subscribe box ────────────────────────────────────── */
.events-subscribe {
  margin-top: 60px; padding: 48px 32px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f4ff 100%);
  border-radius: var(--radius); text-align: center;
  border: 1px solid rgba(27,63,160,.1);
}

/* ── Back to top button ─────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: white;
  border: none; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.back-to-top.visible     { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover       { background: var(--primary-dark); transform: translateY(-3px); }

/* ── Scroll animations ──────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
