/* ==========================================================================
   ASHAR BINDU BLOOD FOUNDATION — PREMIUM HEALTHCARE DESIGN SYSTEM
   ========================================================================== */

:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: #fef2f2;
  --primary-border: #fee2e2;
  --primary-dark: #991b1b;
  
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --secondary-light: #f0f9ff;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  
  --dark: #0f172a;
  --dark-light: #1e293b;
  --slate: #475569;
  --slate-light: #64748b;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-red: 0 10px 25px -5px rgba(220, 38, 38, 0.25);
  
  --font-main: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', 'Kalpurush', 'Siyam Rupali', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', 'Kalpurush', 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--dark);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Container */
.container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-fluid {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.header-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  color: var(--primary);
  font-weight: 800;
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate-light);
  white-space: nowrap;
}

.header-sticky .container {
  max-width: 1440px;
  width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(0.5rem, 1.1vw, 1.25rem);
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  position: relative;
  padding: 8px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  word-break: keep-all;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 4px;
}

/* Dropdown Navigation System */
.nav-item-has-dropdown {
  position: relative;
}

.nav-dropdown-arrow {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-item-has-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.8);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item-has-dropdown:hover .nav-dropdown-menu,
.nav-item-has-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--slate);
  transition: all 0.18s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: #f8fafc;
  color: var(--primary);
  transform: translateX(3px);
}

.nav-dropdown-item i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-dropdown-item .dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
  line-height: 1.3;
}

.nav-dropdown-item:hover .dropdown-item-title,
.nav-dropdown-item.active .dropdown-item-title {
  color: var(--primary);
}

.nav-dropdown-item .dropdown-item-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  line-height: 1.2;
  margin-top: 1px;
}

@media (max-width: 1380px) {
  .brand-subtitle {
    display: none !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap !important;
  padding: 7px 14px;
  font-size: 0.88rem;
}

.search-trigger-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: white;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-trigger-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.hamburger-btn {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 10px;
  color: var(--dark);
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  max-height: 100vh;
  background: #ffffff;
  z-index: 99995;
  transform: translate3d(100%, 0, 0) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.mobile-drawer.active {
  transform: translate3d(0, 0, 0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (min-width: 1081px) {
  .mobile-drawer,
  .mobile-drawer-overlay,
  .hamburger-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translate3d(100%, 0, 0) !important;
  }
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 1.25rem;
  cursor: pointer;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.drawer-close:hover,
.drawer-close:active {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #fef2f2;
  color: #dc2626;
}

.mobile-nav-link i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px 0 rgba(220, 38, 38, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: white;
  color: var(--dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--border-light);
  border-color: #cbd5e1;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white !important;
}

.btn-success {
  background-color: var(--success);
  color: white !important;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: var(--danger);
  color: white !important;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-emergency {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white !important;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-red);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-blood {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
}

.badge-available {
  background: var(--success-light);
  color: #065f46;
  border: 1px solid var(--success-border);
}

.badge-unavailable {
  background: #f1f5f9;
  color: var(--slate);
  border: 1px solid var(--border);
}

.badge-urgent {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  animation: pulse-subtle 1.5s infinite;
}

.badge-verified {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 45%, #f8fafc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.hero-tag .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-default-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(220, 38, 38, 0.08));
  transition: transform 0.3s ease;
}

.hero-default-img:hover {
  transform: scale(1.02);
}

.hero-custom-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  max-height: 440px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.hero-lottie-wrapper {
  width: 100%;
  max-width: 650px;
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hero-lottie-embed-wrapper {
  width: 100%;
  max-width: 650px;
  height: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.hero-lottie-embed-iframe {
  width: 100%;
  max-width: 650px;
  height: 520px;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  overflow: hidden !important;
  display: block;
  transform: scale(1.6);
  transform-origin: center center;
}

lottie-player,
dotlottie-player {
  width: 100% !important;
  max-width: 650px !important;
  height: 520px !important;
  transform: scale(1.35);
  transform-origin: center center;
}

@media (max-width: 768px) {
  .hero-lottie-wrapper,
  .hero-lottie-embed-wrapper {
    height: 380px;
    max-width: 100%;
  }
  .hero-lottie-embed-iframe {
    max-width: 100%;
    height: 360px;
    transform: scale(1.35);
  }
  lottie-player,
  dotlottie-player {
    max-width: 100% !important;
    height: 360px !important;
    transform: scale(1.2);
  }
}

.hero-video-wrapper {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-video-player {
  width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
  border-radius: 20px;
  outline: none;
  background: #000;
}

.hero-embed-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  background: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-embed-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}

/* Quick Search Card */
.search-card-wrapper {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}

.search-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}

.form-control, .form-select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background-color: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: white;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate);
}

/* Blood Group Cards */
.blood-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 1.25rem;
}

.blood-group-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.blood-group-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.blood-group-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  border: 1px solid var(--primary-border);
  transition: var(--transition);
}

.blood-group-card:hover .blood-group-circle {
  background: var(--primary);
  color: white;
  transform: scale(1.08);
}

.blood-group-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.blood-group-count {
  font-size: 0.85rem;
  color: var(--slate-light);
  font-weight: 500;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  margin-top: 4px;
}

/* ==========================================================================
   PREMIUM ANIMATED LIVE EFFECTS DONOR CARD (100% FLUID RESPONSIVE)
   ========================================================================== */
.donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  width: 100%;
}

.donor-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: clamp(14px, 3vw, 20px);
  padding: clamp(1rem, 3.5vw, 1.5rem);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Radiant top accent bar on card */
.donor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #dc2626 0%, #f43f5e 50%, #fb7185 100%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

/* Premium hover effect */
.donor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -6px rgba(220, 38, 38, 0.12), 0 0 0 1.5px rgba(220, 38, 38, 0.22);
  border-color: rgba(220, 38, 38, 0.28);
}

.donor-card:hover::before {
  height: 5px;
  opacity: 1;
}

/* Card Header: 100% Flex & Zero Overlap */
.donor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(8px, 2.5vw, 12px);
  margin-bottom: 1rem;
  width: 100%;
  min-width: 0;
  position: relative;
}

.donor-card-top {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 2.5vw, 12px);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.donor-avatar-wrap {
  width: clamp(48px, 12vw, 62px);
  height: clamp(48px, 12vw, 62px);
  min-width: clamp(48px, 12vw, 62px);
  max-width: clamp(48px, 12vw, 62px);
  min-height: clamp(48px, 12vw, 62px);
  max-height: clamp(48px, 12vw, 62px);
  border-radius: 50%;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.15);
  transition: transform 0.3s ease;
}

.donor-card:hover .donor-avatar-wrap {
  transform: scale(1.06) rotate(2deg);
}

.donor-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.donor-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.donor-name {
  font-size: clamp(0.95rem, 3.2vw, 1.12rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.donor-name a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.donor-name a:hover {
  color: #dc2626;
}

.donor-blood-badge {
  position: static !important;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(0.85rem, 2.4vw, 0.95rem);
  padding: 4px clamp(8px, 2vw, 12px);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  align-self: flex-start;
  margin: 0;
}

/* Live Pulsing Dot Animation on Available Badge */
@keyframes livePulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.badge-available .pulse-live-dot,
.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 5px;
  animation: livePulseGreen 1.8s infinite;
  vertical-align: middle;
}

/* Info Box: 100% Text Visible, Clean Spacing & Icon Colors */
.donor-info-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: clamp(0.82rem, 2.4vw, 0.88rem);
  color: #334155;
  margin-bottom: 1.15rem;
  padding: clamp(0.75rem, 2.5vw, 0.9rem) clamp(0.8rem, 2.8vw, 1rem);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
}

.donor-info-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 2vw, 9px);
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.donor-info-item i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: clamp(0.85rem, 2.4vw, 0.92rem);
  width: 16px;
  text-align: center;
}

.donor-info-item .item-loc {
  color: #e11d48;
}

.donor-info-item .item-phone {
  color: #16a34a;
}

.donor-info-item .item-donations {
  color: #7c3aed;
}

.donor-info-item .item-history {
  color: #0284c7;
}

.donor-info-item span,
.donor-info-item a {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.donor-card-actions {
  margin-top: auto;
  width: 100%;
}

.donor-card-actions .btn-primary,
.donor-card-actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  font-size: clamp(0.88rem, 2.5vw, 0.92rem);
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.donor-card-actions .btn-primary:hover,
.donor-card-actions .btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

/* Blood Request Card */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.request-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.request-card.urgent-border {
  border-left: 4px solid var(--primary);
}

.request-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.request-blood-badge {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1.5px solid var(--primary-border);
  padding: 4px 14px;
  border-radius: var(--radius-md);
}

.request-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.request-details-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-details-item svg {
  color: var(--slate-light);
  flex-shrink: 0;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

.step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0.5rem auto 1.25rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.step-card:hover .step-icon {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.2);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--slate-light);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner.emergency-theme {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.cta-banner-icon {
  width: 175px;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  animation: ctaDropsFloat 4.5s ease-in-out infinite;
}

@keyframes ctaDropsFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-2deg) scale(1.04);
  }
}

.cta-banner:hover .cta-banner-icon {
  transform: scale(1.12) translateY(-6px);
}

/* ==========================================================================
   LIVE EMERGENCY BEACON ANIMATIONS
   ========================================================================== */
.emergency-live-beacon-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emergency-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.75);
  animation: emergencyRipple 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}

.emergency-pulse-ring.ring-1 { animation-delay: 0s; }
.emergency-pulse-ring.ring-2 { animation-delay: 0.8s; }
.emergency-pulse-ring.ring-3 { animation-delay: 1.6s; }

@keyframes emergencyRipple {
  0% {
    transform: scale(0.6);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.95);
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
    border-color: rgba(254, 202, 202, 0);
  }
}

.emergency-live-badge {
  position: relative;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border: 2.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.25);
  animation: emergencyBadgeBeat 1.6s ease-in-out infinite alternate;
}

@keyframes emergencyBadgeBeat {
  0% {
    transform: scale(0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 15px 45px rgba(255, 255, 255, 0.5);
  }
}

.emergency-ambulance-live {
  animation: emergencyAmbulanceDrive 1.8s ease-in-out infinite alternate;
}

@keyframes emergencyAmbulanceDrive {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-5px) rotate(-4deg) scale(1.04);
  }
  100% {
    transform: translateY(3px) rotate(4deg) scale(0.98);
  }
}

.emergency-siren-flasher {
  position: absolute;
  top: 14px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 14px 6px #3b82f6;
  animation: sirenFlash 0.5s ease-in-out infinite alternate;
}

@keyframes sirenFlash {
  0% {
    background: #3b82f6;
    box-shadow: 0 0 14px 6px #3b82f6;
  }
  100% {
    background: #ef4444;
    box-shadow: 0 0 20px 8px #ef4444;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-title {
  color: #f87171;
}

.footer-brand .brand-subtitle {
  color: #94a3b8;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem;
  color: #94a3b8;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.92rem;
  color: #94a3b8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: white;
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #1e293b;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
}

.back-to-top-btn:hover {
  background: var(--primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.45);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    left: 16px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   MODAL & TOASTS & EMPTY STATES
   ========================================================================== */
.modal-overlay,
div[id*="Modal"],
div[id*="modal"] {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  transition: var(--transition);
}

.modal-overlay.active,
.modal-overlay.show,
div[id*="Modal"].active,
div[id*="modal"].active {
  opacity: 1;
  visibility: visible;
}

.modal-box,
.modal-content,
.modal-dialog {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--slate);
  cursor: pointer;
}

/* Toast System */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  animation: slideInRight 0.3s ease;
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--secondary); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border);
  grid-column: 1 / -1;
}

.empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.empty-desc {
  font-size: 0.95rem;
  color: var(--slate);
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE ALIGNMENT SYSTEM
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-menu, .header-actions .btn {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--border);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Container & Global Spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Header & Navigation */
  .navbar {
    height: 64px;
  }
  .brand-subtitle {
    display: none;
  }
  .search-trigger-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-icon img {
    width: 34px;
    height: 34px;
  }
  .brand-title {
    font-size: 1.05rem;
    line-height: 1.2;
  }
  .brand-subtitle {
    font-size: 0.7rem;
  }

  /* Mobile Drawer */
  .mobile-drawer {
    width: min(85vw, 320px);
    padding: 1.25rem 1rem;
  }
  .mobile-nav-list {
    gap: 4px;
  }
  .mobile-nav-link {
    padding: 11px 14px;
    font-size: 0.98rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mobile-nav-link i {
    width: 20px;
    text-align: center;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.25rem 0 2rem;
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-tag {
    font-size: 0.82rem;
    padding: 4px 12px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.75rem;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
  }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 1.25rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    height: 48px;
    font-size: 1.02rem;
  }
  .hero-visual {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .hero-media-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .hero-default-img,
  .hero-custom-img {
    max-width: 92%;
    margin: 0 auto;
    display: block;
  }
  .hero-video-player {
    max-height: 280px;
  }
  .hero-embed-wrapper {
    border-radius: 14px;
  }

  /* Sections */
  .section {
    padding: 2.75rem 0;
  }
  .section-title {
    font-size: 1.6rem;
    line-height: 1.35;
  }
  .section-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
  }

  /* Search Card */
  .search-card-wrapper {
    padding: 1.25rem;
    border-radius: 14px;
    margin-top: -1.25rem;
  }
  .search-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .form-control, .form-select {
    height: 48px;
    font-size: 16px; /* Prevents auto-zoom on iOS */
    border-radius: 10px;
  }
  .search-form-grid button[type="submit"] {
    width: 100%;
    height: 48px;
    font-size: 1.02rem;
  }

  /* Statistics Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 1rem 0.75rem;
    border-radius: 14px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 8px;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin: 0 auto;
  }
  .stat-number {
    font-size: 1.45rem;
  }
  .stat-label {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  /* Blood Groups Grid */
  .blood-groups-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .blood-group-card {
    padding: 1rem 0.75rem;
    border-radius: 14px;
  }
  .blood-group-circle {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }
  .blood-group-name {
    font-size: 0.95rem;
  }
  .blood-group-count {
    font-size: 0.82rem;
  }

  /* Donors Grid */
  .donors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }
  .donor-card {
    padding: clamp(0.95rem, 3vw, 1.25rem);
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .donor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.85rem;
    width: 100%;
  }
  .donor-blood-badge {
    position: static !important;
    font-size: 0.88rem;
    padding: 3px 10px;
    flex-shrink: 0;
    align-self: flex-start;
  }
  .donor-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
  }
  .donor-avatar-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    max-height: 48px;
    flex-shrink: 0;
  }
  .donor-meta {
    flex: 1 1 auto;
    min-width: 0;
  }
  .donor-meta .donor-name {
    font-size: 1rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    gap: 5px;
  }
  .donor-info-list {
    gap: 6px;
    font-size: 0.85rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
  }
  .donor-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .donor-info-item i {
    width: 16px;
    text-align: center;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
  }
  .donor-info-item span,
  .donor-info-item a {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .donor-card-actions {
    margin-top: auto;
    width: 100%;
  }
  .donor-card-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  /* How it works */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .step-card {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    text-align: center;
  }

  /* CTA Banners */
  .cta-banner {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .cta-grid h2 {
    font-size: 1.75rem !important;
  }
  .cta-grid p {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }
  .cta-grid div[style*="display:flex"] {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
  }
  .cta-grid .btn {
    width: 100%;
    justify-content: center;
    height: 48px;
  }

  /* Compact 2-Column / 2-Line Footer on Mobile */
  .footer {
    padding: 2.25rem 0 1.25rem !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.75rem 1.25rem !important;
    margin-bottom: 2rem !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
    margin-bottom: 0.25rem !important;
    text-align: left !important;
  }
  .footer-brand .brand-logo {
    margin-bottom: 0.5rem !important;
  }
  .footer-desc {
    font-size: 0.88rem !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.5 !important;
  }
  .footer-heading {
    font-size: 0.98rem !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 5px !important;
    border-bottom: 2px solid rgba(220, 38, 38, 0.4) !important;
  }
  .footer-links {
    gap: 8px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .footer-link {
    font-size: 0.85rem !important;
    padding: 2px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .footer-link i {
    font-size: 0.65rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
    padding-top: 1.25rem !important;
    font-size: 0.82rem !important;
  }

  /* Modal Universal Mobile Touch & Scroll */
  .modal-overlay,
  div[id*="Modal"],
  div[id*="modal"] {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 12px 10px calc(110px + env(safe-area-inset-bottom, 24px)) 10px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    z-index: 99999 !important;
  }

  /* When modal is hidden, respect display:none */
  .modal-overlay:not(.active):not(.show):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: block"]):not([style*="display:block"]),
  div[id*="Modal"][style*="display: none"],
  div[id*="Modal"][style*="display:none"],
  div[id*="modal"][style*="display: none"],
  div[id*="modal"][style*="display:none"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .modal-box,
  .modal-content,
  .modal-dialog,
  div[id*="Modal"] > div,
  div[id*="modal"] > div,
  .modal-overlay > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 2rem auto !important;
    padding: 1.25rem 1rem 2rem 1rem !important;
    border-radius: 16px !important;
    max-height: none !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  /* Card boxes and form padding on mobile */
  .card-box {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* Universal Form Input Full Width & Mobile Spacing */
  .form-group {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
  }
  .form-control,
  .form-select,
  textarea.form-control,
  input.form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  /* Universal Responsive Grid & Form Collapse */
  .form-grid-2col,
  .page-2col-grid,
  .contact-page-grid,
  .grid-2col,
  .grid-3col,
  .grid-4col,
  .admin-grid-2,
  .details-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* 2-column elements that fit nicely on mobile */
  .stats-grid,
  .blood-groups-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .volunteer-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  .blood-groups-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   FULL SITE PRELOADER & INTRO LOADING ANIMATION
   ========================================================================== */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.site-preloader.hidden {
  display: none !important;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 360px;
  padding: 2rem;
  position: relative;
}

.preloader-blood-pulse {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.blood-drop-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  z-index: 2;
  animation: preloaderHeartbeat 1.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(220, 38, 38, 0.6);
  pointer-events: none;
}

.pulse-ring.ring-1 {
  width: 76px;
  height: 76px;
  animation: preloaderRipple 1.8s infinite ease-out;
}

.pulse-ring.ring-2 {
  width: 90px;
  height: 90px;
  animation: preloaderRipple 1.8s infinite ease-out 0.6s;
}

@keyframes preloaderHeartbeat {
  0% {
    transform: scale(0.95);
  }
  15% {
    transform: scale(1.12);
  }
  30% {
    transform: scale(0.98);
  }
  45% {
    transform: scale(1.08);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(0.95);
  }
}

@keyframes preloaderRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.preloader-brand {
  margin-bottom: 1.25rem;
}

.preloader-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.preloader-subtitle {
  display: block;
  font-size: 0.88rem;
  color: var(--slate-light);
  font-weight: 500;
}

.preloader-progress-bar {
  width: 160px;
  height: 4px;
  background: rgba(220, 38, 38, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  border-radius: var(--radius-full);
  animation: preloaderBarSlide 1.5s infinite ease-in-out;
}

@keyframes preloaderBarSlide {
  0% {
    left: -50%;
    width: 30%;
  }
  50% {
    left: 25%;
    width: 60%;
  }
  100% {
    left: 100%;
    width: 30%;
  }
}

/* ==========================================================================
   HOMEPAGE NOTICE / POPUP MODAL
   ========================================================================== */
.notice-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 1.25rem;
}

.notice-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notice-popup-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  position: relative;
  transform: translateY(25px) scale(0.94);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.notice-popup-overlay.active .notice-popup-modal {
  transform: translateY(0) scale(1);
}

.notice-popup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.notice-popup-close-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: rotate(90deg);
}

.notice-popup-banner {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  background: #f8fafc;
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-popup-banner img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.notice-popup-body {
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
}

.notice-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border: 1px solid #fee2e2;
}

.notice-popup-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.notice-popup-message {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  white-space: pre-line;
  text-align: left;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.notice-popup-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-popup-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  height: 46px;
}

@media (max-width: 576px) {
  .notice-popup-modal {
    max-width: 100%;
    border-radius: 16px;
  }
  .notice-popup-body {
    padding: 1.25rem 1rem 1.25rem;
  }
  .notice-popup-title {
    font-size: 1.2rem;
  }
  .notice-popup-message {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
  }
  .notice-popup-actions {
    flex-direction: column;
  }
  .notice-popup-actions .btn {
    width: 100%;
  }
}

/* Multi-Popup Carousel & Slider Styles */
.multi-popup-slider-wrap {
  position: relative;
  width: 100%;
}

.multi-popup-slide {
  display: none;
  animation: popupSlideFade 0.3s ease-out;
}

.multi-popup-slide.active {
  display: block;
}

@keyframes popupSlideFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.notice-popup-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 8px;
}

.multi-popup-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.popup-nav-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 12;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.popup-nav-arrow:hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.popup-prev-btn {
  left: 10px;
}

.popup-next-btn {
  right: 10px;
}

.multi-popup-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-bottom: 1.25rem;
}

.popup-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.popup-dot-btn.active {
  background: #dc2626;
  width: 24px;
  border-radius: 10px;
}

/* ==========================================================================
   SCROLL REVEAL & PAGE ANIMATION SYSTEM (DESKTOP & MOBILE)
   ========================================================================== */
.scroll-reveal,
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible,
[data-animate].is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Directional Variations */
[data-animate="fade-left"] {
  transform: translateX(-40px);
}
[data-animate="fade-right"] {
  transform: translateX(40px);
}
[data-animate="zoom-in"] {
  transform: scale(0.92);
}
[data-animate="fade-down"] {
  transform: translateY(-30px);
}

[data-animate="fade-left"].is-visible,
[data-animate="fade-right"].is-visible,
[data-animate="fade-down"].is-visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

[data-animate="zoom-in"].is-visible {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Stagger animation delays for grid items */
.stagger-1 { transition-delay: 60ms !important; }
.stagger-2 { transition-delay: 120ms !important; }
.stagger-3 { transition-delay: 180ms !important; }
.stagger-4 { transition-delay: 240ms !important; }
.stagger-5 { transition-delay: 300ms !important; }
.stagger-6 { transition-delay: 360ms !important; }
.stagger-7 { transition-delay: 420ms !important; }
.stagger-8 { transition-delay: 480ms !important; }

/* Global automatic scroll animation for all sections, cards, and banners across all pages */
.section-header,
.stat-card,
.blood-group-card,
.donor-card,
.step-card,
.cta-banner,
.search-card-wrapper,
.faq-item,
.auth-card,
.card-box,
.profile-card,
.donor-table-wrapper {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.section-header.is-visible,
.stat-card.is-visible,
.blood-group-card.is-visible,
.donor-card.is-visible,
.step-card.is-visible,
.cta-banner.is-visible,
.search-card-wrapper.is-visible,
.faq-item.is-visible,
.auth-card.is-visible,
.card-box.is-visible,
.profile-card.is-visible,
.volunteer-card.is-visible,
.donor-table-wrapper.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .scroll-reveal,
  [data-animate],
  .section-header,
  .stat-card,
  .blood-group-card,
  .donor-card,
  .step-card,
  .cta-banner,
  .search-card-wrapper,
  .faq-item,
  .auth-card,
  .card-box,
  .profile-card,
  .volunteer-card,
  .donor-table-wrapper {
    transition-duration: 0.55s;
    transform: translateY(20px);
  }

  [data-animate="fade-left"] { transform: translateX(-24px); }
  [data-animate="fade-right"] { transform: translateX(24px); }
}

/* Respect User's Reduced Motion Accessibility Preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  [data-animate],
  .section-header,
  .stat-card,
  .blood-group-card,
  .donor-card,
  .step-card,
  .cta-banner,
  .search-card-wrapper,
  .faq-item,
  .auth-card,
  .card-box,
  .profile-card,
  .volunteer-card,
  .donor-table-wrapper {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   VOLUNTEER & ASSOCIATE COMPONENTS
   ========================================================================== */
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.volunteer-card {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.volunteer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1), 0 8px 16px -6px rgba(220, 38, 38, 0.08);
}

.volunteer-avatar {
  transition: transform 0.3s ease;
}

.volunteer-card:hover .volunteer-avatar {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .volunteer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   BLOG READER & HEALTH ARTICLE STYLES (100% MOBILE-FRIENDLY)
   ========================================================================== */
.blog-details-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: #fff1f2;
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  color: #991b1b;
  font-weight: 500;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
}

.article-content th, .article-content td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
}

.article-content th {
  background: #f8fafc;
  font-weight: 700;
}

@media (max-width: 900px) {
  .blog-details-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .article-content {
    font-size: 0.98rem;
    line-height: 1.75;
  }
}

/* ==========================================================================
   MANDATORY WEB PUSH NOTIFICATION POPUP MODAL STYLES (PC & MOBILE)
   ========================================================================== */
.push-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.push-modal-card {
  max-width: 480px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: modalPopUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopUp {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.push-modal-icon-wrapper {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 0 10px rgba(220, 38, 38, 0.12);
  animation: bellRingPulse 2s infinite ease-in-out;
}

@keyframes bellRingPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  20%, 60% {
    transform: scale(1.08) rotate(-12deg);
  }
  40%, 80% {
    transform: scale(1.08) rotate(12deg);
  }
}

.push-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.push-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.push-modal-desc {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.push-modal-features {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.push-modal-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.push-modal-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.4);
  transition: all 0.2s ease;
}

.push-modal-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(220, 38, 38, 0.5);
}

.push-modal-btn:active {
  transform: translateY(0);
}

.push-modal-footer-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.85rem;
  margin-bottom: 0;
  line-height: 1.4;
}

@media (max-width: 576px) {
  .push-modal-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }
  .push-modal-icon-wrapper {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }
  .push-modal-title {
    font-size: 1.25rem;
  }
  .push-modal-desc {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   GLOBAL BULLETPROOF AVATAR & MOBILE APP SIZING CLAMPS
   ========================================================================== */
img.user-header-avatar,
.user-header-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 2px solid #dc2626 !important;
  flex-shrink: 0 !important;
}

.user-hero-avatar-box {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.user-hero-avatar-box img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

img.mobile-nav-avatar,
.mobile-nav-avatar {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   WELCOME VOICE-OVER FLOATING WIDGET & EQUALIZER STYLES
   ========================================================================== */
.welcome-voice-container {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 99980;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.welcome-voice-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45), 0 2px 8px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  outline: none;
}

.welcome-voice-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.6);
}

.welcome-voice-btn.is-muted {
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.welcome-voice-btn.pulse-glow {
  animation: voiceWidgetPulse 2s infinite;
}

@keyframes voiceWidgetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7), 0 8px 22px rgba(217, 119, 6, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(245, 158, 11, 0), 0 8px 22px rgba(217, 119, 6, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 8px 22px rgba(217, 119, 6, 0.45);
  }
}

.voice-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.voice-icon-wrap {
  font-size: 1.15rem;
  line-height: 1;
}

.welcome-voice-btn.is-playing .voice-icon-wrap {
  display: none;
}

/* Sound Equalizer Waves */
.voice-equalizer {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  height: 18px;
}

.welcome-voice-btn.is-playing .voice-equalizer {
  display: flex;
}

.voice-equalizer .bar {
  width: 3px;
  background: #ffffff;
  border-radius: 2px;
  animation: eqBarJump 0.8s ease-in-out infinite alternate;
}

.voice-equalizer .bar-1 { height: 8px; animation-delay: 0.1s; }
.voice-equalizer .bar-2 { height: 16px; animation-delay: 0.3s; }
.voice-equalizer .bar-3 { height: 12px; animation-delay: 0.15s; }
.voice-equalizer .bar-4 { height: 14px; animation-delay: 0.4s; }

@keyframes eqBarJump {
  0% {
    height: 4px;
    opacity: 0.6;
  }
  100% {
    height: 18px;
    opacity: 1;
  }
}

/* Tooltip Badge on Hover */
.welcome-voice-btn .voice-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #0f172a;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.welcome-voice-btn .voice-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

.welcome-voice-btn:hover .voice-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Helper Prompt Speech Bubble */
.welcome-voice-prompt {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 7px 12px 7px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-voice-prompt.show {
  opacity: 1;
  transform: translateY(0);
}

.welcome-voice-prompt .prompt-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fecaca;
}

.welcome-voice-prompt .prompt-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.welcome-voice-prompt .prompt-close:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .welcome-voice-container {
    bottom: 138px !important;
    right: 18px !important;
  }
  .welcome-voice-btn {
    width: 44px;
    height: 44px;
  }
  .welcome-voice-btn .voice-tooltip {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE FORM GRIDS & DONATION STEPPER CONTROLS (MOBILE OPTIMIZED)
   ========================================================================== */
.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 1.1rem !important;
  }
}

.donation-stepper-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 4px 6px;
}

.donation-stepper-box .stepper-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.donation-stepper-box .stepper-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.donation-stepper-box input[type="number"] {
  width: 75px;
  min-width: 65px;
  max-width: 85px;
  height: 42px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #991b1b;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 4px;
}

/* Dynamic Doctor Builder Form Styles */
.doctor-input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
}

@media (max-width: 768px) {
  .doctor-input-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .doctor-input-row > div:last-child {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
  }
}

/* ==========================================================================
   DONOR PROFILE & DETAILS RESPONSIVE LAYOUT (MOBILE OPTIMIZED)
   ========================================================================== */
.donor-profile-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

@media (min-width: 992px) {
  .donor-profile-layout-grid {
    grid-template-columns: 340px 1fr;
    gap: 2rem;
  }
}

.blood-request-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

@media (min-width: 992px) {
  .blood-request-details-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .donor-profile-layout-grid .card-box {
    padding: 1.25rem 1rem !important;
  }
}

/* ==========================================================================
   UNBREAKABLE UNIVERSAL RESPONSIVE ENGINE (UURE)
   Auto-adapts layout from 280px (Foldables) to 4K Ultra-Wide without breaking
   ========================================================================== */

/* 1. Global Box-Sizing & Overflow Safety */
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 2. Text & Typography Overflow Shield */
h1, h2, h3, h4, h5, h6, p, span, a, label, li, td, th, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Icon Preservation */
i, .fas, .fab, .far, svg {
  flex-shrink: 0;
}

/* 3. Media & Embedded Content Fluidity */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100% !important;
  height: auto;
}

/* 4. Form Controls & Buttons Fluidity */
input, select, textarea, button, .form-control, .form-select, .btn {
  max-width: 100%;
  box-sizing: border-box;
}

/* 5. Responsive Tables */
.table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 6. Universal Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .doctors-grid-2col,
  .featured-blog-grid,
  .donor-profile-layout-grid,
  .blood-request-details-grid {
    grid-template-columns: 1fr !important;
  }

  /* All search & filter forms stack fluidly on mobile */
  .search-form-grid,
  .filter-form,
  .search-form,
  .location-cascade-form,
  form[style*="display:grid"],
  form[style*="display: grid"],
  form[style*="grid-template-columns:2fr 1fr auto"],
  form[style*="grid-template-columns: 2fr 1fr auto"],
  .card-box form[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .search-form-grid > *,
  .filter-form > *,
  form[style*="grid-template-columns"] > * {
    width: 100% !important;
    min-width: 100% !important;
  }

  .container,
  .container-fluid {
    padding-left: clamp(10px, 3.5vw, 18px) !important;
    padding-right: clamp(10px, 3.5vw, 18px) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .card-box,
  .doctor-profile-card,
  .donor-card,
  .hospital-card,
  .blog-card,
  .request-card {
    padding: clamp(0.9rem, 3.2vw, 1.25rem) !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .doctor-profile-card {
    flex-direction: column !important;
  }

  .doctor-card-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .doctor-avatar-circle {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }

  .doc-badge,
  .badge {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    font-size: clamp(0.72rem, 2.2vw, 0.8rem) !important;
    padding: 3px clamp(6px, 1.8vw, 10px) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .btn {
    min-height: 44px !important;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important;
    border-radius: 10px !important;
  }

  h1 { font-size: clamp(1.4rem, 5.5vw, 2.1rem) !important; }
  h2 { font-size: clamp(1.2rem, 4.5vw, 1.65rem) !important; }
  h3 { font-size: clamp(1.05rem, 3.8vw, 1.35rem) !important; }
}

/* 7. Extra-Small Screens (<= 480px) */
@media (max-width: 480px) {
  .doctor-card-header {
    gap: 8px !important;
  }
  .doctor-avatar-circle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  .btn-lg {
    padding: 0.75rem 1rem !important;
    font-size: 0.92rem !important;
  }
  .modal-dialog {
    margin: 8px !important;
    max-width: calc(100vw - 16px) !important;
  }
}

/* ==========================================================================
   ULTRA-FAST MOBILE PERFORMANCE & GPU ACCELERATION
   ========================================================================== */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Eliminate 300ms mobile touch delay */
a, button, input, select, textarea, .btn, .nav-link, .badge, .faq-question, .abf-slider-btn {
  touch-action: manipulation;
}

/* GPU Hardware Acceleration for smooth sliding on mobile */
.abf-carousel-track,
.abf-carousel-card,
.card-box,
.donor-card,
.sponsor-card,
.sticky-header {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Modern Content Visibility for below-the-fold elements */
@supports (content-visibility: auto) {
  .section:nth-of-type(n+4),
  .footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
  }
}

/* Smooth Touch Momentum Scrolling */
.abf-carousel-container,
.mobile-drawer,
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Universal Mobile Carousel & Gallery Touch Responsiveness */
.abf-carousel-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.abf-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media (max-width: 768px) {
  .abf-slider-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }
  .camp-photo-card {
    height: 220px !important;
  }
  .camp-photo-card .camp-hover-overlay {
    padding: 1rem !important;
  }
}

@media (max-width: 480px) {
  .abf-slider-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
  }
  .camp-photo-card {
    height: 200px !important;
  }
}

/* ==========================================================================
   MOBILE APP BOTTOM NAVIGATION BAR (UNIVERSAL PWA & USER PANEL)
   ========================================================================== */
.mobile-app-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-app-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 -4px 25px rgba(15, 23, 42, 0.08) !important;
    z-index: 1050 !important;
    align-items: flex-start !important;
    justify-content: space-around !important;
    flex-direction: row !important;
    padding: 6px 0 env(safe-area-inset-bottom, 0px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1 1 0% !important;
    max-width: 20% !important;
    width: 20% !important;
    height: 100% !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item:active {
    color: #dc2626 !important;
  }

  .mobile-nav-item.active {
    color: #dc2626 !important;
    font-weight: 700 !important;
  }

  .mobile-nav-icon-wrap {
    font-size: 1.18rem !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    overflow: visible !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }

  .mobile-nav-item.active .mobile-nav-icon-wrap {
    transform: translateY(-2px);
  }

  .mobile-nav-avatar,
  img.mobile-nav-avatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid #cbd5e1 !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  .mobile-nav-item.active .mobile-nav-avatar {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25) !important;
  }

  .mobile-nav-center .mobile-nav-center-bubble {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    margin-top: -18px !important;
    margin-bottom: 2px !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45) !important;
    border: 3.5px solid #ffffff !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .mobile-nav-item.active .mobile-nav-center-bubble {
    transform: scale(1.1) !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.6) !important;
  }

  .mobile-nav-label {
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    text-align: center !important;
    color: inherit !important;
    margin-top: 1px !important;
  }
}

/* ==========================================================================
   ULTRA-PREMIUM SPONSOR ADS & PROMOTIONAL SHOWCASE
   ========================================================================== */
.abf-sponsor-ad-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, #fff7f7 45%, #fff1f2 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.28);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 10px 28px -6px rgba(225, 29, 72, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.abf-sponsor-ad-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 16px 36px -6px rgba(225, 29, 72, 0.18), 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Ambient Radial Corner Glow */
.abf-sponsor-ad-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, rgba(244, 63, 94, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle Shimmer Ray */
.abf-sponsor-ad-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: abfAdShimmer 6s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes abfAdShimmer {
  0% { left: -150%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

/* Ad Header */
.abf-ad-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(244, 63, 94, 0.2);
  gap: 8px;
}

.abf-ad-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.abf-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 800;
  color: #be123c;
  background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  text-transform: uppercase;
}

.abf-ad-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #e11d48;
  border-radius: 50%;
  display: inline-block;
  animation: abfAdPulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes abfAdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.abf-ad-sponsor-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.abf-ad-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.abf-ad-close-btn {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.6);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.abf-ad-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

/* Ad Body */
.abf-ad-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.abf-ad-media-link {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(244, 63, 94, 0.25) !important;
  background: #ffffff !important;
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  height: 75px !important;
  min-height: 75px !important;
  max-height: 75px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  padding: 3px !important;
  box-sizing: border-box !important;
}

.abf-ad-media-link:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.18) !important;
}

.abf-ad-media-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 112px !important;
  max-height: 67px !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
}

.abf-ad-info {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  box-sizing: border-box;
}

.abf-ad-title-link {
  text-decoration: none;
  display: block;
}

.abf-ad-title {
  margin: 0 0 4px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.abf-ad-title-link:hover .abf-ad-title {
  color: #e11d48;
}

.abf-ad-subtext {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.abf-ad-cta-wrap {
  flex-shrink: 0;
  margin-left: auto;
}

.abf-ad-btn {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
}

.abf-ad-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.45);
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.abf-ad-btn i {
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

.abf-ad-btn:hover i {
  transform: translateX(4px);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .abf-sponsor-ad-card {
    padding: 12px 14px;
    border-radius: 14px;
  }
  
  .abf-ad-body {
    gap: 12px;
  }
  
  .abf-ad-media-link {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
  }

  .abf-ad-media-img {
    max-width: 82px !important;
    max-height: 52px !important;
  }
  
  .abf-ad-info {
    min-width: 150px;
  }
  
  .abf-ad-title {
    font-size: 0.90rem;
  }
  
  .abf-ad-cta-wrap {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
  
  .abf-ad-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 0.88rem;
  }
}


