@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --primary-blue: #1A3C6E;
  --primary-blue-dark: #0f2444;
  --primary-blue-light: #2c5999;
  --primary-blue-trans: rgba(26, 60, 110, 0.08);
  --primary-blue-opaque: rgba(26, 60, 110, 0.9);
  --accent-gold: #F4A823;
  --accent-gold-dark: #d58c14;
  --accent-gold-light: #f6be59;
  --bg-cream: #FDF6EC;
  --bg-white: #FFFFFF;
  --bg-muted: #F8F9FA;
  --text-dark: #2D2D2D;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  --teal: #1A7A6E;
  --soft-green: #4CAF7D;
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Open Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 20px rgba(26, 60, 110, 0.06);
  --shadow-lg: 0 20px 40px rgba(26, 60, 110, 0.1);
  --shadow-hover: 0 24px 48px rgba(26, 60, 110, 0.16);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
}

h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-blue);
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition-fast);
}

p {
  color: var(--text-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 8px;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-light);
  border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--primary-blue-dark);
  border: 2px solid var(--accent-gold);
}

.btn-gold:hover {
  background-color: var(--accent-gold-dark);
  border-color: var(--accent-gold-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-outline-white:hover {
  background-color: var(--text-light);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline-blue:hover {
  background-color: var(--primary-blue);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* --- HEADER / NAVIGATION SYSTEM (Barnardo's Breakdown Replicated) --- */
header {
  background-color: var(--bg-white);
  position: relative;
  z-index: 1000;
  width: 100%;
}

header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Row 1: Logo, Search, CTA */
.header-top {
  border-bottom: 1px solid #ECECEC;
  padding: 12px 0;
}

.header-top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Logo Design */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-weight: 900;
  font-family: var(--font-display);
  font-size: 1.2rem;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-main-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 16px;
  padding-right: 48px;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.header-search input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-trans);
}

.header-search button {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 44px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.header-search button:hover {
  color: var(--primary-blue);
}

/* Row 2: Navigation Links Dropdowns */
.header-nav-bar {
  background-color: var(--bg-white);
  padding: 10px 0;
  border-bottom: 2px solid var(--primary-blue-trans);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-blue);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-item:hover .nav-link {
  color: var(--accent-gold-dark);
}

.nav-link svg {
  transition: var(--transition-fast);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown styling */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  border: 1px solid #ECECEC;
  border-top: 3px solid var(--primary-blue);
  width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 100;
  padding: 12px 0;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--primary-blue-trans);
  color: var(--primary-blue);
  padding-left: 24px;
}

/* Mobile Menu Controls */
.mobile-controls {
  display: none;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- HERO SECTION & CAROUSEL --- */
.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  padding: 140px 0 100px;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: #000; /* dark background for smooth transition */
}

/* Slide elements background */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-overlay-card {
  background-color: var(--primary-blue-opaque);
  padding: 48px;
  border-radius: var(--radius-md);
  max-width: 580px;
  border-left: 6px solid var(--accent-gold);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-overlay-card h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 800;
  transition: opacity 0.4s ease;
}

.hero-overlay-card p {
  color: #ECECEC;
  font-size: 1.1rem;
  margin-bottom: 30px;
  transition: opacity 0.4s ease;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Carousel Prev/Next Buttons */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 4;
  pointer-events: none;
}

.carousel-control-btn {
  background-color: rgba(26, 60, 110, 0.45);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.carousel-control-btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-blue-dark);
  transform: scale(1.08);
}

/* Dots indicator indicators */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.carousel-dot.active {
  background-color: var(--accent-gold);
  transform: scale(1.25);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* Counter bar under Hero */
.counter-bar {
  background-color: var(--primary-blue-dark);
  color: var(--text-light);
  padding: 24px 0;
  border-bottom: 4px solid var(--accent-gold);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.counter-item h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.counter-item p {
  color: #D3E0F2;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 700;
}

/* --- MISSION STATEMENT BAND --- */
.mission-band {
  background-color: var(--bg-cream);
  padding: 50px 0;
  text-align: center;
}

.mission-band h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- WAVY / ZIGZAG WRAPPERS (CSS Clip-path waves) --- */
.section-wave {
  position: relative;
  background-color: var(--bg-cream);
  padding: 80px 0;
}

.wave-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider-top svg {
  position: relative;
  display: block;
  width: calc(130% + 1.3px);
  height: 40px;
  transform: rotate(180deg);
}

.wave-divider-top .shape-fill {
  fill: var(--bg-white);
}

.wave-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(130% + 1.3px);
  height: 40px;
}

.wave-divider-bottom .shape-fill {
  fill: var(--bg-white);
}

/* --- NIGERIAN NAIRA DONATION WIDGET (Splitted Inline Widget) --- */
.donation-widget-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.donation-widget-wrapper {
  background-color: var(--primary-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.donation-widget-content {
  flex: 1.2;
  padding: 48px;
  color: var(--text-light);
}

.donation-widget-content h2 {
  color: var(--text-light);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.donation-widget-content p {
  color: #ECECEC;
  margin-bottom: 28px;
}

/* Toggle tabs */
.donation-widget-tabs {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  max-width: 280px;
}

.donation-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.donation-tab.active {
  background-color: var(--bg-white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

/* Amounts selection grid */
.donation-amounts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.amount-btn {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid transparent;
  padding: 12px 6px;
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  font-size: 0.95rem;
}

.amount-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.amount-btn.active {
  background-color: var(--accent-gold);
  color: var(--primary-blue-dark);
  border-color: var(--accent-gold);
}

/* Custom amount input */
.custom-amount-wrapper {
  display: none;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.custom-amount-wrapper.active {
  display: flex;
}

.custom-amount-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  outline: none;
}

.custom-amount-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Impact statement message box */
.donation-impact-box {
  background-color: rgba(244, 168, 35, 0.15);
  border-left: 4px solid var(--accent-gold);
  padding: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
  font-weight: 600;
  color: var(--accent-gold-light);
  font-size: 1rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.donation-widget-image {
  flex: 0.8;
  background-image: linear-gradient(to right, var(--primary-blue), transparent 40%), url('assets/hero_slider_1.png');
  background-size: cover;
  background-position: center;
}

/* --- AUDIENCE SEGMENTATION CARDS --- */
.audience-section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 48px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  border: 1px solid #F0F0F0;
}

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

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.card-item:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
}

/* --- THE SPLIT LAYOUT (Featured Impact Story) --- */
.split-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.split-container {
  display: flex;
  gap: 60px;
  align-items: center;
}

.split-media {
  flex: 1;
  position: relative;
}

.split-image-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-bottom: 6px solid var(--accent-gold);
}

.split-image-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent-gold);
  color: var(--primary-blue-dark);
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.split-content {
  flex: 1;
}

.split-content .section-tag {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: inline-block;
}

.split-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.split-content p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.quote-block {
  border-left: 4px solid var(--primary-blue);
  padding: 8px 20px;
  margin: 24px 0;
  background-color: var(--primary-blue-trans);
  font-style: italic;
  color: var(--primary-blue-dark);
  font-size: 1.1rem;
}

/* --- THREE COLORED TILE CARDS (Get Involved) --- */
.colored-tiles-section {
  padding: 80px 0;
  background-color: var(--bg-cream);
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tile-card {
  border-radius: var(--radius-md);
  padding: 48px 32px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

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

.tile-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--text-light);
}

.tile-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.tile-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 28px;
  flex: 1;
}

.tile-card .btn {
  width: 100%;
}

.bg-tile-gold {
  background-color: var(--accent-gold);
  color: var(--primary-blue-dark);
}
.bg-tile-gold h3, .bg-tile-gold .tile-icon {
  color: var(--primary-blue-dark);
}
.bg-tile-gold .tile-icon {
  background-color: rgba(26,60,110,0.08);
}
.bg-tile-teal {
  background-color: var(--teal);
}
.bg-tile-green {
  background-color: var(--soft-green);
}

/* --- PARTNERS STRIP --- */
.partners-section {
  padding: 60px 0;
  background-color: var(--bg-white);
  border-top: 1px solid #ECECEC;
  border-bottom: 1px solid #ECECEC;
  text-align: center;
}

.partners-section p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.partners-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0.7;
}

.partner-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #A0AEC0;
}

/* --- NEWSLETTER SIGNUP BANNER --- */
.newsletter-banner {
  background-color: var(--primary-blue-dark);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.newsletter-content {
  max-width: 650px;
  margin: 0 auto;
}

.newsletter-content h2 {
  color: var(--text-light);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.newsletter-content p {
  color: #D3E0F2;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.newsletter-form button {
  background-color: var(--accent-gold);
  border: none;
  color: var(--primary-blue-dark);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--accent-gold-dark);
  color: var(--text-light);
}

/* --- DYNAMIC NEWS / EVENTS GRID --- */
.events-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.2rem;
}

.event-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #ECECEC;
  transition: var(--transition-medium);
}

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

.event-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.event-card:hover .event-img img {
  transform: scale(1.05);
}

.event-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-blue);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.event-body {
  padding: 24px;
}

.event-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.event-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.event-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.event-link:hover {
  color: var(--accent-gold-dark);
}

/* --- FOOTER --- */
footer {
  background-color: var(--primary-blue-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-gold);
}

.footer-about p {
  color: #D3E0F2;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.footer-social-icon:hover {
  background-color: var(--accent-gold);
  color: var(--primary-blue-dark);
  transform: translateY(-3px);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #D3E0F2;
  font-size: 0.95rem;
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: #D3E0F2;
  font-size: 0.95rem;
}

.footer-contact-info svg {
  flex-shrink: 0;
  color: var(--accent-gold);
  margin-top: 4px;
}

.footer-newsletter input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background-color: rgba(0,0,0,0.2);
  color: var(--text-light);
  margin-bottom: 12px;
  outline: none;
}

.footer-newsletter input::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer-newsletter button {
  width: 100%;
  padding: 10px;
  background-color: var(--accent-gold);
  border: none;
  color: var(--primary-blue-dark);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.footer-newsletter button:hover {
  background-color: var(--accent-gold-dark);
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: #A0B9D9;
}

.footer-bottom p {
  color: #A0B9D9;
  margin-bottom: 8px;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-bottom-links a {
  color: #A0B9D9;
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  z-index: 999;
  transition: var(--transition-fast);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: var(--primary-blue);
  color: var(--text-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-3px);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 5px solid var(--primary-blue);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-text a {
  color: var(--primary-blue);
  font-weight: 700;
}

.cookie-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* --- SUBPAGE BANNER COMMON --- */
.subpage-banner {
  background-image: linear-gradient(rgba(26,60,110,0.6), rgba(26,60,110,0.75)), url('assets/about_banner.png');
  background-size: cover;
  background-position: center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 60px; /* spacing to account for sticky header */
  color: var(--text-light);
  text-align: center;
  border-bottom: 4px solid var(--accent-gold);
  position: relative;
}

.subpage-banner h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--text-light);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subpage-banner p {
  color: #ECECEC;
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* --- DYNAMIC SUBPAGE CONTENT COMMON --- */
.subpage-section {
  padding: 80px 0;
}

/* --- TIMELINE MILESTONES --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-blue-trans);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-white);
  border: 4px solid var(--accent-gold);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -10px;
}

.timeline-content {
  padding: 24px;
  background-color: var(--bg-muted);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary-blue);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold-dark);
  margin-bottom: 6px;
}

/* --- DONATION FORM PAGE SPECIFIC --- */
.donation-page-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.donation-form-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #ECECEC;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-blue-trans);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--primary-blue);
}

.form-control {
  padding: 12px 16px;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-trans);
}

/* cause and details boxes */
.bank-details-box {
  background-color: var(--bg-cream);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(244,168,35,0.2);
  padding-bottom: 8px;
}

.bank-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* Sidebar elements */
.sidebar-card {
  background-color: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26,60,110,0.05);
  margin-bottom: 30px;
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* --- RESPONSIVENESS BREAKPOINTS --- */
@media (max-width: 1024px) {
  .hero-section {
    padding: 100px 0 80px;
  }
  .hero-overlay-card h1 {
    font-size: 2.3rem;
  }
  .cards-grid-3, .tiles-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-container {
    flex-direction: column;
    gap: 40px;
  }
  .donation-page-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 10px 0;
  }
  .header-search {
    display: none; /* Hide top search bar on mobile, reveal via toggle if needed */
  }
  .header-nav-bar {
    display: none; /* Controlled by slide-in navigation drawer */
  }
  .mobile-controls {
    display: flex;
  }
  .hero-section {
    background-position: 30% center;
    padding: 60px 0;
    min-height: 480px;
  }
  .hero-overlay-card {
    padding: 32px;
    max-width: 100%;
  }
  .counter-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .donation-widget-wrapper {
    flex-direction: column;
  }
  .donation-widget-image {
    height: 250px;
  }
  .donation-widget-content {
    padding: 32px 20px;
  }
  .donation-amounts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-grid-3, .tiles-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form button {
    padding: 14px;
  }
  .timeline::after {
    left: 31px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  .timeline-container::after {
    left: 21px;
  }
  .timeline-right {
    left: 0%;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .back-to-top {
    right: 20px;
    bottom: 90px;
  }
  .whatsapp-float {
    right: 20px;
    bottom: 20px;
  }
}

/* Drawer Mobile Menu Style */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1999;
  display: none;
}

.mobile-drawer-backdrop.active {
  display: block;
}

.mobile-submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 10px;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.mobile-submenu.active {
  display: flex;
}

.mobile-submenu-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mobile-submenu-link:hover {
  color: var(--primary-blue);
}
