/* style.css */

/* Global reset and base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(255, 221, 51, 0.15), transparent 20%),
    radial-gradient(circle at 80% 50%, rgba(228, 32, 45, 0.08), transparent 25%),
    linear-gradient(180deg, #f4f4f1 0%, #eef2f8 40%, #ffffff 100%);
  color: #13204b;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.button-primary {
  background: #e4202d;
  color: white;
  animation: subtlePulse 2s infinite;
}

.button-secondary {
  background: #ffda4a;
  color: #0b1f5b;
  border: 2px solid rgba(11, 31, 91, 0.18);
}

.button:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-3px);
}

.button-primary:hover {
  background: #c41323;
  box-shadow: 0 12px 24px rgba(228, 32, 45, 0.25);
}

.button-secondary:hover {
  background: #fff08c;
  box-shadow: 0 8px 16px rgba(11, 31, 91, 0.15);
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 8px 16px rgba(228, 32, 45, 0.18);
  }
  50% {
    box-shadow: 0 12px 28px rgba(228, 32, 45, 0.28);
  }
}

/* Header / navigation */
header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  background: rgba(244, 244, 241, 0.98);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.logo h1 {
  font-size: 1.7rem;
  margin: 0;
  color: #0b1f5b;
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li,
nav a,
.lang-select {
  white-space: nowrap;
}

nav a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: #0b1f5b;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0.4rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: #e4202d;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a:hover {
  background: rgba(228, 32, 45, 0.12);
}

.tagline {
  margin: 0.35rem 0 0;
  color: #2a3a67;
  font-size: 0.95rem;
}

main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1200px) {
  main {
    padding: 0 3rem;
  }
}

@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  nav ul {
    flex-wrap: nowrap;
  }
}

.nav-donate {
  background: #ffd700;
  color: #0b1f5b;
}

.nav-donate:hover {
  background: #e6c400;
}

.lang-select-wrapper {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

nav .lang-item {
  display: flex;
  align-items: center;
}

.lang-select {
  font: inherit;
  border: 1px solid rgba(11, 31, 91, 0.16);
  background: white;
  color: #0b1f5b;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  min-width: 9rem;
  cursor: pointer;
}

.lang-select:focus {
  outline: 2px solid #e4202d;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero section */
#intro-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #002f6c 0%, #00499a 45%, #f5f3e6 100%);
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  border-radius: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#intro-hero::before,
#intro-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
}

#intro-hero::before {
  width: 220px;
  height: 220px;
  background: rgba(255, 215, 0, 0.22);
  top: -40px;
  left: -40px;
}

#intro-hero::after {
  width: 260px;
  height: 260px;
  background: rgba(228, 32, 45, 0.18);
  bottom: -80px;
  right: -80px;
}

.hero-text {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  z-index: 1;
}

#intro-hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

#intro-hero h2::after {
  content: "";
  display: block;
  width: 5rem;
  height: 4px;
  margin: 1.2rem auto 0;
  background: #ffd700;
  border-radius: 999px;
}

#intro-hero p {
  margin: 0 auto 2rem;
  max-width: 660px;
  color: #eef2fb;
  font-size: 1.1rem;
}

#intro-hero button {
  border: none;
  background: #e4202d;
  color: white;
  padding: 1.1rem 2rem;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(228, 32, 45, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  animation: subtlePulse 2s infinite;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 215, 0, 0.28);
  color: #0b1f5b;
  background: #fff7c6;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hero-secondary:hover {
  background: #fff0a8;
  color: #09183f;
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: #ffd700;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

#intro-hero button:hover {
  background: #c41323;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(228, 32, 45, 0.3);
}

/* Section cards */
section {
  max-width: 1320px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(17, 32, 40, 0.08);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (min-width: 1600px) {
  section {
    max-width: 1500px;
  }
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(228, 32, 45, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

section h2,
section p,
section > div {
  position: relative;
  z-index: 1;
}

section h2 {
  margin-top: 0;
  color: #0b1f5b;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #0b1f5b 0%, #e4202d 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section p {
  color: #25365b;
  margin: 1rem 0 0;
  font-size: 1rem;
}

.section-content {
  max-width: 840px;
  margin: 0 auto;
}

.info-hero {
  background: linear-gradient(135deg, #ffd700 0%, #f7c510 45%, #e4202d 100%);
  color: white;
  padding: 3.5rem 1.5rem;
  margin: 2rem auto 1rem;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(228, 32, 45, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.donate-hero {
  background: linear-gradient(135deg, rgba(0, 47, 108, 0.96), rgba(228, 32, 45, 0.92));
  color: white;
  padding: 3.5rem 1.5rem;
  margin: 2rem auto 1rem;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.donate-hero .eyebrow {
  color: white;
}

.donate-hero h2 {
  color: white;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: white;
}

.donate-hero p {
  color: rgba(255, 255, 255, 0.95);
}

.donate-hero .hero-block {
  text-align: center;
}

.donate-hero .button-primary,
.donate-hero .button-secondary {
  box-shadow: 0 12px 24px rgba(11, 31, 91, 0.18);
}

#donate-button-container {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}

#donate-button {
  width: 100%;
  max-width: 420px;
}

.info-hero .eyebrow {
  color: #ffd56e;
  opacity: 0.95;
}

.info-hero h2 {
  margin: 1rem auto 1rem;
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  color: white;
  background: none !important;
  -webkit-text-fill-color: white;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}

.info-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.info-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(11, 31, 91, 0.06);
  border: 1px solid rgba(11, 31, 91, 0.08);
}

.info-card h3 {
  margin-top: 0;
  color: #0b1f5b;
  font-size: 1.15rem;
}

.info-card p {
  margin: 0.85rem 0 0;
  color: #25416b;
  line-height: 1.7;
}

.callout {
  padding: 1.6rem 1.8rem;
  margin-top: 1rem;
  border-left: 4px solid #e4202d;
  background: rgba(228, 32, 45, 0.08);
  border-radius: 18px;
}

.callout p {
  margin: 0;
  color: #0b1f5b;
  font-weight: 600;
}

.section-content ul {
  margin: 1.25rem 0;
  padding-left: 1.35rem;
  color: #25365b;
}

.section-content li {
  margin: 0.75rem 0;
  line-height: 1.7;
}

#the-problem,
#what-we-do,
#impact {
  display: block;
}

.impact-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-grid article {
  padding: 1.4rem;
  border-radius: 20px;
  background: rgba(0, 47, 108, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.impact-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(228, 32, 45, 0.15);
}

.impact-grid h3 {
  margin-top: 0;
  color: #0b1f5b;
}

.impact-grid p {
  margin: 0.85rem 0 0;
  color: #22314f;
}

.section-image {
  width: 100%;
}

.responsive-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

footer {
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  color: #25365b;
  border-top: 1px solid rgba(11, 31, 91, 0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: #0b1f5b;
  position: relative;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffd700;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-note {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

/* Slideshow styles */
#donation-flow {
  text-align: center;
}

.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  background: linear-gradient(135deg, rgba(0, 47, 108, 0.02), rgba(228, 32, 45, 0.01)),
    rgba(0, 47, 108, 0.04);
  padding: 2.5rem;
  border-radius: 24px;
  border: 2px solid rgba(0, 47, 108, 0.1);
}

.slide {
  display: none;
  text-align: center;
  animation: fadeInSlide 0.5s ease-in-out;
}

.slide.fade-in {
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-number {
  display: inline-block;
  background: #e4202d;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.slide h3 {
  color: #0b1f5b;
  font-size: 1.6rem;
  margin: 1rem 0;
}

.slide p {
  color: #25365b;
  font-size: 1rem;
  line-height: 1.6;
}

.slide figure {
  margin: 0 auto;
  max-width: 100%;
}

.slide figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.slide figure figcaption {
  margin-top: 1rem;
  color: #22314f;
  font-size: 0.95rem;
  line-height: 1.5;
}

.slide-caption {
  margin-top: 1rem;
  color: #22314f;
  font-size: 0.95rem;
  line-height: 1.5;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0b1f5b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slide-arrow:hover {
  background: #e4202d;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 20px rgba(228, 32, 45, 0.25);
}

.prev {
  left: -70px;
}

.next {
  right: -70px;
}

.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(11, 31, 91, 0.3);
  cursor: pointer;
  transition: background 0.25s ease;
}

.indicator.active {
  background: #e4202d;
}

.indicator:hover {
  background: #ffd700;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section.animate-in {
  animation: slideUpFade 0.6s ease-out forwards;
}
.testimonial-grid,
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.testimonial-card,
.gallery-item {
  padding: 1.6rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(17, 32, 40, 0.08);
  border: 1px solid rgba(11, 31, 91, 0.08);
}

.testimonial-card h3 {
  margin-top: 0;
  color: #0b1f5b;
}

.testimonial-card p {
  margin: 1rem 0 0;
  color: #334046;
  line-height: 1.7;
}

.gallery-item {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: #0b1f5b;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 221, 51, 0.12), rgba(228, 32, 45, 0.08));
}

.gallery-item small {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: #22314f;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.gallery-item figcaption {
  margin-top: 0.75rem;
  color: #22314f;
  font-size: 0.95rem;
  font-weight: 400;
}
/* Responsive styles */
@media (max-width: 900px) {
  #the-problem,
  #what-we-do {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .logo,
  nav {
    width: 100%;
  }

  .logo {
    text-align: center;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  nav a {
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0.9rem 1rem;
  }

  nav ul {
    justify-content: center;
  }

  section {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }

  #intro-hero {
    padding: 3rem 1rem;
  }

  #intro-hero p,
  section p {
    font-size: 0.98rem;
  }
}
