body.theme-home .page-hero {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(228, 175, 72, 0.18), transparent 28%), radial-gradient(circle at 80% 25%, rgba(80, 129, 165, 0.22), transparent 24%), linear-gradient(135deg, #357ae8 0%, #0d3f8d 52%, #0095df 100%);
}

body.theme-home .page-hero__halo--one {
  background: rgba(228, 175, 72, 0.16);
}

body.theme-home .page-hero__halo--two {
  background: rgba(80, 129, 165, 0.16);
}

body.theme-home .hero-copy p,
body.theme-home .metric span {
  color: rgba(255, 255, 255, 0.78);
}

body.theme-home .panel--dark .program-card__icon,
body.theme-donate .panel--dark .program-card__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

body.theme-about .page-hero {
  background:
    radial-gradient(circle at top right, rgba(47, 106, 74, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(198, 91, 28, 0.12), transparent 24%),
    linear-gradient(135deg, #f8f1e5 0%, #f5e0cc 46%, #e1ede1 100%);
}

body.theme-about .page-hero__halo--one {
  background: rgba(198, 91, 28, 0.11);
}

body.theme-about .page-hero__halo--two {
  background: rgba(47, 106, 74, 0.1);
}

body.theme-services .page-hero {
  background:
    radial-gradient(circle at top left, rgba(31, 71, 99, 0.12), transparent 28%),
    radial-gradient(circle at right center, rgba(228, 175, 72, 0.14), transparent 24%),
    linear-gradient(135deg, #f7f5ef 0%, #dfeaf1 100%);
}

body.theme-services .page-hero__halo--one {
  background: rgba(31, 71, 99, 0.1);
}

body.theme-services .page-hero__halo--two {
  background: rgba(228, 175, 72, 0.12);
}

body.theme-gallery .page-hero {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(228, 175, 72, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(127, 49, 80, 0.22), transparent 24%),
    linear-gradient(135deg, #152a39 0%, #26342f 48%, #612742 100%);
}

body.theme-gallery .page-hero__halo--one {
  background: rgba(228, 175, 72, 0.14);
}

body.theme-gallery .page-hero__halo--two {
  background: rgba(127, 49, 80, 0.16);
}

body.theme-gallery .hero-copy p {
  color: rgba(255, 255, 255, 0.78);
}

body.theme-contact .page-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(198, 91, 28, 0.12), transparent 24%),
    radial-gradient(circle at 10% 90%, rgba(31, 71, 99, 0.12), transparent 24%),
    linear-gradient(135deg, #fbf7ef 0%, #f1e3ce 100%);
}

body.theme-contact .page-hero__halo--one {
  background: rgba(198, 91, 28, 0.1);
}

body.theme-contact .page-hero__halo--two {
  background: rgba(31, 71, 99, 0.08);
}

body.theme-donate .page-hero {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(228, 175, 72, 0.18), transparent 28%),
    linear-gradient(135deg, #7f320f 0%, #c55b1c 56%, #d58d26 100%);
}

body.theme-donate .page-hero__halo--one {
  background: rgba(255, 255, 255, 0.12);
}

body.theme-donate .page-hero__halo--two {
  background: rgba(228, 175, 72, 0.14);
}

body.theme-donate .hero-copy p,
body.theme-donate .page-summary-card p,
body.theme-donate .page-summary-card .meta-list li {
  color: rgba(255, 255, 255, 0.82);
}

body.theme-donate .page-summary-card,
body.theme-gallery .page-summary-card {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

body.theme-donate .page-summary-card .pill,
body.theme-gallery .page-summary-card .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.program-card--medical {
  --card-accent: linear-gradient(135deg, #c65b1c, #f0aa69);
}

.program-card--food {
  --card-accent: linear-gradient(135deg, #d89a20, #f3d06f);
}

.program-card--education {
  --card-accent: linear-gradient(135deg, #1f4763, #78a7c9);
}

.program-card--gaushala {
  --card-accent: linear-gradient(135deg, #2f6a4a, #7cb78f);
}

.program-card--children {
  --card-accent: linear-gradient(135deg, #7f3150, #c7849d);
}

.program-card--awareness {
  --card-accent: linear-gradient(135deg, #5d3e8c, #b69ad8);
}

.program-card--medical .program-card__icon {
  color: var(--accent);
  background: rgba(198, 91, 28, 0.12);
}

.program-card--food .program-card__icon {
  color: #9f6a00;
  background: rgba(228, 175, 72, 0.16);
}

.program-card--education .program-card__icon {
  color: var(--navy);
  background: rgba(31, 71, 99, 0.12);
}

.program-card--gaushala .program-card__icon {
  color: var(--forest);
  background: rgba(47, 106, 74, 0.14);
}

.program-card--children .program-card__icon {
  color: var(--berry);
  background: rgba(127, 49, 80, 0.12);
}

.program-card--awareness .program-card__icon {
  color: #5d3e8c;
  background: rgba(93, 62, 140, 0.12);
}

.story-card__visual--sun {
  background: linear-gradient(135deg, #f7d7ba, #e89b57);
}

.story-card__visual--leaf {
  background: linear-gradient(135deg, #d7ead8, #78b38c);
}

.story-card__visual--sky {
  background: linear-gradient(135deg, #dae8f3, #7da9c7);
}

.story-card__visual--berry {
  background: linear-gradient(135deg, #ebd7df, #ba7894);
}

.mosaic__item--medical {
  background: linear-gradient(135deg, #d0713c, #efb181);
}

.mosaic__item--gaushala {
  background: linear-gradient(135deg, #3e7b59, #86be97);
}

.mosaic__item--education {
  background: linear-gradient(135deg, #2f5b7b, #80b0d3);
}

.mosaic__item--food {
  background: linear-gradient(135deg, #d89f27, #f0d57f);
}

.mosaic__item--awards {
  background: linear-gradient(135deg, #7f3150, #cf90a8);
}

.mosaic__item--community {
  background: linear-gradient(135deg, #5c4388, #b2a1d6);
}

.mosaic__item--care {
  background: linear-gradient(135deg, #b54d26, #df8c59);
}

.mosaic__item--volunteer {
  background: linear-gradient(135deg, #23506f, #7eaec8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.mosaic__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(25, 53, 71, 0.15);
}

.story-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Gallery Modal Styles */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-modal__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}

.gallery-modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  width: 100%;
  gap: 1.5rem;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-modal__image {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-modal__info {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 500px;
  text-align: center;
  color: #fff;
}

.gallery-modal__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.gallery-modal__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}

.gallery-modal__nav:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-modal__nav--prev {
  left: 2rem;
}

.gallery-modal__nav--next {
  right: 2rem;
}

.gallery-modal__counter {
  position: absolute;
  bottom: 2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 10001;
}

@media (max-width: 768px) {
  .gallery-modal__close,
  .gallery-modal__nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .gallery-modal__nav--prev {
    left: 1rem;
  }

  .gallery-modal__nav--next {
    right: 1rem;
  }

  .gallery-modal__close {
    top: 1rem;
    right: 1rem;
  }

  .gallery-modal__content {
    max-height: 70vh;
  }

  .gallery-modal__image {
    max-height: 50vh;
  }

  .gallery-modal__info {
    padding: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .gallery-modal__title {
    font-size: 1.1rem;
  }

  .gallery-modal__counter {
    bottom: 1.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}
