/* =========================================================
   HOME PAGE ONLY STYLES
   Scope: index.html
   ========================================================= */

/* =========================
   Home – Carousel
   ========================= */

.carousel-section {
  padding: 0; /* remove extra vertical space */
}

.carousel-section.section {
  padding-left: 0;
  padding-right: 0;
}

.carousel {
  position: relative;
  width: 100%;
  height: clamp(460px, 55vh, 560px);
  overflow: hidden;
}

/* Slides */
.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--temple-maroon);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 3;
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #fff;
}

/* =========================================================
   HOME HERO OVERRIDES (scoped)
   ========================================================= */

/* .site-hero#home {
  margin-top: -80px;
} */

.site-hero#home .hero-shell {
  padding: clamp(1.25rem, 2vw, 2.1rem); /* tighter than site.css */
}

/* HERO typography tweaks */
/* .home-hero .hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
} */

/* Prevent wrapping in hero (desktop) */
/* .home-hero .hero-title,
.home-hero .hero-subtitle,
.home-hero .hero-lede,
#home .note-value {
  white-space: nowrap;
} */

/* These must be scoped to the hero so they don't affect other pages/sections */
#home .hero-quick-info {
  margin-top: 1.25rem;
}

#home .hero-actions--center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

#home .hero-timings {
  font-size: 0.95rem;
  color: #b9ff7a;
  letter-spacing: 0.03em;
}

#home .hero-timings strong {
  color: #eaffc7;
  font-weight: 600;
}

#home .hero-timings span {
  margin-left: 0.4rem;
}

#home .hero-timings .separator {
  margin: 0 0.6rem;
  opacity: 0.6;
}

/* #home .hero-notes {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
} */

/* --- Gita block: shorter + left aligned + tighter spacing --- */
#home .hero-gita {
  margin: 0.65rem 0 0.9rem; /* reduces section height */
  max-width: none;
  text-align: left;
}

#home .hero-gita p {
  margin: 0; /* remove default paragraph margins */
}

/* Ensure no wrap for the Gita transliteration (desktop) */
#home .gita-transliteration {
  font-style: italic;
  white-space: nowrap;
}

/* Reduce spacing between the two Gita lines */
#home .gita-english {
  margin-top: 0.25rem; /* was 0.6rem */
}

#home .gita-ref {
  display: block;
  margin-top: 0.2rem; /* was 0.4rem */
  font-size: 0.85rem;
  opacity: 0.85;
}

/* =========================
   Services – 3 x 2 Grid
   (scoped to this grid only)
   ========================= */

.services-grid--six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* IMPORTANT: scoped so it doesn't affect other service-card usage */
.services-grid--six > .service-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-grid--six > .service-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1.25rem;
}

.services-grid--six > .service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--temple-ink);
}

.services-grid--six > .service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray);
  margin-bottom: 1.25rem;
  max-width: 90%;
}

.services-grid--six > .service-card .btn.small {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

/* --- Donation CTA section --- */

.donation-cta {
  background: linear-gradient(
    120deg,
    rgba(123, 31, 27, 0.12),
    rgba(242, 197, 110, 0.2)
  );
}

/* IMPORTANT: scope cta-card so it doesn't affect other cards elsewhere */
.donation-cta .cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid rgba(123, 31, 27, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(45, 28, 16, 0.12);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1024px) {
  .services-grid--six {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid--six > .service-card img {
    height: 260px;
  }

  /* allow wrap on tablets */
  .home-hero .hero-title,
  .home-hero .hero-subtitle,
  .home-hero .hero-lede,
  #home .gita-transliteration {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 220px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }

  #home .hero-actions--center {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .services-grid--six {
    grid-template-columns: 1fr;
  }

  .services-grid--six > .service-card img {
    height: 220px;
  }
}
