:root {
  --green: #14a84a;
  --green-dark: #0d7f39;
  --green-light: #e8f8ee;
  --navy: #12385b;
  --navy-dark: #0b2842;
  --text: #1d2d3d;
  --muted: #6d7f8f;
  --soft: #f4f9f6;
  --line: #dfe8e3;
  --white: #ffffff;
  --red: #d90429;
  --red-dark: #b0021f;
  --red-light: #fff5f5;
  --shadow-sm: 0 4px 12px rgba(18, 56, 91, 0.05);
  --shadow-md: 0 10px 25px rgba(18, 56, 91, 0.08);
  --shadow-lg: 0 18px 40px rgba(18, 56, 91, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --topbar-height: 40px;
  --navbar-height: 72px;
  --header-height: calc(var(--topbar-height) + var(--navbar-height));
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Hind Siliguri", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  padding-top: var(--header-height) !important;
  overflow-x: clip;
  max-width: 100vw;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Hind Siliguri", sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin-top: 0;
  letter-spacing: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

section {
  scroll-margin-top: var(--header-height);
  position: relative;
}

/* ==========================================================================
   TOPBAR & RESPONSIVE NAVBAR (Matches Logo: Forest Emerald & Amber Gold)
   ========================================================================== */
.site-topbar {
  background: linear-gradient(90deg, #022a1f 0%, #043e2e 50%, #022a1f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-family: "Hind Siliguri", sans-serif;
  font-size: 0.82rem;
  line-height: 1;
  position: relative;
  z-index: 1041;
}

.topbar-wrapper {
  min-height: var(--topbar-height, 40px);
  padding: 4px 0;
}

.topbar-link {
  color: #f1f5f9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.topbar-link:hover {
  color: #fbbf24;
}

.topbar-link i {
  color: #fbbf24;
  font-size: 0.88rem;
}

.topbar-slogan {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.topbar-slogan i {
  color: #fbbf24;
  font-size: 0.85rem;
}

.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.22);
  margin: 0 4px;
}

.topbar-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #f1f5f9;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.topbar-social-btn:hover {
  color: #fbbf24;
  transform: translateY(-1px);
}

.topbar-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.topbar-login-btn:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #022a1f;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.topbar-login-btn i {
  font-size: 0.85rem;
}

.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  box-shadow: 0 4px 20px rgba(18, 56, 91, 0.06);
  transition: all 0.3s ease;
}

.site-header .navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 56, 91, 0.08);
  padding: 0.65rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled .navbar {
  box-shadow: 0 8px 30px rgba(18, 56, 91, 0.12);
  background: rgba(255, 255, 255, 0.99) !important;
}

@media (max-width: 991.98px) {
  :root {
    --topbar-height: 36px;
    --navbar-height: 64px;
    --header-height: 100px;
  }
  .topbar-wrapper {
    min-height: var(--topbar-height, 36px);
  }
  .topbar-link {
    font-size: 0.78rem;
    gap: 5px;
  }
  .topbar-login-btn {
    padding: 3px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .topbar-link span {
    font-size: 0.75rem;
  }
}

.navbar-brand {
  color: var(--navy) !important;
  padding: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 3px solid var(--green);
  border-radius: 12px 12px 16px 16px;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
  transform: rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font: 900 1.05rem/1 "Hind Siliguri", sans-serif;
  color: var(--navy);
}

.brand-text small {
  font-size: 0.62rem;
  color: var(--green);
  margin-top: 4px;
  font-weight: 600;
}

.navbar-toggler {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--navy);
  transition: all 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(20, 168, 74, 0.25);
  outline: none;
}

.navbar-toggler-icon {
  width: 22px;
  height: 22px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #456 !important;
  padding: 6px 9px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--green) !important;
  background: rgba(20, 168, 74, 0.06);
}

.nav-blood-link {
  color: #d90429 !important;
  background: rgba(217, 4, 41, 0.08);
  border-radius: 8px;
  padding: 8px 14px !important;
  transition: all 0.25s ease;
}

.nav-blood-link:hover {
  background: #d90429 !important;
  color: #fff !important;
}

/* Global Buttons */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
}

.btn-lg {
  min-height: 48px;
  font-size: 1rem;
}

.btn-brand {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 6px 16px rgba(20, 168, 74, 0.22);
}

.btn-brand:hover, .btn-brand:focus {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 168, 74, 0.32);
}

/* Golden Yellow Top Right Donate Button */
.btn-nav-donate, .btn-donate-yellow {
  background: #f59e0b;
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
  color: #0b2842 !important;
  border: 1px solid #d97706;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-nav-donate:hover, .btn-nav-donate:focus,
.btn-donate-yellow:hover, .btn-donate-yellow:focus {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #b45309;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
}

.btn-nav-donate:active, .btn-donate-yellow:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* ==========================================================================
   HERO FULL-WIDTH SLIDER (FULLY RESPONSIVE)
   ========================================================================== */
.hero-slider-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f6fafd;
}

.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
  width: 100%;
  background-color: #ffffff;
}

.hero-slide {
  position: relative;
  min-height: clamp(520px, 78vh, 660px);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
}

.min-slider-height {
  min-height: clamp(520px, 78vh, 660px);
  padding: clamp(36px, 6vw, 64px) 0 clamp(64px, 8vw, 84px);
}

/* Slide 1 - Artwork y.png */
.hero-slide-1 {
  background-image: url('y.png');
  background-color: #f6fafd;
  background-position: right center;
  background-size: cover;
}

/* Slide 2 - Education */
.hero-slide-2 {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.92) 46%, rgba(255,255,255,0.2) 100%),
              url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1920&q=80') center right / cover no-repeat;
  background-color: #f4f9f6;
}

/* Slide 3 - Clean Water */
.hero-slide-3 {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.92) 46%, rgba(255,255,255,0.2) 100%),
              url('https://images.unsplash.com/photo-1542810634-71277d95dcbb?auto=format&fit=crop&w=1920&q=80') center right / cover no-repeat;
  background-color: #f4f9f6;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-block;
  color: #0d7f39;
  background: rgba(255, 255, 255, 0.88);
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid rgba(20, 168, 74, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  width: fit-content;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.16;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 900;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-copy p {
  color: #1a2e40;
  font-size: clamp(0.96rem, 1.4vw, 1.12rem);
  font-weight: 600;
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Solid background for the outline button in hero */
.hero-copy .btn-outline-dark {
  background: #ffffff;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(18, 56, 91, 0.12);
  transition: all 0.25s ease;
}

.hero-copy .btn-outline-dark:hover,
.hero-copy .btn-outline-dark:focus {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(18, 56, 91, 0.25);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-trust span {
  background: rgba(255, 255, 255, 0.88);
  color: #0b5125;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(20, 168, 74, 0.18);
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Slider Controls */
.custom-slider-control {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
  border: 1px solid rgba(18, 56, 91, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  margin: 0 20px;
}

.custom-slider-control:hover {
  opacity: 1;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 8px 25px rgba(20, 168, 74, 0.35);
}

.custom-slider-control .carousel-control-prev-icon,
.custom-slider-control .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: invert(20%) sepia(40%) saturate(1000%) hue-rotate(170deg);
  transition: filter 0.2s ease;
}

.custom-slider-control:hover .carousel-control-prev-icon,
.custom-slider-control:hover .carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

/* Slider Indicators */
.hero-slider-section .carousel-indicators {
  margin-bottom: 18px;
  gap: 8px;
  z-index: 5;
}

.hero-slider-section .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--navy);
  opacity: 0.25;
  border: none;
  transition: all 0.35s ease;
}

.hero-slider-section .carousel-indicators .active {
  width: 32px;
  border-radius: 10px;
  background-color: var(--green);
  opacity: 1;
}

/* ==========================================================================
   SECTION SPACING & HEADERS
   ========================================================================== */
.section-space {
  padding: clamp(32px, 5vw, 56px) 0;
}

.section-soft {
  background: var(--soft);
}

.section-head {
  margin-bottom: clamp(16px, 3vw, 24px);
}

.section-head h2, .section-title-center h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0;
}

.view-link {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-link:hover {
  color: var(--green);
}

.section-title-center {
  max-width: 680px;
  margin: 0 auto clamp(18px, 3.5vw, 30px);
}

.section-title-center p {
  color: var(--muted);
  margin-top: 10px;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
}

/* ==========================================================================
   PROJECT CARDS & DONATION ASIDE
   ========================================================================== */
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-card img {
  height: clamp(170px, 20vw, 200px);
  width: 100%;
  object-fit: cover;
}

.project-card .p-3 {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 14px;
}

.slim-progress {
  height: 6px;
  background: #e9f4ed;
  border-radius: 50px;
}

.slim-progress .progress-bar {
  background: var(--green);
}

.project-card .small {
  font-size: 0.78rem;
  color: #688;
}

.donation-card {
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #e63946, #c1121f);
  color: #fff;
  padding: clamp(24px, 4vw, 32px) clamp(18px, 3vw, 24px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(230, 57, 70, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(230, 57, 70, 0.35);
}

.donation-card h3 {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.donation-card p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.94);
  margin: 6px 0 18px;
  line-height: 1.5;
}

.donation-card .btn-light {
  color: #c1121f;
  font-weight: 800;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.donation-card .btn-light:hover {
  background: #fff;
  color: #9b0d19;
  transform: scale(1.03);
}

.heart-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 10px;
  color: #fff;
  display: inline-block;
  transition: transform 0.3s ease;
}

.donation-card:hover .heart-icon {
  transform: scale(1.15);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-image-stack {
  position: relative;
  padding: 16px 20px 24px 0;
}

.about-image-stack:before {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 82%;
  height: 84%;
  background: #dff2e6;
  border-radius: 20px;
  z-index: 0;
}

.about-image-stack .main-image {
  position: relative;
  z-index: 1;
  height: clamp(300px, 45vw, 500px);
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.mini-card {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(12px, 2.5vw, 18px) clamp(14px, 3vw, 22px);
  box-shadow: var(--shadow-lg);
}

.mini-card strong {
  display: block;
  color: var(--green);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.1;
}

.mini-card span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.display-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.18;
}

.lead-copy {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  margin: 16px 0 22px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  color: #456;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  background: var(--navy);
  padding: clamp(36px, 6vw, 54px) 0;
}

.stat-item strong {
  display: block;
  color: #fff;
  font: 900 clamp(1.8rem, 4vw, 2.8rem)/1 "Hind Siliguri", sans-serif;
}

.stat-item span {
  display: block;
  color: #c8d7e4;
  font-size: 0.84rem;
  margin-top: 8px;
}

/* ==========================================================================
   CAUSES SECTION
   ========================================================================== */
.cause-box {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3.5vw, 32px);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cause-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cause-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f8ee;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.cause-box h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.cause-box p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 14px;
}

.cause-box a {
  color: var(--green);
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   BLOOD DONATION HUB (RESPONSIVE STYLES)
   ========================================================================== */
.blood-donation-section {
  background: linear-gradient(180deg, #fff9f9 0%, #ffffff 100%);
  position: relative;
}

.blood-eyebrow {
  color: var(--red);
  background: rgba(217, 4, 41, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(217, 4, 41, 0.15);
  font-size: clamp(0.75rem, 1.2vw, 0.84rem);
}

.blood-main-title {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  color: var(--navy);
  font-weight: 900;
  margin: 12px 0 14px;
}

/* Blood Action Buttons */
.btn-blood-primary {
  background: linear-gradient(145deg, #d90429, #b0021f);
  color: #fff;
  border: none;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(217, 4, 41, 0.28);
}

.btn-blood-primary:hover, .btn-blood-primary:focus {
  background: linear-gradient(145deg, #b0021f, #8d0017);
  color: #fff;
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.38);
}

.btn-blood-emergency {
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red);
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(217, 4, 41, 0.1);
}

.btn-blood-emergency:hover, .btn-blood-emergency:focus {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.28);
}

.btn-blood-outline {
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-blood-outline:hover {
  background: var(--red);
  color: #fff;
}

/* Pulsing Dots */
.pulsing-red-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7);
  animation: pulseDot 1.5s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(217, 4, 41, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 4, 41, 0); }
}

.pulse-badge {
  animation: pulseBadge 2s infinite ease-in-out;
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Emergency Alert Banner */
.emergency-alert-card {
  background: #fff;
  border-left: 5px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.08);
  padding: 14px 18px;
  border-top: 1px solid rgba(217, 4, 41, 0.12);
  border-right: 1px solid rgba(217, 4, 41, 0.12);
  border-bottom: 1px solid rgba(217, 4, 41, 0.12);
}

/* Blood Nav Tabs - Segmented & Responsive */
.blood-nav-tabs {
  background: #fff;
  padding: 6px;
  border-radius: 50px;
  border: 1px solid #fed7d7;
  display: inline-flex;
  box-shadow: 0 4px 16px rgba(217, 4, 41, 0.05);
  max-width: 100%;
}

.blood-tab-btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  border: none;
  background: transparent;
  color: var(--navy);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.blood-tab-btn:hover {
  color: var(--red);
}

.blood-tab-btn.active {
  background: linear-gradient(145deg, #d90429, #b91c1c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.3);
}

/* Search Card & Blood Filter Pills */
.blood-search-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #f0dede;
  box-shadow: var(--shadow-sm);
  padding: clamp(16px, 3vw, 24px);
}

.blood-pill {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blood-pill:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.blood-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 3px 10px rgba(217, 4, 41, 0.25);
}

/* Donor Card */
.donor-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 22px);
  border: 1px solid #f1dede;
  box-shadow: 0 6px 20px rgba(217, 4, 41, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.donor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(217, 4, 41, 0.14);
  border-color: #f87171;
}

.donor-card:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d90429, #f87171);
}

.donor-blood-drop {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, #ef233c, #d90429);
  color: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.35);
  transition: transform 0.3s ease;
}

.donor-blood-drop span {
  display: inline-block;
  transform: rotate(45deg);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
}

.donor-card:hover .donor-blood-drop {
  transform: rotate(-45deg) scale(1.06);
}

.donor-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.donor-card .btn {
  font-size: clamp(0.74rem, 1.8vw, 0.84rem);
  padding: 6px 6px;
  min-height: 38px;
  white-space: nowrap;
}

/* Emergency Patient Cards */
.emergency-patient-card {
  border-radius: var(--radius-md);
  border: 1px solid #fee2e2 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.emergency-patient-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(217, 4, 41, 0.14) !important;
  border-color: #f87171 !important;
}

.patient-blood-badge {
  width: 44px;
  height: 44px;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  border: 2px solid #f87171;
  box-shadow: 0 4px 10px rgba(217, 4, 41, 0.12);
}

/* Hotline Cards */
.hotline-card {
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0 !important;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hotline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
  border-color: #cbd5e1 !important;
}

.hotline-icon {
  font-size: 2rem;
  line-height: 1;
}

/* Blood Guide Card & Matrix */
.blood-guide-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #ebdcdc;
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 4vw, 42px);
}

.compatibility-table th {
  background: #fff2f2;
  color: #991b1b;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 8px;
}

.compatibility-table td {
  font-size: 0.85rem;
  padding: 8px 10px;
}

.blood-stats-box {
  background: #fff8f8;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 28px);
}

.blood-icon-circle {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.12);
}

.blood-stat-card {
  background: #fff;
  border: 1px solid #fee2e2;
  box-shadow: 0 3px 10px rgba(217, 4, 41, 0.04);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.blood-stat-card strong {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  line-height: 1.1;
  display: block;
}

/* Floating Donate / Support Button */
.floating-donate-btn,
.floating-blood-sos {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  z-index: 1020;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.45);
  border: 2px solid #fff;
  transition: all 0.25s ease;
  text-decoration: none;
}

.floating-donate-btn:hover,
.floating-blood-sos:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.6);
  color: #fff !important;
}

.sos-pulse-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50px;
  border: 2px solid rgba(217, 4, 41, 0.7);
  animation: pulseRing 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.12, 1.35); opacity: 0; }
}

/* ==========================================================================
   PROCESS / HOW IT WORKS
   ========================================================================== */
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3.5vw, 30px);
  height: 100%;
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font: 900 1rem "Hind Siliguri", sans-serif;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   STORY SECTION
   ========================================================================== */
.story-section {
  padding: 0 0 clamp(32px, 5vw, 56px);
}

.story-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

.story-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.story-copy {
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-copy .eyebrow {
  color: #63dc8d;
}

.story-copy h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.25;
}

.story-copy p {
  color: #c9d7e1;
  margin: 16px 0 20px;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
}

.story-copy strong {
  color: #fff;
  font-size: 0.95rem;
}

/* ==========================================================================
   BLOG CARDS
   ========================================================================== */
.blog-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.blog-card img {
  height: clamp(170px, 20vw, 210px);
  width: 100%;
  object-fit: cover;
}

.blog-card .p-4 {
  padding: clamp(18px, 3vw, 24px) !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card small {
  color: var(--green);
  font-weight: 800;
  font-size: 0.8rem;
}

.blog-card h3 {
  font-size: 1.18rem;
  margin: 10px 0 14px;
  line-height: 1.35;
  flex-grow: 1;
}

.blog-card a {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.86rem;
}

.blog-card a:hover {
  color: var(--green);
}

/* ==========================================================================
   FINAL CTA & FOOTER
   ========================================================================== */
.final-cta {
  padding: clamp(48px, 8vw, 80px) 0;
  background: linear-gradient(135deg, #10a548, #21bd5d);
}

.cta-inner {
  max-width: 780px;
  margin: auto;
}

.eyebrow.light {
  color: #d9ffe7;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  color: #fff;
  line-height: 1.2;
}

.cta-inner p {
  color: #ebfff2;
  max-width: 620px;
  margin: 14px auto 24px;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #0a1420 0%, #060c14 100%);
  color: #c7d5df;
  padding: clamp(52px, 7vw, 84px) 0 32px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 80px;
}

.site-footer .footer-brand {
  color: #fff;
  text-decoration: none;
}

.site-footer .footer-brand:hover {
  opacity: 0.95;
}

.site-footer .footer-brand-logo {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.site-footer .brand-mark {
  border-color: var(--green);
  color: var(--green);
}

.site-footer .brand-text strong {
  color: #fff;
  font-size: 1.15rem;
}

.site-footer .brand-text small {
  color: #4ad67c;
  font-size: 0.72rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.site-footer p {
  color: #9fb3c2;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Contact List */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-contact-item.hotline-box {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.footer-contact-item.hotline-box .contact-icon-box {
  background: #e11d48;
  color: #fff;
}

.footer-contact-item.hotline-box a {
  color: #fca5a5 !important;
  font-weight: 800;
  font-size: 1rem;
}

.contact-icon-box {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ad67c;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.footer-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Social links */
.footer-social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.footer-social-btn.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.footer-social-btn.yt:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.footer-social-btn.insta:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border-color: transparent;
}

.footer-social-btn.x:hover {
  background: #000000;
  border-color: #333333;
}

.footer-social-btn.wa:hover {
  background: #25d366;
  border-color: #25d366;
}

/* Navigation lists */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aabdc9;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  padding: 2px 0;
}

.footer-nav-list li a i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.footer-nav-list li a:hover {
  color: #4ad67c;
  transform: translateX(4px);
}

.footer-nav-list li a:hover i {
  color: #4ad67c;
}

/* Newsletter Form */
.footer-newsletter-form .input-group {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
}

.footer-newsletter-form .form-control {
  background: transparent !important;
  color: #fff !important;
  border: none;
  box-shadow: none;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.footer-newsletter-form .form-control::placeholder {
  color: #8da4b5;
}

.footer-newsletter-form .form-control:focus {
  background: transparent !important;
}

.footer-newsletter-form .btn-brand {
  border-radius: 9px !important;
  padding: 8px 18px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: clamp(36px, 5vw, 54px);
  padding-top: 24px;
  font-size: 0.84rem;
  color: #8fa5b6;
}

@media (min-width: 992px) {
  .footer-bottom {
    padding-right: 170px;
  }
}

/* ==========================================================================
   MODALS & FORM CONTROLS
   ========================================================================== */
.donation-modal, .blood-modal {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 8px;
}

.modal-content {
  box-shadow: 0 25px 60px rgba(18, 56, 91, 0.25);
  border-radius: var(--radius-lg);
}

.grid-amounts {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.amount-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 9px;
  font-weight: 800;
  color: var(--navy);
  transition: all 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.amount-btn.active, .amount-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--line);
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 168, 74, 0.2);
}

/* Payment Method Grid & Dynamic Selection Cards */
.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.payment-card-label {
  cursor: pointer;
  margin: 0;
  display: block;
}

.payment-card-label input[type="radio"] {
  display: none;
}

.payment-card-body {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 10px;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.payment-card-body strong {
  font-size: 0.88rem;
  line-height: 1.2;
  display: block;
}

.payment-card-body small {
  font-size: 0.72rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.payment-card-label:hover .payment-card-body {
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(20, 168, 74, 0.12);
  transform: translateY(-2px);
}

.payment-card-label input[type="radio"]:checked + .payment-card-body {
  border-color: var(--green);
  background: #f4fbf7;
  box-shadow: 0 4px 14px rgba(20, 168, 74, 0.22);
}

.payment-card-label input[value="bkash"]:checked + .payment-card-body {
  border-color: #d90429;
  background: #fff5f6;
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.2);
}

.payment-card-label input[value="nagad"]:checked + .payment-card-body {
  border-color: #f59e0b;
  background: #fffaf0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.payment-card-label input[value="rocket"]:checked + .payment-card-body {
  border-color: #3b82f6;
  background: #f0f7ff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

/* Payment Details Box */
.payment-details-box {
  background: #fafcfe;
  animation: fadeInPayment 0.25s ease;
}

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

.copy-badge-btn {
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-badge-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large Tablets & Laptops (max-width: 991.98px) */
@media (max-width: 991.98px) {
  /* Navigation Drawer */
  .navbar-collapse {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-top: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(18, 56, 91, 0.05);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 10px 12px !important;
  }

  .nav-blood-link {
    display: inline-block;
    width: 100%;
    margin: 4px 0;
  }

  .navbar-collapse .btn-brand,
  .navbar-collapse .btn-nav-donate,
  .navbar-collapse .btn-donate-yellow {
    width: 100%;
    margin-top: 8px;
  }

  /* Hero Slider on Tablets */
  .hero-slide {
    min-height: 520px;
    background-position: 70% center;
  }

  .min-slider-height {
    min-height: 520px;
    padding: 40px 0 64px;
  }

  /* Transparent Hero Copy on Tablets & Mobile (Full Background Image Visible) */
  .hero-copy {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    margin: 10px 0 !important;
  }

  /* Full-bleed light gradient on slides so the background photo shines through while text stays crisp */
  .hero-slide-1 {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(255, 255, 255, 0.42) 100%),
                url('y.png') center right / cover no-repeat;
  }

  .hero-slide-2 {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(255, 255, 255, 0.42) 100%),
                url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1920&q=80') center right / cover no-repeat;
  }

  .hero-slide-3 {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(255, 255, 255, 0.42) 100%),
                url('https://images.unsplash.com/photo-1542810634-71277d95dcbb?auto=format&fit=crop&w=1920&q=80') center right / cover no-repeat;
  }

  .custom-slider-control {
    width: 42px;
    height: 42px;
    margin: 0 10px;
  }

  /* About section */
  .about-image-stack .main-image {
    height: 400px;
  }

  .story-card img {
    min-height: 280px;
    max-height: 340px;
  }
}

/* Tablets (max-width: 767.98px) */
@media (max-width: 767.98px) {
  /* Blood Nav Tabs Mobile Layout */
  .blood-nav-tabs {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .blood-tab-btn {
    width: 100%;
    border-radius: var(--radius-sm);
    text-align: center;
    padding: 10px 14px;
  }

  /* Compatibility Table touch scroll indicator */
  .table-responsive {
    border-radius: var(--radius-sm);
    border: 1px solid #ebdcdc;
  }

  /* Slider controls hidden on touch for clean look */
  .custom-slider-control {
    display: none;
  }

  /* Hero Buttons stack on mobile */
  .hero-btn-group .btn {
    width: 100%;
  }

  .blood-action-btns .btn {
    width: 100%;
  }
}

/* Mobile Devices (max-width: 575.98px) */
@media (max-width: 575.98px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header Brand */
  .brand-mark {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 20px;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  /* Hero Slider Mobile */
  .hero-slide {
    min-height: auto;
    background-position: 80% center;
  }

  .min-slider-height {
    min-height: auto;
    padding: 24px 0 60px;
  }

  .hero-copy {
    padding: 0 !important;
    margin: 0 0 12px 0 !important;
  }

  .hero-copy h1, .hero-copy p, .hero-copy .eyebrow {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  }

  .hero-copy h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-copy p {
    font-size: 0.96rem;
    color: #0f2438 !important;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.6;
  }

  .hero-trust {
    font-size: 0.82rem;
    gap: 8px;
  }

  .hero-trust span {
    padding: 3px 8px;
    font-size: 0.8rem;
  }

  /* Section Headers */
  .section-head {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 8px;
  }

  /* About Stack */
  .about-image-stack {
    padding: 10px 10px 20px 0;
  }

  .about-image-stack .main-image {
    height: 280px;
  }

  .mini-card {
    right: 4px;
    bottom: 12px;
    padding: 10px 14px;
  }

  .mini-card strong {
    font-size: 1.25rem;
  }

  /* Blood Search Card */
  .blood-search-card {
    padding: 16px 14px;
  }

  .blood-pill {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  /* Modals on Mobile */
  .grid-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-dialog {
    margin: 12px;
  }

  /* Floating Donate Button Mobile */
  .floating-donate-btn,
  .floating-blood-sos {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    padding: 8px 16px;
    font-size: 0.84rem;
  }

  /* Newsletter Form */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  /* Story section on mobile */
  .story-copy {
    padding: 24px 18px;
  }

  .story-card img {
    min-height: 200px;
    max-height: 250px;
  }

  /* Activities Slider Arrows on Mobile */
  #activitiesPrevBtn {
    margin-left: 0px !important;
    width: 40px !important;
    height: 40px !important;
  }
  #activitiesNextBtn {
    margin-right: 0px !important;
    width: 40px !important;
    height: 40px !important;
  }
  #activitiesPrevBtn i, #activitiesNextBtn i {
    font-size: 1.15rem !important;
  }

  /* Mobile Video Section */
  .hv-play {
    width: 58px !important;
    height: 58px !important;
  }
  .hv-play i {
    font-size: 1.5rem !important;
  }
  .hv-big-caption {
    padding: 14px 16px !important;
  }
  .hv-sub-head {
    margin: 28px 0 16px !important;
  }

  /* Mobile Join Us Cards */
  .jc-frame {
    border-radius: 1.4rem !important;
    padding: 0.35rem !important;
  }
  .jc-card {
    min-height: 140px !important;
    padding: 1.25rem 1rem !important;
    border-radius: 1.2rem !important;
  }
  .jc-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.45rem !important;
    margin-bottom: 0.5rem !important;
  }
  .jc-title {
    font-size: 1.2rem !important;
  }
  .jc-arrow {
    opacity: 1 !important;
    transform: translateY(0) !important;
    margin-top: 0.4rem !important;
    font-size: 0.8rem !important;
  }

  /* Mobile Payment Method Grid */
  .payment-method-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* Tablet & Mobile Nav Collapse (max-width: 991.98px) */
@media (max-width: 991.98px) {
  :root {
    --header-height: 68px;
  }

  .navbar-collapse {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 18px;
    margin-top: 12px;
    box-shadow: 0 16px 36px rgba(18, 56, 91, 0.14);
    border: 1px solid rgba(18, 56, 91, 0.08);
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow-y: auto;
  }

  .navbar-nav .nav-link {
    padding: 10px 14px !important;
    font-size: 0.98rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .navbar-nav .dropdown-menu {
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    background: #f8fafc;
    margin: 4px 0 8px 12px;
    border-radius: 10px !important;
  }

  .btn-nav-donate {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    font-size: 1.05rem;
    border-radius: 10px;
  }
}

/* Extra Small Devices (max-width: 380px) */
@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 1.65rem;
  }

  .blood-stat-card strong {
    font-size: 1.15rem;
  }

  .donor-card .btn {
    font-size: 0.72rem;
    padding: 6px 4px;
  }

  .floating-donate-btn,
  .floating-blood-sos {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .sos-text {
    font-size: 0.8rem;
  }
}

/* Global Mobile Touch Target Optimization */
button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Prevent horizontal overflow across all mobile screens */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   GOOGLE TRANSLATE STEALTH / HIDDEN BANNER & TOOLTIP
   ========================================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe[class*="goog-te-banner"],
iframe[class*="VIpgJd-ZVi9od"],
iframe.VIpgJd-ZVi9od-ORHb-OEVmKc,
.VIpgJd-ZVi9od-ORHb-OEVmKc,
.VIpgJd-ZVi9od-ORHb-OEVmKc-WabWsf,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-y6EKec,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  max-height: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  z-index: -9999 !important;
}

html, body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

.goog-text-highlight,
font.goog-text-highlight,
font[style*="background-color"] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

#google_translate_element,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-logo-link {
  display: none !important;
}

body > iframe[style*="visibility: visible"],
body > iframe[style*="height: 40px"],
body > iframe[style*="height: 39px"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
