/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-light: #FFEBEE;
  --gray-text: #666;
  --bg: #FAFAFA;
}

body {
  font-family: 'Hind Siliguri', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: #222;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP APP DOWNLOAD BANNER ===== */
.app-banner {
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  color: white;
  text-align: center;
  padding: 10px 40px;
  font-size: 14px;
  position: relative;
}

.app-banner a {
  font-weight: 700;
  text-decoration: underline;
}

.app-banner .close-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
  color: white;
  font-weight: bold;
}

/* ===== HEADER / NAV ===== */
header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
}

.logo span { color: #222; }

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover { color: var(--red); }

.nav-cta {
  background: var(--red);
  color: white !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--red);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 8px 12px rgba(0,0,0,0.08);
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  .menu-toggle { display: block; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: white; border: 2px solid var(--red); color: var(--red); }

/* ===== FOOTER ===== */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 14px;
  font-size: 16px;
}

.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--red); }

.footer-app-link {
  display: inline-block;
  background: var(--red);
  color: white !important;
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 700;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #888;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}


.hero { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 60px 20px 120px; text-align: center; }
.hero-content h1 { font-family: 'Poppins', sans-serif; font-size: 2.2rem; margin-bottom: 12px; }
.hero-content p { font-size: 1.1rem; opacity: 0.95; max-width: 600px; margin: 0 auto; }

.search-card { background: #fff; max-width: 600px; margin: -70px auto 0; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 30px; position: relative; z-index: 10; }
.search-card h2 { color: var(--red); margin-bottom: 16px; text-align: center; }
.form-row { display: flex; gap: 12px; margin-bottom: 14px; }
.form-row select, .form-row input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.btn-block { width: 100%; padding: 14px; font-size: 1.1rem; }
@media (max-width: 600px) { .form-row { flex-direction: column; } }

.counters { display: flex; justify-content: center; gap: 60px; padding: 60px 20px; flex-wrap: wrap; text-align: center; }
.counter-box h2 { font-family: 'Poppins', sans-serif; font-size: 2.5rem; color: var(--red); }
.counter-box p { color: var(--gray-text); margin-top: 6px; }

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 20px 40px 60px; max-width: 1100px; margin: 0 auto; }
.feature-card { background: #fff; border-radius: 12px; padding: 28px 20px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.feature-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 { color: var(--red-dark); margin-bottom: 8px; }
.feature-card p { color: var(--gray-text); font-size: 0.95rem; }
@media (max-width: 768px) { .features { grid-template-columns: 1fr; } }

.ad-section { text-align: center; padding: 10px; }
.ad-placeholder { display: inline-block; max-width: 320px; width: 100%; padding: 10px; color: #aaa; font-size: 0.75rem; border: 1px dashed #ddd; border-radius: 8px; }

.cta-download { background: var(--red-light); text-align: center; padding: 50px 20px; }
.cta-download h2 { color: var(--red-dark); margin-bottom: 10px; }
.cta-download p { color: var(--gray-text); margin-bottom: 20px; }



html { scroll-behavior: smooth; }

.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); }
.hero::before { width: 300px; height: 300px; top: -100px; right: -80px; }
.hero::after { width: 200px; height: 200px; bottom: -60px; left: -60px; }
.hero-content, .search-card { position: relative; z-index: 2; }

.feature-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.btn-primary, .btn-outline { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(211,47,47,0.35); }

.lang-btn {
  background: transparent; border: 1.5px solid var(--red); color: var(--red);
  padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; cursor: pointer;
  font-weight: 600; margin-left: 10px; white-space: nowrap;
}
.lang-btn:hover { background: var(--red); color: #fff; }

/* উপজেলা ডিজেবল হলে হালকা দেখাবে */
#upazila:disabled { background: #f2f2f2; color: #999; cursor: not-allowed; }

/* ফুটার মার্জিন ফিক্স */
footer { margin-top: 20px; padding: 60px 20px 24px; }
.footer-grid { gap: 36px; margin-bottom: 30px; }
.footer-grid a { display: block; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; text-align: center; font-size: 0.85rem; }

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .search-card { padding: 20px; margin: -50px 16px 0; }
  .lang-btn { font-size: 0.75rem; padding: 5px 8px; }
}

.form-page { max-width: 650px; margin: 40px auto; padding: 0 16px; }
.form-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 32px; }
.form-card h1 { color: var(--red); font-family: 'Poppins', sans-serif; margin-bottom: 8px; }
.form-subtitle { color: var(--gray-text); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-size: 0.9rem; color: var(--gray-text); }
.otp-box { background: var(--red-light); padding: 16px; border-radius: 10px; margin-bottom: 16px; }
.otp-box input { width: 100%; padding: 12px; text-align: center; letter-spacing: 6px; font-size: 1.3rem; border: 1px solid #ddd; border-radius: 8px; margin: 10px 0; }
.form-message { text-align: center; margin-top: 14px; font-weight: 600; min-height: 20px; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; max-width: 550px; max-height: 80vh; overflow-y: auto; border-radius: 14px; padding: 28px; }
.modal-box h2 { color: var(--red); margin-bottom: 14px; }
.modal-box p { margin-bottom: 14px; color: #444; line-height: 1.6; }

@media (max-width: 600px) { .form-row { flex-direction: column; } }

.login-method-section { margin: 24px 0; padding: 18px; background: #fafafa; border-radius: 12px; border: 1px solid #eee; }
.login-method-title { display: block; font-weight: 700; margin-bottom: 12px; color: var(--red-dark); }
.method-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.method-tab { flex: 1; min-width: 140px; text-align: center; }
.method-tab input { display: none; }
.method-tab span { display: block; padding: 10px 8px; border: 1.5px solid #ddd; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.method-tab input:checked + span { border-color: var(--red); background: var(--red-light); color: var(--red-dark); }
.method-note { font-size: 0.85rem; color: var(--gray-text); margin-bottom: 12px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; background: #fff; border: 1.5px solid #ddd; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; color: #444; }
.google-btn:hover { background: #f5f5f5; }
.google-btn img { width: 20px; height: 20px; }
.google-status { margin-top: 10px; font-size: 0.9rem; font-weight: 600; text-align: center; }
@media (max-width: 500px) { .method-tabs { flex-direction: column; } }

.search-results-page { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.search-results-page h1 { color: var(--red-dark); font-size: 1.4rem; margin-bottom: 24px; text-align: center; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.donor-card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: relative; transition: transform 0.2s; }
.donor-card:hover { transform: translateY(-4px); }
.donor-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.blood-badge { background: var(--red); color: #fff; font-weight: 700; padding: 10px 14px; border-radius: 10px; font-size: 1.1rem; }
.donor-card-top h3 { font-size: 1.1rem; margin-bottom: 2px; }
.donor-area { color: var(--gray-text); font-size: 0.85rem; }
.donor-meta { font-size: 0.85rem; color: var(--gray-text); margin-bottom: 6px; }
.donor-rating { font-size: 0.9rem; margin-bottom: 14px; color: #444; }
.donor-actions { display: flex; gap: 10px; }
.btn-call, .btn-whatsapp { flex: 1; padding: 10px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.btn-call { background: var(--red); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.fraud-badge { background: #FFF3E0; color: #E65100; font-size: 0.75rem; font-weight: 700; padding: 6px 10px; border-radius: 6px; margin-bottom: 10px; }

.no-results { text-align: center; grid-column: 1/-1; padding: 40px 20px; color: var(--gray-text); }
.no-results-sub { font-size: 0.9rem; margin-top: 8px; }
.loading-text { text-align: center; grid-column: 1/-1; padding: 40px; color: var(--gray-text); }

.about-page, .support-page, .privacy-page { max-width: 750px; margin: 40px auto; padding: 0 20px; }
.about-card { background: #fff; border-radius: 16px; padding: 36px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.about-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 4px solid var(--red-light); }
.about-card h1 { color: var(--red-dark); margin-bottom: 4px; }
.about-role { color: var(--gray-text); margin-bottom: 20px; }
.about-text { text-align: left; color: #444; line-height: 1.7; margin-bottom: 16px; }
.about-contact { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.support-page h1 { text-align: center; color: var(--red-dark); margin-bottom: 14px; }
.support-intro { text-align: center; color: var(--gray-text); margin-bottom: 30px; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.support-card { background: #fff; border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.support-card h3 { color: var(--red); margin-bottom: 10px; }
.support-number { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.support-type { color: var(--gray-text); font-size: 0.85rem; }
.support-card-highlight { background: var(--red-light); }
.support-thanks { text-align: center; margin-top: 30px; font-weight: 600; color: var(--red-dark); }

.privacy-page h1 { color: var(--red-dark); margin-bottom: 6px; }
.privacy-updated { color: var(--gray-text); font-size: 0.85rem; margin-bottom: 24px; }
.privacy-page h2 { color: var(--red); font-size: 1.1rem; margin: 24px 0 8px; }
.privacy-page p { color: #444; line-height: 1.7; margin-bottom: 10px; }
.privacy-page a { color: var(--red); }

@media (max-width: 500px) { .about-contact { flex-direction: column; } }

.profile-page { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.profile-card { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 30px; position: relative; }
.profile-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.blood-badge-large { background: var(--red); color: #fff; font-weight: 700; font-size: 24px; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-top h1 { margin: 0 0 4px; font-size: 24px; }
.profile-details { margin: 16px 0; line-height: 1.8; }
.btn-view-profile { display: block; text-align: center; margin-top: 10px; padding: 10px; border-radius: 8px; background: #f2f2f2; color: #333; text-decoration: none; font-weight: 600; transition: background 0.2s; }
.btn-view-profile:hover { background: #e4e4e4; }

.reviews-section { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.review-summary .avg-rating { font-size: 28px; font-weight: 700; color: #d4a017; margin-bottom: 20px; }
.review-summary .avg-rating span { font-size: 16px; color: #777; font-weight: 400; }

.review-form-box { background: #fafafa; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.star-picker { font-size: 32px; color: #ddd; cursor: pointer; margin-bottom: 14px; user-select: none; }
.star-picker span { transition: color 0.15s; margin-right: 4px; }
.star-picker span.selected { color: #ffb400; }
.review-form-box input, .review-form-box textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 12px; font-family: inherit; font-size: 15px; }

.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { border-bottom: 1px solid #eee; padding-bottom: 14px; }
.review-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-stars { color: #ffb400; }
.review-comment { color: #555; margin: 0; }

.form-message.success { color: green; }
.form-message.error { color: var(--red); }

.about-photo { display: block; margin: 0 auto 20px; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--red); }
.about-card { text-align: center; max-width: 700px; margin: 0 auto; }
.about-text { text-align: left; }

.mini-showcase { max-width: 1100px; margin: 50px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mini-showcase h2 { font-size: 20px; margin-bottom: 16px; }
.mini-donor-list, .mini-review-list { display: flex; flex-direction: column; gap: 12px; }
.mini-donor-card { display: flex; align-items: center; gap: 14px; background: #fff; padding: 14px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.mini-donor-card p { margin: 2px 0 0; color: #777; font-size: 13px; }
.mini-review-card { background: #fff; padding: 14px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.mini-review-card p { margin: 6px 0; color: #555; font-size: 14px; }
.mini-review-card strong { font-size: 13px; color: #999; }

@media (max-width: 768px) {
  .mini-showcase { grid-template-columns: 1fr; }
}

.search-card .form-row {
  flex-wrap: wrap;
}
.search-card .form-row select,
.search-card .form-row input {
  flex: 1 1 140px;
  min-width: 120px;
}

