/* ============================================================
   EmpiredEdge – Main Stylesheet
   ============================================================ */

/* ─── Variables ─────────────────────────────────────── */
:root {
  --blue-primary:   #0B4EA2;
  --blue-secondary: #1E6BD6;
  --blue-light:     #EAF3FF;
  --gold:           #F4C14D;
  --cream:          #FAF8F3;
  --bg:             #FFFFFF;
  --section-bg:     #F7F9FC;
  --text-dark:      #1A2B49;
  --text-gray:      #667085;
  --success:        #16A34A;
  --emergency:      #DC2626;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      16px;
  --radius-xl:      20px;
  --shadow:         0 4px 24px rgba(11,78,162,.08);
  --shadow-sm:      0 2px 12px rgba(11,78,162,.06);
  --shadow-md:      0 6px 30px rgba(11,78,162,.12);
  --shadow-lg:      0 8px 40px rgba(11,78,162,.15);
  --transition:     .25s ease;
  --border-light:   #e8ecf0;

  /* Aliases: a later CSS pass (Blog/Stories/Events/Contact/Volunteer/About
     card styles) was written against these shorter names instead of the
     tokens above, which silently broke their backgrounds/shadows/radii. */
  --primary:        var(--blue-primary);
  --secondary:      var(--blue-secondary);
  --light-blue:     var(--blue-light);
}

/* ─── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Merriweather', serif;
  color: var(--text-dark);
  line-height: 1.3;
}

a { color: var(--blue-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-secondary); }

img { max-width: 100%; height: auto; }

/* ─── Topbar ─────────────────────────────────────────── */
.topbar {
  background: var(--blue-primary);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  font-size: 12px;
  margin-left: 6px;
  color: #fff !important;
  transition: background var(--transition);
}
.social-icon:hover { background: var(--gold); color: var(--text-dark) !important; }

/* ─── Navbar ─────────────────────────────────────────── */
#mainNav {
  background: #fff;
  box-shadow: 0 2px 16px rgba(11,78,162,.08);
  padding: 14px 0;
  transition: all var(--transition);
}
#mainNav.scrolled { padding: 10px 0; }

.brand-logo {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: -.3px;
}
.brand-logo-light { color: #fff; }
.brand-accent { color: var(--gold); }

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 14px !important;
  transition: color var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--blue-primary) !important; }

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 8px 0;
}
.dropdown-item { font-size: 14px; padding: 8px 20px; }
.dropdown-item:hover { background: var(--blue-light); color: var(--blue-primary); }

.btn-donate-nav {
  background: var(--blue-primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all var(--transition);
}
.btn-donate-nav:hover {
  background: var(--gold);
  color: var(--text-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244,193,77,.4);
}

/* ─── Emergency Banner ──────────────────────────────── */
.emergency-banner {
  background: var(--emergency);
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
}
.emergency-banner a { color: #fff; }

/* ─── Buttons ────────────────────────────────────────── */
.btn-primary-custom {
  background: var(--blue-primary);
  color: #fff;
  border-radius: 50px;
  padding: 13px 32px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--blue-primary);
  transition: all var(--transition);
  display: inline-block;
}
.btn-primary-custom:hover {
  background: transparent;
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,78,162,.25);
}

.btn-gold {
  background: var(--gold);
  color: var(--text-dark);
  border-radius: 50px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: all var(--transition);
  display: inline-block;
}
.btn-gold:hover {
  background: #e8b040;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,193,77,.4);
}

.btn-outline-custom {
  background: transparent;
  color: #fff;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,.6);
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

/* ─── Section Utilities ──────────────────────────────── */
.section-pad    { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.section-subtitle {
  color: var(--text-gray);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0B4EA2 0%, #1E6BD6 60%, #2980d4 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 600"><path fill="rgba(255,255,255,0.04)" d="M0,300L80,280C160,260,320,220,480,220C640,220,800,260,960,270C1120,280,1280,260,1360,250L1440,240V600H0Z"/><path fill="rgba(255,255,255,0.03)" d="M0,400L80,390C160,380,320,360,480,350C640,340,800,340,960,345C1120,350,1280,360,1360,365L1440,370V600H0Z"/></svg>') no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-tag i { color: var(--gold); }

.hero h1 {
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero h1 .highlight { color: var(--gold); }

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-img-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  position: relative;
}
.hero-img-card img { width: 100%; height: 480px; object-fit: cover; }
.hero-img-overlay {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(10px);
}
.hero-img-overlay .icon { 
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-primary);
  font-size: 20px;
  flex-shrink: 0;
}
.hero-img-overlay .label { font-size: 12px; color: var(--text-gray); }
.hero-img-overlay .value { font-size: 20px; font-weight: 800; color: var(--blue-primary); font-family: 'Inter',sans-serif; line-height:1; }

/* ─── Stats Bar ──────────────────────────────────────── */
.stats-bar {
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 32px 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.stat-item { text-align: center; padding: 10px; }
.stat-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--blue-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  display: block;
}
.stat-label {
  color: var(--text-gray);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  display: block;
}
.stat-divider {
  width: 1px;
  background: #e8ecf0;
  align-self: stretch;
  margin: 8px 0;
}

/* ─── Campaign Cards ─────────────────────────────────── */
.campaign-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
/* Used where the card stands alone (e.g. the Donate page's "Selected Campaign"
   summary) instead of as an equal-height item in a grid — height:100% there
   would stretch it to match a much taller sibling column via flex, since
   Bootstrap rows are flex containers with align-items:stretch by default. */
.campaign-card-standalone { height: auto; }
.campaign-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--blue-light);
}
.campaign-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.campaign-card:hover .campaign-card-img img { transform: scale(1.05); }

.campaign-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--blue-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.campaign-badge.emergency { background: var(--emergency); }
.campaign-badge.featured  { background: var(--gold); color: var(--text-dark); }

.campaign-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.campaign-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-secondary);
  margin-bottom: 8px;
}
.campaign-card-body h5 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.campaign-card-body p  { color: var(--text-gray); font-size: 14px; line-height: 1.6; flex: 1; }

.progress-wrap { margin: 16px 0; }
.progress { height: 8px; border-radius: 50px; background: var(--section-bg); overflow: visible; }
.progress-bar {
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-secondary));
  border-radius: 50px;
  transition: width 1s ease;
}
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; }
.progress-raised { font-weight: 700; color: var(--blue-primary); }
.progress-goal   { color: var(--text-gray); }

.campaign-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid #f0f2f5;
  background: #fafbfc;
}
.donor-count { font-size: 13px; color: var(--text-gray); }
.donor-count strong { color: var(--text-dark); }

.btn-donate-card {
  background: var(--blue-primary);
  color: #fff;
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
}
.btn-donate-card:hover { background: var(--gold); color: var(--text-dark); }

/* ─── Impact Section ─────────────────────────────────── */
.impact-section { background: var(--blue-primary); }
.impact-section .section-tag { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.impact-section .section-title { color: #fff; }
.impact-section .section-subtitle { color: rgba(255,255,255,.75); }

.impact-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  transition: all var(--transition);
  height: 100%;
}
.impact-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.impact-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--gold);
  margin: 0 auto 20px;
  transition: transform var(--transition);
}
.impact-card:hover .impact-icon { transform: scale(1.1) rotate(-5deg); }
.impact-card .number { font-size: 42px; font-weight: 800; color: #fff; font-family: 'Inter',sans-serif; }
.impact-card .desc   { color: rgba(255,255,255,.8); font-size: 15px; margin-top: 6px; }

/* ─── Testimonials ───────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
  border-top: 4px solid var(--blue-primary);
}
.testimonial-card::before {
  content: '\201C';
  font-size: 72px;
  color: var(--blue-light);
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 14px; right: 20px;
}
.testimonial-text { font-size: 15px; color: var(--text-gray); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--blue-primary);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 15px; }
.testimonial-loc  { color: var(--text-gray); font-size: 13px; }
.stars { color: var(--gold); font-size: 13px; }

/* ─── Blog Cards ─────────────────────────────────────── */
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-secondary); margin-bottom: 8px; }
.blog-card-body h6 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; flex: 1; }
.blog-meta { font-size: 12px; color: var(--text-gray); margin-top: auto; }

/* ─── CTA Section ────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(244,193,77,.1);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section h2 { color: #fff; font-size: clamp(26px, 4vw, 42px); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.82); font-size: 17px; margin-bottom: 0; }

/* ─── Emergency / Urgent ─────────────────────────────── */
.emergency-card {
  border: 2px solid var(--emergency);
  border-radius: var(--radius);
  overflow: hidden;
}
.emergency-header {
  background: var(--emergency);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.emergency-header .pulse {
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .6; }
}

/* ─── Donation Form ──────────────────────────────────── */
.donation-widget {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  position: sticky;
  top: 90px;
}
.donation-widget h4 { font-size: 22px; margin-bottom: 6px; }
.donation-type-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.donation-type-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 2px solid #e8ecf0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-gray);
}
.donation-type-tab.active, .donation-type-tab:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background: var(--blue-light);
}

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amount-btn {
  padding: 12px 8px;
  border: 2px solid #e8ecf0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  background: #fff;
  color: var(--text-dark);
}
.amount-btn.active, .amount-btn:hover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  color: var(--blue-primary);
}
.amount-btn.popular { position: relative; }
.amount-btn.popular::after {
  content: 'Popular';
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: var(--text-dark);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 50px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.custom-amount-wrap { position: relative; margin-bottom: 20px; }
.custom-amount-wrap .currency-symbol {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-gray);
}
.custom-amount-input {
  padding-left: 32px !important;
  font-size: 18px;
  font-weight: 700;
  height: 52px;
  border: 2px solid #e8ecf0;
  border-radius: var(--radius-sm);
}
.custom-amount-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(11,78,162,.1);
}

.form-label { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-control, .form-select {
  border: 2px solid #e8ecf0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(11,78,162,.1);
}

.btn-donate-main {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  width: 100%;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-donate-main:hover {
  background: linear-gradient(135deg, var(--blue-secondary), var(--blue-primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11,78,162,.3);
  color: #fff;
}

.payment-icons { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 14px; }
.payment-icon-badge {
  background: var(--section-bg);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-gray);
  border: 1px solid #e8ecf0;
}

.gateway-btn {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border: 2px solid #e8ecf0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-gray);
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
}
.gateway-btn i { font-size: 15px; }
.gateway-btn.active, .gateway-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background: var(--blue-light);
}

.donate-trust-item { display: flex; gap: 14px; margin-bottom: 18px; }
.donate-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}
.donate-trust-item strong { display: block; font-size: 14.5px; color: var(--text-dark); }
.donate-trust-item span { font-size: 13px; }

.bank-transfer-note {
  background: var(--blue-light);
  border: 1px solid #c7deff;
  border-radius: var(--radius-sm);
  padding: 16px;
}

/* ─── Volunteer Section ──────────────────────────────── */
.volunteer-section { background: var(--cream); }
.volunteer-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: transform var(--transition);
}
.volunteer-card:hover { transform: translateX(4px); }
.volunteer-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ─── Newsletter Section ─────────────────────────────── */
.newsletter-section { background: var(--blue-light); }
.newsletter-form-main .form-control {
  height: 52px;
  border-radius: 50px 0 0 50px !important;
  border: 2px solid #d0e4ff;
  padding-left: 24px;
}
.newsletter-form-main .btn {
  border-radius: 0 50px 50px 0 !important;
  padding: 0 28px;
  background: var(--blue-primary);
  color: #fff;
  font-weight: 600;
  border: none;
}
.newsletter-form-main .btn:hover { background: var(--blue-secondary); }

/* ─── About / Cause Cards ────────────────────────────── */
.cause-icon-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.cause-icon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); background: var(--blue-primary); }
.cause-icon-card:hover .cause-card-icon { background: rgba(255,255,255,.2); color: #fff; }
.cause-icon-card:hover h6, .cause-icon-card:hover p { color: rgba(255,255,255,.9); }
.cause-icon-card:hover h6 { color: #fff; }

.cause-card-icon {
  width: 64px; height: 64px;
  background: var(--blue-light);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--blue-primary);
  margin: 0 auto 16px;
  transition: all var(--transition);
}
.cause-icon-card h6 { font-size: 15px; font-weight: 700; transition: color var(--transition); }
.cause-icon-card p  { font-size: 13px; color: var(--text-gray); margin: 0; transition: color var(--transition); }

/* ─── Trust Badges ───────────────────────────────────── */
.trust-bar {
  background: var(--section-bg);
  padding: 24px 0;
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
}
.trust-badge { display: flex; align-items: center; gap: 10px; justify-content: center; }
.trust-badge i { color: var(--success); font-size: 20px; }
.trust-badge span { font-size: 13px; font-weight: 600; color: var(--text-dark); }

/* ─── Footer ─────────────────────────────────────────── */
.footer { background: #0d1b2e; }
.footer-top { padding: 64px 0 40px; }
.footer-heading { color: #fff; font-family: 'Inter',sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer-text { color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { color: rgba(255,255,255,.55); font-size: 13px; margin-bottom: 8px; }
.footer-contact i { color: var(--blue-light); width: 16px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  margin-right: 8px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--text-dark); }
.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ─── Breadcrumb ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
  color: #fff;
  padding: 64px 0 48px;
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 42px); margin-bottom: 10px; }
.page-hero .lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 600px; }
.emergency-hero { background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%); }
.breadcrumb { margin: 0; background: none; padding: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-item.active { color: rgba(255,255,255,.5); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.breadcrumb-nav { font-size: .875rem; color: rgba(255,255,255,.7); }
.breadcrumb-nav a { color: rgba(255,255,255,.8); text-decoration: none; }

/* ─── Admin ──────────────────────────────────────────── */
/* (admin styles are in separate file) */

/* ─── Animations ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Utilities ──────────────────────────────────────── */
.bg-section     { background: var(--section-bg); }
.bg-cream       { background: var(--cream); }
.text-blue      { color: var(--blue-primary) !important; }
.text-gold      { color: var(--gold) !important; }
.rounded-xl     { border-radius: var(--radius) !important; }
.shadow-card    { box-shadow: var(--shadow) !important; }
.border-top-blue { border-top: 4px solid var(--blue-primary); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-collapse { background: #fff; padding: 16px; border-radius: var(--radius); margin-top: 8px; box-shadow: var(--shadow-lg); }
  .hero { min-height: auto; padding: 60px 0 40px; }
  .hero-visual { margin-top: 40px; }
  .donation-widget { position: static; margin-top: 40px; }
  .stats-bar { margin-top: 0; border-radius: 0; }
  .stat-divider { display: none; }
}
@media (max-width: 576px) {
  .section-pad { padding: 60px 0; }
  .hero h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 30px; }
  .donation-widget { padding: 24px 18px; }
}

/* ─── Loader / Spinner ──────────────────────────────── */
.spinner-btn { display: none; }
.btn-loading .spinner-btn  { display: inline-block; }
.btn-loading .btn-text-label { display: none; }

/* ─── Alert messages ─────────────────────────────────── */
.alert-floating {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 9999;
  min-width: 280px;
  max-width: 380px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ─── Skip link (a11y) ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav span { margin: 0 6px; }
.text-gold { color: var(--gold) !important; }

/* ── Value Cards ──────────────────────────────────────────────── */
.value-card {
    background: var(--section-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    border-left: 3px solid var(--primary);
}
.value-icon {
    width: 44px;
    height: 44px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.value-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.value-card p { font-size: .875rem; color: var(--text-gray); margin: 0; }

/* ── Transparency Circles ─────────────────────────────────────── */
.transparency-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--pct)), #eee 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.transparency-circle.secondary { background: conic-gradient(var(--secondary) calc(var(--pct)), #eee 0); }
.transparency-circle.gold { background: conic-gradient(var(--gold) calc(var(--pct)), #eee 0); }
.transparency-inner {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.transparency-num { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); }
.transparency-label { font-size: .65rem; color: var(--text-gray); text-align: center; }
.transparency-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 24px;
    height: 100%;
    transition: all var(--transition);
}
.transparency-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ── Causes Filter ────────────────────────────────────────────── */
.causes-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--section-bg);
    color: var(--text-dark);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s;
    border: 1.5px solid transparent;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── General Donation Card ────────────────────────────────────── */
.general-donation-card {
    background: var(--light-blue);
    border-radius: var(--radius-xl);
    padding: 40px;
    border-left: 4px solid var(--primary);
}

/* ── Blog Cards ───────────────────────────────────────────────── */
.blog-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img { height: 200px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-img-placeholder { height: 200px; background: var(--light-blue); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); opacity: .4; }
.blog-body { padding: 24px; }
.blog-title { font-size: 1.1rem; font-weight: 700; margin: 8px 0; }
.blog-title a { color: var(--text-dark); text-decoration: none; }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: .875rem; color: var(--text-gray); margin-bottom: 16px; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; }
.blog-date { font-size: .8rem; color: var(--text-gray); }
.read-more { font-size: .875rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.read-more i { transition: transform .2s; }
.read-more:hover i { transform: translateX(4px); }

/* Blog single */
.blog-meta { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 12px; }
.blog-content { font-size: 1.05rem; line-height: 1.85; color: var(--text-dark); }
.blog-content h2, .blog-content h3 { margin-top: 32px; }
.blog-content img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; }
.sidebar-post-item { display: block; padding: 14px 20px; border-bottom: 1px solid var(--section-bg); text-decoration: none; color: var(--text-dark); }
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item:hover { background: var(--light-blue); }

/* ── Story Cards ──────────────────────────────────────────────── */
.story-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.story-media { height: 220px; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media iframe { width: 100%; height: 220px; border: none; }
.story-body { padding: 22px; }
.story-title { font-size: 1.1rem; font-weight: 700; margin: 8px 0 10px; }
.story-excerpt { font-size: .875rem; color: var(--text-gray); }
.story-person { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--section-bg); font-size: .875rem; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact-form-card { background: white; border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-sm); }
.contact-info-block { padding: 10px 0; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-icon { width: 44px; height: 44px; background: var(--light-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-info-item strong { display: block; font-size: .875rem; color: var(--text-gray); margin-bottom: 2px; }
.contact-info-item p { margin: 0; color: var(--text-dark); font-size: .95rem; }
.contact-donate-box { background: var(--light-blue); border-radius: var(--radius-lg); padding: 24px; }
.social-icon-btn { width: 38px; height: 38px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); text-decoration: none; font-size: .95rem; box-shadow: var(--shadow-sm); transition: all .2s; }
.social-icon-btn:hover { background: var(--primary); color: white; }

/* ── Events ───────────────────────────────────────────────────── */
.event-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.event-img { height: 180px; overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-body { padding: 22px; padding-top: 30px; }
.event-date-badge { position: absolute; top: 160px; right: 20px; background: var(--primary); color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.event-day { font-size: 1.2rem; font-weight: 800; line-height: 1; }
.event-month { font-size: .6rem; text-transform: uppercase; opacity: .8; }
.event-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.event-meta { font-size: .85rem; color: var(--text-gray); margin-top: 6px; }

/* ── Emergency Cards ──────────────────────────────────────────── */
.emergency-card { border-top: 4px solid var(--emergency); }
.emergency-label-hero { background: rgba(255,255,255,.2); color: white; padding: 4px 14px; border-radius: 50px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; display: inline-block; margin-bottom: 16px; }
.emergency-fill { background: var(--emergency) !important; }
.countdown-badge { background: rgba(220,38,38,.1); color: var(--emergency); padding: 4px 12px; border-radius: 50px; font-size: .8rem; font-weight: 600; display: inline-block; }
.campaign-img-placeholder.emergency-placeholder { background: rgba(220,38,38,.08); color: var(--emergency); }
.btn-emergency-donate { font-weight: 700; letter-spacing: .02em; }

/* ── Newsletter Inline ────────────────────────────────────────── */
.newsletter-inline { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter-inline input { flex: 1; padding: 14px 18px; border: none; border-radius: var(--radius); font-size: 1rem; }
.newsletter-inline button { white-space: nowrap; }

/* ── About About image grid ───────────────────────────────────── */
.about-image-grid img { width: 100%; height: 480px; border-radius: 20px; object-fit: cover; object-position: top center; background: var(--light-blue); }
@media (max-width: 767px) {
  .about-image-grid img { height: 320px; }
}

/* ── Fade-in animation ────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Quick stat item (dashboard) ──────────────────────────────── */
.quick-stat-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.quick-stat-item:last-child { border-bottom: none; }

/* ── Back to top button ───────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: background .2s;
}
#backToTop:hover { background: var(--secondary); }

/* ── Rounded helpers ──────────────────────────────────────────── */
.rounded-20 { border-radius: 20px !important; }
.shadow-soft { box-shadow: 0 8px 40px rgba(11,78,162,.12) !important; }
