/* ===== RESET ===== */
html {
  scroll-behavior: smooth; /* Smooth scrolling for all anchor links */
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }
}

/* Navbar base */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

/* Hamburger icon (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    max-height: 300px; /* menu expands when active */
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}


* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Poppins','Noto Serif',serif; color:#3a2e1f; background:url('https://i.ibb.co/wyDL7Hh/temple-bg-pattern.png'),#fffaf3; background-attachment:fixed; background-size:cover; scroll-behavior:smooth; }
a { text-decoration:none; color:inherit; transition:0.3s; }
a:hover { color:#b85c38; }

.section {
  scroll-margin-top: 80px; 
}

.site-logo {
  height: 70px;      /* adjust size as needed */
  width: auto;
  vertical-align: middle;
  margin-right: 10px; /* spacing between logo and text */
}



/* ===== NAVBAR ===== */


.site-header { background:linear-gradient(90deg,#f3e0c3,#fff4e0); box-shadow:0 3px 10px rgba(0,0,0,0.1); position:sticky; top:0; z-index:10; }
.navbar { display:flex; justify-content:space-between; align-items:center; padding:1rem 5%; }
.logo { font-family:'Cinzel Decorative',serif; font-size:1.8rem; color:#8b4513; }
nav ul { list-style:none; display:flex; gap:1.2rem; }
nav li a { padding:0.5rem 1rem; border-radius:20px; font-weight:500; }
nav li a:hover, nav li a.active { background:#f6dcbf; color:#7a3010; }

/* ===== HERO/Home ===== */
/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 90vh; /* almost full screen */
  overflow: hidden;
}

/* Local video styling */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover entire hero area */
  transform: translate(-50%, -50%);
  z-index: -1; /* behind overlay */
}



#load-more-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #121303;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s, background-color 0.3s;
}

#load-more-btn:hover {
  background-color: #e63946;
  transform: scale(1.05);
}


/* Overlay styling */
.overlay {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  text-align: center;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.2); /* semi-transparent overlay for text readability */
  padding: 0 20px;
}

/* Hero text */
.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(236, 234, 234, 0.1);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 5px rgba(233, 228, 228, 0.1);
}

#load-more-btn:hover {
  background-color: #e63946;
  transform: scale(1.05);
}

.hero-content h1,
.hero-content p,
.hero-content a {
  color: white;
}


/* ===== HISTORY TEXT STYLING ===== */

#history p {
  text-align: justify;        /* Justified alignment for neat edges */
  line-height: 1.8;           /* More spacing between lines for readability */
  margin-bottom: 1.2rem;      /* Space between paragraphs */
  font-size: 1.1rem;          /* Slightly bigger for reading */
  color: #4a2e05;             /* Dark brown for easy reading */
}

#history h2 {
  text-align: center;          /* Center the heading */
  font-family: 'Cinzel', serif;
  color: #7a3010;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

#history-anchor {
  text-align: left;
}



/* Donate button styling */
.btn-primary {
  background-color: #ff4d4d;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.3s, background-color 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  background-color: #e63946;
  cursor: pointer;
}


/*=====Services======*/
.service-poojas {
  max-height: 0;            
  overflow: hidden;
  margin-top: 12px;
  text-align: left;
  list-style-type: disc;
  padding-left: 20px;
  color: #4a2e05;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.service-poojas .highlight {
  color: #c0392b;      /* bright red text */
  font-weight: 700;     /* bold */
  background-color: #fff3e0; /* optional light highlight */
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-block;
}

.service-poojas.show {
  max-height: 500px;        
  opacity: 1;
}


body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #fffaf0, #f9f0d9);
  color: #4a2e05;
  margin: 0;
  padding: 0;
  text-align: center;
}


.section {
  padding: 3rem 1rem;
}
.service-card {
  background: #fff7f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.service-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.service-btn {
  background: linear-gradient(90deg, #b85c38, #e7a04e);
  color: #fffaf3;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.service-card {
  background: #fff7f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.service-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #9a431e, #cc8b32);
}

.service-description {
  margin-top: 20px;
  text-align: center;
}

.service-card {
  background: #fff7f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.service-card img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  margin-top: 10px;
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== CONTACT TEXT STYLING ===== */
#contact p {
  text-align: justify;        /* Justified text for neat edges */
  line-height: 1.8;           /* Better spacing between lines */
  margin-bottom: 1rem;        /* Space between lines */
  font-size: 1.1rem;          /* Readable font size */
  color: #4a2e05;             /* Dark brown for easy reading */
}

#contact h2 {
  text-align: center;          /* Center the heading */
  font-family: 'Cinzel', serif;
  color: #7a3010;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

#contact h2 {
  text-align: left;
}
.map-container {
  margin-top: 20px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== SECTIONS ===== */


.section { padding:4rem 0; }
.content-card { background:rgba(255,245,225,0.95); border-left:6px solid #d8a25e; border-radius:10px; margin:0 auto 2rem auto; padding:2rem; max-width:1000px; box-shadow:0 4px 12px rgba(0,0,0,0.1); }
h2 { font-family:'Cinzel',serif; color:#7a3010; margin-bottom:1rem; border-bottom:2px solid #e7c27d; display:inline-block; padding-bottom:0.3rem; }



/* ===== GALLERY ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;

  /* Transition for smooth pop effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.gallery-grid img:hover {
  transform: scale(1.5);        /* Slight zoom */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); /* Shadow */
  z-index: 10;                  /* Bring image above others */
  cursor: pointer;              /* Show pointer on hover */
}


.btn-primary {
  background-color: #ff4d4d;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  background-color: #e63946;
}

/* ===== DONATION FORM ===== */

#donate {
  background: linear-gradient(180deg, #fff8e1 0%, #fff3d0 100%);
  border-left: 6px solid #d8a25e;
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

#donate h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #7a3010;
  margin-bottom: 0.8rem;
}

#donate p {
  font-size: 1.1rem;
  color: #4a2e05;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.donation-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: auto;
}

.donation-form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.donation-form button {
  background-color: #c0392b;
  color: white;
  border: none;
  padding: 10px;
  width: 56%;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.donation-form button:hover {
  background-color: #a93226;
}

.donation-message {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}
/* Style dropdown like donation inputs */
#donation-type {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  width: 56%;
  box-sizing: border-box;
  background-color: #fffaf3; /* match your input background */
  color: #3a2e1f; /* match text color */
  appearance: none; /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
}

/* Optional: add a custom arrow */
#donation-type {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><polygon points="0,0 12,0 6,6" fill="%237a3010"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}




/* ===== FOOTER ===== */

.site-footer {
  background: rgba(40, 20, 10, 0.6); /* Transparent brownish tone */
  color: #f8f5f2;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  font-family: 'Poppins', sans-serif;
}

.site-footer .social-icons {
  margin-top: 10px;
}

.site-footer .social-icons a {
  margin: 0 10px;
  color: #f8f5f2;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.site-footer .social-icons a:hover {
  color: #ffcc99; /* Light highlight on hover */
}

/* ===== Responsive Navbar and Hamburger ===== */
.navbar {
  padding: 1rem 5%;
  position: relative;
}

nav ul {
  flex-direction: row;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 22px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #8b4513;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #f3e0c3, #fff4e0);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  nav ul.show {
   max-height: 400px; /* enough for all links */
  }

  nav li a {
    padding: 1rem 2rem;
    display: block;
    border-radius: 0;
    border-bottom: 1px solid #e7c27d;
  }

  nav li:last-child a {
    border-bottom: none;
  }

  .hamburger {
    display: flex;
  }

  

  /* Optional: Animate hamburger to cross when open */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* hamburger + logo start from left */
    gap: 10px;                   /* spacing between hamburger and logo */
    padding: 0.8rem 5%;
    position: relative;
  }

  .logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: #8b4513;
  }

  .site-logo {
    height: 50px;
    margin-right: 8px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 11;
  }

  .hamburger span {
    display: block;
    height: 3px;
    background-color: #8b4513;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Hamburger animation */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  nav ul {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #f3e0c3, #fff4e0);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9;
  }

  nav ul.show {
    max-height: 400px;
  }

  nav li a {
    padding: 1rem 2rem;
    display: block;
    border-bottom: 1px solid #e7c27d;
  }

  nav li:last-child a {
    border-bottom: none;
  }
}


/* UPI Link Styling */
#upi-box {
  margin-top: 30px;
  text-align: center;
}

#upi-box h3 {
  font-size: 1.5rem;
  color: #c0392b; /* main theme red */
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 1px 1px 2px #f7dc6f; /* subtle golden glow */
}

#upi-link a {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e74c3c; /* slightly brighter red */
  background: linear-gradient(90deg, #f1c40f, #e67e22); /* devotional golden-orange gradient */
  padding: 12px 25px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all;
}
