@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap");

:root {
  --blue: #1a7fd4;
  --blue-deep: #0f5fa8;
  --green: #2d9d4a;
  --green-bright: #43c463;
  --gold: #e8a838;
  --white: #ffffff;
  --text: #0f1f2e;
  --muted: #3d5568;
  --bg: #f4f9fd;
  --bg-warm: #faf6f0;
  --shadow: 0 14px 40px rgba(15, 31, 46, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 31, 46, 0.14);
  --shadow-glow: 0 8px 32px rgba(26, 127, 212, 0.22);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --gradient-brand: linear-gradient(135deg, #1a7fd4 0%, #2d9d4a 100%);
  --gradient-hero: linear-gradient(165deg, rgba(8, 28, 48, 0.72) 0%, rgba(15, 95, 168, 0.38) 45%, rgba(45, 157, 74, 0.28) 100%);
  --gradient-cta: linear-gradient(120deg, #1565c0 0%, #1a7fd4 35%, #2d9d4a 100%);
  --glass: rgba(255, 255, 255, 0.82);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 88px;
  --page-gutter: clamp(0.85rem, 3.5vw, 1.25rem);
  --touch-min: 44px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.admin-login-page):not(:has(.admin-shell)) {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 127, 212, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(45, 157, 74, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(232, 168, 56, 0.05), transparent 45%),
    #fcfdfe;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  margin: 0 0 0.5rem;
  line-height: 1.28;
}

.section-heading-center::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 999px;
  background: var(--gradient-brand);
}

p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.hero p,
.page-hero p,
.image-card p {
  color: var(--white);
}

.footer a {
  color: inherit;
}

.container {
  width: min(1100px, calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

.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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(15, 31, 46, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  transition: box-shadow 0.35s var(--ease-out);
  padding-top: env(safe-area-inset-top, 0px);
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  pointer-events: none;
  transition: background 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(15, 31, 46, 0.08), 0 1px 0 rgba(15, 31, 46, 0.04);
}

.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
  z-index: 1;
  gap: 0.75rem;
}

body {
  padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

body.admin-login-page,
body:has(.admin-shell) {
  padding-top: 0;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-wrap img {
  display: block;
  width: clamp(96px, 13vw, 132px);
  height: clamp(96px, 13vw, 132px);
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(15, 63, 105, 0.35)) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.9));
}

.logo-wrap span {
  font-weight: 800;
  font-size: clamp(1.65rem, 3.6vw, 2.1rem);
  letter-spacing: 0.02em;
  color: #0a3560;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.menu-toggle {
  border: 1px solid rgba(26, 127, 212, 0.18);
  background: rgba(238, 246, 255, 0.95);
  color: #0f4f85;
  font-size: 1.45rem;
  line-height: 1;
  display: none;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  z-index: 29;
  background: rgba(15, 31, 46, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-item > button {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f4f85;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-item > a:hover,
.nav-item > button:hover {
  color: #156fc0;
  background: #eef6ff;
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 127, 212, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: dropdownIn 0.25s var(--ease-out);
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown a {
  display: block;
  padding: 0.75rem 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown a:hover {
  background: linear-gradient(90deg, rgba(26, 127, 212, 0.1), rgba(45, 157, 74, 0.08));
  padding-left: 1.1rem;
}

.nav-item:hover .dropdown {
  display: block;
}

.btn {
  display: inline-block;
  padding: 0.68rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}

body:not(:has(.admin-shell)) .btn:hover::after {
  transform: translateX(120%);
}

.btn-blue {
  background: linear-gradient(135deg, #2196f3 0%, var(--blue-deep) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(26, 127, 212, 0.35);
}

.btn-green {
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(45, 157, 74, 0.32);
}

.btn-outline {
  border-color: rgba(26, 127, 212, 0.55);
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-blue:hover {
  background: linear-gradient(135deg, #42a5f5 0%, var(--blue) 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(26, 127, 212, 0.42);
}

.btn-green:hover {
  background: linear-gradient(135deg, #4caf50 0%, #1b7a34 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(45, 157, 74, 0.38);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}

.nav-item > a:hover,
.nav-item > button:hover,
.menu-toggle:hover,
.faq-q:hover,
.tab-btn:hover {
  color: var(--blue);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 62vh;
  display: grid;
  align-items: center;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  filter: brightness(1.08) contrast(1.06) saturate(1.15);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease-out), transform 8s var(--ease-out);
}

.hero-bg-layer.is-active {
  opacity: 1;
  transform: scale(1);
  animation: heroKenBurns 14s var(--ease-out) infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(15, 31, 46, 0.42);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.hero-carousel-prev {
  left: 1rem;
}

.hero-carousel-next {
  right: 1rem;
}

.hero-carousel-btn:hover {
  background: rgba(15, 31, 46, 0.72);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}

.hero-carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s var(--ease-out), background 0.3s ease;
}

.hero-carousel-dot.is-active {
  width: 28px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 24%;
  background-repeat: no-repeat;
  filter: brightness(1.16) contrast(1.08) saturate(1.1);
}

.womens-hero {
  min-height: 50vh;
}

.womens-hero .page-hero-bg {
  background-position: center 18%;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gradient-hero);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 70% 60% at 20% 100%, rgba(45, 157, 74, 0.22), transparent 60%);
  pointer-events: none;
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  max-width: 760px;
}

.hero-content h1,
.page-hero-content h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.hero-content p,
.page-hero-content p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.hero-animate > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.85s var(--ease-out) forwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.1s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.22s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.34s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

section {
  padding: 3.2rem 0;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(244, 249, 253, 0.95) 0%, rgba(250, 246, 240, 0.6) 100%);
  position: relative;
}

.section-muted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(26, 127, 212, 0.04) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}

.cta-band {
  background: var(--gradient-cta);
  background-size: 200% 200%;
  animation: ctaGradientShift 10s ease infinite;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

@keyframes ctaGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-band h2,
.cta-band h3,
.cta-band p {
  color: rgba(255, 255, 255, 0.98);
}

.cta-band .btn-donate-light {
  background: var(--white);
  color: var(--blue);
  border: 0;
}

.cta-band .btn-donate-light:hover {
  background: #f0f7ff;
  color: #156fc0;
}

.cta-band .btn-green {
  border: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metric {
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(26, 127, 212, 0.12);
  box-shadow: 0 4px 16px rgba(15, 31, 46, 0.04);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(26, 127, 212, 0.22);
}

.metric:hover::before {
  opacity: 1;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.15rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.image-card {
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  color: var(--white);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.image-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 20, 35, 0.05) 0%, rgba(8, 20, 35, 0.55) 55%, rgba(8, 20, 35, 0.82) 100%);
  transition: background 0.4s ease;
}

.image-card:hover::before {
  background: linear-gradient(180deg, rgba(15, 95, 168, 0.12) 0%, rgba(8, 20, 35, 0.5) 50%, rgba(8, 20, 35, 0.88) 100%);
}

.image-card-content {
  position: absolute;
  z-index: 2;
  bottom: 0;
  padding: 0.9rem;
}

.image-card-content .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.program-cta-card {
  padding: 1rem 1rem 1.1rem;
}

.program-cta-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.program-cta-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-wrap {
  background: linear-gradient(180deg, #dceaf8 0%, #c8ddf2 100%);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(15, 31, 46, 0.08);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--green-bright) 100%);
  border-radius: 999px;
  transition: width 1.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.progress-bar.is-animated {
  width: var(--progress-target, 0%);
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: progressShine 2.2s ease infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.story {
  border: 1px solid rgba(26, 127, 212, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.2rem 1.2rem 1.35rem;
  background: linear-gradient(145deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 6px 20px rgba(15, 31, 46, 0.05);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
}

.story::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  left: 0.65rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(26, 127, 212, 0.18);
}

.story:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.section-heading-center {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.impact-metrics-heading {
  margin-top: 2rem;
}

.metrics.metrics-impact .metric strong {
  font-size: 1.35rem;
}

.story-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 2rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e1ebf3;
  box-shadow: var(--shadow);
  background: var(--white);
}

.story-highlight__media {
  min-height: 220px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

.story-highlight__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.story-highlight__body {
  padding: 1.35rem 1.35rem 1.35rem 1.25rem;
}

.story-highlight__title {
  margin-bottom: 0.65rem;
}

.story-highlight blockquote {
  margin: 0 0 0.85rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--green);
  font-style: italic;
  color: var(--muted);
}

.story-highlight__kicker {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.story-highlight__lead {
  margin: 0 0 1rem;
  color: var(--muted);
}

.program-cta-heading {
  margin-top: 1.75rem;
}

.story-highlight blockquote p {
  margin: 0;
}

.story-highlight__cite {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.values-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.value-icon-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e1ebf3;
  background: var(--white);
}

.value-icon-card h3 {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
}

.value-icon-card p {
  margin: 0;
  font-size: 0.95rem;
}

.value-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(30, 136, 229, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: var(--blue);
}

.value-icon-outline svg {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.president-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-md);
  border: 1px solid #dce8f4;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.president-card--founder {
  max-width: none;
}

.president-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, #eef6ff 0%, #f4faf6 100%);
  border: 1px solid #e3edf6;
}

.president-card__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
}

.president-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2f7dc9;
}

.president-card__body h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  color: #0f3f69;
}

.president-message {
  display: grid;
  gap: 0.95rem;
}

.president-message p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
  font-size: 0.98rem;
}

.president-signature {
  margin: 1.35rem 0 0;
  padding: 1.1rem 1.15rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(238, 246, 255, 0.65);
}

.president-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f3f69;
}

.president-title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.president-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  color: #1565a8;
}

.president-actions {
  margin: 1.15rem 0 0;
}

.about-main > section + section {
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .story-highlight {
    grid-template-columns: 1fr;
  }

  .story-highlight__body {
    padding: 1rem 1.25rem 1.35rem;
  }

  .story-highlight__media {
    min-height: 200px;
  }

  .story-highlight__media img {
    min-height: 200px;
  }

  .president-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .president-card__media {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .president-card__body h2 {
    text-align: center;
  }

  .president-kicker {
    text-align: center;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0.75rem;
  align-items: start;
}

.gallery img,
.program-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
  border: 1px solid #e3ecf6;
}

.gallery img[data-broken="true"] {
  display: none;
}

.story-highlight__media img[data-broken="true"] {
  display: none;
}

.story-highlight__media:has(img[data-broken="true"]) {
  display: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.gallery-page-grid.event-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.media-card {
  border: 1px solid #dce8f3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 32, 43, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.media-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
  padding: 0.65rem;
  box-sizing: border-box;
  border-bottom: 1px solid #e3ecf6;
}

.media-card-image-wrap img,
.media-card-image-wrap video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.media-card-image-wrap video {
  background: #0c1520;
  border-radius: 6px;
}

.media-card-body {
  padding: 0.9rem 1rem 1.05rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.5rem;
}

.media-card-body h3 {
  margin: 0;
  color: #0f3f69;
  font-size: 1.05rem;
  line-height: 1.3;
}

.media-card-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d6e6;
  border-radius: 8px;
  padding: 0.7rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(30, 136, 229, 0.25);
  border-color: var(--blue);
}

.footer {
  background: linear-gradient(165deg, #0c1824 0%, #14202b 40%, #0f2838 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.footer::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 127, 212, 0.12), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.2rem 0 1.6rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.75rem 1.5rem;
  }

  .footer-brand {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 320px;
  }

  .footer-inner > nav.footer-col,
  .footer-inner > .footer-contact {
    flex: 1 1 150px;
    min-width: 140px;
    max-width: 220px;
  }
}

.footer-brand .footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-brand .footer-logo-link:hover {
  color: #90caf9;
}

.footer-brand .footer-logo-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
  max-width: 320px;
}

.footer-brand-name {
  margin: 0 0 0.65rem;
}

.footer-brand-name a {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.98);
}

.footer-brand-name a:hover {
  color: #bbdefb;
}

.footer-contact-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-lines li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-link:hover {
  color: #90caf9;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.52);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
  display: inline-block;
  line-height: 1.35;
}

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

.footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.94);
}

.footer-contact a:hover {
  color: #90caf9;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-meta {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.footer-meta a:hover {
  color: #bbdefb;
}

.footer-sep {
  margin: 0 0.35rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer h2.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 520px) {
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sticky-donate {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  box-shadow: 0 8px 28px rgba(26, 127, 212, 0.45);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  animation: donatePulse 3s ease-in-out infinite;
}

.sticky-donate-heart {
  font-size: 1rem;
  line-height: 1;
  animation: heartBeat 1.8s ease-in-out infinite;
}

@keyframes donatePulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(26, 127, 212, 0.4); }
  50% { box-shadow: 0 10px 36px rgba(45, 157, 74, 0.45); }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
}

body.donation-page .sticky-donate {
  display: none;
}

.donation-main {
  padding: 3rem 0 4rem;
  max-width: 760px;
}

.donation-main > .section-heading-center {
  margin-bottom: 1.2rem;
}

.payment-success-main {
  padding: 3rem 0 4rem;
}

.donation-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.donation-panel {
  background: var(--white);
  border: 1px solid #e1ebf3;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.donation-page #donation-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.donation-page #donation-form h3,
.donation-fieldset legend {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.donation-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.donation-page #donation-form label:not(.tier-option label) {
  display: grid;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.donation-page select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.4;
  padding: 0.7rem 2.4rem 0.7rem 0.75rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233d5568' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donation-sidebar .donation-lead {
  margin-bottom: 1rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.35rem 0 0.1rem;
  padding: 0;
  list-style: none;
}

.trust-badges li {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  background: var(--bg);
  border-radius: 999px;
  border: 1px solid #e1ebf3;
}

.payment-assurance {
  margin: 0.45rem 0 0.9rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid #d9e8f6;
  border-radius: 10px;
  background: #f4f9ff;
  color: #255273;
  font-size: 0.9rem;
}

.donation-tiers {
  border: 0;
  margin: 0;
  padding: 0;
}

.donation-tiers legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.tier-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}

.tier-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tier-option {
  position: relative;
  min-width: 0;
}

.tier-option label {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid #e1ebf3;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tier-amount {
  font-weight: 700;
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1.3;
  word-break: break-word;
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.35;
  word-break: break-word;
}

#donation-form .btn.btn-blue[type="submit"] {
  width: 100%;
}

#donation-form .donation-momo-box {
  margin-top: -0.1rem;
}

.home-programs .card-grid {
  gap: 0.85rem;
}

.home-programs .image-card h3 {
  font-size: 1.85rem;
  line-height: 1.08;
}

.home-programs .image-card p {
  font-size: 0.86rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.contact-page .split {
  align-items: start;
  gap: 1.55rem;
}

.contact-page .form-grid label {
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-page input,
.contact-page textarea {
  margin-top: 0.35rem;
  background: #fff;
}

.mission-vision-grid {
  margin-top: 0.7rem;
}

.volunteer-direct {
  margin-top: 1rem;
}

.contact-main {
  max-width: 1120px;
}

.contact-page {
  padding-top: 2.6rem;
}

.contact-hero {
  text-align: center;
  margin-bottom: 1.35rem;
}

.contact-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2f7dc9;
}

.contact-hero h1 {
  margin-bottom: 0.45rem;
}

.contact-hero p {
  margin: 0;
}

.contact-info-card,
.contact-form-card {
  background: #fff;
  border: 1px solid #dce8f4;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(20, 32, 43, 0.08);
}

.contact-info-card {
  padding: 1.25rem;
}

.contact-form-card {
  padding: 1.25rem 1.2rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

.contact-page .contact-form-card h2,
.contact-page .contact-info-card h2 {
  margin-bottom: 0.6rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-feedback {
  margin: 0.35rem 0 0;
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-feedback.is-success {
  color: #1f7a3f;
}

.form-feedback.is-error {
  color: #b42318;
}

.form-feedback.is-pending {
  color: #0f4f85;
}

.contact-methods {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-methods h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-methods li {
  padding: 0.7rem 0.8rem;
  border: 1px solid #e3ecf6;
  border-radius: 12px;
  background: #f9fcff;
}

.contact-methods p {
  margin: 0;
  color: #334b61;
}

.contact-methods a {
  font-weight: 600;
}

.contact-heading-icon {
  display: inline-flex;
  width: 1.2rem;
  margin-right: 0.35rem;
  color: #2f7dc9;
  font-weight: 700;
  justify-content: center;
}

.partners-page section {
  padding-top: 2.8rem;
}

.partners-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.2rem;
}

.partner-card {
  border: 1px solid #deebf7;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(20, 32, 43, 0.14);
}

.partner-card-asbbic {
  display: grid;
  grid-template-columns: minmax(220px, 290px) 1fr;
  align-items: stretch;
  background: linear-gradient(135deg, #f5faff 0%, #ffffff 48%, #f0f8f3 100%);
}

.partner-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.partner-logo-frame {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d5e3f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(20, 32, 43, 0.12);
}

.partner-logo-object {
  width: 100%;
  height: 100%;
  border: 0;
  transform-origin: center;
  animation: partnerPulse 5.2s ease-in-out infinite;
}

.partner-logo-image {
  width: 100%;
  height: 176px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  transform-origin: center;
  animation: partnerPulse 5.2s ease-in-out infinite;
  box-shadow: 0 10px 26px rgba(20, 32, 43, 0.12);
}

.partner-media-single {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b6b8b;
  font-weight: 700;
}

.partner-name {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.partner-copy {
  margin: 0.85rem 0 0;
  color: #2a3f54;
}

.partner-card-neuroteck {
  display: grid;
  grid-template-columns: minmax(220px, 290px) 1fr;
  align-items: stretch;
}

.partner-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #f3f8fd;
}

.partner-media img {
  width: 100%;
  height: 176px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.28s ease;
  animation: partnerPulse 5.2s ease-in-out infinite;
  box-shadow: 0 10px 26px rgba(20, 32, 43, 0.12);
}

.partner-card:hover .partner-media img {
  transform: scale(1.02);
}

@keyframes partnerPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.partner-content {
  padding: 1rem 1.15rem 1.2rem;
}

.partner-cta {
  margin-top: 1.25rem;
}

.success-stories-page section {
  padding-top: 2.4rem;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1rem 1.2rem;
  align-items: stretch;
  border: 1px solid #dce8f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 1rem;
}

.story-card-media {
  background: #f3f8fd;
  padding: 0.7rem;
}

.story-card-media img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 12px;
}

.story-card-body {
  padding: 0.95rem 1rem 1rem 0;
}

.story-card-body h2 {
  margin-bottom: 0.45rem;
}

.story-card-body p {
  margin-bottom: 0.5rem;
}

@media (max-width: 860px) {
  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card-media img {
    max-height: 230px;
  }

  .story-card-body {
    padding: 0.2rem 0.85rem 1rem;
  }
}

.partner-card-asbbic .partner-brand {
  display: flex;
}

@media (max-width: 860px) {
  .partner-card-asbbic,
  .partner-card-neuroteck {
    grid-template-columns: 1fr;
  }

  .partner-brand {
    align-items: center;
  }

  .partner-media {
    grid-template-columns: 1fr 1fr;
  }

  .partner-media img {
    height: 160px;
  }

  .partner-logo-image {
    height: 160px;
  }
}

@media (min-width: 1000px) {
  .home-programs .container {
    width: min(1160px, 90%);
  }

  .home-programs .image-card {
    min-height: 284px;
  }

  .home-programs .image-card h3 {
    font-size: 1.72rem;
  }

  .home-programs .image-card p {
    font-size: 0.84rem;
  }

  .donation-main {
    max-width: 700px;
    padding-top: 2.6rem;
  }

  .donation-main > .section-heading-center {
    margin-bottom: 1rem;
  }

  .contact-page .split {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.7rem;
  }

  .contact-page .contact-form-card {
    padding: 1.05rem 1.15rem;
  }
}

.tier-option input:focus-visible + label,
.tier-option input:focus + label {
  outline: 2px solid rgba(30, 136, 229, 0.45);
  outline-offset: 2px;
}

.tier-option input:checked + label {
  border-color: var(--blue);
  background: rgba(30, 136, 229, 0.07);
}

.tier-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tier-custom-input {
  margin-top: 0.75rem;
}

.donation-momo-box {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid #dbe8f4;
}

.donation-momo-box strong {
  display: inline;
  color: var(--text);
}

.donation-momo-box p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.donation-momo-box p:last-child {
  margin-bottom: 0;
}

.momo-box-note {
  color: var(--muted);
  font-size: 0.88rem !important;
}

.donation-momo-details {
  background: linear-gradient(165deg, #f0f8ff 0%, #f8fbff 100%);
  border: 1px solid #cfe3f6;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.donation-momo-details h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
}

.momo-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.momo-account-name {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.momo-numbers {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-bottom: 1rem;
}

.momo-number-card {
  background: #fff;
  border: 1px solid #d7e7f6;
  border-radius: 12px;
  padding: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.momo-network {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2f7dc9;
}

.momo-recipient {
  margin: 0;
  font-weight: 700;
  color: #0f3f69;
  font-size: 1rem;
}

.momo-number-display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
  letter-spacing: 0.02em;
}

.momo-number-full {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.momo-inline-code {
  color: var(--muted);
  font-size: 0.92em;
}

.btn-copy {
  width: 100%;
  text-align: center;
  padding: 0.62rem 0.85rem;
  font-size: 0.9rem;
}

.momo-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.momo-steps li {
  margin-bottom: 0.35rem;
}

.copy-feedback {
  margin: 0.75rem 0 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.scroll-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2b95f0 0%, #1e88e5 100%);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #156fc0;
}

.scroll-top-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
  fill: currentColor;
}

.floating-impact {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  background: var(--white);
  border: 1px solid #d8e4f0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.75rem;
  z-index: 40;
  display: none;
}

.floating-impact.show {
  display: block;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 43, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem;
}

.popup-overlay.show {
  display: flex;
}

.popup {
  background: var(--white);
  border-radius: 12px;
  width: min(460px, 100%);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  transform: translateY(28px) scale(0.97);
}

.reveal-scale.is-visible {
  transform: translateY(0) scale(1);
}

.faq-item {
  border: 1px solid #e0eaf3;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: #f7fbff;
  border: 0;
  padding: 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-a {
  padding: 0 0.9rem 0.9rem;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

@media (min-width: 900px) {
  .gallery-page-grid.event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .gallery-page-grid.event-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.event-card {
  background: var(--white);
  border: 1px solid rgba(26, 127, 212, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 31, 46, 0.07);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
  padding: 0.65rem;
  box-sizing: border-box;
  border-bottom: 1px solid #e3ecf6;
}

.event-card:hover img {
  transform: none;
}

.event-card-content {
  padding: 0.9rem 1rem 1.05rem;
  flex: 1 1 auto;
}

.event-card-content p {
  margin-bottom: 0.5rem;
}

.admin-shell {
  background: linear-gradient(180deg, #eef5fc 0%, #f8fbff 100%);
  min-height: 100vh;
}

.admin-login {
  max-width: 430px;
}

.admin-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-btn {
  border: 1px solid #d2e2f3;
  background: var(--white);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.tab-panel {
  background: var(--white);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid #dbe8f4;
  box-shadow: var(--shadow);
}

.admin-toolbar {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.admin-toolbar input {
  flex: 1;
  min-width: 220px;
}

.admin-gallery-form textarea {
  min-height: 100px;
}

.metric p strong,
.event-card-content p strong {
  color: var(--text);
}

.story p,
.metric p {
  color: var(--text);
}

.image-card-content p {
  color: #f2f7fc;
}

@media (max-width: 900px) {
  :root {
    --header-height: 86px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    gap: 0.65rem;
  }

  .logo-wrap {
    min-width: 0;
    flex: 1;
  }

  .logo-wrap span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: none;
    z-index: 31;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e6edf4;
    padding: 0.85rem max(var(--page-gutter), env(safe-area-inset-right, 0px)) calc(1.25rem + env(safe-area-inset-bottom, 0px)) max(var(--page-gutter), env(safe-area-inset-left, 0px));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 18px 40px rgba(15, 31, 46, 0.12);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a,
  .nav-item > button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav-item > a::after,
  .nav-item > button::after {
    display: none;
  }

  .nav-item .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.35rem;
  }

  @media (hover: hover) {
  .nav-item:hover .dropdown {
    display: none;
    }
  }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: #f4f9fd;
    border-radius: 10px;
    margin: 0.15rem 0 0.35rem 0.75rem;
    padding: 0.25rem 0;
    min-width: 0;
    animation: none;
  }

  .dropdown a {
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
  }

  .nav-item.open .dropdown {
    display: block;
  }

  .split,
  .story-grid,
  .card-grid,
  .values-icons-grid,
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
  }

  .hero-carousel-prev {
    left: 0.5rem;
  }

  .hero-carousel-next {
    right: 0.5rem;
  }

  .hero-carousel-dots {
    bottom: 0.65rem;
  }

  .story-highlight,
  .president-card,
  .partner-card-asbbic,
  .partner-card-neuroteck,
  .story-card {
    grid-template-columns: 1fr;
  }

  .partner-media {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 1.5rem;
  }

  .footer-brand,
  .footer-inner > nav.footer-col,
  .footer-inner > .footer-contact {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 80px;
    --page-gutter: 0.9rem;
  }

  section {
    padding: 2.35rem 0;
  }

  .hero,
  .page-hero {
    min-height: 52vh;
  }

  .hero-content,
  .page-hero-content {
    padding: 2rem 0 2.25rem;
  }

  .hero-content h1,
  .page-hero-content h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .card-grid,
  .media-grid,
  .event-grid,
  .gallery-page-grid.event-grid {
    grid-template-columns: 1fr;
  }

  .image-card {
    min-height: 240px;
  }

  .home-programs .image-card h3 {
    font-size: 1.45rem;
  }

  .contact-page,
  .partners-page,
  .success-stories-page {
    padding-top: 2rem;
  }

  .contact-info-card,
  .contact-form-card,
  .donation-panel,
  .partner-card,
  .story-card {
    border-radius: var(--radius-sm);
  }

  .donation-panel {
    padding: 1rem;
  }

  .donation-page .tier-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation-page .tier-option label {
    padding: 0.7rem 0.8rem;
  }

  .donation-page .tier-amount {
    font-size: 0.98rem;
  }

  .sticky-donate {
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    text-align: center;
    border-radius: 12px;
    padding: 0.72rem 1rem;
    font-size: 0.92rem;
  }

  .scroll-top-btn {
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .floating-impact {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.88rem;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .footer-inner {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }

  .footer-contact-lines li,
  .footer-links a {
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 72px;
    --page-gutter: 0.8rem;
  }

  .header-inner {
    min-height: 76px;
  }

  body {
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  }

  .logo-wrap img {
    width: 80px;
    height: 80px;
  }

  .logo-wrap span {
    font-size: 1.45rem;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .donation-page .tier-grid--compact {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 0.95rem;
  }

  .section-heading-center::after {
    width: 48px;
  }

  .media-card-body,
  .event-card-content {
    padding: 0.8rem 0.85rem 0.95rem;
    min-height: auto;
  }

  .popup {
    width: 100%;
    margin: 0;
    border-radius: var(--radius-md);
  }
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    width: auto;
    height: auto;
    max-height: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
  }

  .nav-item {
    width: auto;
  }

  .nav-item > a,
  .nav-item > button {
    display: inline-block;
    width: auto;
    min-height: 0;
    padding: 0.35rem 0.45rem;
    font-size: 0.92rem;
  }

  .dropdown {
    position: absolute;
    display: none;
  }

  .nav-item:hover .dropdown {
    display: block;
  }
}

/* ── Form & card polish ── */
input,
select,
textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 127, 212, 0.14);
}

.media-card,
.partner-card,
.contact-info-card,
.contact-form-card,
.donation-panel {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.media-card:hover,
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.faq-item {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item.open {
  box-shadow: 0 8px 24px rgba(15, 31, 46, 0.06);
  border-color: rgba(26, 127, 212, 0.2);
}

.faq-q {
  transition: background 0.25s ease, color 0.25s ease;
}

.popup {
  border-radius: var(--radius-lg);
  animation: popupIn 0.4s var(--ease-out);
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.scroll-top-btn {
  background: var(--gradient-brand);
}

.value-icon-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.value-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-icon-wrap {
  background: linear-gradient(135deg, rgba(26, 127, 212, 0.14) 0%, rgba(45, 157, 74, 0.12) 100%);
}

.story-highlight {
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.story-highlight:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.nav-item > a,
.nav-item > button {
  position: relative;
}

.nav-item > a::after,
.nav-item > button::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.nav-item > a:hover::after,
.nav-item > button:hover::after {
  transform: scaleX(1);
}

@media (min-width: 701px) and (max-width: 1024px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid,
  .event-grid,
  .gallery-page-grid.event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg-layer.is-active {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
