@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --maroon-dark: #3d0f10;
  --maroon: #5a1a1c;
  --maroon-light: #7a2226;
  --red: #d90429;
  --red-dark: #8f0f1c;
  --gold: #f0c674;
  --cream: #f7e9d3;
  --green: #2e8b3f;
  --text-light: #f5e9dc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Hind Siliguri', sans-serif;
  background: linear-gradient(180deg, var(--maroon-dark) 0%, var(--maroon) 260px, #b98b6d 700px, #e9d6ba 100%);
  background-attachment: fixed;
  color: #2b1010;
}

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, #4a1315, #3d0f10);
  padding: 14px 0;
  border-bottom: 2px solid #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-wrap: wrap;
}



.brand h1 {
  color: var(--gold);
  font-size: 22px;
  margin: 0;
  line-height: 1.1;
}

.brand .en-name {
  color: var(--red);
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
}

.brand .tagline {
  color: var(--text-light);
  font-size: 11px;
}

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

.nav-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: transparent;
  border: none;
  padding: 4px 8px;
  min-width: 70px;
}

.nav-btn img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-btn:hover {
  color: var(--gold);
}

.nav-btn.admin img {
  width: 48px;
  height: 48px;
}

.nav-buttons {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
}

.nav-btn img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-btn span {
  background: #7a1020;
  color: #fff;
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 80px;
  text-align: center;
}

.nav-btn:hover span {
  background: var(--red);
}

.nav-btn.admin span {
  background: #1a1a1a;
  border: 1px solid #444;
}

.nav-btn.admin:hover span {
  background: #333;
}

/* ---------- Hamburger (mobile nav toggle) ---------- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero-badge {
  text-align: center;
  margin: 24px auto 10px;
  background: #0a0a0ae2;
  color: #ffff;
  display: inline-block;
  padding: 10px 100px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 20px;
  border: 1px solid #0000;
}

.hero-badge-wrap {
  text-align: center;
}

.hero-title {
  text-align: center;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .4);
  margin: 20px 0 6px;
}

.hero-sub {
  text-align: center;
  color: var(--red);
  font-size: 30px;
  font-weight: 700;
  margin-top: -6px;
}

.hero-desc {
  text-align: center;
  color: #3a1414;
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
  margin: 16px auto;
}

/* ---------- Search box ---------- */
.search-box {
  background: rgba(100, 35, 37, 0.662);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 700px;
  margin: 20px auto;
}

.search-box select {
  flex: 1;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  background: var(--gold);
  font-family: inherit;
  font-size: 15px;
  color: #000;
}

.search-box button {
  background: linear-gradient(180deg, #d32f2f 0%, #8b1e1e 60%, #4a0d0d 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px 0 26px;
}

.btn-pill {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-pill.red {
  background: linear-gradient(180deg, #d32f2f 0%, #8b1e1e 60%, #4a0d0d 100%);
  color: #fff;
}



/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 12px;
}

.stats-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
}

.stat-card {
  background: linear-gradient(180deg, #d90429 0%, #8b1e1e 60%, #58121a 100%);
  color: var(--gold);
  border-radius: 12px;
  padding: 14px 12px;
  border: none;
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card .icon {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 26px;
  opacity: 0.85;
}

.stat-card .num {
  font-size: 32px;
  font-weight: 700;
  color: #ff9a00;
  line-height: 1;
  text-align: left;
}

.stat-card .label {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  margin-top: 4px;
  text-align: left;
}

/* ---------- Blood group circles ---------- */
.bg-strip {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 24px auto;
  max-width: 800px;
}

.bg-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #682629, #501f21);
  display: flex;
  flex-direction: column;
  color: white;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.bg-circle .grp {
  position: absolute;
  top: -6px;
  left: 50%;
  /* transform: translateX(-50%); */
  /* গ্রেডিয়েন্ট ব্যাকগ্রাউন্ড (উপর থেকে নিচে) */
  background: linear-gradient(180deg, #d90429 0%, #8b1e1e 60%, #58121a 100%);

  /* চারপাশের লাল বর্ডার */
  border: 2px solid #e53935;
  /* border: 4px solid #e53935; */
  color: #fff;
  /* font-size: 20px; */
  /* font-weight: 700; */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 10px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* border-radius: 20px; */
  /* white-space: nowrap; */
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); */
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  font-weight: bold;

  /* হালকা শ্যাডো (অপশনাল, দেখতে সুন্দর লাগবে) */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3)
}

.bg-circle .cnt {
  color: #ffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* ---- Donor Card ---- */
.donor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 0 16px;
}

@media (max-width: 768px) {
  .donor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }
}

@media (max-width: 540px) {
  .donor-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}

.donor-card {
  background: #fdf8ef;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
}

/* HEAD */
.dc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff 0%, #fbeedb 100%);
  padding: 12px 14px;
  border-bottom: 2px dashed #e0c090;
  gap: 8px;
}

.dc-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.dc-avatar-icon {
  font-size: 26px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: linear-gradient(135deg, #3d0f10, #7a2226);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.dc-name {
  font-weight: 700;
  font-size: 15px;
  color: #1a0808;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-guardian {
  font-size: 11px;
  color: #8a6040;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-bg-badge {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.dc-bg-badge.bg-available {
  background: linear-gradient(135deg, #00843d, #0d3a24);
  border: 2px solid #00843d;
}

.dc-bg-badge.bg-unavailable {
  background: linear-gradient(180deg, #d90429, #58121a);
  border: 2px solid #d90429;
}

/* BODY */
.dc-body {
  padding: 12px 14px 8px;
  flex: 1;
}

.dc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.dc-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dc-lbl {
  font-size: 10px;
  color: #9a7050;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.dc-val {
  font-size: 14px;
  font-weight: 700;
  color: #1a0808;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-mobile {
  color: #c81e2f !important;
}

.dc-first-time {
  color: #c87020 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  font-style: italic;
  white-space: normal !important;
}

.dc-addr-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #f5ede0;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 4px;
}

.dc-addr-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.dc-addr-text {
  font-size: 12px;
  color: #4a2a10;
  line-height: 1.5;
  word-break: break-word;
}

/* STATUS BUTTON */
.dc-status {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin: 10px 14px 0;
  padding: 10px 12px;
  border-radius: 20px;
  display: block;
}

.dc-status .dc-next-date {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 3px;
}

.dc-status.available {
  background: linear-gradient(to right, #00843d 0%, #0d3a24 60%, #0d0a21 80%, #1e0042 100%);
}

.dc-status.unavailable {
  background: linear-gradient(180deg, #d90429 0%, #8b1e1e 60%, #58121a 100%);
}

/* UPDATE BUTTON */
.dc-update-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 8px 14px 14px;
  padding: 8px;
  border: 1.5px dashed #c8a060;
  border-radius: 10px;
  background: transparent;
  color: #7a5b3a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-align: center;
  box-sizing: border-box;
}

.dc-update-btn:hover {
  background: #fdf0d8;
  border-color: var(--red);
  color: var(--red);
}

/* MODAL */
.ud-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 16px;
  box-sizing: border-box;
}

.ud-modal-overlay.open {
  display: flex;
}

.ud-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--gold);
  position: relative;
  animation: modalPop 0.2s ease;
  box-sizing: border-box;
}

@keyframes modalPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .ud-modal {
    padding: 22px 16px;
    border-radius: 16px;
  }
}

.ud-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
  color: #9a7050;
  background: none;
  border: none;
  line-height: 1;
}

.ud-modal-close:hover {
  color: var(--red);
}

.ud-modal-icon {
  text-align: center;
  font-size: 38px;
  margin-bottom: 4px;
}

.ud-modal h3 {
  text-align: center;
  color: var(--maroon-dark);
  margin: 0 0 4px;
  font-size: 17px;
}

.ud-modal .sub {
  text-align: center;
  color: #7a5b3a;
  font-size: 13px;
  margin: 0 0 16px;
}

.ud-modal-name {
  background: #fdf8ef;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--maroon-dark);
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}

.ud-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.ud-modal-field label {
  font-size: 13px;
  font-weight: 600;
  color: #4a2a10;
}

.ud-modal-field input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 2px solid #e8d5ba;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.ud-modal-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 30, 47, 0.1);
}

.ud-modal-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #c81e2f, #5a1a1c);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  box-sizing: border-box;
}

.ud-modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ud-modal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

.ud-modal-alert.error {
  background: #f8d7da;
  color: #7a1c26;
}

.ud-modal-alert.success {
  background: #d9f2dc;
  color: #1a5c26;
}

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 100%;
  margin: 24px auto 60px;
  background: #fdf8ef;
  border-radius: 14px;
  padding: 26px 40px;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

.donor-reg-form {
  max-width: 100%;
}

.form-wrap h2 {
  color: var(--maroon-dark);
  text-align: center;
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media(max-width:600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

.form-group.full {
  grid-column: 1/-1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #4a2a10;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #cbb18a;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.form-submit {
  margin-top: 18px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

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

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: #d9f2dc;
  color: #1a5c26;
  border: 1px solid #2e8b3f;
}

.alert-error {
  background: #f8d7da;
  color: #7a1c26;
  border: 1px solid #c81e2f;
}

/* ---------- Content pages ---------- */
.content-card {
  max-width: 760px;
  margin: 24px auto;
  background: rgba(253, 248, 239, .95);
  border-radius: 14px;
  padding: 28px;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.content-card h2 {
  color: var(--maroon-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
}

.content-card p {
  line-height: 1.9;
  font-size: 15.5px;
  color: #3a2416;
}

.message-block {
  margin-bottom: 26px;
}

.message-block .signature {
  font-weight: 700;
  color: var(--red-dark);
  margin-top: 10px;
}

/* =========================
        Footer
========================= */

.site-footer {
  background: #5b1717;
  color: #fff;
  text-align: center;
  padding: 16px 12px 18px;
  margin-top: 40px;
  font-family: SolaimanLipi, "Noto Sans Bengali", sans-serif;
}

/* Top Text */
.site-footer .footer-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: .2px;
}

/* Bottom Line */
.site-footer .credit {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Founder / Director Box */
.site-footer .label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 2px 10px;
  min-height: 22px;

  background: linear-gradient(to bottom, #fff9ef, #e5c79b);

  border: 1px solid #8e6b3f;

  border-radius: 50px;

  color: #4b1a10;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 1px 2px rgba(0, 0, 0, .20);
}

/* Names */
.site-footer .name {
  color: #27ff27;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}

.site-footer .founder {
  color: #27ff27;
}

.site-footer .director {
  color: #27ff27;
}

/* Divider */
.site-footer .divider {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0 8px;
  opacity: .9;
}

.developer-credit {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.developer-credit a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.developer-credit a:hover {
  text-decoration: underline;
}
/* Developed by credit */
.site-footer .dev-credit {
  margin-top: 10px;
  font-size: 13px;
  color: #cbb18a;
}

.site-footer .dev-credit a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.site-footer .dev-credit a:hover {
  text-decoration: underline;
}

/* =========================
        Tablet
========================= */

@media (max-width:768px) {

  .site-footer {
    padding: 15px 10px;
  }

  .site-footer .footer-title {
    font-size: 26px;
  }

  .site-footer .credit {
    gap: 5px;
  }

  .site-footer .label {
    font-size: 11px;
    padding: 2px 8px;
  }

  .site-footer .name {
    font-size: 15px;
  }
}


/* =========================
        Mobile
========================= */

@media (max-width:480px) {

  .site-footer {
    padding: 14px 10px;
  }

  .site-footer .footer-title {
    font-size: 19px;
    line-height: 1.35;
  }

  .site-footer .credit {
    gap: 6px;
    justify-content: center;
  }

  .site-footer .label {
    font-size: 10px;
    padding: 2px 7px;
  }

  .site-footer .name {
    font-size: 13px;
  }

  .site-footer .divider {
    flex-basis: 100%;
    height: 0;
    margin: 4px 0 0;
    font-size: 0;
    color: transparent;
    overflow: hidden;
  }
}

/* ---------- filters row ---------- */
.filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 20px auto;
  justify-content: center;
}

.filters-row select,
.filters-row button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbb18a;
  background: var(--gold);
  font-family: inherit;
  color: #000;
  font-weight: bold;
}

.filters-row button {
  background: linear-gradient(180deg, #d32f2f 0%, #8b1e1e 60%, #4a0d0d 100%);
  ;
  color: #ffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.page-heading {
  color: #fff;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 26px 0 10px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, .4);
}

.container.wide {
  max-width: 960px;
}

/* ---------- Become-Donor form extras ---------- */
.rules-banner {
  max-width: 100%;
  margin: 24px auto 0;
  background: linear-gradient(180deg, #d32f2f 0%, #8b1e1e 60%, #4a0d0d 100%);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--gold);
}

.rules-title {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media(max-width:700px) {
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rule-card {
  background: radial-gradient(circle at 40% 40%, #682629, #501f21);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}

.rule-big {
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
}

.rule-small {
  color: #ddd;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

.donor-reg-form {
  max-width: 700px;
}

.form-section-title {
  color: var(--maroon-dark);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid #e3cba1;
  padding-bottom: 6px;
  margin: 22px 0 12px;
}

.hint {
  color: #8a6b47;
  font-size: 12px;
  font-weight: 400;
}

.age-box {
  background: #1e1e1e;
  color: var(--gold);
  padding: 0 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media(max-width:600px) {
  .health-grid {
    grid-template-columns: 1fr;
  }
}

.health-check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbf3e3;
  border: 1px solid #e3cba1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}

.health-check input {
  width: 16px;
  height: 16px;
}

.health-check.risky {
  border-color: #e79aa3;
  background: #fdeef0;
}

.warning-note {
  background: #fbe9c6;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #4a2a10;
  line-height: 1.6;
  margin-top: 16px;
}

.btn-cancel {
  background: #e6e2da;
  color: #333;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  flex: 0 0 auto;
}

/* =========================================================
   RESPONSIVE ENHANCEMENTS (Tablet / Laptop / Mobile)
   নোট: এখানে শুধু বিভিন্ন স্ক্রিন সাইজের জন্য এডজাস্টমেন্ট যোগ করা
   হয়েছে যাতে পুরো সাইট সব ডিভাইসে ঠিকভাবে দেখা যায়। উপরের কোনো
   ডিজাইন/কন্টেন্ট মুছে ফেলা বা পরিবর্তন করা হয়নি।
========================================================= */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* ---------- Laptop / Small Desktop ---------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 14px;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 768px) {
    .search-box,
  .stats-grid,
  .stats-grid.two,
  .bg-strip,
  .action-buttons,
  .form-wrap,
  .content-card,
  .filters-row {
    margin-left: 16px;
    margin-right: 16px;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-buttons {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, #4a1315, #3d0f10);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    padding: 6px 0;
    z-index: 200;
  }

  .nav-buttons.open {
    display: flex;
  }

  .nav-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-btn img {
    width: 32px;
    height: 32px;
  }

  .nav-btn span {
    min-width: 0;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 14px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 24px;
  }

  .hero-badge {
    padding: 10px 40px;
    font-size: 17px;
  }

  .form-wrap {
    padding: 22px 24px;
  }

  .content-card {
    padding: 22px;
  }

  .dm-grid,
  .admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ---------- Mobile (large, up to ~600px) ---------- */
@media (max-width: 600px) {
    
  .search-box,
  .stats-grid,
  .stats-grid.two,
  .bg-strip,
  .action-buttons,
  .form-wrap,
  .content-card,
  .filters-row {
    margin-left: 16px;
    margin-right: 16px;
  }
  .brand h1 {
    font-size: 18px;
  }

  .brand .en-name {
    font-size: 13px;
  }

  .hero-badge {
    padding: 8px 20px;
    font-size: 14px;
    white-space: normal;
    max-width: 90%;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 20px;
  }

  .hero-desc {
    font-size: 14px !important;
  }

  .search-box {
    flex-direction: column;
    padding: 14px;
  }

  .search-box select,
  .search-box button {
    width: 100%;
    min-width: 0;
  }

  .stats-grid,
  .stats-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .bg-strip {
    gap: 16px;
  }

  .bg-circle {
    width: 60px;
    height: 60px;
  }

  .bg-circle .grp {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .form-wrap {
    padding: 18px 16px;
  }

  .content-card {
    padding: 18px;
  }

  .page-heading {
    font-size: 22px;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-row select,
  .filters-row button,
  .filters-row a {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Mobile (small, up to ~380px) ---------- */
@media (max-width: 380px) {

  .stats-grid,
  .stats-grid.two {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .action-buttons .btn-pill {
    width: 100%;
    text-align: center;
  }
}




.dc-update-btn {
  width: 100%;
  padding: 8px;
  border: 1.5px dashed #c8a060;
  border-radius: 10px;
  background: transparent;
  color: #7a5b3a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.dc-update-btn:hover {
  background: #fdf0d8;
  border-color: var(--red);
  color: var(--red);
}

/* Modal */
.ud-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.ud-modal-overlay.open {
  display: flex;
}

.ud-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--gold);
  position: relative;
  animation: modalPop 0.2s ease;
}

@keyframes modalPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ud-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
  color: #9a7050;
  background: none;
  border: none;
  line-height: 1;
}

.ud-modal-close:hover {
  color: var(--red);
}

.ud-modal-icon {
  text-align: center;
  font-size: 40px;
  margin-bottom: 6px;
}

.ud-modal h3 {
  text-align: center;
  color: var(--maroon-dark);
  margin: 0 0 4px;
  font-size: 18px;
}

.ud-modal .sub {
  text-align: center;
  color: #7a5b3a;
  font-size: 13px;
  margin: 0 0 20px;
}

.ud-modal-name {
  background: #fdf8ef;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--maroon-dark);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.ud-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.ud-modal-field label {
  font-size: 13px;
  font-weight: 600;
  color: #4a2a10;
}

.ud-modal-field input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 2px solid #e8d5ba;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.ud-modal-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 30, 47, 0.1);
}

.ud-modal-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #c81e2f, #5a1a1c);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ud-modal-submit:hover {
  opacity: 0.9;
}

.ud-modal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}

.ud-modal-alert.error {
  background: #f8d7da;
  color: #7a1c26;
}

.ud-modal-alert.success {
  background: #d9f2dc;
  color: #1a5c26;
}



/* ===== HOW IT WORKS SECTION ===== */
.how-section {
  max-width: 900px;
  margin: 10px auto 50px;
  padding: 0 16px;
}

.how-header {
  text-align: center;
  margin-bottom: 32px;
}

.how-badge {
  display: inline-block;
  background: rgba(200, 30, 47, 0.15);
  border: 1px solid rgba(200, 30, 47, 0.4);
  color: #f0a0a8;
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.how-title {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.how-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* Grid */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Card */
.how-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}

.how-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
}

@media (hover: none) {
  .how-card:hover {
    transform: none;
  }
}

.how-step-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c81e2f, #5a1a1c);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(200, 30, 47, 0.4);
}

.how-icon-wrap {
  font-size: 36px;
  margin: 12px 0 10px;
  line-height: 1;
}

@media (max-width: 480px) {
  .how-icon-wrap {
    font-size: 30px;
  }
}

.how-card-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.how-card-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.how-arrow {
  color: var(--gold);
  font-size: 18px;
  opacity: 0.6;
}

/* Desktop এ arrow ডানদিকে */
@media (min-width: 769px) {
  .how-card:not(.how-card-last) {
    position: relative;
  }

  .how-arrow {
    display: none;
  }

  .how-card:not(.how-card-last)::after {
    content: '→';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 20px;
    opacity: 0.5;
    z-index: 1;
  }
}

/* Mobile এ arrow নিচে */
@media (max-width: 400px) {
  .how-card:not(.how-card-last)::after {
    display: none;
  }

  .how-arrow {
    display: block;
  }

  .how-card-last .how-arrow {
    display: none;
  }
}

@media (max-width: 768px) and (min-width: 401px) {
  .how-card::after {
    display: none !important;
  }

  .how-arrow {
    display: none;
  }
}

/* Divider */
.how-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.how-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.how-divider span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  white-space: nowrap;
}

/* Donor Banner */
.how-donor-banner {
  background: linear-gradient(135deg,
      rgba(200, 30, 47, 0.2) 0%,
      rgba(90, 26, 28, 0.3) 100%);
  border: 1px solid rgba(200, 30, 47, 0.3);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.how-donor-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.how-donor-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.how-donor-left h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.how-donor-left p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.how-donor-btn {
  background: linear-gradient(135deg, #c81e2f, #5a1a1c);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(200, 30, 47, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.how-donor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 30, 47, 0.45);
}

@media (max-width: 480px) {
  .how-donor-banner {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }

  .how-donor-left {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .how-donor-btn {
    width: 100%;
    text-align: center;
  }

  .how-title {
    font-size: 20px;
  }

  .how-subtitle {
    font-size: 13px;
  }

  .how-card {
    padding: 18px 14px;
  }

  .how-card-title {
    font-size: 13px;
  }
}