/* --- Root Variables & Reset --- */
:root {
  --primary-color: #800020; /* Deep Burgundy / Classical Feel */
  --gold-accent: #d4af37;   /* Warm Metallic Gold */
  --bg-dark: #1a080c;
  --bg-light: #fffaf6;
  --text-color: #2c2c2c;
  --light-text: #ffffff;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Enables smooth animated scrolling across the page */
html {
  scroll-behavior: smooth;
}

/* Offsets section targets so headers don't get blocked by sticky navbar */
.scroll-section {
  scroll-margin-top: 110px; /* Adjusts offset based on desktop header height */
}

@media (max-width: 768px) {
  .scroll-section {
    scroll-margin-top: 70px; /* Adjusts offset based on mobile header height */
  }
}

/* Bulletproof Horizontal Scroll Lock */
html {
  overflow-x: hidden !important;
  width: 100vw;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-accent) var(--bg-dark);
}

body {
  font-family: 'Georgia', serif;
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
  padding-top: 98px; /* Matches desktop header height */
}

/* --- Header & Expanded Logo Styles --- */
.site-header {
  background-color: var(--bg-dark);
  position: fixed; /* Changed from sticky to fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  height: 98px;
  display: flex;
  align-items: center;
}

/* Allow overflowing logo to render without clipping */
.site-header {
  overflow: visible !important;
}

/* Hide header logo completely at top of page */
.header-fade-logo {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out !important;
}

/* Fade in smoothly when scrolled down */
.site-header.scrolled .header-fade-logo {
  opacity: 1 !important;
  visibility: visible !important;
}

/* --- Header Logo Switcher --- */
.header-text-logo {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  color: var(--gold-accent);
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

/* Image inside Header is hidden initially */
.scroll-logo {
  display: none;
}

/* Scroll Active State (handled via JS) */
.site-header.scrolled .header-text-logo {
  display: none;
}

.site-header.scrolled .scroll-logo {
  display: block;
}

/* --- Hero Section Updates --- */
.hero-logo-img {
  max-width: 500px;
  width: 80%;
  height: auto;
  margin-top: -2rem;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.6));
  animation: fadeInUp 1s ease forwards;
}

/* Reduced Subtitle Font Weight */
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300; /* Lighter weight */
  max-width: 700px;
  margin: 0 auto 2rem auto;
  font-family: system-ui, -apple-system, sans-serif;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0.95;
}

/* Hero Phone Number */
.hero-phone {
  color: #ffffff;
  font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: fadeInUp 1.4s ease forwards;
}

/* --- Tiny Black Outline Icons for Cards --- */
.card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: #2c2c2c; /* Tiny black outline */
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 100%;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.site-logo {
  height: 136px; 
  width: auto;
  object-fit: cover; 
  object-position: center;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: system-ui, -apple-system, sans-serif;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-accent);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--gold-accent);
  font-size: 1.8rem;
  padding: 0.5rem;
  z-index: 1001;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
                rgba(26, 8, 12), 
                rgba(128, 0, 32, 0.76)
              ),
              url('../images/image2.png') center/cover no-repeat;
  color: var(--light-text);
  text-align: center;
  padding: 0rem 1rem 1rem 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 6s infinite alternate;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-title {
  font-size: 3.2rem;
  color: var(--gold-accent);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease forwards;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  font-family: system-ui, -apple-system, sans-serif;
  animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


.card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(128, 0, 32, 0.18);
}

/* Card Image Container & Formatting */
.card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

/* Subtle zoom effect on card hover */
.card:hover .card-img {
  transform: scale(1.05);
}


.temple-border-top {
  border-top: 4px dashed var(--gold-accent);
}


/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background-color: var(--gold-accent);
  color: var(--bg-dark);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-family: system-ui, -apple-system, sans-serif;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #f1c40f;
  transform: translateY(-2px);
}

/* --- Layout Sections --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* --- Section Title (Bulletproof Centered Grid) --- */
.section-title {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); /* Prevents flex overflow */
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 2.2rem;
  color: var(--primary-color) !important;
  margin-bottom: 2.5rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.section-title::after {
  display: none !important;
}

/* Center text span */
.section-title span {
  display: block;
  color: var(--primary-color);
  font-weight: bold;
  text-align: center;
  white-space: normal; /* Allows long titles to wrap cleanly on smaller screens */
  word-break: break-word;
}

/* Left & Right Sticker Containers */
.title-stickers-left,
.title-stickers-right {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden; /* Clips sticker overflow instead of shifting container */
  width: 100%;
}

.title-stickers-left {
  justify-content: flex-end; /* Hugs text from the left */
}

.title-stickers-right {
  justify-content: flex-start; /* Hugs text from the right */
}

/* Sticker Images */
.title-sticker {
  height: 42px !important;
  width: auto;
  max-width: 100%; /* Ensures images scale down rather than forcing container overflow */
  object-fit: contain;
  display: block !important;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
  opacity: 0.6;
  flex-shrink: 1; /* Allows stickers to shrink evenly when space is tight */
  margin: 0 !important;
}

/* Mobile Screen Adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.35rem;
    gap: 0.5rem;
  }

  .title-sticker {
    height: 22px !important;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.program-banner {
  margin-bottom: 2.5rem;
  text-align: center;
}

.program-banner-img {
  width: 45%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--primary-color);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}


/* --- Single Large Gallery Card --- */
.gallery-single-container {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card .caption {
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  color: var(--primary-color);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}
/* Card Slider Container */
.slider-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background-color: #1a1a1a;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Arrow Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
  user-select: none;
}

.slider-btn:hover {
  background: rgba(212, 175, 55, 0.85); /* Accent gold on hover */
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Dots Indicator */
.slider-dots {
  position: absolute;
  bottom: 50px; /* Adjust this value down as needed */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.dot.active {
  background: #d4af37; /* Accent gold */
  transform: scale(1.2);
}
/* --- Form Controls --- */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* --- Base Container --- */
.social-links,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* --- Base Button (Used in Main Body & Footer) --- */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  transition: fill 0.3s ease;
}


/* =========================================================
   1. MAIN CONTENT (Card): Always Solid Brand Colors
   ========================================================= */
.social-links .social-icon-btn {
  /* SVGs inside main card are always white */
}
.social-links .social-icon-btn svg {
  fill: #ffffff;
}

.social-links .social-icon-btn.whatsapp { background-color: #25d366; }
.social-links .social-icon-btn.instagram { background-color: #bc1888; }
.social-links .social-icon-btn.facebook { background-color: #1877f2; }
.social-links .social-icon-btn.email { background-color: #d44638; }

.social-links .social-icon-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}


/* =========================================================
   2. FOOTER: Neutral by default, Brand Colors ONLY on HOVER
   ========================================================= */

/* Default state in footer (Outlined / Neutral) */
.footer-socials .social-icon-btn {
  background-color: transparent;
  border: 1px solid var(--bg-light, #333333);
}

.footer-socials .social-icon-btn svg {
  fill: var(--bg-light, #333333);
}

/* Hover states in footer: Swap to white icon + brand background */
.footer-socials .social-icon-btn:hover {
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-socials .social-icon-btn:hover svg {
  fill: #ffffff;
}

/* Brand backgrounds trigger ONLY when hovered in the footer */
.footer-socials .social-icon-btn.whatsapp:hover { background-color: #25d366; }
.footer-socials .social-icon-btn.instagram:hover { background-color: #bc1888; }
.footer-socials .social-icon-btn.facebook:hover { background-color: #1877f2; }
.footer-socials .social-icon-btn.email:hover { background-color: #d44638; }

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--light-text);
  padding: 1.5rem 2rem;
  margin-top: 4rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  margin: 0;
  text-align: left;
}

.credit-link {
  color: var(--gold-accent);
  text-decoration: none;
  transition: var(--transition);
}

.credit-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--light-text);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon-btn:hover {
  background-color: var(--gold-accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* Individual Brand Colors on Hover */
.social-icon-btn.whatsapp:hover { background-color: #25D366; color: #ffffff; }
.social-icon-btn.instagram:hover { background-color: #DD2A7B; color: #ffffff; }
.social-icon-btn.facebook:hover { background-color: #1877F2; color: #ffffff; }
.social-icon-btn.email:hover { background-color: #EA4335; color: #ffffff; }

/* --- Responsive Media Queries for Mobile Screens --- */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
    overflow: visible; /* Allows mobile dropdown menu to float outside header */
  }

  .site-logo {
    height: 75px;
  }

  /* --- ADD THIS RULE HERE --- */
  .hero {
    padding-top: 80px !important; /* Adjust this value (e.g., 70px–100px) based on how much spacing you want under the fixed header */
  }
body {
    padding-top: 0px; /* Matches mobile header height */
  }
  /* Hamburger Toggle Display */
  .hamburger {
    display: block;
  }

  /* Mobile Dropdown Navigation Menu */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 1.5rem;
    gap: 1.2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  /* Smaller Title Stickers on Mobile */
  .section-title {
    font-size: 1.35rem;
    gap: 0.5rem;
  }

  .title-sticker {
    height: 22px !important; /* Smaller size for mobile screens */
    max-width: 50px;
  }



  /* Keep Containers Bounded */
  .container, 
  .nav-container, 
  .footer-container, 
  .hero {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
    
  }

  /* --- Layout Sections --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.program-banner-img {
  width: 100%;
}

  h1, h2, h3, .section-title {
    max-width: 100%;
    overflow-wrap: break-word;
    line-height: normal;
  }

  .footer-container {
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
  }

  .footer-copyright {
    text-align: center;
  }
}

/* --- Single Large Gallery Card --- */
.gallery-single-container {
  max-width: 900px;
  margin: 0 auto;
}

.single-large-card {
  width: 100%;
}

.single-large-card .slider-container {
  height: 480px; /* Increased height for featured display */
  border-radius: 8px;
}

.single-large-card .slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-dark);
}

.single-large-card .slide img {
  width: 100%;
  height: calc(100% - 45px);
  object-fit: cover;
}

.single-large-card .slide .caption {
  height: 45px;
  line-height: 45px;
  padding: 0 1rem;
  background: #ffffff;
  margin: 0;
}

/* Slide 5: Instagram Callout */
.slide.instagram-slide {
  height: 100%;
  background: linear-gradient(360deg, #ff0f58  0%, #ffffff 100%);
  display: flex;
  align-items: center;
} 

.instagram-embed-wrapper {
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}

.instagram-heading {
  font-size: 2rem;
  color: var(--gold-accent);
  margin-bottom: 0.8rem;
  font-family: 'Georgia', serif;
}

.instagram-subtext {
  font-size: 1rem;
  margin-bottom: 1.8rem;
  opacity: 0.9;
  font-family: system-ui, -apple-system, sans-serif;
}

.instagram-btn {
  background-color: #dd2a7b;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border-radius: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.instagram-btn:hover {
  background-color: #9b1e5a;
  transform: translateY(-3px);
}

/* Responsive Scaling for Mobile Screens */
@media (max-width: 768px) {
  .single-large-card .slider-container {
    height: 320px;
  }

  .instagram-heading {
    font-size: 1.4rem;
  }

  .instagram-subtext {
    font-size: 0.85rem;
  }
}
