/* Simple, playful, and responsive CSS
   Save as styles.css in same folder as index.html */


:root {
  /* Core Palette */
  --pink-600: #d6336c;
  --pink-700: #b02a58;
  --pink-50: #fff0f4;

  /* Warm Additions */
  --terracotta: #e07a5f;
  --sand: #f2cc8f;
  --sage: #81b29a;
  --peach: #ffecd1;
  --mustard: #ffb703;
  --cream: #fdfcf8;

  /* UI Colors */
  --bg: var(--cream);
  --muted: #6b7280;
  --text: #2d2a26;
  /* Softer, warmer black */

  /* Layout & Shape */
  --container: 1100px;
  --radius: 24px;
  /* Playful, bubbly radius */

  /* Shadows - Warm and soft */
  --shadow-sm: 0 4px 12px rgba(176, 42, 88, 0.05);
  --shadow-md: 0 12px 24px -6px rgba(176, 42, 88, 0.15), 0 4px 8px -4px rgba(176, 42, 88, 0.1);
  --shadow-hover: 0 20px 32px -8px rgba(176, 42, 88, 0.2);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  margin: 0;
  color: var(--text);
  background-color: var(--cream);
  background-image:
    radial-gradient(at 10% 20%, hsla(339, 66%, 90%, 1) 0px, transparent 50%),
    radial-gradient(at 90% 10%, hsla(43, 83%, 90%, 1) 0px, transparent 50%),
    radial-gradient(at 40% 90%, hsla(150, 24%, 90%, 1) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(28, 100%, 93%, 1) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 700;
  margin-top: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.logo {
  width: 48px;
  height: 48px;
  background: var(--pink-50);
  color: var(--pink-700);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
}

.site-title {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.tag {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 20px
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

.nav a:not(.contact-btn):hover {
  color: var(--pink-600);
}

.contact-btn {
  background: var(--pink-600);
  color: white !important;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s !important;
  box-shadow: var(--shadow-sm);
}

.contact-btn:hover {
  background: var(--pink-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lang-select {
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #e6e6e9;
  color: var(--text);
  font-size: 24px;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 50;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--pink-50);
  border-color: var(--pink-200);
  color: var(--pink-700);
}

/* Hero */
/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center
}

.hero-copy h1 {
  font-size: 48px;
  margin: 0;
  line-height: 1.05
}

.hero-copy p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 520px
}

.hero-ctas {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600
}

.btn.primary {
  background: var(--pink-600);
  color: white
}

.btn.outline {
  border: 2px solid var(--pink-600);
  color: var(--pink-600);
  background: white
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy spring */
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--pink-600);
  color: white;
}

.btn.primary:hover {
  background: var(--pink-700);
}

.btn.outline {
  border: 2px solid var(--pink-600);
  color: var(--pink-600);
  background: transparent;
}

.btn.outline:hover {
  background: var(--pink-50);
}

.btn.big {
  padding: 18px 32px;
  font-size: 20px
}


.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Sections */
.section {
  padding-top: 60px;
}

.section-title {
  text-align: center;
  font-size: 42px;
  margin: 0 0 16px 0;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 48px auto;
}

/* Grid utilities */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Cards (Glassmorphism) */
.cards .card,
.stat,
.partner-card,
.contact-form {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(176, 42, 88, 0.05);
}

.cards .card:hover,
.stat:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(176, 42, 88, 0.15);
  border-color: #fff;
}

.cards .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
}

.cards .card h3 {
  color: var(--text);
  margin: 0;
  font-size: 22px;
}

.cards .card p {
  color: var(--muted);
  margin-top: 12px;
}

/* Donate */
.donate-section {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  margin: 40px auto;
  padding: 60px !important;
  color: var(--text) !important;
  box-shadow: 0 4px 16px rgba(176, 42, 88, 0.05);
  /* Matching cards */
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.donate-section .section-title {
  color: var(--pink-700);
}

.donate-section .section-sub {
  color: var(--muted);
}

.donate-section .card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.donate-section .card:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.donate-section h3 {
  color: var(--pink-700);
}

.donate-section p {
  color: var(--muted);
}

.donate-cta {
  text-align: center;
  margin-top: 40px
}

.donate-note {
  color: var(--muted);
  margin-top: 16px;
  font-size: 14px;
}

/* Stats - Warm & Colorful */
.stats {
  margin-top: 0;
}

.stat img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.stat-number {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  color: var(--pink-600);
  margin-top: 0px;
}

.stat-label {
  color: var(--muted);
  font-weight: 500;
}

/* Use warm colors for alternating stats if customized */
.stat:nth-child(2) .stat-number {
  color: var(--terracotta);
}

.stat:nth-child(3) .stat-number {
  color: var(--sage);
}

/* Partner */
.partner-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-align: center;
}

.partner-card img {
  width: 100%;
  max-height: 60px;
  object-fit: contain;
  margin: 0 10px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.partner-card img:hover {
  opacity: 1;
}

/* Social */
.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: -32px;
}

.social-links a {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.social-links a:hover {
  transform: scale(1.1);
  /* removed rotate */
  box-shadow: var(--shadow-md);
  background: white;
}

.social-links a img {
  width: 32px;
  height: 32px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 48px;
  align-items: start;
}

.contact-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  /* transform: rotate(-2deg); removed skew */
  /* border: 4px solid rgba(255, 255, 255, 0.6); removed double box */
}

.contact-form {
  background: rgba(255, 255, 255, 0.6);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-form label {
  display: block;
  margin-top: 12px
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #e6e6e9;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pink-600);
}

.contact-form button {
  margin-top: 12px
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  padding: 60px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.brand.small {
  display: flex;
  align-items: center;
  gap: 12px
}

.logo.small {
  width: 36px;
  height: 36px;
  background: var(--pink-600);
  color: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700
}

.site-title-footer {
  font-weight: 700;
  color: var(--pink-700);
}

.tag.small {
  font-size: 12px;
  color: var(--muted);
}

.copyright {
  color: var(--muted);
}

/* Responsive */
@media (max-width:980px) {

  .hero,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    font-size: 24px;
  }

  .lang-select {
    margin-left: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: 32px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .timeline-date {
    margin-left: 64px;
    padding-bottom: 10px;
    text-align: left;
  }

  .timeline-content {
    margin-left: 64px;
  }

  .modal-card {
    padding: 20px;
  }

  .contact-image {
    height: 200px;
  }
}

/* --- New Styles for Impact Page & Clean Up --- */

/* Timeline Construction */
.timeline-section {
  background: transparent;
  padding: 40px 0;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e6e6e9;
  z-index: 0;
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  z-index: 1;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.2s;
}

.timeline-content:hover {
  transform: translateY(-2px);
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  z-index: 2;
}

/* Colorful markers */
.timeline-item:nth-child(1) .timeline-marker {
  background: var(--terracotta);
}

.timeline-item:nth-child(2) .timeline-marker {
  background: var(--sage);
}

.timeline-item:nth-child(3) .timeline-marker {
  background: var(--mustard);
}

.timeline-item:nth-child(4) .timeline-marker {
  background: var(--pink-600);
}

@media (min-width: 768px) {
  .timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .timeline-content {
    width: 45%;
  }

  .timeline-marker {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-date {
    width: 45%;
    text-align: right;
    padding: 0 20px;
  }

  .timeline-item:nth-child(even) .timeline-date {
    text-align: left;
  }
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
}

.filter-btn.active {
  color: var(--pink-600);
  border-bottom-color: var(--pink-600);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #fff;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--muted);
}

.close-modal:hover {
  background: #e5e7eb;
  color: var(--text);
}

/* Helpers & Form Status */
.chart-wrapper {
  position: relative;
  height: 250px;
  width: 100%;
}

.hidden {
  display: none !important;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
  background: var(--pink-50);
  color: var(--pink-700);
  margin-bottom: 8px;
}

#form-status p {
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 1rem;
}

#form-status .success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

#form-status .error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* Simplified Article Card Icons */
.article-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 40px;
}

.bg-pink-50 {
  background: var(--pink-50);
}

.bg-green-50 {
  background: #f0fdf4;
}

.bg-orange-50 {
  background: #fff7ed;
}

.bg-blue-50 {
  background: #f0f9ff;
}

.bg-gray-50 {
  background: #f3f4f6;
}

.mt-2 {
  margin-top: 10px;
}

.mt-4 {
  margin-top: 20px;
}

.mb-4 {
  margin-bottom: 20px;
}

.text-left {
  text-align: left;
}

.text-sm {
  font-size: 13px;
}

.text-muted {
  color: var(--muted);
}

.read-more-btn {
  padding: 6px 0;
  color: var(--pink-600);
  background: none;
  text-align: left;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* Impact Donate Section */
.impact-donate-slider-container {
  background: rgba(255, 255, 255, 0.45);
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.impact-donate-label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--text);
}

.impact-donate-range {
  width: 100%;
  cursor: pointer;
}

.impact-donate-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}

.impact-donate-result {
  font-size: 24px;
  font-weight: 800;
  color: var(--pink-600);
  margin-top: 20px;
}

.impact-donate-desc {
  color: var(--muted);
  margin-top: 5px;
}

/* Modal Content Styles */
.modal-italic {
  font-style: italic;
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--muted);
}

.modal-h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 20px;
  color: var(--text);
}

.modal-p {
  line-height: 1.6;
  color: var(--text);
}

.modal-list {
  padding-left: 16px;
  color: var(--text);
  margin-top: 10px;
}