/* -------------------------
  Marshmallow Rainbow - style.css
   Cleaned & consolidated
   Replace your existing style.css with this
   ------------------------- */

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Body */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  margin:8px
}

/* Header (sticky + blur) */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

/* header.scrolled (toggle this class on the header element in JS) */
header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 6px 24px;
}

/* Logo */
.logo img {
  width: clamp(120px, 25vw, 180px);
}

/* Navigation */
nav { display: flex; align-items: center; gap: 12px; }

/* Desktop nav - horizontal list */
.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
}

/* Rainbow underline on hover */
.nav-links li a::after {
  content: "";
  height: 2px;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  width: 0;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: width 0.28s ease;
}

.nav-links li a:hover::after { width: 100%; }

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.9rem;
  cursor: pointer;
  color: #333;
  padding: 6px;
  line-height: 1;
}

/* Content sections */
section { padding: 50px 20px; max-width: 1200px; margin: 0 auto; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 6s linear infinite, glowPulse 3s ease-in-out infinite;
  background-size: 400% 400%;
}
@keyframes rainbow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* Gentle glowing pulse */
@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(255, 0, 0, 0.5),
      0 0 12px rgba(255, 165, 0, 0.4),
      0 0 18px rgba(0, 255, 255, 0.3);
  }
  50% {
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.8),
      0 0 24px rgba(255, 0, 255, 0.6),
      0 0 36px rgba(0, 255, 255, 0.4);
  }
}
/* Program card simplified and consistent */
.program-card {
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Program image sizing (responsive) */
.program-img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 120px;
}

/* Make the program text use remaining space */
.program-card > div { flex: 1; }

/* Read more button */
.read-more-btn {
  margin-top: 8px;
  display:inline-block;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s ease;
}
.read-more-btn:hover { transform: translateY(-2px); }

/* Contact layout */
.contact-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-form, .map { flex: 1 1 300px; min-width: 260px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px; margin: 8px 0; border: 1px solid #ccc; border-radius: 6px;
}
.contact-form button {
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  border: none; color: white; padding: 10px 14px; border-radius: 8px; cursor: pointer;
}

/* Modal */
.modal { display:none; position:fixed; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:2000; align-items:center; justify-content:center; padding:20px; }
.modal-content {
  background:#fff; border-radius:12px; padding:22px; max-width:640px; width:100%; box-shadow:0 12px 30px rgba(0,0,0,0.3);
}

/* Footer */
footer {
  background:#111; color:#fff; text-align:center; padding:22px 16px; margin-top:40px;
}
footer p { color:#bbb; margin-top:10px; font-size:14px; }
.social-icons { display:flex; gap:12px; justify-content:center; align-items:center; }

/* social icons */
.social-icon { color:#fff; font-size:22px; transition: transform .18s ease, color .18s; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; }
.social-icon:hover { transform: scale(1.12); }
.social-icon.facebook:hover  { color:#1877f2; }
.social-icon.instagram:hover { color:#e4405f; }
.social-icon.linkedin:hover  { color:#0077b5; }

/* Impact stats */
.impact-stats { text-align:center; padding:64px 20px; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:28px; max-width:1000px; margin:0 auto; }
.stat { background: #fafafa; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.counter { font-size: 2rem; font-weight: bold; display: block; margin: 10px 0; }

/* small helper */
.h-hidden { display:none !important; }


/* -------------------------
   RESPONSIVE (mobile)
   ------------------------- */
/* -------------------------
   EXTRA SMALL PHONES (up to 480px)
   ------------------------- */
@media (max-width: 480px) {
  .nav-links {
    display: none; /* fully hidden for very small screens */
  }

  .menu-toggle {
    display: block; /* hamburger still visible */
  }

  .logo img {
    display: none; /* hide logo if needed */
  }
}

/* -------------------------
   SMALL / MEDIUM PHONES + TABLET LANDSCAPE (481px–768px)
   ------------------------- */
@media (min-width: 481px) and (max-width: 768px) {
   .menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 2001;
    font-size: 2rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
  }

   /* Stack nav links as dropdown */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    max-height: 0;           /* start hidden */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: 220px;
    padding: 10px 0;
    z-index: 2000;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    display: flex;
     max-height: 400px;
    opacity: 1;
    transform: translateY(0);      /* enough to fit menu items */

   /* Style dropdown links */
  .nav-links li {
    text-align: center;
    padding: 8px 0;
  }

  .nav-links li a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 10px 0;
  }

  .nav-links li a:hover {
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    color: #fff;

  .nav-links .close-btn {
    display: block;
    align-self: flex-end;
    font-size: 1.2rem;
    color: white;
    margin: 6px 10px;
    cursor: pointer;
  }

  .logo img {
    display: block;
    height: 60px;
    width: auto;
  }
  header {
    justify-content: space-between;
    padding: 10px 18px;
  }
}

/* -------------------------
   DESKTOP (769px+)
   ------------------------- */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 20px;
    background: none;
    padding: 0;
    box-shadow: none;
    max-height: none;
  }

  .nav-links .close-btn {
    display: none;
  }

  .logo img {
    display: block;
    height: 100px;
    width: 350px;
  }
}
  }
}