* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(to bottom, #e6f4ff, #ffffff);
  color: #1f2933;
}

section {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}
/* NAV */
nav {
  background: #4b2c20;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 600;
}

/* HERO */
.hero {
  background: linear-gradient(#3e2723, #5d4037);
  color: white;
  text-align: center;
  padding: 30px 15px;
}

.hero h1 {
  font-size: 1.8rem;
}

/* IMAGE ROW */
.image-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
}

.image-row img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

/* SECTIONS */
.section {
  padding: 30px 15px;
  text-align: center;
}

.section.light {
  background: #fff3e0;
}

.section h2 {
  color: #7b1e1e;
}

/* DEITIES */
.deities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* LIST */
.list {
  list-style: none;
  padding: 0;
}

.list li {
  margin: 8px 0;
}

/* FOOTER */
footer {
  background: #3e2723;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* DESKTOP */
@media (min-width: 900px) {
  .deities {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: auto;
  }

  .image-row {
    justify-content: center;
    overflow-x: hidden;
  }

}

/* WhatsApp Floating Button */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}

/* Mobile Friendly Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.gallery-item {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Normal Mobile */
@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & Desktop */
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Pooja Cards */
.pooja-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.pooja-card h3 {
  margin-bottom: 6px;
  color: #7a1f1f;
}

.pooja-card p {
  font-size: 15px;
  line-height: 1.6;
}


header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


.main-title {
  text-align: center;
  line-height: 1.3;
}

.main-title .sametha {
  white-space: nowrap;   /* THIS keeps it in one line */
  display: inline-block;
}

.header-image {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.header-image img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
}

/* HERO SECTION FIX */
.hero {
  text-align: center;
  padding: 20px 10px;
  overflow-x: hidden;
}

.main-title {
  font-size: 24px;
  line-height: 1.3;
  margin: 10px 0;
  word-break: break-word;
}

.location {
  font-size: 14px;
  margin-bottom: 15px;
}

/* Center image properly */
.header-image {
  display: flex;
  justify-content: center;
}

.header-image img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .main-title {
    font-size: 20px;
  }

  .location {
    font-size: 13px;
  }
}

/* NAVBAR IMPROVEMENT */
nav {
  display: flex;
  justify-content: center;
  background-color: #5b3a29;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 10px 0;
  margin: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

/* Mobile menu spacing */
@media (max-width: 768px) {
  nav ul {
    gap: 18px;
  }

  nav ul li a {
    font-size: 15px;
  }
}
/* REDUCE HEADER HEIGHT */
.hero {
  padding: 12px 10px;   /* reduced from big padding */
}

.main-title {
  margin: 6px 0;
}

.location {
  margin-bottom: 8px;
}

/* Reduce space around header image */
.header-image {
  margin-top: 8px;
}

.header-image img {
  max-width: 85%;   /* slightly smaller image */
}

@media (max-width: 768px) {
  .hero {
    padding: 10px 8px;
  }

  .main-title {
    font-size: 19px;
  }
}
/* FIX WHATSAPP OVERLAP */
.whatsapp,
.whatsapp-float,
.whatsapp-button,
.float {
  bottom: 90px !important;   /* pushes it up */
  right: 15px;
  z-index: 999;
}

/* Keep Bramaramba Sametha in one line */
.one-line {
  display: inline-block;
  white-space: nowrap;
  font-size: 22px;
}

/* Mobile tuning to avoid overflow */
@media (max-width: 768px) {
  .one-line {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .one-line {
    font-size: 18px;
  }
}

/* FORCE SINGLE LINE - MOBILE SAFE */
.one-line {
  display: block;
  white-space: nowrap;
  font-size: 17px;   /* reduced to fit mobile */
  margin-bottom: 6px;
}

/* Slightly bigger on tablets/desktops */
@media (min-width: 768px) {
  .one-line {
    font-size: 22px;
  }
}

/* UNIFIED TITLE FONT SIZE */

.main-title {
  font-size: 24px;      /* increased slightly */
  line-height: 1.2;    /* tighter for better look */
  text-align: center.main-title {
  line-height: 1.2;
}
  margin: 12px 0;
  font-weight: 700;
}
/* Tablet & Desktop - slightly bigger */
@media (min-width: 768px) {
  .main-title {
    font-size: 28px;
  }
}

/* TEMPLE IDOLS – ENGLISH POLISH */
#idols {
  text-align: center;
  padding: 20px 10px;
}

#idols h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #5b2c1d;
}

.idol-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  margin: 15px auto;
  max-width: 360px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.idol-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.idol-card p {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* HEADER IMAGE – PREMIUM LOOK */
.header-image img {
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
/* MENU HOVER EFFECT – ENGLISH POLISH */
nav ul li a {
  position: relative;
  transition: color 0.3s ease;
}

/* underline effect */
nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #ffd27d;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #ffd27d;
}

nav ul li a:hover::after {
  width: 100%;
}

/* FOOTER – ENGLISH ONLY */
.site-footer {
  background-color: #4a2c1d;
  color: #ffffff;
  text-align: center;
  padding: 25px 15px;
  margin-top: 30px;
}

.site-footer h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.site-footer p {
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0;
}

.footer-contact a {
  color: #ffd27d;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 10px;
}

/* TEMPLE PUROHITS SECTION */
#purohits {
  text-align: center;
  padding: 20px 10px;
}

#purohits h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #5b2c1d;
}

.purohit-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  margin: 0 auto;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.purohit-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.purohit-name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* TEMPLE PUROHITS – AUTO IMAGE ADJUST */
.purohit-card img {
  width: 100%;
  max-width: 280px;   /* controls image size */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;
}
/* FORCE AUTO-RESIZE FOR PUROHIT IMAGE */
#purohits img {
  width: 100%;
  max-width: 320px;     /* controls width */
  max-height: 420px;    /* controls height */
  height: auto;
  display: block;
  margin: 10px auto;
  object-fit: contain;  /* no distortion */
  border-radius: 12px;
}

/* PUROHIT NAMES STYLE */
.purohit-names {
  margin-top: 12px;
}

.purohit-names p {
  font-size: 16px;
  font-weight: 600;
  margin: 6px 0;
}

/* HEADER IMAGE HEIGHT CONTROL */
.header-image img {
  max-height: 420px;     /* ⬅️ reduce image length */
  width: auto;
  object-fit: contain;  /* keeps full image without crop */
}

@media (max-width: 768px) {
  .header-image img {
    max-height: 360px;
  }
}
.map-section {
  text-align: center;
  padding: 30px 15px;
  background: #f9f9f9;
}

.map-section h2 {
  margin-bottom: 10px;
}

.map-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background-color: #2c7be5;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
}

.map-button:hover {
  background-color: #1a5dc9;
}

/* Donation Section */
.donation-section {
  padding: 40px 20px;
  background-color: #f9f6f2;
  text-align: center;
}

.donation-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #5b2c06;
}

.donation-text {
  max-width: 800px;
  margin: 0 auto 25px;
  font-size: 16px;
  line-height: 1.6;
}

.donation-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin: 15px auto;
  max-width: 450px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.donation-box h3 {
  color: #7a3e0e;
  margin-bottom: 10px;
}

.note {
  font-size: 14px;
  color: #666;
}

/* Upcoming Events Banner */
.event-banner {
  background-color: #7a3e0e;
  color: #ffffff;
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.event-banner marquee {
  width: 100%;
}

/* Reduce main temple image height */
.hero img,
.main-image img,
img.temple-image {
  max-height: 320px;   /* decrease more if needed */
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Extra reduction for mobile screens */
@media (max-width: 768px) {
  .hero img,
  .main-image img,
  img.temple-image {
    max-height: 300px;
  }
}

/* FIX: Make hero text clearly visible */
.hero h1,
.hero h2,
.hero h3,
.hero p {
  color: #4a2a12 !important; /* deep temple brown */
  opacity: 1 !important;
}

/* Remove dark overlay if any */
.hero::before,
.hero::after {
  display: none !important;
}

/* Ensure hero background is light */
.hero {
  background-color: #f6f1e7 !important;
}
.hero * {
  opacity: 1 !important;
}
/* ===== HERO SECTION FULL FIX ===== */

/* Force hero background */
.hero {
  background-color: #f6f1e7 !important;
}

/* REMOVE any dark overlay layer */
.hero .overlay,
.hero .hero-overlay,
.hero::before,
.hero::after {
  display: none !important;
  opacity: 0 !important;
}

/* Force text visibility */
.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero span {
  color: #3b1f0f !important; /* dark readable brown */
  opacity: 1 !important;
  visibility: visible !important;
}

/* Remove opacity from any inner containers */
.hero *,
.hero-content,
.hero-text {
  opacity: 1 !important;
}

/* ===== FINAL HERO FIX ===== */

/* Force light background */
.light-hero {
  background-color: #f6f1e7 !important;
}

/* Force text to be clearly visible */
.light-hero h1,
.light-hero h2,
.light-hero h3,
.light-hero p {
  color: #2c1a10 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Kill ALL overlays & dark layers */
.light-hero::before,
.light-hero::after,
.light-hero .overlay,
.light-hero .hero-overlay {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Ensure nothing inside is faded */
.light-hero * {
  opacity: 1 !important;
}

/* ===== HERO TEXT VISIBILITY FIX (FINAL) ===== */

/* Light background box behind text */
.light-box {
  background: rgba(255, 248, 235, 0.95); /* soft cream */
  padding: 20px 15px;
  border-radius: 14px;
  max-width: 95%;
  margin: 0 auto 20px;
}

/* Force readable text */
.light-box h1,
.light-box h2,
.light-box h3,
.light-box p {
  color: #2c1a10 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
/* ===== FINAL VISIBILITY FIX (NO HTML CHANGE) ===== */

/* Hero background stays dark */
.hero {
  background: linear-gradient(to bottom, #2b160c, #4a2a12) !important;
}

/* FORCE hero text to be visible */
.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero span {
  color: #ffffff !important;   /* pure white */
  opacity: 1 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* Location text slightly softer */
.hero p {
  color: #f3e7d3 !important;
}

/* Remove ANY fade */
.hero *,
.hero-content,
.hero-text {
  opacity: 1 !important;
}

/* ===== CLEAN HERO DESIGN ===== */

.clean-hero {
  background-color: #f6f1e7; /* soft cream */
  padding: 25px 15px;
  text-align: center;
}

.clean-hero h1 {
  color: #3b1f0f;
  font-size: 26px;
  line-height: 1.4;
  margin: 10px 0;
}

.clean-hero .location {
  color: #5a3a1f;
  font-size: 15px;
  margin-bottom: 20px;
}

.om-icon {
  width: 48px;
  margin-bottom: 8px;
}

.hero-image img {
  max-height: 300px;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
