﻿/* ============================================================
   TASA â€” Tanzania Safety Alliance
   Brand Colors: #0A2968 (dark blue), #0055C4 (blue), #0091FF (light blue)
   Fonts: Plus Jakarta Sans (Headings/UI), Inter (Body)
   ============================================================ */

:root {
  --primary-dark: #0A2968;
  --primary: #0055C4;
  --primary-light: #0091FF;
  --primary-soft: #E8F1FF;
  --coral: #FF5A5F;
  --coral-dark: #E04850;
  --coral-soft: #FFEFEF;
  --dark: #0B1220;
  --gray: #596073;
  --light-gray: #F4F7FC;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(10, 41, 104, 0.08);
  --shadow-hover: 0 8px 32px rgba(10, 41, 104, 0.18);
  --radius: 16px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.3;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-tag.center {
  display: block;
  text-align: center;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 48px;
}

.section-title.center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* ===================== TOP ACTION BAR ===================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 15px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 10px 0;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0.95;
  font-weight: 500;
}

.topbar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-contact svg {
  width: 17px;
  height: 17px;
  color: var(--primary-light);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.top-btn svg {
  width: 19px;
  height: 19px;
  animation: btnIconFloat 1.8s ease-in-out infinite;
}

@keyframes btnIconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
/* numeric stats (count-up): animated toward data-target, no separate CSS block needed */
.count-up { display: inline-block; font-variant-numeric: tabular-nums; }
  50% { transform: translateY(-3px) rotate(6deg); }


}

.top-btn.donate {
  background: var(--coral);
  color: var(--white);
}

.top-btn.donate:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.top-btn.report {
  background: var(--coral);
  color: var(--white);
  border: 1px solid transparent;
}

.top-btn.report:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.top-btn.sos {
  background: var(--coral);
  color: var(--white);
  animation: sosPulse 2s infinite;
}

.top-btn.sos:hover {
  background: var(--coral-dark);
}

.top-btn.library {
  background: var(--primary-light);
  color: var(--white);
}

.top-btn.library:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

@keyframes sosPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(10, 41, 104, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(0, 145, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.12);
  background: #fff;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--primary-dark);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.btn-login {
  background: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
}

.nav-link.btn-login:hover {
  background: var(--primary-dark);
}

/* TASA MANAGEMENT PORTAL â€” header login button */
.nav-link.btn-login.portal-btn {
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(10, 41, 104, 0.22);
}

.nav-link.btn-login.portal-btn::after {
  display: none;
}

@media (max-width: 1250px) {
  .nav-link.btn-login.portal-btn {
    font-size: 10px;
    padding: 8px 12px;
    letter-spacing: 0.8px;
  }
}

/* ---------- Dropdown Menus ---------- */
.nav-item {
  position: relative;
}

/* Invisible hover bridge: keeps dropdown open across the gap below the nav title */
.nav-item::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 46px;
}

.dropdown {
  position: fixed;
  top: 146px;
  left: 0;
  right: 0;
  background: rgba(8, 22, 58, 0.96);
  backdrop-filter: blur(14px);
  border-radius: 0;
  border: none;
  border-top: 3px solid var(--primary-light);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1200;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateX(6px);
}

.dropdown .drop-head {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 10px;
  padding: 0 16px;
}

/* Anchored sections: fixed header clearance */
.content-section[id],
.section[id] {
  scroll-margin-top: 168px;
}

@media (max-width: 768px) {
  .dropdown {
    display: none;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
}

/* ===================== NAV SEARCH SPRAY ===================== */
.nav-search-item {
  position: relative;
  display: flex;
  align-items: center;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid var(--primary-soft);
  border-radius: 50px;
  padding: 5px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.search-trigger:hover {
  background: var(--primary);
  color: var(--white);
}

.search-trigger svg {
  width: 14px;
  height: 14px;
}

.search-spray {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(10, 41, 104, 0.16);
  padding-top: 6px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.28s ease;
  z-index: 1300;
}

.nav-search-item:hover .search-spray,
.search-trigger.active + .search-spray {
  opacity: 1;
  visibility: visible;
  transform: translateY(6px);
}

.search-spray .spray-head {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #94A3B8;
  padding: 8px 16px 4px;
}

.search-spray a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--primary-dark);
  transition: background 0.2s, color 0.2s;
}

.search-spray a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ===================== HERO â€” ROUNDED CARD + FLOATING SEARCH (new look) ===================== */
.hero {
  position: relative;
  margin: 162px 16px 16px;   /* hapa chini ya fixed header (64 + 82) + white frame */
  border-radius: 28px;
  overflow: hidden;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  box-shadow: 0 24px 60px rgba(10, 41, 104, 0.16);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s linear;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10, 41, 104, 0.55), rgba(10, 41, 104, 0) 40%),
    linear-gradient(100deg, rgba(10, 41, 104, 0.82) 0%, rgba(0, 85, 196, 0.42) 46%, rgba(0, 145, 255, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: left;
  padding: 90px 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 41, 104, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  margin-bottom: 22px;
}

.hero-badge svg {
  width: 15px;
  height: 15px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.hero-content h1 span {
  color: var(--white);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 26px rgba(0, 85, 196, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hero:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 85, 196, 0.46);
  text-decoration: none;
}

.btn-hero svg {
  width: 17px;
  height: 17px;
}

/* ---------- Floating search bar (inayoelea chini ya hero card) ---------- */
.hero-search {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(780px, calc(100% - 48px));
  background: var(--white);
  border-radius: 999px;
  padding: 7px 7px 7px 22px;
  box-shadow: 0 18px 44px rgba(4, 15, 38, 0.3);
}

.hero-search input[type="text"] {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--dark);
  background: transparent;
  padding: 10px 4px;
}

.hero-search input::placeholder {
  color: #9AA3B2;
}

.hs-divider {
  width: 1px;
  height: 26px;
  background: #E3E8F0;
  flex-shrink: 0;
}

.hero-search select {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
  padding: 10px 4px;
  max-width: 250px;
  cursor: pointer;
}

.hs-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  transition: background 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.hs-go:hover {
  background: var(--primary-dark);
}

.hs-go svg {
  width: 16px;
  height: 16px;
}

/* ---------- Dots â€” chini-kushoto ndani ya card ---------- */
.hero-dots {
  position: absolute;
  bottom: 46px;
  left: 40px;
  transform: none;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dots button {
  width: 26px;
  height: 4px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots button.active {
  background: var(--white);
}

/* ---------- Nyongeza: HERO SLIDER (content slides) â€” haigusa rules za zamani ---------- */
/* Slides ziko juu ya photo/overlay zao (zote zipo ndani ya slide); slide isiyohusika hairuhusu kubofya */
.hero .hero-slide {
  z-index: 2;
  pointer-events: none;
}
.hero .hero-slide.active {
  pointer-events: auto;
}
/* Dots katikati-chini (MS-style centered hero) */
.hero .hero-dots {
  left: 50%;
  transform: translateX(-50%);
  bottom: 34px;
}
@media (max-width: 900px) {
  .hero .hero-dots { bottom: 26px; }
}

/* ===================== ABOUT ===================== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 450px;
}

.about-img {
  position: absolute;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-img-1 {
  width: 70%;
  height: 360px;
  top: 0;
  left: 0;
}

.about-img-2 {
  width: 55%;
  height: 280px;
  bottom: 0;
  right: 0;
  border: 6px solid var(--white);
}

.about-text .lead {
  font-size: 18px;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat h3 {
  font-size: 32px;
  color: var(--primary);
  font-weight: 800;
}

.stat p {
  font-size: 13px;
  margin-top: 4px;
}

/* ===================== VISION / MISSION ===================== */
.vm {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 72px 0;
}

.vm .section-tag.center {
  color: var(--primary-light);
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.vm-card {
  text-align: center;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.vm-card:hover::before {
  transform: scaleX(1);
}

.vm-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 85, 196, 0.28);
  transition: transform 0.35s ease;
}

.vm-card:hover .vm-icon {
  transform: translateY(-4px) scale(1.05);
}

.vm-icon svg {
  width: 36px;
  height: 36px;
  color: var(--white);
}

.vm-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* ===================== CARDS ===================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ===================== PROGRAMS ===================== */
.programs {
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  padding: 0;
  overflow: hidden;
}

.program-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.program-card h3 {
  padding: 24px 24px 0;
  font-size: 20px;
}

.program-card p {
  padding: 12px 24px 28px;
}

/* ===================== PROJECTS ===================== */
.projects {
  background: var(--light-gray);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-content {
  padding: 24px;
}

.project-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.project-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* ===================== TEAM ===================== */
.team {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card h3 {
  padding: 20px 16px 0;
  font-size: 19px;
}

.team-role {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.team-bio {
  padding: 12px 16px 24px;
  font-size: 14px;
}

/* ===================== PARTNERS (marquee) ===================== */
.partners {
  background: var(--light-gray);
  overflow: hidden;
}

.partners-viewport {
  overflow: hidden;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: partnersScroll 45s linear infinite;
  padding: 8px 0;
}

.partners-viewport:hover .partners-track {
  animation-play-state: paused;
}

@keyframes partnersScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-logo {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(10, 41, 104, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10, 41, 104, 0.14);
}

.partner-logo img {
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter 0.3s;
}

.partner-logo:hover img {
  filter: none;
}

/* ===================== GALLERY ===================== */
.gallery {
  background: var(--white);
  padding-bottom: 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ===================== SDG ===================== */
.sdg {
  background: var(--primary-dark);
}

.sdg-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.sdg-flex img {
  width: 40%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sdg-text h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 16px;
}

.sdg-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
}

/* ===================== CONTACT ===================== */
.contact {
  background: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-item {
  margin-bottom: 28px;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--primary);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 400 !important;
  opacity: 0.8;
  margin-top: 8px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* ===================== SUB-PAGE HERO ===================== */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../public/images/hero.png') center/cover no-repeat;
  opacity: 0.18;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.breadcrumb a,
.breadcrumb span.sep {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span.current {
  color: var(--primary-light);
  font-weight: 700;
}

.page-hero h1 {
  color: var(--white);
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

/* ===================== CONTENT SECTIONS (sub-pages) ===================== */
.content-section {
  padding: 72px 0;
}

.content-section.alt {
  background: var(--light-gray);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.check-list {
  list-style: none;
  margin-top: 20px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
}

.check-list li::before {
  content: 'âœ“';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.cta-band {
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 145, 255, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(0, 145, 255, 0.22) 0%, transparent 45%),
    linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 130%);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.cta-band .btn-white {
  background: var(--white);
  color: var(--primary-dark);
}

.cta-band .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ===================== AUTH PAGES (login/signup) ===================== */
.auth-wrap {
  min-height: calc(100vh - 134px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 48px 24px;
  margin-top: 134px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 44px 40px;
  text-align: center;
}

.auth-card img.auth-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.auth-card h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

.auth-card p.sub {
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-form input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 14px;
  transition: border-color 0.3s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.auth-form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-form button:hover {
  background: var(--primary-dark);
}

.auth-alt {
  margin-top: 22px;
  font-size: 14px;
}

.auth-alt a {
  color: var(--primary);
  font-weight: 600;
}

.auth-note {
  margin-top: 18px;
  font-size: 12px;
  color: #94A3B8;
}

/* ===================== NEWS & EVENTS ===================== */
.news {
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.news-card .news-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.07);
}

.news-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--coral);
  color: var(--white);
  border-radius: 10px;
  text-align: center;
  padding: 6px 12px;
  font-family: var(--font-heading);
}

.news-date strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.news-date span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-body {
  padding: 22px 24px 26px;
}

.news-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  transition: color 0.25s;
}

.news-card:hover h3 {
  color: var(--primary);
}

.news-body p {
  font-size: 14px;
  margin-bottom: 14px;
}

.news-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease, color 0.25s ease;
}

.news-card:hover .news-link {
  gap: 10px;
  color: var(--primary-dark);
}

.btn-coral {
  background: var(--coral) !important;
  color: var(--white) !important;
}

.btn-coral:hover {
  background: var(--coral-dark) !important;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar-contact {
    display: none;
  }
}

@media (max-width: 768px) {
  .partners-track { gap: 18px; }

  .navbar {
    top: 64px;
  }

  .nav-links {
    position: fixed;
    top: 146px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    min-height: 350px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .sdg-flex {
    flex-direction: column;
    gap: 24px;
  }

  .sdg-flex img {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 30px;
  }

  .about-img-1 {
    width: 100%;
  }

  .about-img-2 {
    display: none;
  }
}

@media (max-width: 768px) {
  .partners-track { gap: 18px; }

  .page-hero h1 {
    font-size: 32px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col img {
    height: 260px;
  }

  /* Search spray on mobile â€” position static */
  .search-spray {
    position: static;
    margin-top: 12px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    min-width: auto;
    transform: none;
  }

  .nav-search-item:hover .search-spray,
  .search-trigger.active + .search-spray {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 10px 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: none;
  }
}
/* ===================== TOPBAR SOCIAL ICONS (FB / IG â€” SAME SIZE AS TOP-BTNS) ===================== */
.top-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
}

.top-social svg {
  width: 19px;
  height: 19px;
}

.top-social:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===================== LOGIN PAGE (SILVER PINSTRIPE + FLAG RIBBON) ===================== */
.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px at 90% 6%, rgba(0, 145, 255, 0.10), transparent 55%),
    radial-gradient(900px at 4% 96%, rgba(0, 145, 255, 0.08), transparent 55%),
    repeating-conic-gradient(from 12deg at 112% 10%, rgba(90, 110, 140, 0.06) 0 0.4deg, transparent 0.4deg 3.2deg),
    repeating-conic-gradient(from 192deg at -8% 92%, rgba(90, 110, 140, 0.06) 0 0.4deg, transparent 0.4deg 3.2deg),
    repeating-conic-gradient(from 78deg at 50% 118%, rgba(90, 110, 140, 0.05) 0 0.4deg, transparent 0.4deg 4deg),
    linear-gradient(180deg, #E8EDF3 0%, #F3F5F7 45%, #E3E7EC 100%);
}

.login-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  overflow: hidden;
}

.login-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(70, 90, 120, 0.16) 1.1px, transparent 1.1px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(160px 140px at 86% 12%, #000 60%, transparent 61%), radial-gradient(200px 160px at 15% 87%, #000 60%, transparent 61%), radial-gradient(160px 130px at 92% 84%, #000 60%, transparent 61%);
  -webkit-mask-composite: source-over;
  mask-image: radial-gradient(160px 140px at 86% 12%, #000 60%, transparent 61%), radial-gradient(200px 160px at 15% 87%, #000 60%, transparent 61%), radial-gradient(160px 130px at 92% 84%, #000 60%, transparent 61%);
  mask-composite: add;
  pointer-events: none;
  z-index: 0;
}

.login-emblem {
  width: 96px;
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 16px rgba(10, 41, 104, 0.18));
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(20, 40, 80, 0.14);
  padding: 40px 36px 32px;
}

.login-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #3A3F47;
  margin-bottom: 26px;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0F1F5;
  border: 1.5px solid transparent;
  border-radius: 4px;
  padding: 0 13px;
  margin-bottom: 13px;
  transition: all 0.25s ease;
}

.login-input svg {
  width: 16px;
  height: 16px;
  color: #5A6270;
  flex-shrink: 0;
}

.login-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 0;
  font-size: 14px;
  font-family: var(--font-body, 'Inter', sans-serif);
  color: var(--dark, #1C2333);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.login-input input::placeholder {
  color: #8A8F98;
}

.login-input:focus-within {
  background: var(--white);
  border-color: #1A73E8;
}

.login-go {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  border: none;
  border-radius: 4px;
  background: #1A73E8;
  color: var(--white);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.login-go:hover {
  background: #1667CE;
}

.login-go:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
}

.login-links a {
  color: #1A73E8;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-signup {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #6A7280;
}

.login-signup a {
  color: #1A73E8;
  font-weight: 600;
  text-decoration: none;
}

.login-signup a:hover {
  text-decoration: underline;
}

.login-corner {
  position: fixed;
  right: 18px;
  bottom: 12px;
  font-size: 12px;
  color: #97A1B2;
  z-index: 3;
}

@media (max-width: 940px) {
  .login-wrap {
    padding: 90px 24px 60px;
  }

  .login-emblem {
    width: 78px;
    margin-bottom: 16px;
  }
}



/* ===== TASA PORTAL - blue login form (real classes) + page-hero strip removed ===== */
.login-input { background: #F2F7FF; border: 1.5px solid #BBD3F5; }
.login-input svg { color: var(--primary); }
.login-input:focus-within { background: #FFFFFF; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 85, 196, 0.12); }
.login-go { background: var(--primary); }
.login-go:hover { background: var(--primary-dark); }
.page-hero::after, .page-hero::before { content: none !important; display: none !important; }

/* ===================== HERO NEW LOOK â€” responsive ===================== */
@media (max-width: 980px) {
  .hero {
    margin: 154px 12px 12px;
    border-radius: 24px;
    min-height: calc(100vh - 190px);
  }
  .hero-content { padding: 70px 32px; }
  .hero-content h1 { font-size: 42px; }
  .hero-dots { bottom: 40px; left: 32px; }
}

@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 78vh;
    margin: 154px 10px 10px;
  }
  .hero-content { padding: 56px 24px 10px; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 15px; margin-bottom: 24px; }
  .hero-search {
    position: static;
    transform: none;
    width: auto;
    margin: 16px 16px 76px;
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px 14px;
    gap: 4px;
  }
  .hs-divider { display: none; }
  .hero-search input[type="text"] { flex: 1 1 100%; padding: 8px 2px; }
  .hero-search select { flex: 1 1 auto; max-width: none; }
  .hs-go { flex: 1 1 100%; justify-content: center; margin-top: 6px; }
  .hero-dots { bottom: 24px; left: 24px; }
}
.page-hero { border-bottom: none !important; box-shadow: none !important; margin-bottom: 0 !important; }

/* ===================== HERO - MS-STYLE REDESIGN (gradient + photo right + centered) ===================== */
.hero {
  margin: 146px 0 0;
  border-radius: 0;
  min-height: 480px;
  background: linear-gradient(102deg, #06182f 0%, #0a2748 48%, #0f3a6d 100%);
  box-shadow: none;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 56%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
.hero-overlay {
  z-index: 1;
  background: linear-gradient(100deg, rgba(6, 24, 47, 0.94) 0%, rgba(6, 24, 47, 0.72) 48%, rgba(8, 34, 66, 0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 88px 24px;
}
.hero-content h1 {
  font-size: 54px;
  text-align: center;
}
.hero-content p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  font-size: 17px;
}
.hero-buttons {
  justify-content: center;
  margin-top: 30px;
}
.btn-hero-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
@media (max-width: 1100px) {
  .hero-content h1 { font-size: 44px; }
}
@media (max-width: 900px) {
  .hero { min-height: 440px; }
  .hero-photo {
    width: 100%;
    opacity: 0.35;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-overlay {
    background: rgba(6, 24, 47, 0.55);
  }
  .hero-content {
    padding: 70px 20px;
  }
  .hero-content h1 {
    font-size: 36px;
  }
}

/* ===================== TOPBAR RESPONSIVE (buttons za juu - screen ndogo) ===================== */
@media (max-width: 1320px) {
  .topbar-actions { gap: 8px; }
  .top-btn { padding: 8px 14px; font-size: 13px; gap: 6px; }
  .top-social { padding: 8px 13px; }
}

@media (max-width: 1150px) {
  .topbar-contact { display: none; }
  .topbar-inner { justify-content: flex-end; }
}

@media (max-width: 860px) {
  .topbar-inner { padding: 8px 0; }
  .topbar-actions { gap: 7px; }
  .top-btn {
    font-size: 0;
    letter-spacing: 0;
    gap: 0;
    padding: 9px 12px;
  }
  .top-btn svg { width: 18px; height: 18px; }
  .top-social { padding: 8px 10px; }
}

@media (max-width: 420px) {
  .topbar-actions { gap: 5px; }
  .top-btn { padding: 8px 10px; }
  .top-social { padding: 7px 9px; }
  .top-btn svg,
  .top-social svg { width: 17px; height: 17px; }
}

/* ===================== NAV: tighter gaps on laptops ===================== */
@media (max-width: 1350px) {
  .nav-links { gap: 15px; }
  .nav-link { font-size: 14.5px; }
  .nav-link.btn-login.portal-btn { padding: 11px 16px; font-size: 12px; }
  .brand-text { font-size: 24px; }
}
@media (max-width: 1250px) {
  .nav-links { gap: 14px; }
  .nav-link { font-size: 14px; }
}

/* ===================== NAV: hamburger menu up to 1100px ===================== */
@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 146px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    max-height: calc(100vh - 146px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }
  .dropdown { display: none; }
}

/* ===================== GREEN HUB SOCIAL LINKS (programs page) ===================== */
.hub-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.hub-social-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary-dark);
}
.hub-social-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.hub-social-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================================
   DONATE â€” "GIVING STORE" (donate.html only)
   E-commerce style: campaign hero, program shop cards,
   split donation box, plan chips, copy-link panels, no modals.
   ============================================================ */

/* ---------- Campaign hero (replaces .page-hero) ----------
   TASA blue band (navy -> blue) with a floating white card:
   headline + CTAs on the left, mini campaign cards on the right. */
.give-hero {
  position: relative;
  padding: 176px 0 92px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 145, 255, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(4, 20, 56, 0.85) 0%, transparent 55%),
    linear-gradient(135deg, #0A2968 0%, #0055C4 100%);
  overflow: hidden;
}
.give-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../public/images/hero.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.give-hero .container { position: relative; z-index: 2; }
.give-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 42px;
  align-items: center;
  background: var(--white);
  border-radius: 28px;
  padding: 46px 48px;
  margin-bottom: 32px;
  box-shadow: 0 34px 80px rgba(3, 16, 45, 0.42);
}
.give-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid #C9DDF0;
  border-radius: 999px;
  background: #EAF3FF;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 22px;
}
.give-badge svg { width: 16px; height: 16px; color: var(--coral); }
.give-hero h1 {
  color: var(--primary-dark);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
  max-width: 640px;
  margin-bottom: 14px;
}
.give-hero h1 em { font-style: normal; color: var(--coral); }
.give-hero-sub {
  max-width: 560px;
  font-size: 16.5px;
  color: var(--gray);
  margin-bottom: 28px;
}
.give-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-give {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
  box-shadow: 0 10px 26px rgba(255, 90, 95, 0.4);
}
.btn-give:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-3px);
}
.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border-color: #CBD5E1;
}
.btn-ghost:hover { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); transform: translateY(-3px); }

/* floating mini campaign cards (hero right column) */
.give-hero-visual { display: flex; flex-direction: column; gap: 13px; }

      .hero-ref { width: 100%; height: 340px; object-fit: cover; display: block; border-radius: 18px; }

      .give-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

      .give-hero-grid .gh-mini { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(10, 41, 104, 0.10); transition: transform 0.2s ease, box-shadow 0.2s ease; }

      .give-hero-grid .gh-mini:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(10, 41, 104, 0.16); }

      .give-hero-grid .gh-mini img { width: 100%; height: 120px; object-fit: cover; display: block; }
.gh-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 15px;
  background: var(--white);
  border: 1.5px solid #E6ECF6;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(10, 41, 104, 0.12);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gh-mini:hover {
  transform: translate(-4px, -3px);
  border-color: var(--primary-light);
  box-shadow: 0 18px 38px rgba(10, 41, 104, 0.2);
}
.gh-mini img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.gh-mini-body { display: block; flex: 1; min-width: 0; }
.gh-mini-t {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gh-mini-track { display: block; height: 6px; background: #E9EFF8; border-radius: 999px; overflow: hidden; }
.gh-mini-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1.4s cubic-bezier(0.22, 0.8, 0.36, 1);
}
.gh-mini-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--gray);
.give-hero-copy { max-width: 560px; }


}
.gh-mini-foot b { color: var(--primary); font-family: var(--font-heading); }
.gh-mini-link { color: var(--coral); font-weight: 800; white-space: nowrap; }

.give-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 840px;
  margin-bottom: 34px;
}
.give-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}
.give-stat b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}
.give-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.give-goal { max-width: 840px; }
.give-goal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}
.give-goal-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.give-goal-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFD166, var(--coral));
  box-shadow: 0 0 14px rgba(255, 90, 95, 0.6);
  transition: width 1.6s cubic-bezier(0.22, 0.8, 0.36, 1);
}
.give-goal-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); margin-top: 8px; }

/* ---------- Program shop: e-commerce style cards ---------- */
.give-shop { padding: 88px 0; background: var(--white); }
.give-head { max-width: 730px; margin-bottom: 42px; }
.give-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 8px; }
.give-head p { margin-top: 12px; color: var(--gray); }
.give-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.give-head .section-tag { color: var(--coral); }
.flow-head .section-tag { color: #7DD3FC; }
.give-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.give-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid #E6ECF6;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.give-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.give-card.selected {
  border-color: var(--coral);
  box-shadow: 0 14px 34px rgba(255, 90, 95, 0.22);
}
.give-card-media { position: relative; height: 210px; overflow: hidden; }
.give-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.give-card:hover .give-card-media img { transform: scale(1.07); }
.give-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 27, 71, 0) 40%, rgba(6, 27, 71, 0.74) 100%);
}
.give-pct {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 16px rgba(255, 90, 95, 0.45);
}
.give-target {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
}
.give-card-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.give-card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.give-card-body h3 { font-size: 21px; }
.give-card-body p { font-size: 14.5px; color: var(--gray); flex: 1; }
.give-nums {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}
.give-nums .raised { color: var(--primary); }
.give-nums .goal { color: var(--gray); font-weight: 600; }
.give-track { height: 12px; background: #EDF2FA; border-radius: 999px; overflow: hidden; }
.give-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(0.22, 0.8, 0.36, 1);
}
.give-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.give-remain { font-size: 13px; color: var(--gray); }
.give-remain b { color: var(--coral-dark); }
.give-pick {
  padding: 11px 22px;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.give-pick:hover { background: var(--primary-dark); transform: translateY(-2px); }
.give-card.selected .give-pick { background: var(--coral); }

/* ---------- Split donation box (screenshot style) ---------- */
.give-wrap {
  padding: 84px 0 90px;
  background: linear-gradient(180deg, #F4F9FF 0%, #EAF3FF 100%);
}

/* ---------- sample donation popup (reference hero) ---------- */
.sample-popup {
  max-width: 640px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(10, 41, 104, 0.18);
  border: 1px solid #DCE8F8;
  overflow: hidden;
}
.sample-popup img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.sample-popup .sample-body {
  padding: 24px 28px 28px;
}
.sample-popup .sample-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
}
.sample-popup .sample-name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--ink);
  margin: 6px 0 8px;
}
.sample-popup .sample-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}
.sample-popup .sample-amount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sample-popup .sample-amount span { font-size: 16px; }
.sample-popup .sample-amount input {
  padding: 10px 14px;
  border: 1px solid #DCE8F8;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-heading);
  width: 160px;
}
.sample-popup .sample-amount .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.sample-popup .sample-amount .btn:hover { background: var(--primary-dark); }
.sample-popup .sample-amount .btn.ghost {
  background: #F1F5FB;
  color: var(--ink);
  border: 1px solid #E2EAF3;
}
.sample-popup .sample-amount .btn.ghost:hover { background: #E4EBF6; }
.sample-popup .sample-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sample-popup .sample-note svg { flex: none; }
.give-box {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(10, 41, 104, 0.18);
  border: 1px solid #DCE8F8;
}
.give-box-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--primary-dark);
  color: var(--white);
}
.visual-img { position: relative; height: 250px; overflow: hidden; }
.visual-img img { width: 100%; height: 100%; object-fit: cover; }
.visual-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 41, 104, 0) 45%, rgba(10, 41, 104, 0.92) 100%);
}
.visual-body {
  padding: 4px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.visual-kicker {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: #7DD3FC;
}
.visual-body h3 { color: var(--white); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.25; }
.visual-desc { font-size: 14.5px; color: rgba(255, 255, 255, 0.8); }
.visual-stat { display: flex; gap: 10px; flex-wrap: wrap; }
.visual-stat span {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 600;
}
.visual-stat span b { font-family: var(--font-heading); }
.visual-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.vchip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}
.vchip:hover { background: rgba(255, 255, 255, 0.2); }
.vchip.selected { background: var(--white); color: var(--primary-dark); border-color: var(--white); }

.give-box-panel { padding: 34px 36px 8px; }
.panel-title { font-size: clamp(21px, 2.4vw, 26px); text-align: center; }
.panel-sub {
  text-align: center;
  font-size: 14.5px;
  color: var(--gray);
  margin: 8px auto 4px;
  max-width: 450px;
}
.panel-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 22px 0 12px;
}
.amt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amt-chip {
  padding: 15px 8px;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  background: var(--white);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.amt-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}
.amt-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 85, 196, 0.32);
}
.amt-other {
  display: none;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 2px solid var(--primary-light);
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
.amt-other.show { display: block; }
.amt-other:focus { outline: none; box-shadow: 0 0 0 4px rgba(0, 145, 255, 0.18); }

.sum-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  background: #F4F9FF;
  border: 1.5px solid #D6E8F5;
  border-radius: 16px;
  padding: 14px 12px;
}
.sum-cell { text-align: center; }
.sum-cell + .sum-cell { border-left: 1.5px dashed #C9DDF0; }
.sum-cell b {
  display: block;
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--primary-dark);
}
.sum-cell.hl b { color: var(--coral); }
.sum-cell span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Zero-field options: proposal request / mobile money ---------- */
.way-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.way-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 15px;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}
.way-btn:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.way-btn.selected {
  border-color: var(--coral);
  background: var(--coral-soft);
  box-shadow: 0 10px 22px rgba(255, 90, 95, 0.18);
}
.way-btn .way-t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
}
.way-btn .way-t svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.way-btn .way-d { font-size: 12.5px; color: var(--gray); line-height: 1.5; }

.opt-panel { display: none; margin-top: 14px; animation: givePop 0.35s ease; }
.opt-panel.show { display: block; }
@keyframes givePop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.prop-box {
  background: #F4F9FF;
  border: 1.5px dashed var(--primary);
  border-radius: 16px;
  padding: 18px;
}
.cb-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.prop-sub { font-size: 12.5px; color: var(--gray); margin-bottom: 14px; line-height: 1.55; }
.prop-sub strong { color: var(--primary-dark); }
.prop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prop-field { display: block; margin-bottom: 10px; text-align: left; }
.prop-field > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
}
.prop-field input,
.prop-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #C9DDF0;
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--primary-dark);
  box-sizing: border-box;
  resize: vertical;
}
.prop-field input:focus,
.prop-field textarea:focus { outline: none; border-color: var(--primary-light); }
.prop-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.prop-foot .btn-agree { padding: 14px 30px; font-size: 15px; }
.prop-foot .btn-agree:disabled { opacity: 0.6; cursor: wait; transform: none; }
.prop-hint { font-size: 12.5px; color: var(--gray); }
.prop-hint strong { color: var(--primary-dark); }
.prop-status { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; }
.prop-status.ok { background: #E8F8EF; border: 1.5px solid #A7E0BD; color: #14532D; }
.prop-status.bad { background: #FEECEB; border: 1.5px solid #F5B7B1; color: #7F1D1D; }
.btn-copy {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}
.btn-copy:hover { background: var(--primary-dark); }
.btn-copy.copied { background: #16A34A; }

.momo-box {
  background: #FFF6F6;
  border: 1.5px solid #FFD9DA;
  border-radius: 16px;
  padding: 18px;
}
.mb-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--coral-dark);
  margin-bottom: 8px;
}
.momo-amount {
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}
.momo-num {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--coral-dark);
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.momo-line { font-size: 14px; color: var(--gray); margin-top: 4px; }
.momo-steps { margin: 12px 0 0 18px; font-size: 13.5px; color: var(--gray); line-height: 1.8; }
.momo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.momo-box .btn-agree { width: 100%; margin-top: 16px; }
.momo-note { margin-top: 10px; font-size: 12.5px; color: var(--gray); line-height: 1.6; }

/* ---------- Mobile money transaction prompt (provider-style) ---------- */
.momo-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 20, 56, 0.66);
  backdrop-filter: blur(3px);
}
.momo-overlay.show { display: flex; }
.momo-modal {
  width: 100%;
  max-width: 384px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: givePop 0.3s ease;
}
.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #0A2968 0%, #0055C4 100%);
  color: var(--white);
}
.mm-brand { font-family: var(--font-heading); font-size: 15px; font-weight: 800; letter-spacing: 0.3px; }
.mm-x {
  flex: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.mm-x:hover { background: rgba(255, 255, 255, 0.3); }
.mm-step { padding: 22px 22px 24px; text-align: center; }
.mm-kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.mm-amount { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--primary-dark); line-height: 1.15; }
.mm-to { font-size: 13.5px; color: var(--gray); margin-top: 6px; }
.mm-to strong { color: var(--primary-dark); }
.mm-prog {
  display: inline-block;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #EAF3FF;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-nets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.mm-net-chip {
  padding: 10px 8px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}
.mm-net-chip:hover { border-color: var(--primary-light); }
.mm-net-chip.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }
.mm-field { display: block; margin-top: 14px; text-align: left; }
.mm-field span { display: block; font-size: 12px; font-weight: 700; color: var(--gray); margin-bottom: 6px; }
.mm-field input {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  box-sizing: border-box;
}
.mm-field input:focus { outline: none; border-color: var(--primary-light); }
.mm-cta {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0A2968, #0055C4);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 85, 196, 0.35);
  transition: transform 0.2s ease;
}
.mm-cta:hover { transform: translateY(-2px); }
.mm-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.mm-cancel {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  background: none;
  color: var(--gray);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.mm-cancel:hover { color: var(--coral-dark); }
.mm-dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0 10px; }
.mm-dots i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  transition: background 0.15s ease;
}
.mm-dots i.on { background: var(--primary); }
.mm-pin-msg { font-size: 12.5px; color: var(--gray); line-height: 1.5; }
.mm-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.mm-pad button {
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  background: #F1F5F9;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mm-pad button:hover { background: #E2E8F0; }
.mm-pad button:active { background: #CBD5E1; }
.mm-spin {
  width: 52px;
  height: 52px;
  margin: 14px auto 16px;
  border-radius: 50%;
  border: 5px solid #E2EAF6;
  border-top-color: var(--primary);
  animation: mmSpin 0.9s linear infinite;
}
@keyframes mmSpin { to { transform: rotate(360deg); } }
.mm-busy-t { font-family: var(--font-heading); font-size: 17px; font-weight: 800; color: var(--primary-dark); }
.mm-busy-s { font-size: 13px; color: var(--gray); margin-top: 6px; }
.mm-badge { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mm-badge svg { width: 30px; height: 30px; }
.mm-badge.ok { background: #E8F8EF; color: #16A34A; }
.mm-badge.bad { background: #FEECEB; color: #B42318; }
.mm-done-t { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.mm-receipt { margin-top: 16px; background: #F4F9FF; border: 1.5px solid #D6E8F5; border-radius: 14px; padding: 4px 14px; text-align: left; }
.mm-receipt div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1.5px dashed #C9DDF0;
}
.mm-receipt div:last-child { border-bottom: none; }
.mm-receipt span { color: var(--gray); flex: none; }
.mm-receipt b { color: var(--primary-dark); font-family: var(--font-heading); font-weight: 700; text-align: right; word-break: break-word; }
.mm-note { font-size: 12px; color: var(--gray); margin-top: 12px; line-height: 1.55; }

.agree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn-agree {
  padding: 16px 40px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 90, 95, 0.4);
  transition: all 0.25s ease;
}
.btn-agree:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(255, 90, 95, 0.5); }
.agree-help { font-size: 13px; color: var(--gray); }
.agree-help a { color: var(--primary); font-weight: 700; }
.way-grid.nudge { animation: giveNudge 0.5s ease; }
@keyframes giveNudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.give-box-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--primary-dark);
  color: var(--white);
  flex-wrap: wrap;
}
.strip-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.give-box-strip .goal-track {
  flex: 1;
  min-width: 160px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.strip-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFD166, var(--coral));
  transition: width 1.6s cubic-bezier(0.22, 0.8, 0.36, 1);
}
.strip-pct {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #FFD166;
}

/* ---------- How giving works: dark 3-step band ---------- */
.give-flow {
  background: var(--dark);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.give-flow::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 145, 255, 0.35) 0%, transparent 70%);
}
.give-flow .container { position: relative; z-index: 2; }
.flow-head { max-width: 680px; margin-bottom: 44px; }
.flow-head h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }
.flow-head p { color: rgba(255, 255, 255, 0.72); margin-top: 12px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 30px 26px;
}
.step-num {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(0, 145, 255, 0.35);
}
.step-card:nth-child(2) .step-num {
  background: linear-gradient(135deg, var(--coral), #FF8A8F);
  box-shadow: 0 10px 24px rgba(255, 90, 95, 0.4);
}
.step-card:nth-child(3) .step-num {
  background: linear-gradient(135deg, #16A34A, #4ADE80);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.4);
}
.step-card h3 { color: var(--white); font-size: 19px; margin-bottom: 8px; }
.step-card p { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; }

/* ---------- Other ways strip ---------- */
.give-ways { padding: 76px 0; background: var(--white); }
.ways-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.way-item {
  background: var(--light-gray, #F4F9FF);
  border: 1.5px solid #E6ECF6;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.way-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.way-item h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.way-item h3 svg { width: 21px; height: 21px; color: var(--primary); flex: none; }
.way-item p { font-size: 14.5px; color: var(--gray); flex: 1; }
.way-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid #E6ECF6;
  border-radius: 12px;
  padding: 11px 14px;
}
.way-val strong {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary-dark);
  word-break: break-all;
}
.btn-tiny {
  flex: none;
  padding: 8px 14px;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-tiny:hover { background: var(--primary-dark); }
.btn-tiny.copied { background: #16A34A; }
.way-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary);
}
.way-link:hover { color: var(--primary-light); }

/* ---------- Toast ---------- */
.give-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 160%);
  z-index: 5000;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.36, 1), opacity 0.4s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.give-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Giving Store responsive ---------- */
@media (max-width: 1024px) {
  .give-grid { grid-template-columns: 1fr; }
  .give-box { grid-template-columns: 1fr; }
  .give-hero-card { grid-template-columns: 1fr; padding: 36px 32px; }
  .steps-grid, .ways-strip { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .give-hero { padding: 158px 0 72px; }
  .give-hero-card { padding: 28px 20px; border-radius: 22px; }
  .give-stats { grid-template-columns: 1fr; max-width: 420px; }
  .give-wrap { padding: 60px 0; }
  .amt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop-grid { grid-template-columns: 1fr; }
  .way-grid { grid-template-columns: 1fr; }
  .give-box-panel { padding: 26px 20px 8px; }
  .visual-body { padding: 4px 20px 26px; }
  .sum-row { grid-template-columns: 1fr; gap: 12px; }
  .sum-cell + .sum-cell { border-left: none; border-top: 1.5px dashed #C9DDF0; padding-top: 12px; }
  .agree-row { justify-content: center; }
  .btn-agree { width: 100%; }
  .give-card-body { padding: 20px; }
  .give-box-strip { padding: 14px 18px; }
}
@media (max-width: 480px) {
  .give-card-media { height: 180px; }
  .give-hero h1 { font-size: 30px; }
}

