/* ===========================
   Global Reset & Base Styles
   =========================== */
*,*::before,*::after { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color: #111827; background: #f9fafb; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* ===========================
   Layout Utilities
   =========================== */
.container { width: min(1120px,100% - 2rem); margin: 0 auto; }
.section { padding: 3rem 0; }
.section-light { background: #f3f4f6; }
.section-title { font-size: 1.75rem; margin-bottom: 1.5rem; }

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  background: #000; color: #f10101; position: sticky; top: 0; z-index: 20; opacity: .95;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.logo a { display: flex; align-items: center; gap: .4rem; color: inherit; }
.logo-mark {
  background: #f10101; color: #111827; font-weight: 700; padding: .2rem .5rem;
  border-radius: 999px; font-size: .9rem;
}
.logo-text { font-size: 1.1rem; max-width: 120rem; font-weight:700; }
.main-nav ul {
  list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; align-items: center;
}
.main-nav a {
  font-size: .9rem; color: #e5e7eb; padding: .3rem .5rem; border-radius: 999px;
}
.main-nav a:hover,.main-nav a.active { background: #f9fafb; color: #111827; }
.btn-donate-nav { background: #f10101; color: #111827!important; font-weight: 600; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: none; flex-direction: column; gap: .2rem; background: transparent; border: none;
  padding: .25rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 1.2rem; height: 2px; background: #f9fafb; }

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: #111827; /* Fallback color */
  color: #f9fafb;
  overflow: hidden; /* Ensures video stays within bounds */
}

/* Video Background Styles */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4; /* Slightly dim the video itself */
}

/* Overlay to ensure text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at top left, rgba(241, 1, 1, 0.7) 0, rgba(17, 24, 39, 0.85) 60%);
}

.hero-grid { 
  position: relative; /* Brings content above video */
  z-index: 2;
  display: grid; 
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); 
  gap: 2.5rem; 
  align-items: center; 
}

.hero-text h1 { font-size: 2.3rem; margin-bottom: .75rem; }
.hero-subtitle { font-size: 1rem; max-width: 30rem; }
.hero-cta,.hero-impact { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-impact { gap: 1.5rem; margin-top: 1.5rem; }
.impact-item { min-width: 90px; }
.impact-number { display: block; font-size: 1.3rem; font-weight: 700; }
.impact-label { font-size: .8rem; color: #e5e7eb; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem 1.2rem; border-radius: 999px; font-size: .9rem; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease,color .15s ease,border-color .15s ease,transform .1s ease;
}
.btn-primary { background: #f10101; color: #fff; border-color: #f10101; font-weight: 600; }
.btn-primary:hover { background: #ea580c; border-color: #ea580c; transform: translateY(-1px); }
.btn-outline { background: #0f172a; color: #f9fafb; border-color: transparent; }
.btn-outline:hover { background: #e5e7eb; color: #111827; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.fab-donate {
  position: fixed; right: 1rem; bottom: 1rem; background: #f10101; color: #fff;
  border-radius: 999px; border: none; padding: .6rem 1.2rem; font-size: .9rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 12px 20px rgba(15,23,42,.35); z-index: 40;
}

/* ===========================
   Cards & Grids
   =========================== */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.two { grid-template-columns: repeat(2,1fr); }
.card-grid.three { grid-template-columns: repeat(3,1fr); }
.card-grid.four { grid-template-columns: repeat(4,1fr); }
.card {
  background: #fff; border-radius: .75rem; padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.08); font-size: .95rem;
  display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 .5rem; }

/* New Card Image Styles */
.card-figure {
  margin: -1.1rem -1.1rem 1rem -1.1rem;
  border-top-left-radius: .75rem;
  border-top-right-radius: .75rem;
  overflow: hidden;
  background: #e5e7eb;
}
.card-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   Split Layout
   =========================== */
.split { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 2rem; align-items: flex-start; }
.info-card { background: #111827; color: #f9fafb; border-radius: .9rem; padding: 1.25rem 1.4rem; }
.info-card .card-figure { margin: -1.25rem -1.4rem 1.25rem -1.4rem; border-radius: .9rem .9rem 0 0; }

/* ===========================
   Lists
   =========================== */
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 1.2rem; margin-bottom: .4rem; }
.list-check li::before { content: '✓'; position: absolute; left: 0; top: .1rem; font-size: .8rem; color: #16a34a; }

/* ===========================
   Truncation / Show More
   =========================== */
.truncate-wrapper {
  position: relative;
  overflow: hidden;
  max-height: 11.5rem; 
  transition: max-height 0.5s ease-out;
  mask-image: linear-gradient(180deg, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 60%, transparent 100%);
}

.truncate-wrapper.expanded {
  max-height: 800px;
  transition: max-height 0.6s ease-in;
  mask-image: none;
  -webkit-mask-image: none;
}

.truncate-toggle {
  display: inline-block;
  margin-top: 0.75rem;
  background: transparent;
  border: none;
  padding: 0;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.truncate-toggle:hover {
  text-decoration: underline;
}

/* ===========================
   Page Hero
   =========================== */
.page-hero { padding: 2.5rem 0 1.75rem; background:#020617; color: #f9fafb; }
.page-hero h1 { margin-bottom: .5rem; }

/* ===========================
   Blog Layout & Media
   =========================== */
.blog-layout { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,1fr); gap: 2rem; }
.blog-main .blog-card + .blog-card { margin-top: 1.25rem; }
.blog-meta { font-size: .8rem; color: #6b7280; }
.blog-thumb {
  margin-bottom: .5rem; border-radius: .75rem; overflow: hidden; max-height: 180px;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-feature-media { margin: 1rem 0; }
.blog-feature-media img,.blog-feature-media video,.blog-feature-media .video-embed iframe {
  max-width: 100%; width: 100%; height: auto; border-radius: .75rem; display: block;
}
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.blog-post h1 { margin-bottom: .25rem; }
.blog-content { margin-top: 1rem; font-size: .96rem; }

/* ===========================
   Forms
   =========================== */
.form-card {
  background: #fff; border-radius: .75rem; padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.form-group { margin-bottom: .9rem; }
label { display: block; font-size: .85rem; margin-bottom: .25rem; }
input[type="text"],input[type="email"],input[type="number"],input[type="file"],textarea,select {
  width: 100%; padding: .45rem .55rem; border-radius: .5rem; border: 1px solid #d1d5db; font-size: .9rem;
}
textarea { resize: vertical; }
.alert {
  padding: .6rem .8rem; border-radius: .55rem; font-size: .85rem; margin-bottom: .75rem;
}
.alert.error { background: #fef2f2; color: #b91c1c; }
.alert.success { background: #ecfdf5; color: #166534; }

/* ===========================
   Donate Page
   =========================== */
.donate-hero { display: flex; align-items: center; justify-content: space-between; }
.donate-options { max-width: 760px; }
.donate-tabs {
  display: inline-flex; background: #e5e7eb; border-radius: 999px; padding: .2rem; margin-bottom: 1rem;
}
.donate-tab {
  border: none; background: transparent; padding: .4rem 1rem; border-radius: 999px;
  font-size: .85rem; cursor: pointer;
}
.donate-tab.active { background: #111827; color: #f9fafb; }
.donate-panel { display: none; }
.donate-panel.active { display: block; }
.donate-amount-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr));
  gap: .75rem; margin-bottom: 1rem;
}
.amount-btn {
  border-radius: .75rem; border: 1px solid #d1d5db; background: #fff;
  padding: .6rem .5rem; font-size: .9rem; cursor: pointer;
}
.amount-btn span { display: block; font-size: .8rem; color: #6b7280; }
.donate-note { margin-top: .75rem; font-size: .86rem; color: #6b7280; }

/* ===========================
   Contact Layout
   =========================== */
.contact-layout { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(0,1fr); gap: 2rem; }

/* ===========================
   Footer
   =========================== */
.site-footer { background: #020617; color: #e5e7eb; padding-top: 2.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; font-size: .88rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li+li { margin-top: .35rem; }
.footer-links a { color: #e5e7eb; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  margin-top: 1.5rem; border-top: 1px solid #1f2937; padding: .8rem 0 1rem; font-size: .8rem;
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom-links { display: flex; gap: .75rem; }

/* ===========================
   Misc
   =========================== */
.text-link { font-size: .9rem; color: #1d4ed8; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ===========================
   Responsive
   =========================== */
@media (max-width:900px){
  .hero-grid,.blog-layout,.card-grid.two,.card-grid.three,.card-grid.four,
  .split,.contact-layout,.footer-grid { grid-template-columns: minmax(0,1fr); }
  .hero-text{order:2;} .hero-visual{order:1;}
  .footer-bottom-inner{flex-direction:column;align-items:flex-start;gap:.5rem;}
}
@media (max-width:720px){
  .header-inner{align-items:center;}
  .main-nav ul{
    position:absolute; right:1rem; top:3.1rem; flex-direction:column; background:#020617;
    padding:.75rem; border-radius:.75rem; gap:.4rem; min-width:180px; display:none;
  }
  .main-nav ul.open{display:flex;}
  .nav-toggle{display:flex;}
  .hero{padding-top:2.2rem;}
}