* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global image control */
img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.page-wrapper {
  max-width: 720px;
  margin: 16px auto 32px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* Header */

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

.logo-wrap {
  flex-shrink: 0;
}

/* SMALL, CONTROLLED LOGO (phone + desktop) */
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.ngo-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.tagline {
  font-size: 0.9rem;
  color: #4b5563;
}

/* Hero */

.hero-section {
  margin: 12px 0;
  text-align: center;
}

/* Controlled hero size but responsive */
.hero-image {
  width: 100%;
  max-width: 380px;     /* desktop limit */
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Appeal */

.appeal-section {
  margin: 12px 0 8px;
}

.appeal-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #111827;
}

/* Visitor counter */

.counter-section {
  margin: 10px 0;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}

#visitor-count {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
}

/* QR */

.qr-section {
  margin: 12px 0;
}

.qr-details {
  border-radius: 10px;
  background: #f9fafb;
  padding: 8px 10px;
  cursor: pointer;
}

.qr-summary {
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.qr-details > summary::-webkit-details-marker {
  display: none;
}

.qr-box {
  margin-top: 10px;
  text-align: center;
}

/* QR smaller but responsive */
.qr-image {
  max-width: 180px;
  max-height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.qr-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #4b5563;
}

/* Donation buttons */

.donation-section {
  margin-top: 10px;
}

.donation-heading {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.donation-buttons {
  text-align: center;
}

.btn-block {
  display: inline-block;
  padding: 8px;
  margin: 4px;
  border-radius: 10px;
  background: #f9fafb;
}

.btn-label {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #4b5563;
}

/* Thank You page */

.thankyou-page .thankyou-section {
  text-align: center;
  margin-top: 16px;
}

.thankyou-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.thankyou-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.thankyou-note {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 14px;
}

.back-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #111827;
  text-decoration: none;
  font-size: 0.9rem;
  color: #111827;
}

/* Footer */

.footer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* 📱 Mobile tweaks for images & fonts */
@media (max-width: 480px) {
  .page-wrapper {
    margin: 8px;
    padding: 12px;
  }

  .ngo-text h1 {
    font-size: 1.2rem;
  }

  .hero-image {
    max-width: 100%;   /* full width on phone but height limited */
    max-height: 200px;
  }

  .qr-image {
    max-width: 150px;
    max-height: 150px;
  }

  #visitor-count {
    font-size: 1.2rem;
  }
}
