/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: 'Mukta', sans-serif;
  background: #ececec;
  color: #2b2b2b;
  scroll-behavior: smooth;
}

/* ================= TOP BAR ================= */
.top-bar {
  width: 100%;
  background: #1a0000; /* dark top bar */
  color: #ffd700;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
}

/* ================= TOP HEADER ================= */
.top-header {
  background: #ffffff;
  color: #2b2b2b;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #d0d0d0; /* softer border */
}

.top-header .logo-name {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-header .logo {
  width: 50px;
  height: 50px;
  background: #6b0000; /* darker red */
  color: #ffd700;
  border-radius: 50%;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.5rem;
}

.top-header h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 900;
  color: #8b0000;
  line-height: 1.2;
}

.top-header p {
  margin: 2px 0 0 0;
  font-size: 0.95rem;
  color: #333; /* slightly darker subtitle */
  margin-left: 75px;
  font-weight: 600;
}

/* ================= MENU ================= */
.main-nav {
  background: #2c0000;
  display: flex;
  justify-content: center;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

.main-nav a {
  color: #ffd700;
  margin: 0 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.8px;
}

/* ================= HERO SLIDER ================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);              /* 🔥 zoom start */
  transition: opacity 1s ease-in-out,
              transform 6s ease-in-out;
}

.slide.active {
  opacity: 1;
  transform: scale(1);                 /* 🔥 slow zoom out */
  z-index: 2;
}


/* Overlay text */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.45); /* darker overlay */
  padding: 0 20px;
}

.overlay h1 {
  font-size: 3rem;
  font-weight: 900;
}

.overlay span {
  font-size: 1.5rem;
}

/* Slider dots */
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 6;
}

.dot {
  width: 12px;
  height: 12px;
  background: #ffd700;
  border-radius: 50%;
  opacity: 0.6;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
}

/* ================= CONTENT ================= */
.card {
  background: #fdf6f0;
  max-width: 1200px;
  margin: 60px auto;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .15);
}

.gold-border {
  border-top: 6px solid #b8860b;
}

.strip {
  padding: 60px 20px;
  text-align: center;
  background: #fff; /* default white for sections */
  color: #2b2b2b;
}

.strip.dark {
  background: #fff; /* dark maroon for विशेष section */
  color: #2b2b2b;
}

table {
  margin: auto;
  border-collapse: collapse;
  width: 75%;
}

th,
td {
  border: 1px solid #999;
  padding: 14px;
  font-family: 'Mukta', sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ================= GALLERY ================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s;
  object-fit: cover;
  height: 100%;
}

.gallery img:hover {
  transform: scale(1.08);
}

/* ================= FOOTER ================= */
footer {
  background: #1a0000;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero {
    height: 65vh;
  }

  .main-nav a {
    margin: 0 10px;
    font-size: 0.95rem;
  }

  .top-header .logo-name {
    display: flex;
	  align-items: center;
	  justify-content: center;   /* 🔥 center overall */
	  gap: 15px;
  }

  .top-header p {
    margin-left: 0;
    text-align: center;
  }
}

/* ================= HERO IMAGE FIX ================= */
.slide img {
  display: none;
}

/* ================= ABOUT TEMPLE ================= */
#about-temple h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#about-temple ul {
  list-style-type: disc;
  padding-left: 20px;
}

#about-temple li {
  margin-bottom: 10px;
  line-height: 1.8;
}

#about-temple li strong {
  font-weight: 700;
  color: #8b0000; /* bold red for labels like "स्थान" */
}
/* ================= GALLERY FILTER ================= */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.gallery-filter button {
  background: #fff;
  border: 2px solid #8b0000;
  color: #8b0000;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-filter button.active,
.gallery-filter button:hover {
  background: #8b0000;
  color: #ffd700;
}

/* ================= GALLERY GRID ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  transition: transform 0.4s;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}
/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
.gallery-item iframe {
  width: 100%;
  height: 260px;
  border-radius: 12px;
}
/* .gallery-item iframe { */
  /* width: 100%; */
  /* aspect-ratio: 9 / 16; /* Shorts ke liye perfect */ */
  /* border-radius: 12px; */
/* } */
/* ===== DARSHAN & AARTI TABLE ===== */
#timing table {
  width: 100%;
  border-collapse: separate;   /* 🔴 change */
  border-spacing: 0;           /* 🔴 add */
  margin-top: 15px;
  font-family: 'Mukta', sans-serif;
  background: #fffdf6;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: visible;           /* 🔴 change */
    border: 1px solid #e6d8a8;

}


#timing th {
  background: linear-gradient(135deg, #7a0000, #b8860b);
  color: #fff;
  padding: 14px;
  font-size: 1.05rem;
  text-align: left;
  font-family: 'Noto Serif Devanagari', serif;
  letter-spacing: 0.5px;
}

#timing td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #333;
}

#timing tr:last-child td {
  border-bottom: none;
}

#timing tr:nth-child(even) td {
  background: #fff8e6;
}

#timing tr:hover td {
  background: #fff1c1;
  transition: background 0.3s ease;
}
#timing tr:last-child td {
  border-bottom: none;
}


/* Mobile friendly */
@media (max-width: 600px) {
  #timing th,
  #timing td {
    padding: 10px;
    font-size: 0.95rem;
  }
}
/* ===== FIX: TIMING TABLE BORDER CUT ===== */
#timing table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden; /* 🔥 key line */
  background: #fffdf6;
  border: 2px solid #e6d8a8;
}

#timing th,
#timing td {
  border: none !important; /* 🔥 global border remove */
}

#timing tr:not(:last-child) td {
  border-bottom: 1px solid #eee;
}
