:root {
  --brand-green: #0f4c81;
  --brand-blue: #1b67ad;
  --brand-orange: #e67622;
  --ink: #13263f;
  --muted: #5f6f84;
  --surface: #f3f7fc;
  --white: #ffffff;
  --border: #d5e0ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #e8f0fb 0%, #f4f8ff 55%, #ffffff 100%);
}

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

a {
  color: var(--brand-blue);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}

.brand img {
  width: 200px;
  height: auto;
  object-fit: contain;
  padding: 8px 0;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  color: var(--brand-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin: 10px 0 14px;
  line-height: 1.1;
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(120deg, var(--brand-green), #1c6bb3);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.btn-icon-text {
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.25);
}

.cta-donate-animated {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  padding-left: 20px;
  padding-right: 20px;
  background: linear-gradient(100deg, #0f66b0 0%, #14a3c7 45%, #26c6a3 100%);
  box-shadow: 0 8px 20px rgba(20, 112, 175, 0.35);
  animation: ctaBreathe 2.6s ease-in-out infinite;
}

.cta-donate-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-140%);
  animation: ctaSweep 2.1s linear infinite;
}

.cta-donate-animated > * {
  position: relative;
  z-index: 2;
}

.cta-donate-animated:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 24px rgba(20, 112, 175, 0.42);
}

@keyframes ctaSweep {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

@keyframes ctaBreathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.01);
  }
}

.btn-small {
  padding: 10px 14px;
  border-radius: 10px;
}

.btn-ghost {
  color: var(--brand-green);
  background: transparent;
  border: 1px solid var(--brand-green);
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.hero-visual {
  position: relative;
  min-height: 490px;
  border-radius: 20px;
  background: linear-gradient(150deg, #0f365d 0%, #1f5f9b 52%, #2e79bf 100%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 20px 40px rgba(13, 53, 92, 0.28);
  overflow: hidden;
  padding: 20px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.23) 0%, rgba(255, 255, 255, 0) 70%);
  top: -96px;
  right: -72px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(230, 118, 34, 0.22) 0%, rgba(230, 118, 34, 0) 72%);
  left: -86px;
  bottom: -88px;
}

.hero-photo-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.hero-photo-card {
  margin: 0;
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 30px rgba(7, 27, 48, 0.32);
  animation: heroFloat 6s ease-in-out infinite;
  background: #dfeaf8;
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-main {
  width: 82%;
  height: 72%;
  right: 0;
  top: 22px;
  z-index: 2;
}

.hero-photo-top {
  width: 46%;
  height: 34%;
  left: 0;
  top: 0;
  z-index: 3;
  animation-delay: 0.6s;
}

.hero-photo-bottom {
  width: 50%;
  height: 36%;
  left: 2%;
  bottom: 20px;
  z-index: 3;
  animation-delay: 1.2s;
}

.hero-badge {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.95);
  color: #173a61;
  border: 1px solid rgba(23, 58, 97, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 170px;
  box-shadow: 0 10px 20px rgba(13, 53, 92, 0.22);
  animation: heroBadgeFloat 4.8s ease-in-out infinite;
}

.hero-badge strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.1;
}

.hero-badge span {
  display: block;
  margin-top: 4px;
  font-size: 0.83rem;
  color: #3d5875;
}

.hero-badge-primary {
  right: 18px;
  bottom: 14px;
}

.hero-badge-secondary {
  left: 18px;
  top: 38%;
  animation-delay: 0.7s;
}

.hero-badge-tertiary {
  right: 38%;
  top: 8px;
  animation-delay: 1.3s;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes heroBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero-card {
  background: linear-gradient(145deg, #164b82 0%, #0f385f 100%);
  color: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 16px 32px rgba(15, 76, 129, 0.25);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.36rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.hero-card-foot {
  margin-top: 20px;
  color: #d7ebff;
  font-weight: 600;
}

.section {
  padding: 48px 0;
}

.light {
  background: var(--surface);
}

.gallery-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.real-gallery-section {
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.real-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.gallery-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8, 33, 20, 0.06);
}

.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #ffffff;
}

.gallery-card figcaption {
  padding: 12px 14px;
  font-weight: 700;
  color: #1e3f68;
}

.real-gallery-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.real-gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #ffffff;
}

.real-gallery-card figcaption {
  padding: 10px 12px;
  font-weight: 700;
  color: #1b3c63;
}

.photo-credit {
  margin-top: 12px;
  color: #5a6f89;
  font-size: 0.92rem;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

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

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.stat h3 {
  margin: 0 0 8px;
  color: var(--brand-green);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
}

.trust-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.quote-box {
  background: #fff;
  border-left: 5px solid var(--brand-orange);
  border-radius: 12px;
  padding: 18px 20px;
  color: #25466d;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.donate-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 100%);
}

.subtext {
  color: var(--muted);
}

.donation-card {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 18px;
  margin-top: 16px;
}

form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

label {
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9d7e9;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--brand-green);
  outline: 2px solid rgba(15, 76, 129, 0.14);
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.amount-btn {
  border: 1px solid #b8cce6;
  background: #fff;
  color: var(--brand-green);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.amount-btn.active {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

.status {
  min-height: 22px;
  margin: 10px 0 0;
  font-weight: 600;
}

.help-box {
  background: #113f67;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  align-self: start;
}

.help-box a {
  color: #d8ebff;
}

.qr-box {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 10px;
}

.qr-box img {
  background: #fff;
  border-radius: 8px;
  display: block;
}

.qr-box p {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: #e8f4ff;
}

.qr-box .upi-id {
  font-size: 0.88rem;
  word-break: break-all;
  color: #d9ebff;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: #3e5878;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.legal-page h1 {
  margin-bottom: 10px;
}

.legal-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.legal-wrap h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: clamp(1.16rem, 2.2vw, 1.35rem);
  color: #153c68;
}

.legal-wrap p {
  margin: 0;
  color: #344f6f;
  line-height: 1.75;
}

.receipt-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.receipt-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.receipt-table th,
.receipt-table td {
  border: 1px solid #d9e7df;
  padding: 10px 12px;
  text-align: left;
}

.receipt-table th {
  background: #f3fbf6;
  width: 220px;
}

.receipt-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gt-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Google Translate injected UI cleanup */
body {
  top: 0 !important;
}

.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

div[id*="google_translate_element"] + .skiptranslate,
.VIpgJd-yAWNEb-L7lbkb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
  display: none !important;
}

@media (max-width: 900px) {
  .brand img {
    width: 200px;
  }

  .hero-grid,
  .stats-grid,
  .trust-grid,
  .donation-card {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 34px;
  }

  .legal-wrap {
    padding: 16px;
  }

  .hero-visual {
    min-height: 420px;
    margin-top: 6px;
    padding: 16px;
  }

  .hero-photo-stack {
    min-height: 350px;
  }

  .hero-photo-main {
    width: 84%;
    height: 68%;
    top: 26px;
  }

  .hero-photo-top {
    width: 50%;
    height: 34%;
  }

  .hero-photo-bottom {
    width: 54%;
    height: 34%;
    left: 0;
  }

  .hero-badge {
    min-width: 145px;
    padding: 9px 10px;
  }

  .hero-badge strong {
    font-size: 1.03rem;
  }

  .hero-badge span {
    font-size: 0.76rem;
  }

  .hero-badge-secondary {
    top: 40%;
    left: 10px;
  }

  .hero-badge-tertiary {
    top: 10px;
    right: 34%;
  }
}

@media print {
  .topbar,
  .footer,
  .btn,
  .btn-ghost,
  .btn-small {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .section {
    padding: 0 !important;
  }

  .receipt-card {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .receipt-table {
    min-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-donate-animated,
  .hero-photo-card,
  .hero-badge {
    animation: none;
  }

  .cta-donate-animated::before {
    animation: none;
  }
}
