/* =========================================================
   নীড়ের ঠিকানা সংস্থা — Main Stylesheet
   Used by: index.html, blog-details.html
   ========================================================= */

/* ---------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------- */
:root {
  /* Brand palette — Help One Foundation (HOF): Deep Navy Blue + Golden Amber */
  --brand:        #0b2447;
  --brand-600:    #091d3a;
  --brand-700:    #06152b;
  --brand-900:    #040d1a;
  --brand-50:     #eef3fa;
  --brand-100:    #d4e1f5;

  --accent:       #d98218;
  --accent-600:   #b8680d;
  --accent-50:    #fef7ec;

  --gold:         #f59e0b;

  --ink:          #0a192f;
  --body:         #334155;
  --muted:        #64748b;
  --line:         #e2e8f0;
  --bg:           #ffffff;
  --bg-muted:     #f8fafc;

  /* Typography */
  --font-body:    "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --font-head:    "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif;

  /* Radius & shadow */
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-pill:  999px;

  --shadow-sm:    0 2px 8px rgba(11, 36, 71, .06);
  --shadow:       0 10px 30px rgba(11, 36, 71, .10);
  --shadow-lg:    0 24px 60px rgba(4, 13, 26, .18);
  --shadow-accent:0 10px 24px rgba(217, 130, 24, .35);

  --ease:         cubic-bezier(.2, .8, .2, 1);
  --nav-h:        80px;
}

/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.35;
  font-weight: 700;
}

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

img { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid rgba(242, 107, 58, .5); outline-offset: 2px; }

/* Utilities */
.text-ink    { color: var(--ink) !important; }
.text-brand  { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }
.req         { color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------
   3. BUTTONS
   --------------------------------------------------------- */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: .65rem 1.4rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-lg { padding: .85rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.btn:active { transform: translateY(1px) scale(.98); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover, .btn-accent:focus {
  background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(217, 130, 24, .45);
}

.btn-primary-brand {
  background: linear-gradient(135deg, var(--brand) 0%, #163b6e 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(11, 36, 71, .28);
}
.btn-primary-brand:hover, .btn-primary-brand:focus {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 36, 71, .38);
}

.btn-outline-brand {
  border: 2px solid var(--brand);
  color: var(--brand);
  background: transparent;
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light-custom {
  border: 2px solid rgba(255, 255, 255, .7);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.btn-outline-light-custom:hover, .btn-outline-light-custom:focus {
  background: #fff;
  color: var(--brand-700);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   4. TOP BAR
   --------------------------------------------------------- */
.topbar {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .85);
  font-size: .875rem;
  padding: .5rem 0;
}
.topbar i { color: var(--gold); margin-right: .35rem; }
.topbar a {
  color: rgba(255, 255, 255, .8);
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  transition: all .25s var(--ease);
}
.topbar a i { color: inherit; margin: 0; }
.topbar a:hover { background: var(--accent); color: #fff; }
.topbar .topbar-login-btn {
  width: auto !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 14px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  text-decoration: none !important;
  transition: all 0.25s var(--ease) !important;
}
.topbar .topbar-login-btn i {
  color: var(--gold) !important;
  margin-right: 0 !important;
}
.topbar .topbar-login-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.topbar .topbar-login-btn.active {
  background: #eab308 !important;
  border-color: #eab308 !important;
  color: #0b3d2b !important;
}
.topbar .topbar-login-btn.active i {
  color: #0b3d2b !important;
}
.topbar .topbar-track-btn {
  background: rgba(234, 179, 8, 0.15) !important;
  border-color: rgba(234, 179, 8, 0.5) !important;
}
.topbar .topbar-track-btn:hover {
  background: #eab308 !important;
  border-color: #eab308 !important;
  color: #0b3d2b !important;
}
.topbar .topbar-track-btn:hover i {
  color: #0b3d2b !important;
}
.topbar-divider { width: 1px; height: 16px; background: rgba(255, 255, 255, .25); }

/* Ramadan 2027 Topbar Pill */
.topbar-ramadan-pill {
  width: auto !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 12px 0 10px !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0f172a !important;
  border: 1px solid #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  letter-spacing: 0.01em;
}
.topbar-ramadan-pill i {
  color: #0f172a !important;
  font-size: 0.78rem !important;
  margin-right: 0 !important;
}
.topbar-ramadan-sparkle {
  font-size: 0.72rem;
  color: #0f172a;
  opacity: 0.85;
}
.topbar-ramadan-pill:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #000000 !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.75);
}

/* ---------------------------------------------------------
   5. NAVBAR
   --------------------------------------------------------- */
#mainNav {
  min-height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 107, 92, .08);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
  z-index: 1030;
}
#mainNav.scrolled { box-shadow: var(--shadow); background: rgba(255, 255, 255, .96); }

.brand-logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.2s ease;
}
.brand-logo:hover {
  transform: scale(1.03);
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-700);
  line-height: 1.2;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

#mainNav .navbar-nav {
  gap: 2px;
  align-items: center;
}

#mainNav .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink);
  padding: .35rem .55rem !important;
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
#mainNav .nav-link i.fa-solid {
  font-size: .82rem;
  margin-right: 3px !important;
  vertical-align: -0.5px;
}
#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: .55rem; right: .55rem; bottom: .2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--brand); }
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { transform: scaleX(1); }

.nav-dropdown-icon {
  font-size: .65rem;
  margin-left: 3px;
  vertical-align: 0.5px;
  transition: transform .25s var(--ease);
  display: inline-block;
  opacity: 0.7;
}

#nav-donate-btn {
  font-size: .86rem;
  padding: .38rem .85rem;
  white-space: nowrap;
}
#nav-donate-btn::after {
  display: none !important;
}

/* Compact rules for medium-to-large desktop viewports */
@media (min-width: 992px) and (max-width: 1240px) {
  #mainNav .nav-link {
    font-size: .81rem;
    padding: .32rem .38rem !important;
  }
  #mainNav .nav-link i.fa-solid {
    font-size: .75rem;
    margin-right: 2px !important;
  }
  #mainNav .nav-dropdown-icon {
    font-size: .6rem;
    margin-left: 2px;
  }
  .brand-logo {
    height: 48px;
    width: auto;
    max-width: 150px;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  #nav-donate-btn {
    font-size: .8rem;
    padding: .32rem .65rem;
  }
  .navbar .lang-switch-pill {
    padding: 1px 3px;
  }
  .navbar .lang-opt {
    font-size: .72rem;
    padding: 2px 6px;
  }
}
  transition: transform .25s var(--ease);
  display: inline-block;
}
.nav-item.dropdown .dropdown-toggle[aria-expanded="true"] .nav-dropdown-icon {
  transform: rotate(180deg);
}
@media (min-width: 992px) {
  .nav-item.dropdown:hover .nav-dropdown-icon {
    transform: rotate(180deg);
  }
}

/* Custom animated hamburger */
.navbar-toggler {
  border: 0;
  padding: .5rem;
  width: 44px; height: 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  border-radius: 12px;
  background: var(--brand-50);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(15, 107, 92, .2); }
.toggler-bar {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--brand-700);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: #fff;
    margin-top: .75rem;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  #mainNav .nav-link::after { display: none; }
  #mainNav .nav-link { border-radius: var(--radius-sm); }
  #mainNav .nav-link.active, #mainNav .nav-link:hover { background: var(--brand-50); }
}

/* ---------------------------------------------------------
   6. HERO (YOUTH FOR CHANGE STYLE & WORD TEXT ANIMATION)
   Matches youthforchangeglobal.org exactly
   --------------------------------------------------------- */
:root {
  --yfc-primary: "Hind Siliguri", "Noto Sans Bengali", "Permanent Marker", "Brush Script MT", sans-serif;
  --yfc-gold: #f6b243;
  --yfc-mo-ease: cubic-bezier(.22, 1, .36, 1);
  --yfc-mo-distance: 14px;
  --yfc-mo-blur: 4px;
  --yfc-mo-text: .55s;
  --yfc-mo-stagger: 40ms;
}

.hero,
.hero-banner-section,
.yfc-hero {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 50vw, 680px);
  background: #1a0612;
  color: #fff;
  overflow: hidden;
  display: block;
  isolation: isolate;
  padding: 0;
  user-select: none;
}

/* Simple clean overlay */
.hero:before,
.hero-banner-section:before,
.yfc-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
  pointer-events: none;
}

/* Cover Gallery */
.hero-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000000;
  z-index: 0;
}

.hero-cover img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s ease;
  will-change: opacity, transform;
}

.hero-cover img.on {
  opacity: 1;
  animation: y2-hczoom 9s ease-out both;
}

@keyframes y2-hczoom {
  0% { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

@keyframes y2-mo-settle {
  0% { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Wrap Container */
.hero .wrap,
.yfc-hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: clamp(20px, 4.5vw, 60px);
  padding-right: clamp(20px, 4.5vw, 60px);
  padding-top: clamp(64px, 9.5vw, 136px);
  padding-bottom: clamp(94px, 13vw, 175px);
  box-sizing: border-box;
}

/* Headline */
.hero h1,
.yfc-hero h1,
.hero-quote-heading {
  font-family: var(--yfc-primary);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.25;
  max-width: 22ch;
  letter-spacing: .01em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero h1 em,
.yfc-hero h1 em,
.hero-quote-heading em {
  font-family: var(--yfc-primary);
  font-style: normal;
  font-weight: 800;
  color: var(--yfc-gold);
  letter-spacing: 0.01em;
  margin: 0 0.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero h1 .w,
.yfc-hero h1 .w {
  display: inline-block;
}

.hero-quote-sub {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  max-width: 720px;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* =========================================================
   TEXT ANIMATION (Word-by-word staggered reveal matching YFC)
   ========================================================= */
.mo .mo-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(var(--yfc-mo-distance));
  filter: blur(var(--yfc-mo-blur));
  transition: 
    opacity var(--yfc-mo-text) var(--yfc-mo-ease), 
    transform var(--yfc-mo-text) var(--yfc-mo-ease), 
    filter var(--yfc-mo-text) var(--yfc-mo-ease);
  transition-delay: calc(var(--yfc-mo-stagger) * var(--i, 0));
  will-change: transform, opacity, filter;
}

.mo .mo-line.is-shown {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .mo .mo-line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Wave divider across bottom matching YFC */
.hero .wave,
.yfc-hero .wave,
.hero-wave-divider svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(40px, 7vw, 90px);
  display: block;
  z-index: 2;
  pointer-events: none;
}

.hero .wave path,
.yfc-hero .wave path,
.hero-wave-divider svg path {
  fill: #ffffff;
}

/* Slider Controls: Pause/Play & Dots matching YFC */
.hero-ctl,
.hero-slider-controls {
  position: absolute;
  z-index: 3;
  right: max(20px, calc((100% - 1180px) / 2 + 20px));
  bottom: clamp(48px, 7.5vw, 96px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hc-pause,
.hero-ctrl-pause {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #0b1a18;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  padding: 0;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hc-pause:hover,
.hero-ctrl-pause:hover {
  transform: scale(1.12);
  background: #ffffff;
}

.hc-pause svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hc-pause .p2,
.hc-pause[aria-pressed=true] .p1 {
  display: none;
}

.hc-pause[aria-pressed=true] .p2 {
  display: inline;
}

.hc-dots,
.hero-ctrl-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hc-dots button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  outline: none;
}

.hc-dots button:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: background .2s ease, transform .2s ease;
}

.hc-dots button:hover:before {
  background: #ffffff;
  transform: scale(1.2);
}

.hc-dots button[aria-current=true]:before {
  background: var(--yfc-gold);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(246, 178, 67, 0.8);
}

/* Responsive */
@media (max-width: 767.98px) {
  .hero,
  .hero-banner-section,
  .yfc-hero {
    min-height: 420px;
  }
  .hero .wrap,
  .yfc-hero .wrap {
    padding-top: 50px;
    padding-bottom: 80px;
  }
  .hero h1,
  .yfc-hero h1,
  .hero-quote-heading {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.2;
    max-width: 100%;
  }
  .hero-ctl,
  .hero-slider-controls {
    right: 14px;
    bottom: 24px;
    padding: 4px 10px;
    gap: 8px;
  }
  .hc-pause {
    width: 28px;
    height: 28px;
  }
  .hc-pause svg {
    width: 13px;
    height: 13px;
  }
  .hc-dots button {
    width: 20px;
    height: 20px;
  }
  .hc-dots button:before {
    width: 7px;
    height: 7px;
  }
}

/* ---------------------------------------------------------
   6.1. PROJECTS / PROGRAMMES CAROUSEL (YFC STYLE)
   Matches youthforchangeglobal.org exactly
   --------------------------------------------------------- */
.yfc-programmes,
.sec-projects-yfc {
  background: linear-gradient(180deg, #F6B243 0%, #B8680D 100%);
  color: #040d1a;
  padding: clamp(50px, 6.5vw, 85px) 0;
  overflow: hidden;
  position: relative;
}

.yfc-programmes .wrap,
.sec-projects-yfc .wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.yfc-programmes .hrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.yfc-programmes .hrow-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.yfc-programmes .btn-all-causes {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff !important;
  font-family: 'Outfit', 'Hind Siliguri', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.yfc-programmes .btn-all-causes:hover {
  background: #ffffff;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  border-color: #ffffff;
}

.yfc-programmes .btn-all-causes i.fa-arrow-right {
  transition: transform 0.2s ease;
}

.yfc-programmes .btn-all-causes:hover i.fa-arrow-right {
  transform: translateX(4px);
}

.yfc-programmes .tg-h {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: .01em;
  color: #000;
  margin: 0;
}

.rollbtn,
.yfc-programmes .rollbtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 0;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  flex: none;
  transition: transform .18s ease, background-color .18s ease;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  outline: none;
  vertical-align: middle;
}

.rollbtn:hover,
.yfc-programmes .rollbtn:hover {
  background: var(--accent, #df167c);
  color: #ffffff;
  transform: scale(1.12);
}

.rollbtn svg,
.yfc-programmes .rollbtn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  display: block;
}

.rollbtn .p1,
.yfc-programmes .rollbtn .p1 {
  fill: #ffffff;
  display: inline;
}

.rollbtn .p2,
.yfc-programmes .rollbtn .p2,
.rollbtn[aria-pressed="true"] .p1,
.yfc-programmes .rollbtn[aria-pressed="true"] .p1 {
  display: none !important;
}

.rollbtn[aria-pressed="true"] .p2,
.yfc-programmes .rollbtn[aria-pressed="true"] .p2 {
  fill: #ffffff;
  display: inline !important;
}

/* Rolling Track and Seamless Infinite Loop */
.yfc-programmes .tg-roll {
  position: relative;
  overflow: hidden;
  margin-inline: -20px;
  padding: 12px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.yfc-programmes .tg-track {
  display: flex;
  width: max-content;
  animation: y2-tgroll var(--dur, 36s) linear infinite;
  will-change: transform;
}

.yfc-programmes .tg-roll:hover .tg-track,
.yfc-programmes .tg-roll:focus-within .tg-track {
  animation-play-state: paused;
}

.yfc-programmes .tg-roll.is-paused .tg-track {
  animation-play-state: paused !important;
}

.yfc-programmes .tg-grp {
  display: flex;
  flex: none;
}

@keyframes y2-tgroll {
  to {
    transform: translate(-50%);
  }
}

/* Project Card Styling (Dynamic 16 Donation Programs) */
.yfc-programmes .tgc {
  position: relative;
  flex: none;
  width: 330px;
  margin-right: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 450px;
  padding: 22px 20px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.42), 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform .25s ease, box-shadow .25s ease;
  user-select: none;
  background: #0b1a18;
}

.yfc-programmes .tgc:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85), 0 16px 36px rgba(0, 0, 0, 0.32);
}

.yfc-programmes .tgc > * {
  position: relative;
  z-index: 2;
}

.yfc-programmes .tgc .bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 0;
  transition: transform .6s ease;
}

.yfc-programmes .tgc:hover .bg {
  transform: scale(1.06);
}

/* Photo card dark gradient overlay */
.yfc-programmes .tgc.ph:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0.12) 22%, 
    rgba(0, 0, 0, 0.6) 50%, 
    rgba(8, 20, 16, 0.96) 100%
  );
}

/* Category Tag and Number Badges at Top */
.yfc-programmes .tgc-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(11, 26, 24, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yfc-programmes .tgc-num {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1a18;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.yfc-programmes .tgc .tgb {
  display: grid;
  gap: 8px;
}

.yfc-programmes .tgc h3 {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.yfc-programmes .tgc p {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* Progress bar inside card */
.yfc-programmes .tgc-progress-wrap {
  margin-top: 4px;
}

.yfc-programmes .tgc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.yfc-programmes .tgc-progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.yfc-programmes .tgc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f6b243, #10b981);
  border-radius: 999px;
}

/* Card bottom row: SDGs + Donate Button */
.yfc-programmes .tgc-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.yfc-programmes .sdgs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.yfc-programmes .sdgi {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  object-fit: cover;
}

.yfc-programmes .tgc-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0b1a18;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.yfc-programmes .tgc-donate-btn:hover {
  background: #f6b243;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(246, 178, 67, 0.5);
}

@media (max-width: 560px) {
  .yfc-programmes .tgc {
    width: 275px;
    min-height: 410px;
    padding: 18px 16px;
  }
  .yfc-programmes .sdgi {
    width: 32px;
    height: 32px;
  }
  .yfc-programmes .tgc-donate-btn {
    padding: 5px 10px;
    font-size: 0.76rem;
  }
}

/* Backward compatibility for quick-card */
.quick-card {
  background: rgba(255, 255, 255, .97);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--body);
  border: 1px solid rgba(255, 255, 255, .6);
}
.quick-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  position: relative;
}
.quick-head::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.quick-head img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: contain;
  padding: 3px;
  border: 2px solid rgba(245, 158, 11, .6);
  background: #fff;
}
.quick-head h2 { color: #fff; font-size: 1.25rem; margin: 0; }
.quick-head p  { margin: 0; font-size: .875rem; color: rgba(255, 255, 255, .8); }
.quick-body { padding: 1.5rem; }
.quick-note {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin: .85rem 0 0;
}
.quick-note i { color: var(--brand); margin-right: .25rem; }

/* ---------------------------------------------------------
   7. FORMS
   --------------------------------------------------------- */
.form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-size: 1rem;
  color: var(--ink);
  background-color: #fbfdfc;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.form-control::placeholder { color: #a3b1ab; }
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(15, 107, 92, .12);
}
.input-group-text {
  background: var(--brand-50);
  border: 1.5px solid var(--line);
  color: var(--brand);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.input-group > .form-control { border-left: 0; }
.was-validated .form-control:invalid, .form-control.is-invalid,
.was-validated .form-select:invalid, .form-select.is-invalid { border-color: #dc3545; }

/* Amount chips */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
@media (max-width: 420px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }
.amount-chip {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .6rem .25rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.amount-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.amount-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 107, 92, .3);
}

/* Quick donate multi-step styles */
.quick-step {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.quick-step.step-hidden {
  display: none !important;
}
.quick-step.step-fade-in {
  animation: stepFadeIn 0.35s ease forwards;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-summary-bar {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.step-summary-info {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.3;
}
.step-summary-info strong {
  color: var(--brand);
}
.btn-step-back {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-step-back:hover {
  background: rgba(242, 107, 58, 0.12);
}

/* Payment method selector grid */
.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
@media (max-width: 420px) {
  .pay-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pay-method-chip {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.25rem;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.pay-method-chip:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.pay-method-chip.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 107, 92, 0.25);
}
.pay-method-chip i {
  font-size: 1.1rem;
}
.pay-method-chip[data-method="bKash"] i { color: #d12053; }
.pay-method-chip[data-method="Nagad"] i { color: #f7941d; }
.pay-method-chip[data-method="Rocket"] i { color: #8c3494; }
.pay-method-chip[data-method="Bank"] i { color: var(--brand); }
.pay-method-chip.active[data-method] i { color: #fff; }

/* Dynamic Payment Info Box */
.pay-detail-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
}
.pay-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.pay-detail-head strong {
  color: var(--ink);
  font-size: 0.88rem;
}
.pay-number-badge {
  background: #fff;
  border: 1px dashed var(--brand);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  font-family: 'Hind Siliguri', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.btn-copy-num {
  border: none;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-copy-num:hover {
  background: var(--brand);
  color: #fff;
}
.pay-instruction {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* Form card */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
@media (max-width: 575.98px) { .form-card { padding: 1.35rem; } }
.form-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--line);
}
.form-card-head h3 { font-size: 1.35rem; margin: 0; }
.badge-type {
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-50);
  padding: .35rem .85rem;
  border-radius: var(--radius-pill);
}

/* ---------------------------------------------------------
   8. STATS BAR
   --------------------------------------------------------- */
.stats-bar {
  position: relative;
  z-index: 5;
  margin-top: -4.5rem;
}
.stats-bar .row {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: background .3s var(--ease);
}
.stat:hover { background: var(--brand-50); }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--line);
}
.stat > i {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: var(--accent);
  background: var(--accent-50);
  border-radius: 16px;
  transition: transform .3s var(--ease);
}
.stat:hover > i { transform: rotate(-8deg) scale(1.08); }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-700);
  line-height: 1.2;
}
.stat span { font-size: .92rem; color: var(--muted); }
.stat strong span { font-size: inherit; color: inherit; }
@media (max-width: 991.98px) {
  .stat { padding: 1.25rem 1rem; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat strong { font-size: 1.4rem; }
  .stat > i { width: 46px; height: 46px; font-size: 1.15rem; }
}

/* ---------------------------------------------------------
   9. SECTIONS
   --------------------------------------------------------- */
.section { padding: 6rem 0; position: relative; }
.section-muted {
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 107, 92, .06), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(242, 107, 58, .06), transparent 40%),
    var(--bg-muted);
}
@media (max-width: 767.98px) { .section { padding: 4rem 0; } }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-text { color: var(--body); font-size: 1.06rem; }

/* ---------------------------------------------------------
   10. ABOUT
   --------------------------------------------------------- */
.about-figure { position: relative; margin: 0; }
.about-logo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--brand-50), #fff);
  display: grid;
  place-items: center;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about-logo::before {
  content: "";
  position: absolute;
  width: 140%; height: 140%;
  background: conic-gradient(from 0deg, transparent, rgba(15, 107, 92, .08), transparent 30%);
  animation: spin 14s linear infinite;
}
.about-logo img {
  position: relative;
  width: 78%;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
@keyframes spin { to { transform: rotate(360deg); } }

.about-caption {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin: -4rem 1.5rem 0;
  position: relative;
  border-top: 4px solid var(--accent);
}
.about-caption h3 { font-size: 1.1rem; margin-bottom: .85rem; }
.about-caption ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.about-caption li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.about-caption li i {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  border-radius: 10px;
}
.about-caption strong { color: var(--ink); }

.mv-block {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-muted);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.mv-block:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.mv-block h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.mv-block h3 i { color: var(--accent); margin-right: .35rem; }
.mv-block p { margin: 0; font-size: .97rem; }

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem 1.5rem;
}
@media (max-width: 575.98px) { .check-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 500; }
.check-list i {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: .7rem;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
}

/* ---------------------------------------------------------
   11. PROGRAMS
   --------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--body);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 107, 92, .25);
}

/* Program cards (generated by js/main.js) */
.program-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.program-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.program-card:hover::before { transform: scaleX(1); }
.program-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 18px;
  color: var(--brand);
  background: var(--brand-50);
  margin-bottom: 1.1rem;
  transition: all .35s var(--ease);
}
.program-card:hover .program-icon { background: var(--brand); color: #fff; transform: rotate(-6deg); }
.program-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.program-card p { font-size: .95rem; color: var(--body); flex-grow: 1; }
.program-tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-50);
  color: var(--accent-600);
  margin-bottom: .75rem;
}
.program-card .btn { align-self: flex-start; margin-top: .75rem; }
.program-item.is-hidden { display: none; }

.program-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.program-num {
  font-size: .9rem;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-head);
}
.program-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
.program-cta {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s var(--ease);
}
.program-cta i { transition: transform .2s var(--ease); }
.program-cta:hover { color: var(--accent); }
.program-cta:hover i { transform: translateX(4px); }

.ic-health { background: #e8f6f2 !important; color: #0f6b5c !important; }
.ic-animal { background: #fff2e8 !important; color: #d9622b !important; }
.ic-family { background: #eaf1fb !important; color: #1e60bb !important; }
.ic-food   { background: #fdf0f2 !important; color: #c0284f !important; }
.ic-social { background: #f4ecfb !important; color: #7633b8 !important; }

.program-card:hover .program-icon.ic-health { background: #0f6b5c !important; color: #fff !important; }
.program-card:hover .program-icon.ic-animal { background: #d9622b !important; color: #fff !important; }
.program-card:hover .program-icon.ic-family { background: #1e60bb !important; color: #fff !important; }
.program-card:hover .program-icon.ic-food   { background: #c0284f !important; color: #fff !important; }
.program-card:hover .program-icon.ic-social { background: #7633b8 !important; color: #fff !important; }

.program-col.hide { display: none !important; }
.program-col.pop { animation: pop-in .35s var(--ease) forwards; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}


/* ---------------------------------------------------------
   12. HOW WE WORK — STEPS
   --------------------------------------------------------- */
.steps { position: relative; }
@media (min-width: 992px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 52px; left: 12%; right: 12%;
    border-top: 2px dashed var(--brand-100);
    z-index: 0;
  }
}
.step {
  position: relative;
  z-index: 1;
  height: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.step:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.step-icon {
  position: relative;
  width: 84px; height: 84px;
  margin: 0 auto 1.25rem;
  display: grid; place-items: center;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #163b6e 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 8px #fff, 0 14px 30px rgba(11, 36, 71, .3);
  transition: transform .35s var(--ease);
}
.step:hover .step-icon { transform: scale(1.08); }
.step-icon span {
  position: absolute;
  top: -4px; right: -4px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  border: 3px solid #fff;
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------
   13. DONATE
   --------------------------------------------------------- */
.pay-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  margin: 1.75rem 0 1.25rem;
}
.pay-box h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.pay-methods { display: flex; flex-wrap: wrap; gap: .65rem; }
.pay-methods span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .94rem;
  padding: .38rem 1.05rem .38rem .5rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  transition: all .25s var(--ease);
}
.pay-methods span:hover {
  background: var(--brand-50);
  border-color: var(--brand-100);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}
.pay-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pay-badge-bkash { background: #fce7f3; color: #e2136e; border: 1px solid #fbcfe8; }
.pay-badge-nagad { background: #ffedd5; color: #ea580c; border: 1px solid #fed7aa; }
.pay-badge-rocket { background: #f3e8ff; color: #8c3494; border: 1px solid #e9d5ff; }
.pay-badge-bank { background: #e8f4f1; color: #0f6b5c; border: 1px solid #cfe8e1; }

.pay-brand-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.pay-methods span:hover .pay-brand-img {
  transform: scale(1.12);
}
.pay-chip-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  display: block;
  margin: 0 auto 6px auto;
  transition: transform 0.2s ease;
}
.pay-method-chip:hover .pay-chip-img,
.pay-method-chip.active .pay-chip-img {
  transform: scale(1.12);
}

.assure {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-50), #fff);
  border-left: 4px solid var(--brand);
}
.assure > i { font-size: 1.75rem; color: var(--brand); }
.assure strong { color: var(--ink); font-family: var(--font-head); }
.assure p { margin: .25rem 0 0; font-size: .95rem; }

/* ---------------------------------------------------------
   14. VOLUNTEERS
   --------------------------------------------------------- */
.vol-card {
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.vol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vol-img-wrap {
  position: relative;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
}
.vol-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.vol-card:hover .vol-img { transform: scale(1.07); }
.vol-img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 46, 40, .55), transparent 50%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.vol-card:hover .vol-img-wrap::after { opacity: 1; }
.vol-blood {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #d63447;
  box-shadow: var(--shadow-sm);
}
.vol-body { padding: 1.35rem; text-align: center; }
.vol-body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.vol-role {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: .4rem;
}
.vol-loc { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.vol-loc i { color: var(--accent); margin-right: .25rem; }
.vol-quote {
  font-size: .9rem;
  font-style: italic;
  color: var(--body);
  margin: 0;
  padding-top: .75rem;
  border-top: 1px dashed var(--line);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 2.75rem;
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, .88);
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 107, 58, .45), transparent 45%),
    linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 100%);
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -60px; bottom: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .05);
}
.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: .5rem; }
.cta-band h2 i { color: var(--gold); }
.cta-band .btn-light { color: var(--brand-700); }
.cta-band .btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 575.98px) { .cta-band { padding: 1.75rem; } }

/* ---------------------------------------------------------
   15. BLOG CARDS
   --------------------------------------------------------- */
.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
}
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-img { transform: scale(1.07); }
.blog-category {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(242, 107, 58, .35);
}
.blog-img-wrap .blog-category { position: absolute; top: 14px; left: 14px; }
.blog-date {
  position: absolute;
  bottom: 14px; left: 14px;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-body h3 { font-size: 1.15rem; line-height: 1.5; margin-bottom: .6rem; }
.blog-card-body h3 a:hover { color: var(--brand) !important; }
.blog-card-body p {
  font-size: .95rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.blog-author { font-size: .85rem; color: var(--muted); }
.blog-read-btn { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--brand); }
.blog-read-btn i { transition: transform .25s var(--ease); }
.blog-read-btn:hover { color: var(--accent); }
.blog-read-btn:hover i { transform: translateX(4px); }

/* ---------------------------------------------------------
   16. CONTACT
   --------------------------------------------------------- */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.contact-item:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: transparent; }
.contact-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #163b6e);
  border-radius: 14px;
}
.contact-item h3 { font-size: 1rem; margin-bottom: .1rem; }
.contact-item p { margin: 0; font-size: .95rem; }

/* ---------------------------------------------------------
   17. FOOTER
   --------------------------------------------------------- */
.footer {
  position: relative;
  padding-top: 5rem;
  background: var(--brand-900);
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--gold));
}
.footer-logo {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border: 2px solid rgba(245, 158, 11, .45);
}
.footer-brand { font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .6rem;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .7); transition: all .25s var(--ease); display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: .65rem; margin-bottom: .75rem; }
.footer-contact i { color: var(--accent); margin-top: .35rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: all .25s var(--ease);
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 3.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .55);
}

/* ---------------------------------------------------------
   18. BACK TO TOP, TOAST, MODAL
   --------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 1040;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all .3s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }

.brand-toast {
  background: var(--brand-700);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.brand-toast .toast-body { font-weight: 500; }
.brand-toast .toast-body i { color: var(--gold); }

.modal-content { border-radius: var(--radius-lg); border: 0; }
.modal-backdrop.show { opacity: .65; background: var(--brand-900); }

/* ---------------------------------------------------------
   19. BLOG DETAILS PAGE
   --------------------------------------------------------- */
.blog-header-section {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 107, 58, .08), transparent 40%),
    linear-gradient(180deg, var(--brand-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: .9rem; }
.breadcrumb-item a { color: var(--brand); font-weight: 500; }
.breadcrumb-item.active { color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; color: var(--muted); }

.article-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  max-width: 900px;
}
.article-meta-bar { font-size: .92rem; padding-top: .5rem; }

.share-btn {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.share-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.share-fb   { background: #1877f2; }
.share-wa   { background: #25d366; }
.share-copy { background: var(--ink); }

.article-hero-fig { margin: 0; }
.article-hero-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
}
.article-caption i { color: var(--brand); }

.article-content { font-size: 1.1rem; line-height: 1.95; color: var(--body); }
.article-content p { margin-bottom: 1.35rem; }
.article-content > p:first-child::first-letter {
  float: left;
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  margin: .35rem .6rem 0 0;
}
.article-content h2, .article-content h3 { margin: 2rem 0 1rem; }
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content ul, .article-content ol { padding-left: 1.25rem; margin-bottom: 1.35rem; }
.article-content li { margin-bottom: .4rem; }
.article-content li::marker { color: var(--accent); }
.article-content blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.5rem 3.5rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  background: var(--accent-50);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote::before {
  content: "\201C";
  position: absolute;
  left: 1rem; top: .25rem;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
}
.article-content img { border-radius: var(--radius); margin: 1rem 0; }

.impact-box {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-50), #fff);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand);
}
.impact-box li { margin-bottom: .4rem; }
.impact-box li::marker { color: var(--brand); }

.tag-pill {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--line);
  color: var(--body);
  transition: all .25s var(--ease);
}
.tag-pill:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.author-card {
  background: var(--bg-muted);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}

/* Sidebar */
.sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
@media (max-width: 991.98px) { .sidebar-sticky { position: static; } }
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.widget-title { border-color: var(--line) !important; }

.widget-donate {
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 107, 58, .45), transparent 50%),
    linear-gradient(145deg, var(--brand-700), var(--brand));
  box-shadow: var(--shadow-lg);
}
.widget-donate .eyebrow { display: inline-flex; }
.widget-donate .amount-grid { grid-template-columns: repeat(2, 1fr); }
.widget-donate .amount-chip {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}
.widget-donate .amount-chip:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: #fff; }
.widget-donate .amount-chip.active { background: #fff; color: var(--brand-700); border-color: #fff; }

/* Related stories (rendered by js/blog-details.js) */
.related-item {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: .5rem;
  margin: -.5rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background .25s var(--ease);
}
.related-item:hover { background: var(--bg-muted); color: var(--brand); }
.related-item img {
  width: 80px; height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}
.related-item h4, .related-item strong {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 .2rem;
  color: inherit;
}
.related-item small { color: var(--muted); font-size: .8rem; }

.widget-volunteer { background: linear-gradient(180deg, var(--accent-50), #fff); border-color: #ffdccc; }
.widget-icon {
  width: 64px; height: 64px;
  margin: 0 auto;
  display: grid; place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff8a4c);
  border-radius: 50%;
  box-shadow: var(--shadow-accent);
}

/* ---------------------------------------------------------
   20. SCROLL REVEAL
   Works with CSS scroll-driven animations (no JS needed).
/* =========================================================
   SCROLL REVEAL & MICRO-ANIMATIONS
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="50"] { transition-delay: 50ms; }
[data-reveal][data-delay="100"] { transition-delay: 100ms; }
[data-reveal][data-delay="150"] { transition-delay: 150ms; }
[data-reveal][data-delay="200"] { transition-delay: 200ms; }
[data-reveal][data-delay="250"] { transition-delay: 250ms; }
[data-reveal][data-delay="300"] { transition-delay: 300ms; }
[data-reveal][data-delay="400"] { transition-delay: 400ms; }

/* Micro-animations */
@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.pulse-icon, .fa-heart-pulse {
  display: inline-block;
  animation: pulseHeart 2s infinite ease-in-out;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.floating-anim {
  animation: floatGentle 3s ease-in-out infinite;
}

.btn-accent, .btn-primary-brand {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-accent:hover, .btn-primary-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}

/* Dropdown Slide Animation */
.navbar .dropdown-menu {
  animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Hover Smooth Lift */
.program-card, .cert-card, .award-card, .vision-mission-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(11, 93, 59, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   PROGRAM CARDS WITH FEATURED IMAGES
   ========================================================= */
.program-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.program-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
  z-index: 4;
}
.program-card:hover::before { transform: scaleX(1); }

.program-img-wrap {
  position: relative;
  width: 100%;
  height: 195px;
  overflow: hidden;
  background: var(--bg-muted);
}
.program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
  display: block;
}
.program-card:hover .program-img {
  transform: scale(1.08);
}
.program-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 46, 40, 0.1) 0%, rgba(6, 46, 40, 0.5) 100%);
  pointer-events: none;
}
.program-img-wrap .program-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-700);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  margin-bottom: 0;
}
.program-img-wrap .program-num {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  background: rgba(6, 46, 40, 0.75);
  backdrop-filter: blur(4px);
  padding: .22rem .65rem;
  border-radius: var(--radius-pill);
}
.program-icon-badge {
  position: absolute;
  bottom: -16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(10, 74, 64, .2);
  border: 3px solid #fff;
  z-index: 3;
  transition: transform .35s var(--ease);
}
.program-card:hover .program-icon-badge {
  transform: translateY(-3px) scale(1.1);
}

.program-card-body {
  padding: 1.6rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.program-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
  line-height: 1.45;
}
.program-card-body p {
  font-size: .92rem;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.program-progress-wrap {
  margin-top: auto;
}
.program-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .85rem;
  border-top: 1px dashed var(--line);
}
.program-cta {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s var(--ease);
}
.program-cta i { transition: transform .2s var(--ease); }
.program-cta:hover { color: var(--accent-600); }
.program-cta:hover i { transform: translateX(4px); }

.ic-health { background: #e8f6f2 !important; color: #0f6b5c !important; }
.ic-animal { background: #fff2e8 !important; color: #d9622b !important; }
.ic-family { background: #eaf1fb !important; color: #1e60bb !important; }
.ic-food   { background: #fdf0f2 !important; color: #c0284f !important; }
.ic-social { background: #f4ecfb !important; color: #7633b8 !important; }

.program-col.hide { display: none !important; }
.program-col.pop { animation: pop-in .35s var(--ease) forwards; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS & TOUCH OPTIMIZATION
   ========================================================= */
@media (max-width: 991.98px) {
  /* Navbar drawer enhancements */
  #mainNav .navbar-brand {
    font-size: 1.1rem;
  }
  #mainNav .brand-logo {
    height: 48px;
    width: auto;
    max-width: 150px;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  #mainNav .brand-text {
    font-size: 1.05rem;
  }
  #mainNav .navbar-collapse {
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  }
  #mainNav .nav-link {
    padding: 0.65rem 0.85rem;
    font-size: 0.98rem;
  }
  #nav-donate-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }
  
  /* Hero section adjustments */
  .hero {
    min-height: auto;
    padding: 3.5rem 0 4rem;
  }
  .hero-title {
    font-size: clamp(2rem, 5.5vw, 2.75rem);
  }
}

@media (max-width: 767.98px) {
  /* Safe iOS zoom prevention */
  input, select, textarea, .form-control, .form-select {
    font-size: 16px !important;
  }

  /* Spacing */
  .section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: 1.75rem;
    line-height: 1.35;
  }
  .section-text {
    font-size: 0.95rem;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 0 3.5rem;
    text-align: left;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    margin-bottom: 0.85rem;
  }
  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
  .hero-trust {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  /* Stats Bar on Mobile */
  .stats-bar {
    padding: 0;
  }
  .stats-bar .stat {
    padding: 1rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stats-bar .stat i {
    font-size: 1.65rem;
    margin-right: 0.65rem;
  }
  .stats-bar .stat strong {
    font-size: 1.35rem;
  }
  .stats-bar .stat span {
    font-size: 0.78rem;
  }

  /* Program Filter Bar horizontal smooth scroll */
  #filterBar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem;
    padding: 0.2rem 0.25rem 0.75rem;
    margin-bottom: 1.5rem !important;
    scrollbar-width: none;
  }
  #filterBar::-webkit-scrollbar {
    display: none;
  }
  #filterBar .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.45rem 0.95rem;
    font-size: 0.88rem;
    border-radius: 30px;
  }

  /* Program Cards Mobile */
  .program-card-img-wrap {
    height: 190px;
  }
  .program-card-body {
    padding: 1.35rem 1.15rem 1.15rem;
  }
  .program-card-body h3 {
    font-size: 1.12rem;
  }
  .program-card-body p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  /* Volunteer Cards */
  .vol-card {
    margin-bottom: 0.5rem;
  }
  .vol-img-wrap {
    height: 240px;
  }

  /* CTA Band */
  .cta-band {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    text-align: center;
  }
  .cta-band h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }
  .cta-band p {
    font-size: 0.92rem;
  }
  .cta-band .btn {
    width: 100%;
    margin-top: 1rem;
  }

  /* Modals */
  .modal-dialog {
    margin: 0.75rem auto;
    max-width: 95%;
  }
  .modal-content.form-card {
    padding: 1.4rem !important;
  }

  /* Footer */
  .footer {
    padding: 3.5rem 0 1.5rem;
  }
  .footer h4 {
    margin-top: 1rem;
  }
}

/* Small phone devices <= 575.98px */
@media (max-width: 575.98px) {
  /* Quick Donate Card Mobile */
  .quick-card {
    margin-top: 1.25rem;
    border-radius: 16px;
  }
  .quick-head {
    padding: 1rem 1.15rem;
    gap: 0.75rem;
  }
  .quick-head img {
    width: 44px;
    height: 44px;
  }
  .quick-head h2 {
    font-size: 1.15rem;
  }
  .quick-head p {
    font-size: 0.8rem;
  }
  .quick-body {
    padding: 1.15rem 1rem;
  }

  /* 2x2 Amount Grid on phones */
  .amount-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem;
  }
  .amount-chip {
    padding: 0.65rem 0.25rem;
    font-size: 0.98rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 2x2 Payment Method Grid on phones */
  .pay-methods-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem;
  }
  .pay-method-chip {
    padding: 0.65rem 0.35rem;
    font-size: 0.88rem;
    min-height: 52px;
  }

  .pay-number-badge {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
  }
  .btn-copy-num {
    margin-left: auto;
    padding: 0.25rem 0.6rem;
  }

  .step-summary-bar {
    padding: 0.5rem 0.65rem;
  }
  .step-summary-info {
    font-size: 0.82rem;
  }

  .btn-primary-brand, .btn-final-donate, .btn-step-next {
    min-height: 48px;
    font-size: 1rem;
  }

  .blog-header-section .article-meta-bar {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

/* =========================================================
   DUAL VERTICAL GALLERY SHOWCASE (VIDEOS UP, PHOTOS DOWN)
   ========================================================= */
.sec-gallery-showcase {
  background: #f4f8f6;
  position: relative;
}

.mg-vroll-box,
.mg-proll-box {
  height: 560px;
  max-height: 75vh;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 12px;
}

/* Gradient fade masks at top and bottom */
.mg-vroll-box::before,
.mg-proll-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

.mg-vroll-box::after,
.mg-proll-box::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Vertical Keyframe Animations */
/* 1. Video: nic thake opre (Bottom to Top) */
@keyframes mgRollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* 2. Photo: opr thake nice (Top to Bottom) */
@keyframes mgRollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

.mg-vtrack.mg-scroll-up {
  display: flex;
  flex-direction: column;
  animation: mgRollUp var(--v-dur, 36s) linear infinite;
  will-change: transform;
}

.mg-ptrack.mg-scroll-down {
  display: flex;
  flex-direction: column;
  animation: mgRollDown var(--p-dur, 48s) linear infinite;
  will-change: transform;
}

/* Pause on hover, focus, or toggle */
.mg-vroll-box:hover .mg-vtrack,
.mg-vroll-box.is-paused .mg-vtrack,
.mg-proll-box:hover .mg-ptrack,
.mg-proll-box.is-paused .mg-ptrack {
  animation-play-state: paused !important;
}

/* Video Card Styling */
.mg-vcard {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
  aspect-ratio: 16 / 9.2;
  background: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.mg-vcard:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.mg-vcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.mg-vcard:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.mg-voverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.mg-play-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.55);
  transition: transform 0.25s ease, background-color 0.25s ease;
  z-index: 2;
}

.mg-play-badge svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.mg-vcard:hover .mg-play-badge {
  transform: scale(1.12);
  background: #be123c;
}

.mg-vtitle-wrap {
  position: absolute;
  bottom: 0;
  left: 70px;
  right: 14px;
  padding-bottom: 14px;
  z-index: 2;
  color: #fff;
}

.mg-vtitle {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.mg-vduration {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-top: 2px;
  display: inline-block;
}

/* Photo 3-Column Grid Group */
.mg-grid-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 2px 0 12px;
}

.mg-pcard {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.mg-pcard:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mg-pcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mg-pcard:hover img {
  transform: scale(1.08);
}

@media (max-width: 991.98px) {
  .mg-vroll-box,
  .mg-proll-box {
    height: 480px;
  }
}

@media (max-width: 575.98px) {
  .mg-grid-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .mg-vroll-box,
  .mg-proll-box {
    height: 420px;
    padding: 8px;
  }
  .mg-vtitle {
    font-size: 0.82rem;
  }
  .mg-play-badge {
    width: 36px;
    height: 36px;
    bottom: 12px;
    left: 12px;
  }
  .mg-play-badge svg {
    width: 14px;
    height: 14px;
  }
  .mg-vtitle-wrap {
    left: 56px;
    padding-bottom: 10px;
  }
}
