/* ==========================================================================
   SGPI RCY UNIT — Official Website Design System
   Sherpur Govt Polytechnic Institute Red Crescent Youth Unit
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Brand Colors */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-surface-elevated: #FFFFFF;

  /* Typography Colors */
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Borders & Dividers */
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #0EA5E9;

  /* Accents */
  --sky-blue: #0284C7;
  --sky-blue-hover: #0369A1;
  --sky-blue-light: #E0F2FE;
  --sky-blue-border: #BAE6FD;

  /* Red Crescent Accent */
  --rc-red: #DC2626;
  --rc-red-hover: #B91C1C;
  --rc-red-light: #FEF2F2;
  --rc-red-border: #FECACA;

  /* Status Tokens */
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --info: #0284C7;
  --info-light: #E0F2FE;

  /* Shadows (Minimal & Soft) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Spacing & Layout */
  --container-max: 1200px;
  --container-narrow: 840px;
  --header-height: 74px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --font-family: 'Plus Jakarta Sans', 'Noto Serif Bengali', 'Kalpurush', 'SolaimanLipi', serif;
  --font-bn: 'Noto Serif Bengali', 'Kalpurush', 'SolaimanLipi', serif;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-body);
  background-color: var(--bg-body);
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-bn);
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Bengali typography optimization */
.font-bn {
  font-family: var(--font-bn);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rc-red);
  background: var(--rc-red-light);
  border: 1px solid var(--rc-red-border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-eyebrow.sky {
  color: var(--sky-blue);
  background: var(--sky-blue-light);
  border-color: var(--sky-blue-border);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--sky-blue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--sky-blue-hover);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-red {
  background-color: var(--rc-red);
  color: #FFFFFF;
}

.btn-red:hover {
  background-color: var(--rc-red-hover);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-subtle);
  border-color: #CBD5E1;
}

.btn-outline-sky {
  background-color: transparent;
  color: var(--sky-blue);
  border: 1px solid var(--sky-blue);
}

.btn-outline-sky:hover {
  background-color: var(--sky-blue-light);
}

.btn-outline-red {
  background-color: transparent;
  color: var(--rc-red);
  border: 1px solid var(--rc-red);
}

.btn-outline-red:hover {
  background-color: var(--rc-red-light);
}

.btn-text {
  background: transparent;
  color: var(--sky-blue);
  padding: 0.5rem 0.75rem;
}

.btn-text:hover {
  color: var(--sky-blue-hover);
  text-decoration: underline;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.375rem 0.875rem;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.75rem 1.75rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-sky {
  background-color: var(--sky-blue-light);
  color: var(--sky-blue);
  border: 1px solid var(--sky-blue-border);
}

.badge-red {
  background-color: var(--rc-red-light);
  color: var(--rc-red);
  border: 1px solid var(--rc-red-border);
}

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

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid #FDE68A;
}

.badge-neutral {
  background-color: var(--bg-surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

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

.brand-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-title .red {
  color: var(--rc-red);
}

.brand-subtitle {
  font-size: 0.71875rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--sky-blue);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-heading);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-menu-btn:hover {
  background-color: var(--bg-surface-subtle);
}

/* Hero & Campus Full Background Wrapper */
.hero-campus-wrapper {
  position: relative;
  background-color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-campus-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(240, 249, 255, 0.65) 22%,
      rgba(255, 255, 255, 0.75) 48%,
      rgba(255, 255, 255, 0.90) 78%,
      #FFFFFF 100%
    ),
    url('../assets/images/sgpi-clg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.hero-campus-wrapper > * {
  position: relative;
  z-index: 2;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: transparent;
  padding: 4.5rem 0 2.25rem 0;
  border-bottom: none;
}

/* About Intro Section inside Campus Background */
.hero-about-section {
  position: relative;
  background: transparent;
  padding: 2.25rem 0 4.5rem 0;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-centered-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-centered-content .hero-buttons {
  justify-content: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(254, 242, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rc-red-border);
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rc-red);
  margin-bottom: 1.25rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--rc-red);
  box-shadow: 0 0 0 rgba(220, 38, 38, 0.4);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.hero-title {
  font-size: 2.625rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--sky-blue);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-body);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.hero-buttons .btn-red {
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  position: relative;
}

.hero-banner-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface-subtle);
}

.hero-floating-stat {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--rc-red-light);
  color: var(--rc-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}

.floating-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Cards & Grid Systems */
.grid-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .grid-cards-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

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

.grid-cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Standard Content Card */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  background-color: var(--bg-surface-subtle);
}

.card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-badge-pos {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 2;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a:hover {
  color: var(--sky-blue);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Activity Feature Cards */
.activity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-card:hover {
  border-color: var(--sky-blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.activity-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.activity-icon.red {
  background-color: var(--rc-red-light);
  color: var(--rc-red);
}

.activity-icon.sky {
  background-color: var(--sky-blue-light);
  color: var(--sky-blue);
}

.activity-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-heading);
}

.activity-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Statistics Section */
.stats-section {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sky-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-number.red {
  color: var(--rc-red);
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.stat-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Gallery Grid & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #FFFFFF;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.gallery-overlay-category {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: #FFFFFF;
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
}

.lightbox-caption h4 {
  color: #FFFFFF;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  font-size: 0.875rem;
  color: #CBD5E1;
}

.lightbox-close-btn,
.lightbox-prev-btn,
.lightbox-next-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close-btn:hover,
.lightbox-prev-btn:hover,
.lightbox-next-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close-btn {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev-btn {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next-btn {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-pill {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4375rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: #CBD5E1;
  color: var(--text-heading);
}

.filter-pill.active {
  background-color: var(--sky-blue);
  color: #FFFFFF;
  border-color: var(--sky-blue);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* Search Bar */
.search-bar-wrap {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.625rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 0.9375rem;
  color: var(--text-heading);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px var(--sky-blue-light);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.375rem;
}

.form-label .required {
  color: var(--rc-red);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 0.9375rem;
  color: var(--text-heading);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px var(--sky-blue-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--rc-red);
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: var(--rc-red);
  background-color: var(--rc-red-light);
}

.form-group.has-error .form-error-msg {
  display: block;
}

/* Article / Blog Details Typography */
.article-header {
  margin-bottom: 2.5rem;
}

.article-title {
  font-size: 2.375rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-featured-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-light);
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1E293B;
}

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

.article-content h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 2.25rem 0 1rem 0;
}

.article-content h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 1.75rem 0 0.875rem 0;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

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

.article-content blockquote {
  border-left: 4px solid var(--sky-blue);
  background: var(--sky-blue-light);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-heading);
  margin: 1.5rem 0;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
  border: 1px solid var(--border-light);
}

.article-content a {
  color: #0284C7;
  font-weight: 600;
  text-decoration: none !important;
  word-break: break-word;
  transition: color var(--transition-fast);
}

.article-content a:hover {
  color: #0369A1;
  text-decoration: none !important;
}

/* Article Gallery Thumbnails */
.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.article-gallery-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.article-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform var(--transition-fast);
}

.article-gallery-thumb:hover img {
  transform: scale(1.05);
}

/* Social Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* Footer Styles matching Reference Theme */
.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2rem 0;
  margin-top: 4rem;
  scroll-margin-top: var(--header-height);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.footer-heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.625rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--sky-blue);
  border-radius: 2px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-link-list a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-link-list a:hover {
  color: var(--sky-blue);
  transform: translateX(3px);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-contact-clean {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.footer-contact-row a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-row a:hover {
  color: var(--sky-blue);
}

.footer-icon-circle {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-blue);
  flex-shrink: 0;
  margin-top: 1px;
}

.playstore-badge-link {
  display: inline-block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.playstore-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.playstore-badge-img {
  width: 168px;
  max-width: 100%;
  height: auto;
  border-radius: 7px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition-fast);
}

.playstore-badge-link:hover .playstore-badge-img {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.footer-social-circles {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Facebook (Official Blue) */
.social-circle-btn.facebook {
  background-color: #1877F2;
  color: #FFFFFF;
  border: 1.5px solid #166fe5;
}

.social-circle-btn.facebook:hover {
  background-color: #0d65d9;
  border-color: #0d65d9;
  color: #FFFFFF;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.45);
}

/* YouTube (Official Red) */
.social-circle-btn.youtube {
  background-color: #FF0000;
  color: #FFFFFF;
  border: 1.5px solid #e60000;
}

.social-circle-btn.youtube:hover {
  background-color: #cc0000;
  border-color: #cc0000;
  color: #FFFFFF;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.45);
}

/* WhatsApp (Official Green like original app icon) */
.social-circle-btn.whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  border: 1.5px solid #20bd5a;
}

.social-circle-btn.whatsapp:hover {
  background-color: #1da851;
  border-color: #1da851;
  color: #FFFFFF;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.footer-bottom {
  padding-top: 1.75rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-bottom p,
.footer-copyright {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.footer-bottom p a,
.footer-copyright a {
  color: var(--text-heading);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-bottom p a:hover,
.footer-copyright a:hover {
  color: var(--sky-blue);
}

/* Skeleton Loading Effect */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 70%;
  margin-bottom: 0.75rem;
}

.skeleton-card {
  height: 340px;
  border-radius: var(--radius-lg);
}

/* Toast Notifications Container */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

.toast {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.125rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.toast.hiding {
  opacity: 0;
  transform: translateY(-10px);
}

.toast-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--rc-red); }
.toast-info .toast-icon { color: var(--sky-blue); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.15rem;
}

.toast-msg {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.toast-close:hover {
  color: var(--text-heading);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  font-size: 2.75rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.empty-state-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1.25rem auto;
}

/* ==========================================================================
   Blood Foundation & Emergency Blood Highlight Styles
   ========================================================================== */

/* Header Blood Action Button */
.header-blood-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.375rem 0.85rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.header-blood-btn:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
  color: #FFFFFF !important;
}

.blood-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #FFFFFF;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Mobile Blood Link in Drawer */
.mobile-blood-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  border-radius: var(--radius-md);
  color: #FFFFFF !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transition: transform var(--transition-fast);
}

.mobile-blood-banner:active {
  transform: scale(0.98);
}

/* Hero Emergency Pill Badge */
.hero-emergency-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid var(--rc-red-border);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--text-heading);
  font-size: 0.875rem;
  transition: all var(--transition-normal);
}

.hero-emergency-pill:hover {
  background: rgba(220, 38, 38, 0.14);
  border-color: var(--rc-red);
  transform: translateY(-1px);
}

.emergency-pill-tag {
  background: var(--rc-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.emergency-pill-text {
  font-weight: 600;
  color: var(--text-body);
}

.emergency-pill-arrow {
  color: var(--rc-red);
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.hero-emergency-pill:hover .emergency-pill-arrow {
  transform: translateX(3px);
}

/* Floating Action Button (FAB) */
.floating-blood-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  animation: fab-float 3s ease-in-out infinite;
}

.floating-blood-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.55), 0 3px 8px rgba(0, 0, 0, 0.15);
  color: #FFFFFF !important;
}

.blood-fab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.blood-fab-badge {
  font-size: 0.625rem;
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

@keyframes fab-float {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.65), 0 4px 10px rgba(0, 0, 0, 0.15);
  }
}

/* Dedicated Emergency Blood Callout Banner Section (Light Theme) */
.blood-cta-section {
  padding: 4rem 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.blood-cta-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 60%, #FEF2F2 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  color: var(--text-heading);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--rc-red-border);
}

.blood-cta-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.blood-cta-content {
  flex: 1;
  max-width: 650px;
}

.blood-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rc-red);
  background: var(--rc-red-light);
  border: 1px solid var(--rc-red-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.blood-cta-eyebrow .live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--rc-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
  animation: pulse-dot 1.5s infinite;
}

.blood-cta-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.blood-cta-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.blood-cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.blood-badge-item {
  font-size: 0.8125rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.blood-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-blood-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: all var(--transition-normal);
}

.btn-blood-primary:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  color: #FFFFFF !important;
}

.btn-blood-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1.5px solid var(--rc-red-border);
  color: var(--rc-red) !important;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.btn-blood-outline:hover {
  background: var(--rc-red-light);
  border-color: var(--rc-red);
  transform: translateY(-2px);
  color: var(--rc-red) !important;
}

.blood-cta-art {
  flex-shrink: 0;
}

.blood-donor-highlight-box {
  background: #FFFFFF;
  border: 1.5px solid var(--rc-red-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.25rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
}

.blood-icon-circle {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border: 1.5px solid #FECACA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12);
  transition: transform 0.25s ease;
}

.blood-donor-highlight-box:hover .blood-icon-circle {
  transform: scale(1.08);
}

/* Activity Visual Boxes with High Quality Vector Icons */
.activity-visual-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .activity-visual-box {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.activity-visual-box.blood {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border: 1.5px solid #FECACA;
}

.activity-visual-box.medical {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1.5px solid #BBF7D0;
}

.activity-visual-box.disaster {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #BFDBFE;
}

.activity-visual-box.relief {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #FDE68A;
}

/* Activity Detail Cards & Action Buttons Responsive Layout */
.activity-action-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .activity-card-detail {
    padding: 1.5rem 1.25rem !important;
  }
  .activity-visual-box {
    display: none !important;
  }
  .activity-card-detail [style*="min-width: 280px"] {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .activity-card-detail {
    padding: 1.25rem 1rem !important;
  }
  .activity-card-detail [style*="min-width: 280px"] {
    min-width: 0 !important;
    width: 100% !important;
  }
  .activity-action-btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .activity-action-btns::-webkit-scrollbar {
    display: none;
  }
  .activity-action-btns .btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.785rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .activity-action-btns .btn-sm svg {
    width: 13px;
    height: 13px;
    margin-right: 3px !important;
  }
}

@media (max-width: 390px) {
  .activity-action-btns {
    gap: 0.35rem;
  }
  .activity-action-btns .btn-sm {
    padding: 0.35rem 0.48rem;
    font-size: 0.735rem;
  }
}

.blood-highlight-stat {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--rc-red);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.blood-highlight-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.blood-groups-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 220px;
}

.blood-groups-row span {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--rc-red-light);
  border: 1px solid var(--rc-red-border);
  color: var(--rc-red);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow-xs);
}

@media (max-width: 900px) {
  .blood-cta-card {
    flex-direction: column;
    padding: 2.25rem 1.75rem;
    text-align: center;
  }
  .blood-cta-eyebrow {
    margin: 0 auto 1.25rem auto;
  }
  .blood-cta-badges {
    justify-content: center;
  }
  .blood-cta-buttons {
    justify-content: center;
  }
  .blood-cta-art {
    width: 100%;
  }
  .blood-donor-highlight-box {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .floating-blood-fab {
    bottom: 1rem;
    right: 1rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.8125rem;
  }
  .blood-fab-badge {
    display: none;
  }
  .hero-emergency-pill {
    font-size: 0.8125rem;
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
  }
  .hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.625rem !important;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    justify-content: center;
  }
  .hero-buttons .btn {
    flex: 1 1 50% !important;
    padding: 0.68rem 0.5rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap !important;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .hero-buttons {
    gap: 0.35rem !important;
  }
  .hero-buttons .btn {
    padding: 0.6rem 0.35rem !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   Home Redesigned About Section (Reference Banner Card)
   ========================================================================== */
.about-ref-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  padding: 2.5rem 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  position: relative;
  z-index: 3;
}

/* Left: Visual Flag Image */
.about-ref-visual {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-ref-red-tab {
  position: absolute;
  left: -14px;
  top: 18px;
  bottom: 18px;
  width: 70px;
  background: #DC2626;
  border-radius: 36px 0 0 36px;
  z-index: 1;
}

.about-ref-img-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 44px 16px 44px 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  background-color: #F8FAFC;
}

.about-ref-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.about-ref-card:hover .about-ref-img {
  transform: scale(1.03);
}

.about-ref-swoosh {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 125px;
  height: 95px;
  z-index: 3;
  pointer-events: none;
}

/* Middle: Text Content */
.about-ref-content {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-ref-badge {
  display: inline-flex;
  align-items: center;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.about-ref-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin: 0 0 0.875rem 0;
  letter-spacing: -0.02em;
}

.about-ref-title .highlight-red {
  color: #DC2626;
}

.about-ref-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.about-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #DC2626;
  color: #FFFFFF;
  padding: 0.65rem 1.6rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.about-ref-btn:hover {
  background: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.38);
  color: #FFFFFF;
}

/* Vertical Divider */
.about-ref-divider {
  width: 1px;
  background-color: #E2E8F0;
  align-self: stretch;
  flex-shrink: 0;
  margin: 0.5rem 0.5rem;
}

/* Right: 4 Features */
.about-ref-features {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  flex: 0 0 290px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E0F2FE;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #BAE6FD;
  transition: transform 0.2s ease;
}

.about-feature-item:hover .about-feature-icon {
  transform: scale(1.08);
}

.about-feature-content {
  display: flex;
  flex-direction: column;
}

.about-feature-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
}

.about-feature-desc {
  font-size: 0.8125rem;
  color: #64748B;
  margin: 0.15rem 0 0 0;
  line-height: 1.4;
}

