:root {
  --bg-cream: #f8f2e9;
  --bg-soft: #fffaf3;
  --ink: #152238;
  --muted: #516172;
  --accent: #b1442a;
  --accent-deep: #8a2e1a;
  --gold: #dca44b;
  --line: rgba(21, 34, 56, 0.1);
  --card-header-bg: rgba(108, 150, 224, 0.465);
  --bg-header: #152e5f;
  --bg-footer: #152e5f;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(220, 164, 75, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-cream), #ffffff 34%, var(--bg-soft));
}

.spacer-sm {
  height: 1.5rem;
}

.spacer-md {
  height: 3rem;
}

.spacer-lg {
  height: 5rem;
}

.card {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(21, 34, 56, 0.08);
  font-size: 1.25rem;
}

.card-header {
  display: block;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1.5rem 1.5rem 0 0 !important;
  border-bottom: 0.5px solid var(--line);
  font-size: 1.15rem;
  font-weight: 700;
  background-color: var(--card-header-bg) !important;
  padding-left: 1rem;
}

.hero-shell {
  position: relative;
  overflow: hidden;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}

.hero-shell::before {
  width: 22rem;
  height: 22rem;
  top: -9rem;
  right: -7rem;
  background: rgba(177, 68, 42, 0.12);
}

.hero-shell::after {
  width: 18rem;
  height: 18rem;
  top: 8rem;
  left: -8rem;
  background: rgba(220, 164, 75, 0.18);
}

.navbar,
.hero {
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 20;
}

.sub-header {
  position: relative;
  z-index: 10;
}

.navbar {
  background: var(--bg-header) !important;
}

.site-header-topbar {
  background-color: color-mix(in srgb, var(--bg-header) 82%, #000);
  padding: 0.45rem 0;
  font-size: 0.8rem;
}

.topbar-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  color: var(--gold);
}

.site-header-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.site-header-nav .nav-link:hover,
.site-header-nav .nav-link:focus-visible,
.site-header-nav .nav-link.show {
  color: #fff;
}

.site-header-nav .dropdown-menu {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 12px 24px rgba(21, 34, 56, 0.18);
}

.site-header-nav .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.5rem 0.9rem;
}

.site-header-nav .dropdown-item:hover,
.site-header-nav .dropdown-item:focus {
  background-color: rgba(21, 34, 56, 0.06);
  color: var(--accent);
}

.brand-logo--main {
  height: 4.5rem;
}

.sub-header {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-nav .nav-link {
  font-size: 0.92rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0.05rem;
  padding-bottom: 0.05rem;
  line-height: 0;
}

.navbar-brand,
.navbar-brand:visited,
.nav-link {
  color: #fff;
}

.navbar-brand:hover,
.navbar-brand:focus-visible,
.nav-link:hover {
  color: #fff;
}

.brand-logo {
  display: block;
  width: auto;
  height: 5.5rem;
}

.hero {
  padding: 2rem 0 5rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.hero-copy,
.text-secondary {
  color: var(--muted) !important;
}

.btn-donate {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border: 0;
  color: #fff;
  box-shadow: 0 12px 24px rgba(177, 68, 42, 0.2);
}

.btn-donate:hover,
.btn-donate:focus {
  background: linear-gradient(135deg, var(--accent-deep), #6c2112);
  color: #fff;
}

.nav-donate {
  padding-inline: 1.2rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem;
  border: 1px solid rgba(21, 34, 56, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lang-option {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-option.active {
  background: linear-gradient(135deg, rgba(21, 34, 56, 0.98), rgba(47, 66, 91, 0.98));
  color: #fff;
  box-shadow: 0 8px 16px rgba(21, 34, 56, 0.18);
}

.lang-option:hover,
.lang-option:focus-visible {
  color: var(--ink);
  outline: none;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.impact-panel,
.content-card,
.mini-card,
.timeline-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.impact-panel {
  padding: 1.75rem;
}

.impact-stat {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.impact-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.impact-label {
  margin-top: 0.35rem;
  color: var(--muted);
}

.section-pad {
  padding: 5rem 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(248, 242, 233, 0.72), rgba(255, 255, 255, 0.9));
  border-top: 1px solid rgba(21, 34, 56, 0.06);
  border-bottom: 1px solid rgba(21, 34, 56, 0.06);
}

.donation-breakdown li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  color: var(--muted);
}

.donation-breakdown i,
.mini-card i,
.compliance-item i {
  color: var(--accent);
}

.timeline-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0 1.75rem;
  margin: 0 -0.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.timeline-scroll::-webkit-scrollbar {
  height: 8px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.timeline-track {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  padding: 2rem 2rem 0;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 4%, var(--line) 96%, transparent);
}

.timeline-node {
  position: relative;
  flex: 0 0 15.5rem;
  width: 15.5rem;
  padding: 0 0.85rem;
  scroll-snap-align: start;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(177, 68, 42, 0.28), 0 0 0 4px var(--bg-soft, #fffaf3);
}

.timeline-node.is-milestone .timeline-marker {
  background: linear-gradient(135deg, var(--gold), #b9772c);
  box-shadow: 0 10px 20px rgba(220, 164, 75, 0.32), 0 0 0 4px var(--bg-soft, #fffaf3);
}

.timeline-card {
  position: relative;
  height: 100%;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 26px rgba(21, 34, 56, 0.07);
}

.timeline-date {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.timeline-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.timeline-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-note {
  display: inline-flex;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.95rem;
}

.photo-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(14rem, 20rem));
  gap: 1rem;
}

.photo-tile {
  margin: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(21, 34, 56, 0.08);
}

.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.tile-a {
  grid-row: 1 / span 2;
}

.tile-b {
  grid-column: 2;
  grid-row: 1;
}

.tile-c {
  grid-column: 2;
  grid-row: 2;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0;
}

.timeline-item + .timeline-item {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.timeline-dot {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  box-shadow: 0 0 0 6px rgba(220, 164, 75, 0.12);
}

.mini-card i {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
}

.compliance-list {
  display: grid;
  gap: 1rem;
}

.compliance-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
}

.form-control {
  border-radius: 0.9rem;
  border-color: rgba(21, 34, 56, 0.12);
  padding: 0.8rem 1rem;
}

.form-control:focus {
  border-color: rgba(177, 68, 42, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(177, 68, 42, 0.15);
}

.site-footer {
  padding: 3.5rem 0 0;
  border-top: 1px solid var(--bg-footer);
  background-color: var(--bg-footer) !important;
}

.site-footer .row.border-bottom {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.site-footer .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer-heading {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-list li {
  margin-bottom: 0.55rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--gold);
}

.footer-toggle-row span {
  color: rgba(255, 255, 255, 0.75);
}

.footer-list--sub {
  margin-top: 0;
  margin-left: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-list--sub a,
.footer-lang-option {
  color: rgba(255, 255, 255, 0.85);
}

.footer-list--sub a:hover,
.footer-list--sub a:focus-visible,
.footer-lang-option:hover,
.footer-lang-option:focus-visible {
  color: var(--gold);
}

.footer-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  transition: transform 0.2s ease, color 0.15s ease;
}

.footer-toggle:hover,
.footer-toggle:focus-visible {
  color: var(--gold);
}

.footer-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.footer-toggle i {
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-lang-option {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: inherit;
  text-align: left;
}

.footer-lang-option.active {
  font-weight: 700;
  color: #fff;
}

.footer-map {
  width: 100%;
  height: 11rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.9rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-footer);
}

.footer-logo {
  display: block;
  width: 5rem;
  height: auto;
  margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .hero {
    padding-bottom: 3rem;
  }

  .section-pad {
    padding: 4rem 0;
  }

  .lang-switcher {
    margin-block: 0.25rem;
  }

  .photo-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(12rem, 16rem));
  }

  .tile-a,
  .tile-b,
  .tile-c {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .impact-panel,
  .content-card,
  .mini-card,
  .timeline-card {
    border-radius: 1.1rem;
  }

  .hero-note {
    display: block;
  }

  .gallery-note {
    display: block;
  }

  .photo-collage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .photo-tile {
    min-height: 14rem;
  }
}
