html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.section-padding {
  padding: 96px 0;
}

.section-kicker {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 12px 35px rgba(20, 33, 61, 0.08);
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-right: 0.65rem;
  width: 42px;
}

.navbar .nav-link {
  color: #334155;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.6rem 0.85rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.78rem 1.2rem;
}

.btn-primary-custom {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--white);
}

.btn-primary-custom:hover {
  background: #247676;
  border-color: #247676;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-custom {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-soft {
  background: rgba(46, 139, 139, 0.1);
  border: 1px solid rgba(46, 139, 139, 0.18);
  color: var(--primary);
}

.btn-soft:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hero */
.hero {
  align-items: center;
  background-color: #0d2634;
  background-image:
    linear-gradient(90deg, rgba(13, 38, 52, 0.82), rgba(46, 139, 139, 0.52), rgba(106, 90, 205, 0.34)),
    var(--hero-bg, url("https://images.unsplash.com/photo-1516302752625-fcc3c50ae61f?auto=format&fit=crop&w=1800&q=80"));
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover, cover;
  color: var(--white);
  display: flex;
  min-height: clamp(560px, 92vh, 920px);
  overflow: hidden;
  padding: 130px 0 80px;
  position: relative;
  width: 100%;
}

.hero::after {
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.92));
  bottom: 0;
  content: "";
  height: 120px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  max-width: 790px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.85rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 710px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-strip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.hero-strip-item {
  align-items: center;
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
}

.icon-bubble {
  align-items: center;
  background: rgba(46, 139, 139, 0.1);
  border-radius: 8px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.3rem;
  height: 52px;
  justify-content: center;
  width: 52px;
}

/* Cards */
.card-clean {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.06);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-clean:hover {
  border-color: rgba(46, 139, 139, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

/* About */
.about-img,
.volunteer-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  width: 100%;
}

.quote-box {
  background: linear-gradient(135deg, rgba(46, 139, 139, 0.1), rgba(244, 180, 0, 0.13));
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  margin-top: 1.6rem;
  padding: 1.25rem;
}

/* Mission */
.mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mission-list li {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.mission-list i {
  color: var(--primary);
  margin-top: 0.3rem;
}

.soft-band {
  background: linear-gradient(180deg, #FFFFFF, #F0F7F7);
}

/* Movement */
.movement-card .icon-bubble {
  background: rgba(106, 90, 205, 0.1);
  color: var(--secondary);
}

/* Programs */
.programs-head {
  background:
    linear-gradient(135deg, rgba(13, 38, 52, 0.82), rgba(46, 139, 139, 0.72)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--white);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 3.25rem 1.75rem;
  position: relative;
}

.programs-head .section-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.programs-head .section-title {
  color: var(--white);
}

.programs-head .section-lead {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0;
}

.program-tile {
  border-radius: var(--radius);
  display: block;
  height: 100%;
}

.program-card {
  overflow: hidden;
  padding: 0;
  position: relative;
}

.program-card::before {
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.program-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.program-card-media::before {
  background: var(--card-img, none) center / cover no-repeat;
  content: "";
  filter: blur(22px) brightness(0.75);
  inset: -30px;
  position: absolute;
}

.program-card-media img {
  height: 100%;
  object-fit: contain;
  position: relative;
  width: 100%;
}

.program-card-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  font-size: 3rem;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.program-card-media::after {
  background: linear-gradient(180deg, rgba(13, 38, 52, 0) 35%, rgba(13, 38, 52, 0.88) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.program-card-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  color: var(--white);
  display: inline-flex;
  font-size: 1.1rem;
  height: 46px;
  justify-content: center;
  left: 18px;
  position: absolute;
  top: 18px;
  width: 46px;
  z-index: 1;
}

.program-card-body {
  background: linear-gradient(135deg, rgba(13, 38, 52, 0.94), rgba(46, 139, 139, 0.9));
  bottom: 0;
  left: 0;
  padding: 1.25rem 1.5rem;
  position: absolute;
  right: 0;
  z-index: 1;
}

.program-card-cta {
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.4rem;
  letter-spacing: 0.04em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.program-tile:hover .program-card-cta,
.program-tile:focus-visible .program-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.program-tile:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.program-card ul,
.benefit-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.program-card li,
.benefit-list li {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.62rem;
}

.program-card li i,
.benefit-list li i {
  color: var(--accent);
}

/* Volunteer */
.volunteer-section {
  background:
    linear-gradient(90deg, rgba(46, 139, 139, 0.95), rgba(106, 90, 205, 0.84)),
    var(--volunteer-bg, url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1600&q=80")) center/cover;
  color: var(--white);
}

.volunteer-section .section-kicker,
.volunteer-section .section-title,
.volunteer-section .section-lead {
  color: var(--white);
}

.volunteer-panel {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 2rem;
}

/* Training */
.training-item {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.badge-illustration {
  background: linear-gradient(145deg, #FFFFFF, #EAF7F7);
  border: 1px solid rgba(46, 139, 139, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
  text-align: center;
}

.badge-medal {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), #FFD76A);
  border-radius: 50%;
  color: #4A3410;
  display: inline-flex;
  font-size: 4rem;
  height: 132px;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 132px;
}

/* Core Values */
.value-card {
  text-align: center;
}

.value-card .icon-bubble {
  background: rgba(244, 180, 0, 0.16);
  color: #B47D00;
  margin-bottom: 1rem;
}

/* Stats */
.stats-section {
  background:
    linear-gradient(90deg, rgba(20, 33, 61, 0.86), rgba(46, 139, 139, 0.86)),
    url("https://images.unsplash.com/photo-1543269865-cbf427effbad?auto=format&fit=crop&w=1700&q=80") center/cover;
  color: var(--white);
}

.stat-number {
  color: var(--accent);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

/* Testimonials */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  color: rgba(46, 139, 139, 0.15);
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-size: 3.2rem;
  font-weight: 900;
  position: absolute;
  right: 1.25rem;
  top: 0.85rem;
}

.avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  width: 48px;
}

/* CTA */
.cta-section {
  background:
    linear-gradient(90deg, rgba(106, 90, 205, 0.9), rgba(46, 139, 139, 0.9)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1700&q=80") center/cover;
  color: var(--white);
}

/* Contact */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-control {
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(46, 139, 139, 0.15);
}

.map-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(46, 139, 139, 0.16), rgba(106, 90, 205, 0.12)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80") center/cover;
  border-radius: var(--radius);
  color: var(--white);
  display: flex;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.map-placeholder::before {
  background: rgba(20, 33, 61, 0.54);
  content: "";
  inset: 0;
  position: absolute;
}

.map-placeholder div {
  padding: 1.8rem;
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  background: #101827;
  color: rgba(255, 255, 255, 0.76);
  padding: 72px 0 24px;
}

footer h5,
footer .navbar-brand {
  color: var(--white);
}

footer a {
  color: rgba(255, 255, 255, 0.76);
  display: inline-block;
  margin-bottom: 0.55rem;
}

footer a:hover {
  color: var(--accent);
}

.social-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-right: 0.45rem;
  width: 42px;
}

/* Scroll Top */
.scroll-top {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: var(--white);
  display: none;
  height: 46px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 46px;
  z-index: 999;
}

.scroll-top.show {
  display: inline-flex;
}

/* Call FAB */
.call-fab {
  align-items: center;
  animation: callFabBounce 2.4s ease-in-out infinite;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 0;
  border-radius: 999px;
  bottom: 80px;
  box-shadow: 0 12px 32px rgba(46, 139, 139, 0.4);
  color: var(--white);
  display: inline-flex;
  gap: 10px;
  height: 56px;
  justify-content: center;
  max-width: 260px;
  overflow: visible;
  padding: 0 18px 0 0;
  position: fixed;
  right: 22px;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
  white-space: nowrap;
  z-index: 1000;
}

.call-fab:hover,
.call-fab:focus-visible {
  box-shadow: 0 16px 40px rgba(46, 139, 139, 0.55);
  color: var(--white);
}

.call-fab-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 56px;
  font-size: 1.2rem;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.call-fab-body {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  opacity: 1;
  padding-right: 4px;
  transform: translateX(0);
}

.call-fab-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  opacity: 0.9;
  text-transform: uppercase;
}

.call-fab-number {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-fab-pulse {
  animation: callFabPulse 2s ease-out infinite;
  border: 2px solid rgba(46, 139, 139, 0.55);
  border-radius: 999px;
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

@keyframes callFabPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 139, 139, 0.55);
    opacity: 1;
  }

  70% {
    box-shadow: 0 0 0 14px rgba(46, 139, 139, 0);
    opacity: 0.5;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(46, 139, 139, 0);
    opacity: 1;
  }
}

@keyframes callFabBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 767.98px) {
  .call-fab {
    bottom: 78px;
    height: 52px;
    max-width: calc(100vw - 32px);
    right: 14px;
  }

  .call-fab-icon {
    flex-basis: 52px;
    font-size: 1.1rem;
    height: 52px;
    width: 52px;
  }

  .call-fab-number {
    font-size: 0.82rem;
  }
}

@media (max-width: 400px) {
  .call-fab {
    gap: 8px;
    padding-right: 14px;
  }

  .call-fab-label {
    display: none;
  }

  .call-fab-number {
    font-size: 0.8rem;
    max-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-fab,
  .call-fab-pulse {
    animation: none;
  }
}

/* Modal */
.modal-content {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

/* Responsive */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 72px 0;
  }

  .hero {
    min-height: clamp(520px, 85vh, 780px);
    padding: 120px 0 72px;
  }

  .hero-strip {
    margin-top: 24px;
  }

  .about-img,
  .volunteer-img {
    min-height: 320px;
  }
}

/* Mobile hero banner: use dedicated mobile image when provided */
@media (max-width: 767.98px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(13, 38, 52, 0.88), rgba(46, 139, 139, 0.72), rgba(106, 90, 205, 0.55)),
      var(--hero-bg-mobile, var(--hero-bg, url("https://images.unsplash.com/photo-1516302752625-fcc3c50ae61f?auto=format&fit=crop&w=1800&q=80")));
    background-position: center center;
    background-size: cover, cover;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: auto;
    padding: 108px 0 64px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    line-height: 1.1;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-actions .btn,
  .cta-section .btn {
    width: 100%;
  }

  .hero-strip {
    margin-top: 16px;
  }

  .hero-strip-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    text-align: center;
    justify-content: center;
  }

  .contact-card,
  .volunteer-panel,
  .badge-illustration {
    padding: 1.25rem;
  }
}
