body {
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7fbfd;
  color: #0d1f35;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #0a77b8;
  text-decoration: none
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 36px) 36px 36px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .container {
    padding: 92px 22px 36px;
  }
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #07122a;
  margin: 0;
  text-shadow: 0 6px 18px rgba(10, 22, 40, 0.06)
}

.section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(10, 22, 40, 0.06);
  margin-top: 18px
}

.back-nav {
  margin-bottom: 18px
}

.section p {
  font-style: italic;
  color: #3a5068
}

.section-head {
  border-radius: 12px 12px 0 0;
  padding: 22px
}

.section-body {
  background: #fff;
  padding: 20px;
  border-radius: 0 0 12px 12px;
  margin-top: 0
}

.community-head {
  background: linear-gradient(135deg, #2b2454 0%, #8b72d8 100%);
  color: white
}

.community-head h2 {
  margin: 0;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  text-shadow: 0 6px 18px rgba(10, 22, 40, 0.06)
}

/* Heading gradients removed for accessibility — use solid, high-contrast headings */
#disaster h2,
#senior h2,
#inclusion h2,
#children h2 {
  color: #1a1050;
  -webkit-text-fill-color: #1a1050;
  background: none;
  text-shadow: 0 2px 8px rgba(10, 22, 40, 0.08);
}

/* Gallery: left photo column and right text column (uniform for programs) */
.gallery-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 18px;
}

.gallery-column.left {
  width: 40%;
  height: 450px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.1);
  background: #0d1a2a;
  position: relative;
}

.gallery-column.left .carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel .slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
}

.carousel .slot.active {
  opacity: 1;
  z-index: 2;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  will-change: opacity;
}

/* Premium gallery navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  padding: 0;
  color: #1a1a2e;
}

.gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.gallery-nav svg {
  width: 18px;
  height: 18px;
}

/* Seek bar */
.gallery-seek {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 10;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.gallery-seek-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b72d8, #b49aef);
  border-radius: 0 2px 2px 0;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dot indicators */
.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.gallery-dot.active {
  background: #fff;
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.gallery-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
}

/* Image counter badge */
.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.gallery-text {
  flex: 1;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.06);
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-text h2 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  color: #2b2454;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.gallery-text p {
  color: #3a5068;
  font-style: italic;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.gallery-text a {
  font-weight: 700;
  color: #0a77b8;
}

/* Animation removed — static gallery */
@media (max-width:767px) {
  .gallery-layout {
    flex-direction: column;
  }

  .gallery-column.left {
    width: 100%;
    height: 320px;
  }

  .gallery-text {
    text-align: left;
    min-width: 0;
  }
}