/* ===== THE ERNEST FOUNDATION — WHITE THEME ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --red: #8b1a1a;
  --red-hover: #6e1515;
  --red-light: rgba(139,26,26,0.08);
  --red-strip: #8b1a1a;
  --white: #ffffff;
  --body-bg: #f9f9f9;
  --section-white: #ffffff;
  --section-gray: #f4f4f6;
  --dark: #111111;
  --dark2: #1a1a1a;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #e5e7eb;
  --border-soft: rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 6px rgba(0,0,0,0.07);
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--body-bg); line-height: 1.7; font-size: 16px; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text); }
a { color: var(--red); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--red-hover); }
img { max-width: 100%; display: block; }
p { color: var(--text-muted); line-height: 1.75; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── UTILS ─────────────────── */
.section-pad { padding: 85px 0; }
.section-pad-sm { padding: 55px 0; }
.sec-white { background: var(--section-white); }
.sec-gray  { background: var(--section-gray); }
.eyebrow { display: block; font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; color: var(--red); margin-bottom: 12px; }
.divider { width: 48px; height: 3px; background: var(--red); border-radius: 2px; margin: 14px 0; }
.section-title { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 800; color: var(--text); margin-bottom: 14px; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto 50px; line-height: 1.8; }
.text-center .divider { margin: 14px auto; }

/* ── BUTTONS ─────────────────── */
.btn-red { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 13px 30px; border-radius: 50px; font-weight: 600; font-size: 0.93rem; border: none; cursor: pointer; transition: all 0.3s; }
.btn-red:hover { background: var(--red-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,26,26,0.35); }
.btn-white { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--text); padding: 13px 30px; border-radius: 50px; font-weight: 600; font-size: 0.93rem; border: none; cursor: pointer; transition: all 0.3s; }
.btn-white:hover { background: #f5f5f5; color: var(--text); transform: translateY(-2px); }
.btn-outline-red { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--red); padding: 11px 28px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: 1.5px solid var(--red); transition: all 0.3s; }
.btn-outline-red:hover { background: var(--red); color: #fff; }
.btn-outline-dark { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; padding: 11px 28px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: 1.5px solid rgba(255,255,255,0.4); transition: all 0.3s; }
.btn-outline-dark:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.7); }

/* ── PRELOADER ─────────────────── */
#preloader { position: fixed; inset: 0; background: #fff; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.preloader-inner { text-align: center; }
.preloader-logo { width: 160px; margin: 0 auto; animation: pBounce 1.2s ease-in-out infinite; }
.preloader-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.preloader-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pDot 1.2s ease-in-out infinite; }
.preloader-dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pBounce { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(0.93);opacity:.7} }
@keyframes pDot { 0%,100%{transform:scale(1);opacity:.4} 50%{transform:scale(1.4);opacity:1} }

/* ── TOP-BAR ─────────────────── */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.65); font-size: 0.8rem; padding: 7px 0; }
.top-bar a { color: rgba(255,255,255,0.65); }
.top-bar a:hover { color: #fff; }
.top-bar .social-icons a { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.07); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-left: 4px; transition: all 0.2s; }
.top-bar .social-icons a:hover { background: var(--red); color: #fff; }

/* ── NAVBAR ─────────────────── */
.main-navbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; transition: box-shadow 0.3s, background 0.3s; padding: 0; }
.main-navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.09); }
.navbar-brand img { height: 62px; transition: height 0.3s; object-fit: contain; }
.main-navbar.scrolled .navbar-brand img { height: 50px; }
.main-navbar .nav-link { font-weight: 500; color: #333 !important; font-size: 0.9rem; padding: 26px 14px !important; position: relative; letter-spacing: 0.2px; }
.main-navbar .nav-link::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: var(--red); border-radius: 2px 2px 0 0; transform: scaleX(0); transition: transform 0.3s; }
.main-navbar .nav-link:hover::after, .main-navbar .nav-link.active::after { transform: scaleX(1); }
.main-navbar .nav-link:hover, .main-navbar .nav-link.active { color: var(--red) !important; }
.navbar-donate-btn { background: var(--red) !important; color: #fff !important; padding: 10px 22px !important; border-radius: 50px !important; font-weight: 600 !important; font-size: 0.88rem !important; }
.navbar-donate-btn::after { display: none !important; }
.navbar-donate-btn:hover { background: var(--red-hover) !important; color: #fff !important; }
.dropdown-menu { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius-sm); padding: 6px; min-width: 200px; }
.dropdown-item { color: #444; padding: 9px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; }
.dropdown-item:hover { background: var(--red-light); color: var(--red); }
.dropdown-item i { color: var(--red); width: 18px; }

/* ── MOBILE NAV TOGGLE ─────────────────── */
.navbar-toggler { border: none !important; padding: 6px !important; background: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 24px; cursor: pointer; }
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ── MOBILE FULLSCREEN NAV OVERLAY ─────────────────── */
.mobile-nav-overlay { position: fixed; inset: 0; background: #f2f2f2; z-index: 9999; display: flex; flex-direction: column; padding: 0; transform: translateX(100%); transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94); }
.mobile-nav-overlay.open { transform: translateX(0); }
.mob-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--border); }
.mob-nav-header img { height: 52px; object-fit: contain; }
.mob-nav-close { width: 38px; height: 38px; background: none; border: none; font-size: 1.4rem; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 300; }
.mob-nav-links { flex: 1; padding: 14px 0; overflow-y: auto; }
.mob-nav-links a { display: block; padding: 15px 24px; font-size: 1.05rem; color: var(--text); font-weight: 500; border-radius: 10px; margin: 2px 12px; transition: all 0.2s; }
.mob-nav-links a.active, .mob-nav-links a:hover { background: rgba(139,26,26,0.08); color: var(--red); }
.mob-nav-links a.active { font-weight: 700; color: var(--red); background: rgba(139,26,26,0.1); }
.mob-nav-footer { padding: 18px 20px 30px; }
.mob-nav-footer a.mob-donate-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; padding: 16px; border-radius: 50px; font-weight: 700; font-size: 1rem; width: 100%; }
.mob-nav-footer a.mob-donate-btn:hover { background: var(--red-hover); color: #fff; }

/* ── HERO SLIDER ─────────────────── */
.hero-slider { position: relative; width: 100%; height: 100vh; min-height: 580px; overflow: hidden; background: #000; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; transition: transform 8s ease; }
.slide.active .slide-bg { transform: scale(1.05); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.15) 100%); }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-bottom: 90px; }
.slide-text { color: #fff; max-width: 640px; }
.slide-eyebrow { font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.75); display: block; margin-bottom: 14px; }
.slide-title { font-size: clamp(2rem, 5.5vw, 3.8rem); color: #fff; margin-bottom: 16px; line-height: 1.12; font-weight: 800; }
.slide-desc { font-size: 1.02rem; color: rgba(255,255,255,0.78); margin-bottom: 28px; max-width: 500px; line-height: 1.7; }
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.slide-text, .slide-title, .slide-desc, .slide-btns { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.slide.active .slide-eyebrow { opacity: 1; transform: none; transition-delay: 0.2s; }
.slide.active .slide-title { opacity: 1; transform: none; transition-delay: 0.4s; }
.slide.active .slide-desc { opacity: 1; transform: none; transition-delay: 0.55s; }
.slide.active .slide-btns { opacity: 1; transform: none; transition-delay: 0.7s; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,0.3); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.95rem; transition: all 0.3s; }
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-arrow.prev { left: 20px; } .slider-arrow.next { right: 20px; }
.slider-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; transition: all 0.3s; }
.slider-dot.active { background: var(--red); width: 28px; border-radius: 4px; }
.hero-red-bar { height: 8px; background: var(--red); }

/* ── STATS STRIP ─────────────────── */
.stats-strip { background: var(--red-strip); padding: 50px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-icon-circle { width: 60px; height: 60px; border: 2px solid rgba(255,255,255,0.35); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.5rem; color: rgba(255,255,255,0.9); }
.stat-num { display: block; font-family: var(--font-heading); font-size: clamp(2rem,4.5vw,2.8rem); font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; font-weight: 500; }
.stats-divider { width: 1px; background: rgba(255,255,255,0.2); align-self: stretch; margin: 10px 0; }

/* ── ABOUT SECTION ─────────────────── */
.about-img-wrapper { position: relative; border-radius: 24px; overflow: hidden; }
.about-img-wrapper img { width: 100%; height: 480px; object-fit: cover; }
.about-badge { position: absolute; bottom: 22px; left: 22px; background: #fff; border-radius: 16px; padding: 18px 26px; box-shadow: var(--shadow-lg); }
.about-badge .badge-yr { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--red); display: block; line-height: 1; }
.about-badge .badge-lbl { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; display: block; }
.mission-box { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.mission-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--red-light); border: 1px solid rgba(139,26,26,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--red); flex-shrink: 0; }
.mission-box h5 { font-size: 1rem; margin-bottom: 4px; }
.mission-box p { font-size: 0.88rem; margin: 0; }

/* ── PROGRAM CARDS ─────────────────── */
.prog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.35s; border: 1px solid var(--border); margin-bottom: 0; }
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prog-card-img { position: relative; height: 240px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.prog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prog-card:hover .prog-card-img img { transform: scale(1.05); }
.prog-card-icon { position: absolute; bottom: 16px; left: 16px; width: 46px; height: 46px; background: var(--red); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.prog-card-body { padding: 22px 22px 24px; }
.prog-card-body h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); font-family: var(--font-body); font-weight: 700; }
.prog-card-body p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.7; }
.prog-progress-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.prog-progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.prog-bar-bg { height: 4px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.prog-bar { height: 100%; background: var(--red); border-radius: 4px; transition: width 1.5s ease; }

/* ── CTA / MAKE A DIFFERENCE ─────────────────── */
.cta-section { position: relative; padding: 110px 0; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
.cta-content { position: relative; z-index: 2; }
.cta-heart { font-size: 2.2rem; color: var(--red); display: block; margin-bottom: 18px; }
.cta-section h2 { color: #fff; font-size: clamp(1.9rem,4.5vw,2.8rem); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 540px; margin: 0 auto 28px; }
.donate-picks { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.donate-pick { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2); color: #fff; padding: 9px 22px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; }
.donate-pick:hover, .donate-pick.selected { background: var(--red); border-color: var(--red); }
.cta-btns { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-btns .btn-red { padding: 15px 42px; font-size: 1rem; }
.cta-btns .btn-white { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); padding: 13px 38px; }
.cta-btns .btn-white:hover { background: rgba(255,255,255,0.22); }
.cta-secure-note { color: rgba(255,255,255,0.35); font-size: 0.78rem; margin-top: 16px; }

/* ── BLOG CARDS ─────────────────── */
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; height: 100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-date { font-size: 0.73rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px; }
.blog-card h5 { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 8px; font-family: var(--font-body); }
.blog-card p { font-size: 0.86rem; color: var(--text-muted); }
.read-more { font-size: 0.84rem; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; }
.read-more:hover { gap: 10px; color: var(--red-hover); }

/* ── EVENTS ─────────────────── */
.event-card { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); margin-bottom: 14px; transition: all 0.3s; align-items: flex-start; box-shadow: var(--shadow-sm); }
.event-card:hover { border-color: rgba(139,26,26,0.2); box-shadow: var(--shadow); }
.event-date-box { flex-shrink: 0; width: 58px; height: 66px; background: var(--red); color: #fff; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-date-box .day { font-size: 1.5rem; font-weight: 800; line-height: 1; font-family: var(--font-heading); }
.event-date-box .month { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.event-info h5 { font-size: 0.96rem; margin-bottom: 4px; color: var(--text); font-family: var(--font-body); font-weight: 700; }
.event-info p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }

/* ── GALLERY ─────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 10px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 1.6rem; }

/* ── STORY CARDS ─────────────────── */
.story-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: all 0.3s; box-shadow: var(--shadow-sm); }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card-img { height: 220px; overflow: hidden; }
.story-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.story-card:hover .story-card-img img { transform: scale(1.05); }
.story-card-body { padding: 22px; }
.story-quote { font-size: 2.5rem; color: var(--red); opacity: 0.2; font-family: serif; line-height: 1; margin-bottom: -8px; }
.story-card-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); font-family: var(--font-body); }
.story-card-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.story-author { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.story-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.story-author-info strong { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text); }
.story-author-info span { font-size: 0.75rem; color: var(--text-muted); }

/* ── PAGE HERO ─────────────────── */
.page-hero { background: var(--section-gray); padding: 90px 0 60px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.8rem,4.5vw,2.8rem); margin-bottom: 12px; }
.page-hero p { font-size: 1rem; max-width: 560px; margin: 0 auto; }
.breadcrumb { justify-content: center; background: none; padding: 10px 0 0; margin: 0; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--red); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }

/* ── NEWSLETTER ─────────────────── */
.newsletter-section { background: var(--dark); padding: 65px 0; }
.newsletter-section h3 { color: #fff; font-size: 1.75rem; margin-bottom: 8px; }
.newsletter-section p { color: rgba(255,255,255,0.55); }
.newsletter-form { display: flex; max-width: 470px; }
.newsletter-form input { flex: 1; padding: 13px 18px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); border-radius: 50px 0 0 50px; font-size: 0.9rem; outline: none; color: #fff; font-family: var(--font-body); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form button { background: var(--red); color: #fff; border: none; padding: 13px 24px; border-radius: 0 50px 50px 0; font-weight: 600; cursor: pointer; transition: background 0.3s; font-size: 0.86rem; white-space: nowrap; }
.newsletter-form button:hover { background: var(--red-hover); }

/* ── FOOTER ─────────────────── */
.main-footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 65px 0 0; }
.footer-logo { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-about p { font-size: 0.88rem; line-height: 1.8; max-width: 270px; color: rgba(255,255,255,0.5); }
.footer-title { color: #fff; font-size: 0.95rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--red); display: inline-block; font-family: var(--font-heading); font-weight: 700; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.86rem; transition: all 0.2s; display: flex; align-items: center; gap: 5px; }
.footer-links a::before { content: '›'; color: var(--red); font-size: 1rem; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; font-size: 0.86rem; color: rgba(255,255,255,0.5); }
.footer-contact-item i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.5); }
.footer-contact-item a:hover { color: #fff; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all 0.3s; margin-right: 5px; }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 16px 0; margin-top: 50px; font-size: 0.8rem; color: rgba(255,255,255,0.35); border-top: 1px solid rgba(255,255,255,0.07); }
.footer-bottom a { color: var(--red); }

/* ── OUTREACH BANNER (WHITE) ─────────────────── */
#outreach-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(140%); z-index: 9990; transition: transform 0.55s cubic-bezier(0.16,1,0.3,1); width: calc(100% - 32px); max-width: 440px; pointer-events: none; }
#outreach-banner.show { transform: translateX(-50%) translateY(0); pointer-events: all; }
.outreach-inner { background: #fff; border-radius: 18px; box-shadow: 0 8px 40px rgba(0,0,0,0.18); padding: 18px 16px 16px; border: 1px solid var(--border); }
.outreach-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.outreach-bell { width: 40px; height: 40px; border-radius: 50%; background: rgba(139,26,26,0.1); border: 1.5px solid rgba(139,26,26,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.outreach-bell i { color: var(--red); font-size: 0.95rem; }
.outreach-text { flex: 1; }
.outreach-text strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 3px; font-weight: 700; }
.outreach-text p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.45; }
#close-outreach { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 2px; flex-shrink: 0; line-height: 1; }
#close-outreach:hover { color: var(--text); }
.outreach-btns { display: flex; gap: 10px; }
.outreach-btns a { flex: 1; text-align: center; padding: 10px; border-radius: 50px; font-size: 0.84rem; font-weight: 700; }
.outreach-btns a.ob-donate { background: var(--red); color: #fff; }
.outreach-btns a.ob-donate:hover { background: var(--red-hover); }
.outreach-btns a.ob-vol { background: #f5f5f5; color: var(--text); border: 1px solid var(--border); }
.outreach-btns a.ob-vol:hover { background: #ebebeb; color: var(--text); }

/* ── BACK TO TOP ─────────────────── */
#back-to-top { position: fixed; bottom: 26px; right: 22px; background: var(--red); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 9985; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--red-hover); transform: translateY(-2px); }

/* ── LIGHTBOX ─────────────────── */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 99999; align-items: center; justify-content: center; }
#lightbox.show { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 10px; object-fit: contain; }
#lightbox-close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#lightbox-close:hover { background: var(--red); }

/* ── COOKIE CONSENT ─────────────────── */
#cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark2); padding: 14px 0; z-index: 9970; border-top: 1px solid rgba(255,255,255,0.06); transform: translateY(100%); transition: transform 0.4s ease; }
#cookie-consent.show { transform: translateY(0); }
#cookie-consent p { margin: 0; font-size: 0.84rem; color: rgba(255,255,255,0.6); }
#cookie-consent a { color: var(--red); }
.btn-accept { background: var(--red); color: #fff; border: none; padding: 8px 20px; border-radius: 25px; font-weight: 600; cursor: pointer; font-size: 0.84rem; white-space: nowrap; }

/* ── SCROLL ANIMATIONS ─────────────────── */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-left { opacity: 0; transform: translateX(-26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-right { opacity: 0; transform: translateX(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible,.fade-left.visible,.fade-right.visible { opacity: 1; transform: none; }

/* ── FORMS ─────────────────── */
.form-control, .form-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 15px; font-size: 0.9rem; transition: all 0.3s; background: #fff; color: var(--text); font-family: var(--font-body); }
.form-control:focus, .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(139,26,26,0.08); outline: none; }
.form-control::placeholder { color: var(--text-light); }
.form-label { font-weight: 600; font-size: 0.86rem; color: var(--text); margin-bottom: 6px; }

/* ── PAGINATION ─────────────────── */
.pagination { gap: 4px; }
.page-link { background: #fff !important; border: 1.5px solid var(--border) !important; color: var(--text-muted) !important; border-radius: 8px !important; padding: 6px 13px; font-size: 0.83rem; }
.page-link:hover { border-color: var(--red) !important; color: var(--red) !important; }
.page-item.active .page-link { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }

/* ── PARTNERS ─────────────────── */
.partner-box { background: #fff; border: 1.5px solid var(--border); border-radius: 10px; padding: 15px 18px; font-weight: 800; color: var(--text-light); font-size: 0.9rem; letter-spacing: 1px; text-align: center; transition: all 0.3s; }
.partner-box:hover { border-color: var(--red); color: var(--text-muted); box-shadow: var(--shadow-sm); }

/* ── CONTACT ─────────────────── */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-icon { width: 46px; height: 46px; background: var(--red-light); color: var(--red); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

/* ── DONATE PAGE ─────────────────── */
.donation-tier { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; transition: all 0.3s; background: #fff; box-shadow: var(--shadow-sm); }
.donation-tier:hover, .donation-tier.selected { border-color: var(--red); background: rgba(139,26,26,0.04); }
.donation-tier .amount { font-family: var(--font-heading); font-size: 1.9rem; color: var(--red); font-weight: 800; }
.donation-tier .tier-label { font-size: 0.73rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--text-light); margin-top: 4px; }
.amount-btn { background: #f5f5f5; border: 1.5px solid var(--border); color: var(--text-muted); padding: 10px 22px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; }
.amount-btn:hover, .amount-btn.selected { background: var(--red); border-color: var(--red); color: #fff; }

/* ── RESPONSIVE ─────────────────── */
@media (max-width: 991px) {
  .section-pad { padding: 65px 0; }
  .hero-slider { height: 88vh; min-height: 520px; }
  .main-navbar .nav-link { padding: 20px 13px !important; }
}
@media (max-width: 767px) {
  .section-pad { padding: 50px 0; }
  .hero-slider { height: 80vh; min-height: 480px; }
  .slide-content { padding-bottom: 70px; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 20px 0; }
  .stat-item:last-child { border-bottom: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .slider-arrow { width: 38px; height: 38px; font-size: 0.85rem; }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
  #back-to-top { bottom: 80px; }
  #outreach-banner { bottom: 12px; }
}
@media (max-width: 480px) {
  .slide-title { font-size: 1.75rem; }
}

/* ===================================================
   ENHANCED MOBILE-FIRST RESPONSIVE OVERRIDES
   =================================================== */

/* ── 1200px+ (large desktops) ──────────────────── */
@media (min-width: 1200px) {
  .hero-slider { height: 100vh; }
}

/* ── ≤1024px ────────────────────────────────────── */
@media (max-width: 1024px) {
  .section-pad  { padding: 70px 0; }
  .slider-arrow { display: none; }
  .prog-card-img { height: 200px; }
  .about-img-wrapper img { height: 380px; }
}

/* ── ≤991px (tablets & mobile landscape) ────────── */
@media (max-width: 991px) {
  .hero-slider    { height: 85vh; min-height: 500px; }
  .slide-content  { padding-bottom: 80px; padding-left: 12px; }
  .slide-title    { font-size: clamp(1.7rem,5vw,2.4rem); }
  .slide-desc     { font-size: 0.94rem; max-width: 90%; }
  .slide-btns     { gap: 10px; }
  .stats-strip    { padding: 38px 0; }
  .stat-item      { padding: 16px 0; }
  .section-title  { font-size: clamp(1.55rem,4vw,2.2rem); }
  .page-hero      { padding: 65px 0 45px; }
  .about-img-wrapper img { height: 320px; }
  .about-badge    { padding: 14px 20px; }
  .newsletter-form { max-width: 100%; }
  .footer-logo    { height: 44px; }
  .footer-bottom  { text-align: center !important; }
  .footer-bottom [class*="col-md-6"]:last-child { margin-top: 6px; }
  /* Admin */
  .admin-sidebar  { width: 260px; }
  .stat-cards     { grid-template-columns: repeat(2, 1fr); }
  .two-col-layout { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .form-full      { grid-column: 1; }
  .modal-box      { max-width: calc(100vw - 32px); }
}

/* ── ≤767px (mobile portrait + small tablets) ───── */
@media (max-width: 767px) {
  body            { font-size: 15px; }
  .section-pad    { padding: 50px 0; }
  .section-pad-sm { padding: 38px 0; }

  /* HERO */
  .hero-slider    { height: 78vh; min-height: 460px; }
  .slide-content  { padding-bottom: 65px; align-items: flex-end; }
  .slide-title    { font-size: 1.75rem; line-height: 1.2; margin-bottom: 12px; }
  .slide-eyebrow  { font-size: 0.65rem; letter-spacing: 2px; }
  .slide-desc     { font-size: 0.88rem; margin-bottom: 22px; }
  .slide-btns     { flex-direction: column; align-items: flex-start; gap: 10px; }
  .slide-btns a   { padding: 12px 24px; font-size: 0.88rem; width: 100%; max-width: 260px; justify-content: center; }
  .hero-red-bar   { height: 5px; }
  .slider-dots    { bottom: 16px; }

  /* NAV */
  .main-navbar { padding: 0; }
  .navbar-brand img { height: 50px; }

  /* STATS */
  .stats-strip  { padding: 30px 0; }
  .stat-num     { font-size: 2rem; }
  .stat-icon-circle { width: 50px; height: 50px; font-size: 1.2rem; }
  .stat-item    { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 18px 0; }
  .stat-item:last-child { border-bottom: none; }

  /* ABOUT */
  .about-img-wrapper img { height: 260px; border-radius: 16px; }
  .about-badge  { bottom: 14px; left: 14px; }
  .about-badge .badge-yr { font-size: 1.65rem; }
  .mission-box  { gap: 12px; }
  .mission-icon { width: 42px; height: 42px; font-size: 1.1rem; }

  /* PROGRAMS */
  .prog-card-img { height: 200px; }
  .prog-card-body { padding: 18px 18px 20px; }

  /* EVENTS */
  .event-card   { padding: 14px; gap: 12px; }
  .event-date-box { width: 52px; height: 60px; }
  .event-date-box .day { font-size: 1.3rem; }

  /* GALLERY */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 6px; }

  /* STORIES */
  .story-card-img { height: 190px; }

  /* OUTREACH BANNER */
  #outreach-banner { bottom: 10px; width: calc(100% - 20px); }
  .outreach-inner { padding: 14px 12px 12px; border-radius: 14px; }
  .outreach-text strong { font-size: 0.88rem; }
  .outreach-text p { display: none; } /* hide on very small screens */
  .outreach-btns a { padding: 9px 8px; font-size: 0.8rem; }

  /* CTA */
  .cta-section { padding: 70px 0; }
  .cta-section h2 { font-size: 1.75rem; }
  .donate-picks { gap: 8px; }
  .donate-pick  { padding: 8px 16px; font-size: 0.85rem; }
  .cta-btns .btn-red { padding: 13px 32px; font-size: 0.95rem; }

  /* NEWSLETTER */
  .newsletter-section { padding: 45px 0; }
  .newsletter-section h3 { font-size: 1.45rem; }
  .newsletter-form { flex-direction: column; max-width: 100%; }
  .newsletter-form input { border-radius: 50px; margin-bottom: 10px; }
  .newsletter-form button { border-radius: 50px; padding: 13px 22px; }

  /* FOOTER */
  .main-footer { padding: 50px 0 0; }
  .footer-logo { height: 40px; }
  .footer-title { font-size: 0.88rem; }
  .footer-links a { font-size: 0.83rem; }
  .footer-contact-item { font-size: 0.83rem; }

  /* FORMS */
  .form-control, .form-select { padding: 10px 14px; font-size: 0.88rem; }
  .btn-red, .btn-white, .btn-outline-red { padding: 12px 24px; font-size: 0.9rem; }

  /* PAGE HERO */
  .page-hero { padding: 50px 0 35px; }
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero p  { font-size: 0.9rem; }

  /* BACK TO TOP */
  #back-to-top { bottom: 16px; right: 14px; width: 38px; height: 38px; }

  /* DONATION TIERS */
  .donation-tier .amount { font-size: 1.65rem; }

  /* BLOG */
  .blog-card-img { height: 180px; }
  .blog-card-body { padding: 16px; }

  /* CONTACT */
  .contact-card { padding: 22px 18px; }
  .contact-icon { width: 40px; height: 40px; font-size: 1rem; }

  /* ADMIN PANEL */
  .admin-content   { padding: 16px 14px; }
  .stat-cards      { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card       { padding: 16px 14px; }
  .stat-num        { font-size: 1.6rem; }
  .card-body       { padding: 16px; }
  .card-header     { padding: 14px 16px; }
  .data-table th, .data-table td { padding: 10px 10px; font-size: 0.82rem; }
  .filter-bar .form-control { min-width: 160px; }
  .admin-topbar    { padding: 0 16px; }
  .topbar-title    { font-size: 0.9rem; }
  .page-header h1  { font-size: 1.15rem; }
  .btn             { padding: 8px 14px; font-size: 0.82rem; }
  .modal-body      { padding: 16px; }
  .modal-header    { padding: 14px 16px; }
  .modal-footer    { padding: 12px 16px; }
  .form-label      { font-size: 0.78rem; }
  .form-control    { padding: 8px 11px; font-size: 0.85rem; }
}

/* ── ≤480px (small phones) ──────────────────────── */
@media (max-width: 480px) {
  .hero-slider    { height: 75vh; min-height: 420px; }
  .slide-title    { font-size: 1.55rem; }
  .slide-content  { padding-bottom: 55px; }

  /* STATS: 2 columns grid on tiny screens */
  .stats-strip .row { --bs-gutter-x: 0; }
  .stat-item { padding: 14px 0; }

  /* GALLERY: single column */
  .gallery-grid { grid-template-columns: 1fr; }

  /* BUTTONS full-width on small screens */
  .slide-btns a { max-width: 100%; }
  .cta-btns .btn-red, .cta-btns .btn-white { width: 100%; max-width: 280px; justify-content: center; }

  /* SECTION TITLE */
  .section-title { font-size: 1.45rem; }

  /* ADMIN */
  .stat-cards      { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-num        { font-size: 1.4rem; }
  .stat-lbl        { font-size: 0.72rem; }
  .page-header     { gap: 12px; }
  .page-header h1  { font-size: 1.05rem; }
  .topbar-user-info { display: none !important; }
  .sidebar-toggle  { display: flex; align-items: center; justify-content: center; }
}

/* ── ≤360px (very small phones) ────────────────── */
@media (max-width: 360px) {
  .hero-slider    { height: 72vh; min-height: 400px; }
  .slide-title    { font-size: 1.38rem; }
  .navbar-brand img { height: 44px; }
  .stat-cards      { grid-template-columns: 1fr; }
  .admin-content   { padding: 12px 10px; }
}

/* ── Touch & interaction improvements ─────────── */
@media (hover: none) and (pointer: coarse) {
  .prog-card:hover { transform: none; }
  .blog-card:hover { transform: none; }
  .story-card:hover { transform: none; }
  .gallery-overlay { opacity: 1; background: rgba(0,0,0,0.3); }
  .gallery-overlay i { font-size: 1.3rem; }
  .footer-social a:hover { transform: none; }
  .btn-red:hover, .btn-white:hover { transform: none; }
  /* Make touch targets larger */
  .sidebar-link     { padding: 12px 12px; min-height: 44px; }
  .btn-sm           { padding: 8px 14px; min-height: 38px; }
  .btn-icon         { width: 38px; height: 38px; }
  .mob-nav-links a  { padding: 18px 24px; min-height: 52px; }
  .navbar-toggler   { min-width: 44px; min-height: 44px; }
}

/* ── Print ──────────────────────────────────────── */
@media print {
  .main-navbar, .top-bar, #outreach-banner, .mobile-nav-overlay,
  #back-to-top, #cookie-consent, .slider-arrow, .slider-dots,
  .admin-sidebar, .admin-topbar, .newsletter-section { display: none !important; }
  .admin-main { margin-left: 0 !important; padding-top: 0 !important; }
  body { font-size: 12pt; }
}
