:root{--brand:#cd0b94; --hero:#38BDF8; --accent:#FF6B6B; --darkblue:#002B5B}
body{font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial}
h2.text-primary, .text-primary{color:var(--accent) !important}

/* Glassy iOS Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* MOBILE ONLY: stop layout from exceeding viewport width */
@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Make sure hero content cannot force horizontal scroll */
  .home-hero,
  .home-hero .container,
  .home-hero .row {
    overflow-x: hidden;
  }

  /* Force the long subtitle to wrap instead of running off-screen */
  .home-hero span.text-uppercase {
    display: block;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }

  /* The usual overflow culprit: the hero image frame/offset */
  .image-frame {
    max-width: 100%;
  }

  /* If your .image-offset uses translate or negative positioning,
     this prevents it from widening the page */
  .image-offset {
    max-width: 100%;
    left: 0 !important;
    right: 0 !important;
  }

  /* Ensure image never exceeds the container */
  .image-main {
    max-width: 100%;
    height: auto;
  }
}

/* small hero tweak */
section.position-relative .col-4{min-height:420px}

/* card image circle */
.card-img-top{border-radius:9999px}

/* React Home mimic */
.home-hero{background:var(--hero); position:relative; padding-top:5rem; padding-bottom:4rem; margin-top:70px}
.home-hero .wave-svg{position:absolute; bottom:-1px; left:0; width:100%; height:120px; color:var(--hero)}
.image-frame{position:relative; width:100%; max-width:480px; height:420px; border-top-right-radius:100px; border-bottom-left-radius:100px; overflow:hidden}
.image-offset{position:absolute; inset:0; background:var(--darkblue); transform:translate(16px,16px); border-top-right-radius:100px; border-bottom-left-radius:100px}
.image-main{position:relative; width:100%; height:100%; object-fit:cover; border-top-right-radius:100px; border-bottom-left-radius:100px}

.features-section{margin-top:-80px; margin-bottom:80px}
@media (max-width: 992px){.features-section{margin-top:-50px}}
.feature-card{background:#fff; padding:24px; border-radius:16px; box-shadow:0 10px 25px rgba(0,0,0,0.1); border-top:8px solid var(--accent); position:relative; padding-top:56px}
.icon-badge{position:absolute; top:-32px; left:50%; transform:translateX(-50%); width:64px; height:64px; border-radius:16px; display:flex; align-items:center; justify-content:center}
.icon-badge svg{width:28px; height:28px}

.special-design-section {
  background: linear-gradient(
    180deg,
    rgba(255, 107, 107, 0.06),
    rgba(255, 107, 107, 0.02)
  );
  overflow: hidden;
}
.special-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  z-index: 1;
}
.special-bg-shape--one {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -80px;
  background: rgba(255, 107, 107, 0.35);
}
.special-bg-shape--two {
  width: 380px;
  height: 380px;
  bottom: -120px;
  right: -120px;
  background: rgba(0, 0, 0, 0.08);
}

.special-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}
.special-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}
.special-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #222;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.special-highlight {
  border-radius: 16px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.18);
}
.special-list {
  list-style: none;
}
.special-list-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  color: #444;
}
.special-list-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.special-check {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
  font-weight: 900;
  flex: 0 0 28px;
  margin-top: 2px;
}

/* Scroll Animation Classes */
.scroll-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}
/* Mobile Navbar Dropdown - Pure White Background with Slide-in from Right */
/* Mobile Navbar - Exact match to React Hero component */
@media (max-width: 992px) {
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 256px !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    z-index: 1050 !important;
    transition: right 0.3s ease-in-out !important;
    padding: 0 !important;
    overflow-y: auto !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
  }
  
  .navbar-collapse.show {
    right: 0 !important;
  }
  
  .navbar-collapse.hiding {
    right: -100% !important;
  }
  
  .navbar-collapse .navbar-nav {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 1.5rem !important;
    margin: 1rem 0 !important;
  }
  
  .navbar-collapse .nav-link {
    color: #000000 !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    padding: 0 !important;
  }
  
  .navbar-collapse .nav-link:hover {
    color: #ff6b6b !important;
  }
  
  .navbar-collapse .btn {
    background-color: #ff6b6b !important;
    color: white !important;
    border: none !important;
    width: calc(100% - 3rem) !important;
    margin: 1rem 1.5rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.375rem !important;
    transition: background-color 0.2s ease !important;
  }
  
  .navbar-collapse .btn:hover {
    background-color: #e55a5a !important;
  }
  
  .navbar-close-btn {
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    padding: 0.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .navbar-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
  }
  
  .navbar-close-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ============================================
   FOOTER STYLES (Shared across all pages)
   ============================================ */
.main-footer {
  background: #ffffff;
  color: #111;
  border-top: 1px solid #e6e6e6;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}

.footer-text {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

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

.footer-links a {
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ff6b6b;
}

.newsletter-form input {
  background: #fff;
  border: 1px solid #ccc;
  color: #111;
}

.newsletter-form input::placeholder {
  color: #888;
}

.legal-footer-bar {
  border-top: 1px solid #e6e6e6;
  background: #fafafa;
  padding: 12px 0;
}

.legal-footer-text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #555;
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ABOUT HOME SECTION (index.html)
   ============================================ */
.about-home {
  position: relative;
  background: #fff;
}

.about-home .about-zig-row {
  position: relative;
  padding: 3.5rem 1.75rem;
  margin-bottom: 2.5rem;
  overflow: visible;
}

.about-home .about-zig-row > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   SHARED PAGE STYLES (FAQ, Contact, Volunteer, Help)
   ============================================ */
.rounded-hero { 
  border-radius: 2rem; 
}

.shadow-soft { 
  box-shadow: 0 18px 40px rgba(15, 23, 42, .10); 
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-accent:hover { 
  filter: brightness(.97); 
  color: #fff; 
}

.hero-wrap {
  background: linear-gradient(180deg, rgba(56,189,248,.22), rgba(56,189,248,.06) 60%, transparent);
}

.hero-card {
  background: var(--hero);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -90px; 
  right: -120px;
  width: 360px; 
  height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}

.hero-card::after {
  content: "";
  position: absolute;
  bottom: -140px; 
  left: -160px;
  width: 460px; 
  height: 460px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}

.hero-content { 
  position: relative; 
}

.card-soft {
  border-radius: 1.25rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255,255,255,0.4);
  color: rgba(15,23,42,0.92);
  font-weight: 500;
  font-size: .85rem;
}

.link-accent {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link-accent:hover { 
  text-decoration: underline; 
}

/* Form polish */
.form-control, .form-select {
  border-radius: 14px;
  padding: .85rem .95rem;
  font-weight: 650;
}

.form-control:focus, .form-select:focus {
  border-color: rgba(255,107,107,.55);
  box-shadow: 0 0 0 .2rem rgba(255,107,107,.18);
}

.section-title {
  letter-spacing: -.02em;
}

/* Map wrapper */
.map-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  min-height: 320px;
}

.map-iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

@media (max-width: 576px) {
  .map-iframe { 
    height: 320px; 
  }
}

/* Accordion icon to mimic chevron */
.accordion-button::after {
  transform: rotate(0deg);
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(90deg);
}

/* ============================================
   HELP AND INFORMATION PAGE STYLES
   ============================================ */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  color: rgba(15,23,42,0.92);
  font-weight: 600;
  font-size: 13px;
}

.sub {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(15,23,42,0.85);
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--card, #fff);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 1.25rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  padding: 22px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.muted { 
  color: var(--muted, #475569); 
}

.callout {
  border-left: 6px solid var(--accent);
  background: linear-gradient(0deg, rgba(255,107,107,0.08), rgba(255,107,107,0.08)), #fff;
  border-radius: 1rem;
}

/* Accordion */
details {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}

details + details { 
  margin-top: 12px; 
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

summary::-webkit-details-marker { 
  display: none; 
}

.chev {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: 0 0 auto;
}

details[open] .chev {
  background: rgba(255,107,107,0.10);
  border-color: rgba(255,107,107,0.35);
  transform: rotate(180deg);
}

.panel {
  padding: 0 16px 16px;
  color: var(--text, #0f172a);
}

.panel ul { 
  margin: 10px 0 0 18px; 
}

.panel li { 
  margin: 6px 0; 
}

.btnrow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btnrow .btn:not(.secondary) {
  background-color: #ff6b6b;
  color: white;
  border: 1px solid #ff6b6b;
  transition: all 0.3s ease;
}

.btnrow .btn:not(.secondary):hover,
.btnrow .btn:not(.secondary):active {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255,107,107,0.55);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255,107,107,0.55);
  transition: all 0.3s ease;
}

.btn.secondary:hover,
.btn.secondary:active {
  background-color: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

.links {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.linkcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  text-decoration: none;
  color: var(--text, #0f172a);
}

.linkcard:hover {
  border-color: rgba(255,107,107,0.45);
  box-shadow: 0 10px 26px rgba(2, 8, 23, 0.10);
}

.linkcard .pill {
  background-color: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

@media (min-width: 900px) {
  .grid { 
    grid-template-columns: 1.2fr 0.8fr; 
  }
  .stack { 
    grid-column: 1 / -1; 
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fade-in,
  .scroll-slide-up,
  .scroll-slide-left,
  .scroll-slide-right,
  .scroll-zoom-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
