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

/* ---------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------- */
:root {
  /* Brand palette — deep teal (trust) + warm coral (compassion) */
  --brand:        #0f6b5c;
  --brand-600:    #0c5a4d;
  --brand-700:    #0a4a40;
  --brand-900:    #062e28;
  --brand-50:     #e8f4f1;
  --brand-100:    #cfe8e1;

  --accent:       #f26b3a;
  --accent-600:   #e0552a;
  --accent-50:    #fff1eb;

  --gold:         #f4b740;

  --ink:          #13221f;
  --body:         #46564f;
  --muted:        #74847d;
  --line:         #e3ebe8;
  --bg:           #ffffff;
  --bg-muted:     #f4f8f6;

  /* 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(10, 74, 64, .06);
  --shadow:       0 10px 30px rgba(10, 74, 64, .10);
  --shadow-lg:    0 24px 60px rgba(6, 46, 40, .18);
  --shadow-accent:0 10px 24px rgba(242, 107, 58, .35);

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

/* ---------------------------------------------------------
   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%, #ff8a4c 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(242, 107, 58, .45);
}

.btn-primary-brand {
  background: linear-gradient(135deg, var(--brand) 0%, #13896f 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(15, 107, 92, .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(15, 107, 92, .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); }

/* ---------------------------------------------------------
   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 {
  width: 50px; height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--brand-100);
  box-shadow: var(--shadow-sm);
  background: var(--brand-50);
}
.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 .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .97rem;
  color: var(--ink);
  padding: .5rem .85rem !important;
  position: relative;
}
#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; 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: .72rem;
  margin-left: 4px;
  vertical-align: 1px;
  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
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 5rem 0 8rem;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-cover { position: absolute; inset: 0; z-index: 0; }
.hero-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: hero-zoom 22s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(242, 107, 58, .28), transparent 55%),
    linear-gradient(105deg, rgba(6, 46, 40, .95) 0%, rgba(10, 74, 64, .85) 45%, rgba(10, 74, 64, .45) 100%);
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-50);
  padding: .35rem .95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(242, 107, 58, .2);
}
.eyebrow-light {
  color: #ffd9c7;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}

.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.hero-title .accent {
  display: block;
  background: linear-gradient(90deg, #ffb48f 0%, var(--accent) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .85);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .9);
}
.hero-trust i { color: var(--gold); margin-right: .35rem; }

/* Quick donate card (glass) */
.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: cover;
  border: 2px solid rgba(255, 255, 255, .5);
  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%, #13896f 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 8px #fff, 0 14px 30px rgba(15, 107, 92, .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: .6rem; }
.pay-methods span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .92rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.pay-methods span:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.pay-methods i { color: var(--accent); }

.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), #13896f);
  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: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .2);
}
.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 {
    width: 42px;
    height: 42px;
  }
  #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;
  }
}
