/* ============================================================
   Mitansh Foundation — Master Stylesheet
   Brand: warm, story-led, donation-forward NGO
   ============================================================ */

:root {
  --mf-orange:      #F26522;
  --mf-orange-dk:   #D94E0F;
  --mf-orange-sf:   #FCE9DC;
  --mf-yellow:      #F9B233;
  --mf-red:         #C8102E;
  --mf-blue:        #1E5BA8;
  --mf-blue-dk:     #14437D;
  --mf-green:       #2E8B57;
  --mf-cream:       #FFF7EC;
  --mf-cream-2:     #FFFBF4;
  --mf-ink:         #1F1B16;
  --mf-grey:        #6B6258;
  --mf-line:        #EADFCE;
  --mf-shadow-sm:   0 4px 14px rgba(0,0,0,.06);
  --mf-shadow-md:   0 10px 28px rgba(0,0,0,.09);
  --mf-shadow-lg:   0 22px 48px rgba(242,101,34,.18);
  --mf-radius:      12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--mf-ink);
  background: #fff;
  line-height: 1.65;
  font-size: clamp(13.5px, 1.4vw, 14.5px);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Catch common overflow culprits */
img, video, iframe, table { max-width: 100%; }
@media (max-width: 575.98px) {
  .container, .container-fluid { max-width: 100vw; padding-left: 12px; padding-right: 12px; }
  .row { margin-left: 0; margin-right: 0; }
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.65rem, 5vw, 3rem); }
h2 { font-size: clamp(1.25rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 2.6vw, 1.4rem); }
h4 { font-size: clamp(0.95rem, 2.2vw, 1.2rem); }
h5 { font-size: clamp(0.9rem, 1.8vw, 1.1rem); }
h6 { font-size: clamp(0.82rem, 1.4vw, 0.92rem); }

.lead { font-size: clamp(0.95rem, 2.1vw, 1.12rem); line-height: 1.6; }
.display-1 { font-size: clamp(2.5rem, 8vw, 5rem); }
.display-4 { font-size: clamp(1.75rem, 5vw, 3rem); }
.display-5 { font-size: clamp(1.5rem, 4.4vw, 2.6rem); }
.display-6 { font-size: clamp(1.3rem, 3.5vw, 2.2rem); }

a { color: var(--mf-orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mf-orange-dk); }
img { max-width: 100%; height: auto; }

.page-fade { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Buttons ===== */
.btn-donate {
  background: var(--mf-orange);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 20px;
  border: 0;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-donate:hover, .btn-donate:focus {
  background: var(--mf-orange-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242,101,34,.35);
}
.btn-primary { background: var(--mf-orange); border-color: var(--mf-orange); }
.btn-primary:hover, .btn-primary:focus { background: var(--mf-orange-dk); border-color: var(--mf-orange-dk); }
.btn-outline-primary { color: var(--mf-orange); border-color: var(--mf-orange); }
.btn-outline-primary:hover { background: var(--mf-orange); border-color: var(--mf-orange); color: #fff; }

/* ===== Utility top bar ===== */
.utility-bar {
  background: var(--mf-blue);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}
.utility-bar a { color: #fff; }
.utility-bar a:hover { color: var(--mf-yellow); }
.utility-bar i { margin-right: 4px; }
.utility-sep { color: rgba(255, 255, 255, .35); }
.utility-login { font-weight: 600; }
.utility-login i { margin-right: 4px; }

/* ===== Main navbar — perfectly flat, no shadow / no border / no scroll-effects ===== */
.main-navbar {
  background: #fff;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: 12px 0;
  transition: none !important;
}
.main-navbar.scrolled {
  padding: 12px 0;
  box-shadow: none !important;
  border-bottom: 0 !important;
}
.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.navbar-brand .brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.footer-logo {
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 4px;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mf-orange);
  letter-spacing: .005em;
  line-height: 1.1;
}
.brand-name .brand-word {
  display: inline;   /* default: words flow inline on desktop */
}
.brand-tagline {
  font-size: 12px;
  color: var(--mf-grey);
  letter-spacing: .015em;
  font-weight: 400;
}
.main-navbar .nav-link {
  color: var(--mf-ink);
  font-weight: 500;
  padding: 8px 14px !important;
  position: relative;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--mf-orange); }
.dropdown-menu { border: 0; box-shadow: var(--mf-shadow-md); border-radius: 8px; padding: 6px; }
.dropdown-item { padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.dropdown-item:hover { background: var(--mf-cream); color: var(--mf-orange); }

.nav-donate-mobile { font-size: 13px; padding: 6px 14px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  background: linear-gradient(135deg, var(--mf-cream) 0%, #FFEFE0 100%);
  padding: 80px 0;
  overflow: hidden;
}
.hero-slim {
  min-height: 38vh;
  background: linear-gradient(135deg, var(--mf-orange), var(--mf-orange-dk));
  color: #fff;
  padding: 60px 0;
  display: flex;
  align-items: center;
}
.hero-slim h1 { color: #fff; }
.hero-slim .lead { color: rgba(255,255,255,.92); }
.breadcrumb { background: transparent; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb-item.active { color: #fff; }

/* ===== Hero slider — refined nav, animated dots & content entrance ===== */
/* Smaller, professional "glass" navigation arrows (replaces big default chevrons) */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: var(--mf-orange, #F26522);
  border-color: var(--mf-orange, #F26522);
  transform: scale(1.08);
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 16px;   /* default is 44px — much smaller, refined */
  font-weight: 700;
}

/* Animated pagination dots — active dot expands into a brand pill */
.hero-swiper .swiper-pagination { bottom: 22px; }
.hero-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, .55);
  opacity: 1;
  border-radius: 6px;
  transition: width .35s ease, background .35s ease;
}
.hero-swiper .swiper-pagination-bullet-active {
  width: 28px;
  background: var(--mf-orange, #F26522);
}

/* Staggered content entrance — re-runs each time a slide becomes active */
.hero-swiper .swiper-slide-active .hero-content > .eyebrow,
.hero-swiper .swiper-slide-active .hero-content > h1,
.hero-swiper .swiper-slide-active .hero-content > .lead,
.hero-swiper .swiper-slide-active .hero-content > .d-flex {
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero-swiper .swiper-slide-active .hero-content > .eyebrow { animation-delay: .15s; }
.hero-swiper .swiper-slide-active .hero-content > h1       { animation-delay: .30s; }
.hero-swiper .swiper-slide-active .hero-content > .lead    { animation-delay: .45s; }
.hero-swiper .swiper-slide-active .hero-content > .d-flex  { animation-delay: .60s; }

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

@media (prefers-reduced-motion: reduce) {
  .hero-swiper .swiper-slide-active .hero-content > * { opacity: 1 !important; animation: none !important; }
  .hero-swiper .swiper-button-prev:hover,
  .hero-swiper .swiper-button-next:hover { transform: none; }
}

/* ===== Section utilities ===== */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-cream { background: var(--mf-cream); }
.section-dark { background: var(--mf-ink); color: #fff; }

.eyebrow {
  display: inline-block;
  color: var(--mf-orange);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.section-heading {
  position: relative;
  margin-bottom: 12px;
}
.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--mf-orange);
  margin-top: 12px;
  border-radius: 3px;
}
.text-center .section-heading::after { margin-left: auto; margin-right: auto; }

/* ===== Focus area cards ===== */
.focus-card {
  display: block;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 26px 22px;
  height: 100%;
  transition: all .3s;
  color: var(--mf-ink);
}
.focus-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mf-shadow-lg);
  border-color: var(--mf-orange);
  color: var(--mf-ink);
}
.focus-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}
.focus-link {
  color: var(--mf-orange);
  font-weight: 600;
  font-size: 14px;
}

/* ===== Campaign cards ===== */
.campaign-card {
  background: #fff;
  border-radius: var(--mf-radius);
  overflow: hidden;
  box-shadow: var(--mf-shadow-sm);
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mf-shadow-lg);
}
.campaign-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mf-cream), var(--mf-orange-sf));
}
.campaign-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.campaign-card:hover .campaign-image img { transform: scale(1.05); }
.campaign-emoji {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.campaign-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 11px;
}
.campaign-category {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,255,255,.95);
  color: var(--mf-orange-dk);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
}
.campaign-body { flex: 1; display: flex; flex-direction: column; }
.campaign-title { color: var(--mf-ink); margin-bottom: 8px; }
.campaign-summary { flex: 1; }
.campaign-progress .progress { height: 8px; background: var(--mf-cream); border-radius: 4px; }

/* ===== Trustee cards ===== */
.trustee-card {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 28px 20px;
  transition: all .3s;
}
.trustee-card:hover { transform: translateY(-4px); box-shadow: var(--mf-shadow-md); }
.trustee-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.trustee-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid var(--mf-orange);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  background: #fff;
}
.trustee-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trustee-role { font-weight: 600; color: var(--mf-orange); }
.trustee-bio { color: var(--mf-grey); }

/* ===== Stats / counter band ===== */
.stat-band {
  background: linear-gradient(135deg, var(--mf-orange), var(--mf-orange-dk));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.stat-num {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.stat-label { font-size: 14px; opacity: .9; margin-top: 6px; }

/* ===== CTA bands ===== */
.cta-band {
  background: linear-gradient(135deg, var(--mf-blue), var(--mf-blue-dk));
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-donate { background: var(--mf-yellow); color: var(--mf-ink); }
.cta-band .btn-donate:hover { background: #fff; }

/* ===== Newsletter band ===== */
.newsletter-band {
  background: linear-gradient(135deg, var(--mf-orange) 0%, var(--mf-orange-dk) 100%);
  color: #fff;
}
.newsletter-band h3 { color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: #1A1410;
  color: #D1C7B8;
}
.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #D1C7B8; font-size: 14px; }
.footer-links a:hover { color: var(--mf-orange); }
.footer-links li.footer-link-sep {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.footer-contact li { margin-bottom: 10px; padding-left: 24px; position: relative; line-height: 1.5; }
.footer-contact li i { position: absolute; left: 0; top: 4px; color: var(--mf-orange); }
.footer-contact a { color: #D1C7B8; }
.footer-contact a:hover { color: var(--mf-orange); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  margin-right: 6px;
  transition: all .2s;
}
.footer-social a:hover { background: var(--mf-orange); transform: translateY(-2px); }
.footer-divider { border-color: rgba(255,255,255,.1); }

.footer-legal-links { font-size: 12.5px; }
.footer-legal-links a { color: #D1C7B8; text-decoration: none; }
.footer-legal-links a:hover { color: var(--mf-orange); text-decoration: underline; }
.footer-legal-links .legal-sep { color: rgba(255,255,255,.25); margin: 0 4px; }

/* ===== Sticky donate FAB ===== */
.donate-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--mf-orange);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(242,101,34,.45);
  z-index: 99;
  animation: fabPulse 2.4s infinite;
}
.donate-fab:hover { background: var(--mf-orange-dk); color: #fff; transform: scale(1.05); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(242,101,34,.45); }
  50%      { box-shadow: 0 12px 28px rgba(242,101,34,.45), 0 0 0 12px rgba(242,101,34,.12); }
}
@media (max-width: 575.98px) {
  .donate-fab {
    left: 16px; right: 16px; bottom: 16px;
    justify-content: center;
    padding: 14px;
    border-radius: 12px;
  }
  .fab-label { font-size: 15px; }
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mf-blue);
  color: #fff;
  border: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 98;
  box-shadow: var(--mf-shadow-md);
  transition: all .3s;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--mf-blue-dk); transform: translateY(-3px); }
@media (max-width: 575.98px) { .back-to-top { bottom: 80px; right: 16px; } }

/* Mobile (≤575px) — slim footer since menu columns are hidden */
@media (max-width: 575.98px) {
  .site-footer { padding-top: 20px !important; padding-bottom: 10px !important; }
  .newsletter-band { padding: 28px 0 !important; }
  .newsletter-band h3 { font-size: 18px; }
}

/* ============================================================
   Mobile offcanvas menu — narrow side panel, not full screen
   ============================================================ */
.offcanvas.offcanvas-end {
  width: 260px !important;
  max-width: 78vw;
  border-left: 1px solid var(--mf-line);
  box-shadow: -6px 0 18px rgba(0,0,0,.18);
}
.offcanvas-header {
  border-bottom: 1px solid var(--mf-line);
  padding: 12px 16px;
}
.offcanvas-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--mf-orange);
}
.offcanvas-body { padding: 12px 16px; }
.offcanvas-body .nav-link {
  font-size: 14px;
  padding: 8px 0;
}
.offcanvas-body .dropdown-menu {
  border: 0;
  box-shadow: none;
  padding-left: 12px;
}
.offcanvas-body .dropdown-item { font-size: 13px; padding: 6px 0; }

/* ============================================================
   Mobile bottom navigation bar — phone only (≤575px)
   Hidden on tablet, laptop, desktop
   ============================================================ */
nav.mobile-bottom-nav { display: none !important; }
@media (max-width: 575.98px) {
  nav.mobile-bottom-nav { display: flex !important; }
}
nav.mobile-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  align-items: center !important;
  background: #fff !important;
  border-top: 1px solid var(--mf-line);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  z-index: 1040;
  padding: 2px 4px max(2px, env(safe-area-inset-bottom));
  margin: 0;
  width: 100%;
  overflow: visible;
}
nav.mobile-bottom-nav .mbn-item {
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0;
  text-decoration: none !important;
  color: var(--mf-grey) !important;
  font-size: 8px;
  font-weight: 500;
  padding: 2px 2px;
  line-height: 1.05;
  letter-spacing: .01em;
  transition: color .15s;
  min-width: 0;
}
nav.mobile-bottom-nav .mbn-item i {
  font-size: 14px;
  display: block;
  line-height: 1;
}
nav.mobile-bottom-nav .mbn-item span {
  display: block;
  white-space: nowrap;
}
nav.mobile-bottom-nav .mbn-item.active,
nav.mobile-bottom-nav .mbn-item:hover { color: var(--mf-orange) !important; }
nav.mobile-bottom-nav .mbn-cta {
  position: relative;
}
nav.mobile-bottom-nav .mbn-cta .mbn-cta-bubble {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--mf-orange);
  color: #fff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-shadow: 0 2px 4px rgba(242,101,34,.35);
  border: 0;
}
nav.mobile-bottom-nav .mbn-cta .mbn-cta-bubble i { font-size: 10px; color: #fff; }
nav.mobile-bottom-nav .mbn-cta > span { color: var(--mf-orange) !important; font-weight: 600; }

/* Pad page so bottom nav doesn't overlap content (only on xs phones — sm+ uses donate-fab) */
@media (max-width: 575.98px) {
  body { padding-bottom: 44px; }
  .back-to-top { bottom: 56px !important; }
}

/* ===== Donor wall, gallery, etc utilities ===== */
.gallery-item {
  position: relative;
  border-radius: var(--mf-radius);
  overflow: hidden;
  cursor: pointer;
  height: 240px;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--mf-line);
}
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--mf-orange);
  box-shadow: 0 0 0 4px rgba(242,101,34,.18);
}

.credential-card {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: all .3s;
}
.credential-card:hover { transform: translateY(-4px); box-shadow: var(--mf-shadow-md); }
.credential-card i { font-size: 32px; color: var(--mf-orange); }

/* ============================================================
   Responsive — mobile-first font scaling + spacing
   ============================================================ */

/* Tablet (≤991px) */
@media (max-width: 991.98px) {
  .hero { min-height: 56vh; padding: 50px 0; }
  .hero-slim { min-height: auto; padding: 50px 0; }
  .section { padding: 50px 0; }
  .section-sm { padding: 32px 0; }
  .stat-band, .cta-band { padding: 50px 0; }

  .brand-name { font-size: 15px; }
  .brand-tagline { font-size: 10px; }

  /* Trustees */
  .trustee-avatar { width: 76px; height: 76px; font-size: 22px; }
  .trustee-photo { width: 90px; height: 90px; }

  /* Stat numbers slightly smaller */
  .stat-num { font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
  .stat-label { font-size: 12px; }

  /* Footer columns */
  .site-footer { padding-top: 40px; padding-bottom: 18px; }
  .footer-heading { margin-bottom: 12px; font-size: 12px; }
  .footer-links a, .footer-contact { font-size: 12.5px; }
}

/* Mobile (≤575px) */
@media (max-width: 575.98px) {
  body { font-size: 13.5px; line-height: 1.6; }

  /* Tighter section spacing */
  .section { padding: 40px 0; }
  .section-sm { padding: 24px 0; }
  .hero, .hero-slim { padding: 40px 0; }
  .stat-band, .cta-band { padding: 40px 0; }

  /* Hero swiper text — keep readable; hide body description on mobile */
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2.1rem); }
  .hero .lead { font-size: 13.5px; }
  .hero-swiper .lead,
  .hero-swiper .eyebrow { display: none; }
  .hero-swiper h1 {
    font-size: clamp(1.4rem, 6.5vw, 2rem);
    margin-bottom: 16px !important;
    text-align: center;
  }
  .hero-swiper .swiper-slide .container > div { width: 100%; text-align: center; }
  .hero-swiper .d-flex.flex-wrap.gap-2 {
    justify-content: center;
  }
  .hero-swiper { height: 50vh !important; min-height: 320px; }

  /* Hero slide buttons */
  .hero .btn-lg, .hero-slim .btn-lg { padding: 7px 16px; font-size: 13px; }

  /* Section headings underline closer */
  .section-heading::after { width: 45px; height: 2px; margin-top: 8px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }

  /* Cards */
  .focus-card { padding: 20px 16px; }
  .focus-icon { width: 48px; height: 48px; font-size: 20px; }
  .credential-card { padding: 18px 14px; }
  .credential-card i { font-size: 26px; }
  .trustee-card { padding: 20px 14px; }
  .campaign-card { font-size: 12.5px; }
  .campaign-image { height: 170px; }
  .campaign-emoji { font-size: 56px; }
  .campaign-title { font-size: 15px; }

  /* Buttons sized for thumb-tap */
  .btn-donate, .btn-primary, .btn-outline-primary { padding: 7px 14px; font-size: 13px; }
  .btn-lg { padding: 9px 20px !important; font-size: 14px !important; }

  /* Navbar — blue theme on mobile */
  .main-navbar {
    background: var(--mf-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
  }
  .main-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
  }
  .main-navbar .navbar-toggler-icon {
    filter: invert(1) brightness(1.4);
  }
  .nav-donate-mobile { font-size: 11.5px; padding: 5px 11px; }
  .navbar-brand img, .navbar-brand .brand-logo { height: 40px; width: 40px; }
  .navbar-brand { padding-top: 4px; padding-bottom: 4px; }
  .navbar-brand .brand-text { max-width: 140px; }
  .brand-name {
    font-size: 15px;
    line-height: 1.1;
    color: #fff;
    display: block;
  }
  .brand-name .brand-word {
    display: block;       /* each word on its own line on mobile */
  }
  .brand-tagline {
    display: none;        /* hide tagline on mobile */
  }

  /* Utility bar text + icons stay snug */
  .utility-bar { font-size: 11px; padding: 5px 0; }

  /* Pramukh feature cards (home page) */
  .pramukh-feature-img { height: 160px; }
  .pramukh-feature-body { padding: 18px 16px; }
  .pramukh-feature h3 { font-size: 15.5px; }

  /* Form labels + inputs */
  .form-label { font-size: 12.5px; margin-bottom: 4px; }
  .form-control, .form-select { font-size: 13px; }
  .form-control-lg, .form-select-lg { font-size: 14px; padding: 7px 11px; }

  /* Tabs (donate page) */
  .pay-tabs .nav-link { padding: 9px 12px; font-size: 11px; }
  .pay-tabs .nav-link i { font-size: 16px; }
  .pay-content { padding: 20px 14px; }

  /* Tables — make compact */
  .table { font-size: 12px; }

  /* Footer */
  .site-footer { font-size: 12px; }
  .footer-heading { font-size: 11.5px; }
  .footer-social a { width: 32px; height: 32px; }

  /* FAB / back-to-top sizes */
  .donate-fab { padding: 11px; font-size: 13px; }
  .back-to-top { width: 38px; height: 38px; }
}

/* Tiny phones (≤360px) */
@media (max-width: 360px) {
  body { font-size: 13px; }
  .hero h1 { font-size: 1.35rem; }
  .section-heading { font-size: 1.1rem; }
  .pramukh-feature-num { width: 38px; height: 38px; font-size: 16px; }
  .pay-tabs .nav-link span { display: none; }
}
