:root {
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-dark: #4b2743;
  --color-purple: #5a2a57;
  --color-light-bg: #FFF6EF;
  --color-nav: #e7d2df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--default-font-family);
  overflow-x: hidden; /* Prevents side-scrolling */
}

/* --- Header & Navigation --- */
.header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap; 
  padding: 1rem 2rem; 
  background: #ffffff;
  
  /* THIS IS THE NEW 3D SHADOW */
  box-shadow: 0 4px 15px rgba(75, 39, 67, 0.08); 
  
  position: relative; 
  z-index: 100; 
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-purple);
  font-size: 2rem;
}

.green-cross-design {
  width: 2.625rem;
  height: 3.9375rem;
  background: url(https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-10-01/Y3qA72zk9z.png) no-repeat center;
  background-size: cover;
}

/* Hamburger Button Setup */
.hamburger {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-dark);
  cursor: pointer;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-bar a {
  position: relative;
  color: #3c2139;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  padding: 0.5rem 0;
}

.nav-bar a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: #3c2139;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-bar a:hover::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  text-align: center;
  padding: 12rem 2rem 8rem; /* Scaled down from 30rem */
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem; /* Replaced the inline 500% */
  margin: 0 0 1rem 0;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-family: 'Cormorant Garamond', serif;
}

.hero p.hero-prayer {
  color: white;
  font-size: 1.5rem; /* Replaced the inline 180% */
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* --- Latest News --- */
.latest-news {
  padding: 5rem 1rem;
  text-align: center;
  background: var(--color-light-bg);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.latest-news h1 {
  color: var(--color-purple);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
}

.news-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; 
  width: 100%; 
  max-width: 800px; 
  margin: 2rem auto; 
}

.news-card {
  background-color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-dark); 
  box-shadow: 0 6px 12px rgba(75, 39, 67, 0.15); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.news-card h3 {
  margin-top: 0;
  color: var(--color-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
}

.news-card .date {
  font-size: 0.9rem;
  font-style: italic;
  color: #666666;
  display: block;
  margin-top: 1rem;
}

/* --- Mass Timings --- */
.mass-timings {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 11rem 2rem; /* Reduced padding */
  text-align: center;
  color: white;
}

.mass-timings .overlay {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 4rem;
  border-radius: 12px;
  display: inline-block;
}

.mass-timings h1, .mass-timings a {
  color: var(--color-purple);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: 600;

}

/* --- History & YouTube --- */
.history, .youtube {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 2rem;
}

.history { background-color: var(--color-light-bg); }
.youtube { background-color: #FFFFFF; }

.history h1, .youtube h1 {
  color: var(--color-purple);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
}

.history h3 { color: #b399b0; }

.history img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
}

.youtube iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border-radius: 10px;
}

/* --- Footer --- */
.footer-top {
  display: flex;
  justify-content: space-evenly;
  padding: 4rem 2rem;
  background: var(--color-dark);
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-title {
  color: #fff6ef;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-data {
  color: #fff6ef;
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: #331a2d;
  position: relative;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.credits {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;

}


/* =========================================
   MOBILE RESPONSIVENESS (Screens < 768px)
========================================= */
@media (max-width: 768px) {
  
  /* Header & Hamburger Menu */
 /* Header & Hamburger Menu Mobile Fixes */
  .header {
    flex-wrap: nowrap; /* Forces the logo and hamburger to stay on the same row */
    align-items: center; /* Vertically centers the button with the logo */
    padding: 1rem;
  }

  .logo {
    font-size: 1.1rem; /* Shrinks the text just a tiny bit more to fit */
    line-height: 1.2;
    flex: 1; /* Allows the logo to take up all the available left-side space */
  }

  .green-cross-design {
    width: 2rem;
    height: 3rem;
    flex-shrink: 0; /* Prevents the cross image from getting squished */
  }

  .hamburger {
    display: block;
    margin-left: 1rem; /* Adds a little breathing room between the text and the button */
    padding: 0.5rem;
  }

  /* The Dropdown Menu Magic */
  .nav-bar {
    display: none; /* Hide standard nav */
    flex-direction: column;
    
    /* These two lines push the menu to the right! */
    align-items: flex-end; 
    padding-right: 2rem; 
    
    width: 100%;
    background-color: var(--color-nav);
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }

  /* Toggled via JS */
  .nav-bar.active {
    display: flex; 
  }

  /* Typography Scaling */
  .hero {
    padding: 8rem 1rem 4rem; 
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p.hero-prayer {
    font-size: 1.1rem;
  }

  .latest-news h1, .mass-timings h1, .history h1, .youtube h1 {
    font-size: 2rem;
  }

  /* Stacking side-by-side elements */
  .history, .youtube {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .youtube iframe {
    height: 250px; /* Prevent tall squished videos */
  }

  /* Footer Adjustments */
  .footer-top {
    flex-direction: column;
  }

  .footer-hall-booking {
    flex-direction: column;
    text-align: center;
  }

  .social-media {
    position: static; /* Removes absolute positioning */
    margin-top: 1rem;
  }
}