/* ─────────────────────────────────────────────
   CSS VARIABLES & RESET
───────────────────────────────────────────── */
:root {
  --navy:       #0b3d52;
  --navy-mid:   #145c78;
  --navy-light: #1a7a9a;
  --sky:        #7ecfed;
  --gold:       #f0c040;
  --gold-dark:  #c89a10;
  --white:      #ffffff;
  --off-white:  #f4f9fc;
  --text-muted: #5a7d8a;
  --transition: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

.bn { font-family: 'Tiro Bangla', serif; }

/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: var(--navy);
  padding: 14px 48px;
  box-shadow: 0 4px 30px rgba(11, 61, 82, 0.35);
}

/* Logo */
.nav-logo {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo .logo-icon {
  width: 54px;
  height: 54px;
  background: #ffffff;
  border-radius: 7px;
  object-fit: contain;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 0 0 1px rgba(11,61,82,0.55);
  flex-shrink: 0;
}
.nav-logo .logo-the { color: var(--white); font-weight: 400; }
.nav-logo .logo-name { color: var(--gold); font-weight: 400; text-transform: uppercase; letter-spacing: 2px; }

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links li {
  opacity: 0;
  transform: translateY(-12px);
  animation: navDrop 0.5s forwards;
}
.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.18s; }
.nav-links li:nth-child(3) { animation-delay: 0.26s; }
.nav-links li:nth-child(4) { animation-delay: 0.34s; }
.nav-links li:nth-child(5) { animation-delay: 0.42s; }

@keyframes navDrop {
  to { opacity: 1; transform: translateY(0); }
}

.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  transition: color 0.25s;
}

/* Animated underline on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }

/* ── Projects Dropdown ── */
.nav-dropdown { position: relative; margin-left: 10px; }

.nav-dropdown-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-dropdown-btn:hover { opacity: 1; }
.nav-dropdown-arrow { font-size: 14px; transition: transform 0.2s; }
.nav-dropdown.is-open .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #071f2a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  min-width: 240px;
  list-style: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 200;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-dropdown-item.active-project {
  background: rgba(212,175,55,0.15);
  color: var(--gold);
}
.dropdown-icon { font-size: 15px; line-height: 1; }

/* Mobile projects group — display:contents makes the wrapper invisible to flex,
   so both project links behave as direct children of .mobile-menu with the same gap/alignment */
.mobile-projects-group { display: contents; }
.mobile-link--project { font-size: 14px; }
.mobile-link--project.active-project { color: var(--gold); }

/* Language Toggle */
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 30px;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: navDrop 0.5s 0.5s forwards;
}
.lang-toggle:hover {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.05);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 100px;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }
.mobile-menu .lang-toggle { display: inline-flex; }

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
#home {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Decorative circles */
#home::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,192,64,0.07) 0%, transparent 70%);
  top: -150px; right: -100px;
}
#home::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,207,237,0.06) 0%, transparent 70%);
  bottom: -100px; left: 10%;
}

/* Geometric accent lines */
.hero-lines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-lines::before {
  content: '';
  position: absolute;
  top: 20%; right: 8%;
  width: 1px; height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(240,192,64,0.3), transparent);
  animation: linePulse 3s ease-in-out infinite;
}
.hero-lines::after {
  content: '';
  position: absolute;
  bottom: 25%; right: 12%;
  width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(240,192,64,0.3), transparent);
  animation: linePulse 3s ease-in-out 1s infinite;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.fundraise-complete-badge {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.hero-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-tag::before { display: none; }

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 58px);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 22px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-content p {
  font-size: 17px;
  color: rgba(126,207,237,0.9);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 13px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: 'Hind Siliguri', sans-serif;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240,192,64,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--sky);
  padding: 13px 32px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid rgba(126,207,237,0.6);
  cursor: pointer;
  font-family: 'Hind Siliguri', sans-serif;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--sky);
  color: var(--white);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 100px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(126,207,237,0.6);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
.scroll-hint::before {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(126,207,237,0.4));
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─────────────────────────────────────────────
   DONATION PROGRESS BAR
───────────────────────────────────────────── */
.donation-bar {
  background: #0d1f2d;
  display: flex;
  align-items: stretch;
  min-height: 86px;
  position: relative;
  overflow: hidden;
  width: 100%;
  z-index: 2;
  flex-shrink: 0;
}

/* Shimmer top border */
.donation-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--navy-light), var(--gold));
  background-size: 300% 100%;
  animation: shimmerLine 4s linear infinite;
}

/* Shimmer bottom border */
.donation-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--navy-light), var(--gold));
  background-size: 300% 100%;
  animation: shimmerLine 4s linear infinite;
}
@keyframes shimmerLine {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* Gold chevron badge — campaign name + raised */
.dbar-label-wrap {
  background: var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 44px 0 48px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  flex-shrink: 0;
  min-width: 280px;
}
.dbar-label-wrap .camp-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.dbar-label-wrap .camp-raised {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

/* Divider between sections */
.dbar-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  align-self: stretch;
  flex-shrink: 0;
}

/* Each stat block */
.dbar-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 4px;
  flex: 1;
}
.dbar-stat-block .stat-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.dbar-stat-block .stat-goal-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}
.dbar-stat-block .stat-goal-val {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.dbar-stat-block .stat-big {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
#countdownStat { font-size: 28px; letter-spacing: 1px; font-variant: small-caps; }
#timeLeftLabel { white-space: normal; text-align: center; letter-spacing: 1px; line-height: 1.4; margin-top: 8px; max-width: 140px; }

.dbar-stat-block .stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* Spacer hidden - stat blocks fill width */
.dbar-spacer { display: none; }

/* CTA */
.dbar-cta {
  display: flex;
  align-items: center;
  padding: 0 32px;
  flex-shrink: 0;
}
.dbar-btn {
  background: linear-gradient(135deg, #2fc89e, #22a87e);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: transform 0.2s, box-shadow 0.25s, filter 0.25s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(47,200,158,0.3);
}
.dbar-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(47,200,158,0.45);
  filter: brightness(1.08);
}

/* Responsive */
@media (max-width: 900px) {
  .donation-bar {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }
  .dbar-label-wrap {
    clip-path: none;
    padding: 18px 24px;
    min-width: unset;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .dbar-divider { width: 100%; height: 1px; }
  .dbar-stat-block { padding: 16px 0; flex: 1; }
  .dbar-stats-row {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .dbar-cta { padding: 16px 24px; justify-content: center; }
  .dbar-btn { width: 100%; text-align: center; padding: 14px; }
  .dbar-spacer { display: none; }
}

/* ─────────────────────────────────────────────
   SECTION COMMONS
───────────────────────────────────────────── */
section { padding: 50px clamp(24px, 6vw, 80px); }

.section-tag {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--gold-dark);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* Section header wrapper - consistent spacing */
.section-header {
  margin-bottom: 40px;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   OUR STORY
───────────────────────────────────────────── */
#our-story {
  background: var(--white);
  padding-bottom: 60px;
}

.story-text { max-width: 860px; margin: 0 auto; }
.story-text p { margin-top: 20px; }

.story-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.story-body p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* Highlighted callout box */
.story-highlight {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0;
}
.story-highlight p {
  font-size: 18px;
  color: var(--navy);
  line-height: 1.8;
  margin: 0;
}

/* Goal callout */
.story-goal {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 10px;
  padding: 24px 28px;
  margin: 8px 0;
  color: rgba(255,255,255,0.85);
}
.story-goal-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.story-goal p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin: 0;
}
.story-goal p strong { color: var(--gold); }

/* CTA line */
.story-cta-text {
  font-size: 17px !important;
  color: var(--navy) !important;
  text-align: center;
  padding: 8px 0 4px;
}

.story-text .btn-primary { margin-top: 8px; display: inline-block; }

/* ─────────────────────────────────────────────
   PROJECT UPDATES
───────────────────────────────────────────── */
#updates {
  background: var(--off-white);
  padding-top: 60px;
}

.updates-header {
  margin-bottom: 40px;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(11,61,82,0.07);
}

.project-card {
  padding: 36px 32px;
  border-right: 1px solid #dce9f0;
  position: relative;
  transition: background 0.25s;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s;
}

.project-card:hover::before { transform: scaleY(1); }
.project-card:hover { background: #eaf4fa; }
.project-card:last-child { border-right: none; }

.project-card.active::before {
  transform: scaleY(1);
  background: #2dd4bf;
}

.project-card .card-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.project-card h3.active-title {
  color: #0d9488;
}

.project-card .stat-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card .stat-item {
  font-size: 15px;
  color: #2d4f5c;
  line-height: 1.7;
}

.project-card .stat-item strong {
  color: var(--navy);
}

.project-card .checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card .checklist li {
  font-size: 15px;
  color: #2d4f5c;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.7;
}

.project-card .checklist li::before {
  content: '✓';
  color: #2dd4bf;
  font-weight: 700;
}

.project-card .checklist li.in-progress::before {
  content: '🔄';
  font-weight: normal;
}

.project-card .checklist li.pending::before {
  content: '⏳';
  font-weight: normal;
}

.project-card .execution-note {
  font-size: 14px;
  color: #2d4f5c;
  margin-top: 16px;
  line-height: 1.6;
  font-style: italic;
}

.project-card .phase-label {
  font-size: 15px;
  color: #2d4f5c;
  margin-bottom: 8px;
}

.project-card .phase-value {
  font-size: 16px;
  font-weight: 700;
  color: #0d9488;
}

/* Transaction list: optional donor label (first name or masked number) */
.tx-donor {
  color: #6b8fa3;
  font-size: 0.92em;
}

.project-footer-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 32px;
  line-height: 1.7;
}

/* ── FAQ ── */
#faq { background: var(--white, #fff); }
#faq > .reveal { max-width: 720px; margin: 0 auto; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(11,61,82,0.12);
}
.faq-item:first-child { border-top: 1px solid rgba(11,61,82,0.12); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}
.faq-question:hover { color: var(--navy-mid); }

.faq-chevron {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.is-open .faq-chevron { transform: rotate(90deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}
.faq-answer-inner a {
  color: var(--navy-mid);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .project-cards {
    grid-template-columns: 1fr;
  }
  .project-card {
    border-right: none;
    border-bottom: 1px solid #dce9f0;
  }
  .project-card:last-child {
    border-bottom: none;
  }
  .project-card::before {
    top: 0; left: 0; right: 0; bottom: auto;
    width: auto;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
  }
  .project-card:hover::before { transform: scaleX(1); }
  .project-card.active::before { transform: scaleX(1); }
}

/* ─────────────────────────────────────────────
   DONATE
───────────────────────────────────────────── */
#donate-us {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#donate-us::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,192,64,0.08) 0%, transparent 70%);
  top: -200px; right: -100px;
}

.donate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.donate-text .section-tag { color: var(--gold); }
.donate-text .section-tag::before { background: var(--gold); }
.donate-text .section-title { color: var(--gold); font-size: clamp(24px, 3vw, 36px); }

/* Contact Info */
.contact-info {
  margin-top: 32px;
}

.contact-group {
  margin-bottom: 24px;
}

.contact-group h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-group p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  line-height: 1.6;
}

.contact-group a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-group a:hover {
  color: var(--gold);
}

/* Amount Selection */
.amount-selection {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.amount-selection h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-align: center;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.amount-btn {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 16px 12px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  cursor: default;
  pointer-events: none;
}

.amount-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.amount-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.amount-btn.custom-btn {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* Donate impact text */
.donate-impact {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-top: 20px;
  margin-bottom: 32px;
}

/* ── Fitrana Amount Presets (styled as amount-btn) ── */
.fitrana-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fitrana-presets--3col {
  grid-template-columns: repeat(3, 1fr);
}
.fitrana-preset {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 16px 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: all 0.25s;
}
.fitrana-preset:hover {
  background: rgba(240,192,64,0.15);
  border-color: var(--gold);
}
.preset-amount {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.preset-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 3px;
}

/* ── Story Quote Blockquote ── */
blockquote.story-quote {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 20px 0;
  font-style: italic;
  color: var(--navy-dark);
  background: rgba(212,175,55,0.06);
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
}

/* Payment Tab Panel */
.donate-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pay-tab {
  background: transparent;
  border: none;
  padding: 14px 8px;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.pay-tab:last-child { border-right: none; }
.pay-tab:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.pay-tab.active {
  color: var(--gold);
  background: rgba(240,192,64,0.08);
}
.pay-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.pay-content {
  display: none;
  padding: 24px;
  min-height: 180px;
}
.pay-content.active { display: block; }

.pay-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.pay-icon-row .pay-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 20px;
  color: rgba(255,255,255,0.7);
  margin-left: 4px;
}

.pay-fields { display: flex; flex-direction: column; gap: 10px; }
.pay-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  gap: 12px;
}
.pay-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}
.pay-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-align: right;
}

.pay-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--sky);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.pay-link:hover { color: var(--gold); }

.pay-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: rgba(212,175,55,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--navy-dark);
  line-height: 1.5;
}

.donate-note {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .donate-inner { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────
   GALLERY
───────────────────────────────────────────── */
#gallery { background: var(--off-white); padding-top: 25px; padding-bottom: 25px; }
#faq { background: var(--white, #fff); padding-top: 25px; }

.gallery-header { margin-bottom: 40px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.gallery-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}
.gallery-grid--2col .gallery-item {
  grid-column: span 1;
  aspect-ratio: 16/9;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--navy-mid);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform 0.35s, box-shadow 0.35s;
}
.gallery-item { grid-column: span 2; aspect-ratio: 16/9; min-height: 180px; }

/* ── Milestone gallery item ── */
.gallery-item--milestone { cursor: pointer; }

.milestone-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(to top, rgba(11,61,82,0.88) 0%, rgba(11,61,82,0.4) 60%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.milestone-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.milestone-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}
.milestone-text .bn {
  font-size: 11px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(11,61,82,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(11,61,82,0.2); }

/* ── Gallery Modal ── */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
}
.gallery-modal.is-open { display: flex; }
.gallery-modal-inner {
  position: relative;
  width: min(420px, 92vw);
  aspect-ratio: 9 / 16;
}
.gallery-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}
.gallery-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.gallery-modal-close:hover { opacity: 1; }

/* Video tile */
.gallery-item--video { cursor: pointer; }
.gallery-item--video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.25);
  opacity: 1;
  transition: background 0.2s;
}
.gallery-item--video:hover::after { background: rgba(0,0,0,0.45); }

/* Photo lightbox */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.photo-modal.is-open { display: flex; }
.photo-modal-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.photo-modal-inner img {
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  object-fit: contain;
}
.photo-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.photo-modal-close:hover { opacity: 1; }
.photo-watermark {
  position: absolute;
  bottom: 12px;
  right: 14px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 0.05em;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85), 0 0 12px rgba(0,0,0,0.5);
  user-select: none;
}

/* Modal nav arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.modal-nav:hover { background: rgba(255,255,255,0.3); }
.modal-nav--prev { left: 20px; }
.modal-nav--next { right: 20px; }


/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 48px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo { margin-bottom: 14px; display: inline-flex; }
.footer-brand p { font-size: 14px; line-height: 1.75; max-width: 300px; }

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  #navbar { padding: 18px 24px; }
  #navbar.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  #langBtn { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  #home { min-height: 100svh; padding-top: 90px; }

  .scroll-hint { bottom: 24px; }
  .hero-content h1 { white-space: normal; }

  .updates-header { flex-direction: column; align-items: flex-start; }
  .updates-grid { grid-template-columns: 1fr; }

  .donate-inner { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .gallery-item { grid-column: span 1; aspect-ratio: 1; min-height: 0; }
  .milestone-text { font-size: 11px; }
  .milestone-text .bn { font-size: 10px; }
  .fitrana-presets { grid-template-columns: repeat(2, 1fr); }

  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─────────────────────────────────────────────
   LANGUAGE — hide inactive
───────────────────────────────────────────── */
.lang-en .bn, .lang-bn .en { display: none; }

/* ─────────────────────────────────────────────
   FLOATING MESSENGER BUTTON
───────────────────────────────────────────── */
.messenger-fab {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  background: #0084ff;
  color: #fff;
  border-radius: 32px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 132, 255, 0.35), 0 2px 8px rgba(11, 61, 82, 0.15);
  transition: padding var(--transition), gap var(--transition),
              max-width var(--transition), box-shadow var(--transition);
  overflow: hidden;
  max-width: 52px;
  white-space: nowrap;
}

.messenger-fab:hover {
  padding: 14px 18px 14px 14px;
  gap: 10px;
  max-width: 200px;
  box-shadow: 0 6px 32px rgba(0, 132, 255, 0.5), 0 2px 8px rgba(11, 61, 82, 0.2);
}

.messenger-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.messenger-fab__icon svg {
  width: 24px;
  height: 24px;
}

.messenger-fab__label {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity var(--transition);
}

.messenger-fab__label.bn { font-family: 'Tiro Bangla', serif; }

.messenger-fab:hover .messenger-fab__label { opacity: 1; }

/* ── Facebook Page FAB (mobile only) ── */
.fb-page-fab {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: none; /* hidden on desktop */
  align-items: center;
  gap: 0;
  text-decoration: none;
  background: #1877f2;
  color: #fff;
  border-radius: 32px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.35), 0 2px 8px rgba(11, 61, 82, 0.15);
  transition: padding var(--transition), gap var(--transition),
              max-width var(--transition), box-shadow var(--transition);
  overflow: hidden;
  max-width: 52px;
  white-space: nowrap;
}
.fb-page-fab:hover {
  padding: 14px 18px 14px 14px;
  gap: 10px;
  max-width: 200px;
  box-shadow: 0 6px 32px rgba(24, 119, 242, 0.5), 0 2px 8px rgba(11, 61, 82, 0.2);
}
.fb-page-fab:hover .messenger-fab__label { opacity: 1; }

/* ── Mobile/Desktop visibility helpers ── */
.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 600px) {
  #gallery { padding-top: 20px; padding-bottom: 20px; }
  #faq { padding-top: 20px; }
  .messenger-fab { display: none; }

  .fb-page-fab {
    display: flex;
    left: 12px;
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}
