/* ===================================================
   IYC KEERAMPARA - CLEAN PROFESSIONAL STYLESHEET
   Solid colors, Congress Tricolour Palette (Emerald + Saffron + Crimson), no emojis
   Continuous single-page layout with smooth scrolling
   =================================================== */

:root {
  --primary: #047857;          /* Congress Deep Emerald */
  --primary-dark: #065f46;
  --primary-light: #059669;
  --primary-soft: #f0fdf4;
  --saffron: #ea580c;          /* Congress Tricolour Saffron / Orange */
  --saffron-dark: #c2410c;
  --saffron-soft: #fff7ed;
  --saffron-border: #fed7aa;
  --blood: #b91c1c;            /* Solid Deep Crimson */
  --blood-dark: #991b1b;
  --blood-soft: #fef2f2;
  --text-main: #0f172a;        /* Slate 900 */
  --text-muted: #475569;       /* Slate 600 */
  --text-light: #64748b;
  --bg-page: #f8fafc;          /* Clean Slate 50 */
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 6px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* Offset for sticky floating pill nav */
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Floating Pill Navigation --- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  padding: 0 16px;
  margin-top: 8px;
}

.header-pill {
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  padding: 6px 14px 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-titles h1 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  line-height: 1.1;
}

.brand-titles p {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.nav-btn:hover {
  color: var(--primary);
  background: #f1f5f9;
}

.nav-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.nav-btn-membership {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
}

.nav-btn-membership:hover {
  background: var(--primary-dark) !important;
}

.mobile-toggle {
  display: none;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  padding: 6px 10px;
  background: #f1f5f9;
  border-radius: var(--radius);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 8px 16px 0;
  padding: 8px;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav button, .mobile-nav a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius);
}

.mobile-nav button.active {
  background: var(--primary);
  color: white;
}

/* --- Single Continuous Page Sections --- */
.page-section {
  display: block;
  padding: 36px 0 44px;
  border-bottom: 1px solid var(--border);
}

.page-section:last-of-type {
  border-bottom: none;
}


/* --- Quick Navigation Bar (NO EMOJIS) --- */
.quick-nav-bar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-nav-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.quick-nav-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-chip {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.quick-chip.chip-blood {
  background: var(--blood-soft);
  color: var(--blood);
  border-color: #fecaca;
}
.quick-chip.chip-blood:hover {
  background: #fee2e2;
}

.quick-chip.chip-saffron {
  background: var(--saffron-soft);
  color: var(--saffron);
  border-color: var(--saffron-border);
}
.quick-chip.chip-saffron:hover {
  background: #ffedd5;
}

.quick-chip.chip-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.quick-chip.chip-primary:hover {
  background: var(--primary-dark);
}

/* --- Empower Banner & Membership CTA at bottom of About Us --- */
.empower-banner {
  margin-top: 24px;
  background: #064e3b;
  color: white;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tagline-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #34d399;
}

.tagline-sub {
  font-size: 13px;
  color: #d1fae5;
  max-width: 600px;
  line-height: 1.5;
}

.btn-membership-accent {
  display: inline-block;
  background: #ffffff;
  color: #064e3b;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-membership-accent:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* --- Page & Section Headings --- */
.page-head {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.page-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #0f172a;
}

.page-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-head-saffron {
  border-bottom: 2px solid var(--saffron);
}

/* --- Blood Bank Red Theme Header --- */
.blood-hero {
  background: var(--blood);
  color: white;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.blood-hero h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.blood-hero p {
  color: #fecaca;
  font-size: 13px;
  max-width: 680px;
}

/* --- Grid Systems --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

/* --- Cards --- */
.card-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.block-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

/* --- Tab Toggle Bar --- */
.tab-toggle-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--primary);
  border-color: var(--border-strong);
}

.tab-btn.active-tab {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tab-btn-red.active-tab {
  background: var(--blood);
  color: white;
  border-color: var(--blood);
}

/* Saffron / Orange Congress Accent for Development Plans */
.tab-btn-saffron:hover {
  color: var(--saffron);
  border-color: var(--saffron-border);
}

.tab-btn-saffron.active-tab {
  background: var(--saffron);
  color: white;
  border-color: var(--saffron);
}

.btn-submit-saffron {
  background: var(--saffron);
}
.btn-submit-saffron:hover {
  background: var(--saffron-dark);
}

.card-saffron {
  border-top: 4px solid var(--saffron);
}

/* Donor Search Card & Controls */
.donor-search-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

.donor-search-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

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

.donor-field-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.donor-select-ctrl,
.donor-input-ctrl {
  height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-main);
  background: white;
  outline: none;
  transition: border-color 0.15s ease;
}

.donor-select-ctrl:focus,
.donor-input-ctrl:focus {
  border-color: var(--blood);
}

.donor-select-ctrl {
  min-width: 180px;
  font-weight: 600;
  cursor: pointer;
}

.donor-input-ctrl {
  width: 100%;
}

.donor-form-action {
  display: flex;
  align-items: flex-end;
}

.btn-find-donors {
  height: 42px;
  background: var(--blood);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 0 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-find-donors:hover {
  background: var(--blood-dark);
}

.donor-prompt-box {
  grid-column: 1 / -1;
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
  background: white;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
}

/* Donor Card */
.donor-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.donor-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.donor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.donor-badge {
  background: var(--blood-soft);
  color: var(--blood);
  border: 1.5px solid #fca5a5;
  font-weight: 900;
  font-size: 18px;
  min-width: 48px;
  height: 42px;
  padding: 0 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.donor-name-secondary {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-align: right;
  line-height: 1.35;
  word-break: break-word;
}

.donor-call-btn {
  display: block;
  text-align: center;
  background: var(--blood);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.donor-call-btn:hover {
  background: var(--blood-dark);
}

.btn-toggle-all-donors {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.15s;
}

.btn-toggle-all-donors:hover {
  background: #e2e8f0;
  color: var(--primary);
}

/* --- Moving Pictures News Slider Right at Top --- */
.news-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f172a;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.news-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.news-slider-item-photo-only {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-slider-img-wrap-full {
  width: 100%;
  height: 480px;
  background: #0b1120;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.news-slider-img-full {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.news-slider-img-wrap-full:hover .news-slider-img-full {
  transform: scale(1.01);
}

@media (max-width: 768px) {
  .news-slider-img-wrap-full {
    height: 340px;
  }
}

@media (max-width: 480px) {
  .news-slider-img-wrap-full {
    height: 260px;
  }
}

/* --- Image Lightbox Modal --- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-content img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  background: #0f172a;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #0f172a;
  background: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.lightbox-caption {
  display: none;
}

.news-slider-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
}

.slider-nav-btn:hover {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.slider-btn-prev { left: 14px; }
.slider-btn-next { right: 14px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

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

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* --- Forms --- */
.form-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.input-ctrl {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  outline: none;
}

.input-ctrl:focus {
  border-color: var(--primary);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius);
  margin-top: 6px;
  transition: background 0.15s ease;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

.btn-submit-red {
  background: var(--blood);
}
.btn-submit-red:hover {
  background: var(--blood-dark);
}

.status-msg {
  background: var(--primary-soft);
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

.status-msg-saffron {
  background: var(--saffron-soft);
  border: 1px solid var(--saffron-border);
  color: var(--saffron-dark);
}

/* --- Members Cards --- */
.member-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.member-card-photo {
  border-left: 3px solid var(--primary);
  background: #fcfdfd;
}

#incMembersGrid .member-card-photo {
  border-left-color: #0284c7;
}

.member-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.member-photo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#incMembersGrid .member-photo-img {
  border-color: #93c5fd;
}

.member-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.member-designation {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin: 1px 0;
}

.ward-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 5px;
}

.btn-explore-members {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-explore-members:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-explore-members-inc {
  color: #0284c7;
  border-color: #0284c7;
}

.btn-explore-members-inc:hover {
  background: #0284c7;
  color: white;
}

/* --- Citizen Links inside Contact --- */
.link-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.link-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.link-item-cat {
  font-size: 11px;
  color: var(--text-muted);
}

.link-open-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  padding: 4px 8px;
  background: var(--primary-soft);
  border-radius: 4px;
  white-space: nowrap;
}

.link-open-btn:hover {
  background: var(--primary);
  color: white;
}

/* --- Membership Page Header Banner --- */
.membership-header-banner {
  text-align: center;
  margin-bottom: 24px;
}

/* --- Footer --- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-strip-top {
  border-bottom: 1px solid #1e293b;
  padding-bottom: 14px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.footer-strip-top a {
  color: #38bdf8;
}

.footer-strip-top a:hover {
  color: white;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 24px;
}

.footer-links-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links-row button, .footer-links-row a {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
}

.footer-links-row button:hover, .footer-links-row a:hover {
  color: white;
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- About Card Box Responsive Padding --- */
.about-card-box {
  padding: 28px;
}

/* --- Comprehensive Mobile Optimization --- */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .mobile-toggle { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }

  .site-header {
    padding: 0 8px;
    top: 6px;
  }

  .header-pill {
    padding: 6px 12px;
    border-radius: 30px;
    gap: 8px;
  }

  .brand-emblem {
    width: 36px;
    height: 36px;
  }

  .brand-titles h1 {
    font-size: 14px;
    line-height: 1.1;
  }

  .brand-titles p {
    font-size: 10px;
  }

  .page-section {
    padding: 22px 0 28px;
  }

  .page-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .page-head h2 {
    font-size: 19px;
  }

  .page-head p {
    font-size: 12px;
  }

  /* News Slider on Mobile */
  .news-slider-img-wrap-full {
    height: 280px;
  }

  .slider-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.88);
  }

  .slider-btn-prev { left: 8px; }
  .slider-btn-next { right: 8px; }

  /* Quick Access Bar */
  .quick-nav-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .quick-nav-title {
    font-size: 11px;
  }

  .quick-nav-chips {
    gap: 6px;
  }

  .quick-chip {
    padding: 6px 11px;
    font-size: 11.5px;
  }

  /* About Box & Tagline */
  .about-card-box {
    padding: 18px 14px;
  }

  .empower-banner {
    padding: 18px 14px;
  }

  .tagline-text {
    font-size: 17px;
  }

  .tagline-sub {
    font-size: 12px;
  }

  /* Blood Bank Hero */
  .blood-hero {
    padding: 18px 16px;
    margin-bottom: 14px;
  }

  .blood-hero h2 {
    font-size: 20px;
  }

  .blood-hero p {
    font-size: 12px;
  }

  /* Subtab Toggle Buttons - smooth horizontal scroll on small screens */
  .tab-toggle-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-bottom: 14px;
  }

  .tab-toggle-bar::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12.5px;
    flex-shrink: 0;
  }

  /* Donor Search Form */
  .donor-search-card {
    padding: 14px 12px;
  }

  .donor-search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .donor-form-field {
    width: 100%;
  }

  .donor-select-ctrl,
  .donor-input-ctrl {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 15px;
  }

  .donor-form-action {
    width: 100%;
  }

  .btn-find-donors {
    width: 100%;
    height: 44px;
    font-size: 14px;
  }

  /* 1-column layouts on mobile */
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Mobile Form Inputs */
  .input-ctrl {
    font-size: 15px;
    height: 44px;
    padding: 10px 12px;
  }

  textarea.input-ctrl {
    height: auto;
  }

  .btn-submit {
    height: 46px;
    font-size: 14px;
  }

  /* Donor Card */
  .donor-card {
    padding: 14px 14px;
    gap: 12px;
  }

  .donor-call-btn {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  /* Member Card */
  .member-card {
    padding: 14px;
    gap: 12px;
  }

  .member-avatar,
  .member-photo-img {
    width: 48px;
    height: 48px;
  }

  .member-info h4 {
    font-size: 14px;
  }

  .member-designation {
    font-size: 11.5px;
  }

  .btn-explore-members {
    width: 100%;
    max-width: 100%;
    height: 44px;
  }

  /* Citizen Services */
  .link-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .link-open-btn {
    padding: 7px 12px;
    font-size: 11px;
    min-height: 32px;
  }

  /* Footer */
  .site-footer {
    padding: 30px 0 20px;
    margin-top: 30px;
  }

  .footer-strip-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links-row {
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .membership-header-banner h2 {
    font-size: 22px !important;
  }
}

@media (max-width: 400px) {
  .news-slider-img-wrap-full {
    height: 230px;
  }
  .brand-titles h1 {
    font-size: 13px;
  }
  .brand-titles p {
    font-size: 9.5px;
  }
  .brand-emblem {
    width: 32px;
    height: 32px;
  }
}
