/* ═══════════════════════════════════════════════════════════
   SRI SAI EVENTS — service-pages.css
   Shared styles for all individual service pages
═══════════════════════════════════════════════════════════ */

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom,
    rgba(18,8,32,0.45) 0%,
    rgba(18,8,32,0.65) 50%,
    rgba(18,8,32,0.96) 100%);
}
.page-hero-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 4rem 1.5rem 3rem;
  gap: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(212,175,55,0.7);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: rgba(212,175,55,0.65);
  transition: color 0.3s ease;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* Hero icon */
.page-hero-icon {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--gold);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 50px rgba(212,175,55,0.2);
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700; color: var(--fg);
  line-height: 1.15; margin-bottom: 1rem;
}
.page-hero-desc {
  font-size: 1.05rem; color: rgba(240,230,255,0.75);
  font-weight: 300; line-height: 1.7;
  max-width: 36rem; margin-bottom: 2rem;
}

/* ── OVERVIEW SECTION ───────────────────────────────────── */
.sp-overview { background: var(--bg); }
.sp-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sp-desc {
  color: rgba(240,230,255,0.75);
  font-weight: 300; line-height: 1.8;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}
.sp-overview-text .section-title { margin-bottom: 0; }
.sp-highlights {
  display: flex; flex-direction: column;
  gap: 0.75rem; margin-top: 1.5rem;
}
.sp-highlight-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: rgba(240,230,255,0.85);
}
.sp-highlight-item i { color: var(--gold); font-size: 0.85rem; flex-shrink: 0; }

.sp-overview-img {
  border-radius: 1.5rem; overflow: hidden;
  border: 3px solid rgba(212,175,55,0.15);
  aspect-ratio: 4/3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.sp-overview-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.sp-overview-img:hover img { transform: scale(1.04); }

/* ── SUB-SERVICES GRID ──────────────────────────────────── */
.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sub-service-card {
  background: var(--bg);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sub-service-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.ss-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(212,175,55,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.sub-service-card:hover .ss-icon {
  transform: scale(1.1);
  background: rgba(212,175,55,0.14);
}
.ss-name {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 700;
  color: var(--fg); margin-bottom: 0.75rem;
}
.ss-desc {
  font-size: 0.85rem; color: rgba(240,230,255,0.65);
  font-weight: 300; line-height: 1.65;
  margin-bottom: 1.25rem;
}
.ss-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
  border-top: 1px solid rgba(212,175,55,0.1);
  padding-top: 1rem;
}
.ss-list li {
  font-size: 0.8rem; color: rgba(212,175,55,0.8);
  font-weight: 500; padding-left: 1rem; position: relative;
}
.ss-list li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--gold);
}

/* ── SERVICE GALLERY ────────────────────────────────────── */
.sp-gallery { background: var(--bg); }
.sp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sp-gallery-grid .gallery-item { aspect-ratio: 4/3; }

/* ── GALLERY CAROUSEL (rotating slideshow) ──────────────── */
.sp-gallery-carousel {
  position: relative; overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 16/9; max-height: 72vh;
  width: min(100%, 72rem);
  margin: 0 auto;
  background: var(--bg-alt);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  border: 1px solid rgba(212,175,55,0.14);
  user-select: none;
}
.sgc-slide {
  position: absolute; inset: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 1s ease;
}
.sgc-slide.active { opacity: 1; }
/* Blurred background layer — covers the frame to eliminate black bars */
.sgc-slide-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: blur(18px) brightness(0.55) saturate(1.2);
  transform: scale(1.08);
}
/* Foreground layer — full image, no cropping */
.sgc-slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
.sgc-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(12,4,24,0.65);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 50%;
  width: 3rem; height: 3rem;
  color: var(--gold); cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.sgc-btn:hover {
  background: rgba(212,175,55,0.18);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}
.sgc-prev { left: 1.25rem; }
.sgc-next { right: 1.25rem; }
.sgc-dots {
  position: absolute; bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 10;
}
.sgc-dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}
.sgc-dot.active { background: var(--gold); transform: scale(1.4); }

/* Counter badge */
.sgc-counter {
  position: absolute; top: 1rem; right: 1.25rem; z-index: 10;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(212,175,55,0.85);
  background: rgba(12,4,24,0.65);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 2rem; padding: 0.3rem 0.85rem;
}

/* ── CTA SECTION ────────────────────────────────────────── */
.sp-cta { background: var(--bg-alt); }
.sp-cta-card {
  max-width: 42rem; margin: 0 auto;
  text-align: center;
  background: var(--bg);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 1.5rem;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.sp-cta-icon {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--gold);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 40px rgba(212,175,55,0.15);
}
.sp-cta-card .section-title { margin-bottom: 1rem; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.sp-cta-card > p {
  color: rgba(240,230,255,0.65); font-weight: 300;
  font-size: 0.95rem; margin-bottom: 2rem;
}
.sp-cta-btns {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* ── HERO CAROUSEL ──────────────────────────────────────── */
.carousel-slide {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0;
  transition: opacity 1.3s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.carousel-dots {
  position: absolute; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 20;
}
.carousel-dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

/* ── "LEARN MORE" LINK on service cards (main page) ─────── */
.service-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s ease, opacity 0.3s ease;
}
.service-link i { font-size: 0.7rem; transition: transform 0.3s ease; }
.service-card:hover .service-link i { transform: translateX(4px); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sp-overview-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sp-overview-img { max-width: 28rem; }
}
@media (max-width: 768px) {
  .sp-gallery-grid { grid-template-columns: 1fr; }
  .sp-cta-btns { flex-direction: column; align-items: center; }
  .sp-cta-btns a { width: 100%; justify-content: center; }
  .sub-services-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 80vh; }
  .sp-gallery-carousel { aspect-ratio: 4/3; max-height: none; }
  .sgc-prev { left: 0.6rem; }
  .sgc-next { right: 0.6rem; }
  .sgc-btn { width: 2.4rem; height: 2.4rem; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .sp-cta-card { padding: 2.5rem 1.5rem; }
}
