/* =========================================
   1. GLOBAL / RESET / TYPOGRAPHY
   ========================================= */

:root {
  --primary: #7b1b1b;   /* deep maroon */
  --primary-dark: #5b1212;
  --accent: #d9b15f;    /* gold */
  --bg: #faf5ea;
  --text: #2e1c16;
  --white: #ffffff;
  --max-width: 1300px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none !important;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Tamil / English helper classes */
.ta {
  font-family: "Noto Sans Tamil", system-ui, sans-serif;
}

.en {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Tamil long-word wrapping fix */
.ta, p.ta, .deity-card p, .deity-card .ta {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}


/* Global layout container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}


/* =========================================
   2. HEADER & TOP BAR (TEMPLE NAME)
   ========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Top maroon strip */
.top-bar {
  background: #7b1b1b;
  color: #fff;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.8rem;
  column-gap: 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.header-center img {
  height: 55px;
  width: auto;
}

.header-center {
  flex: 0 0 auto;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  max-width: 420px;
  text-align: left;
  line-height: 1.32;
  color: #fbe8c8;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: normal;
  padding-right: 1rem;
}

.title-icon {
  height: 48px;
}

.top-title {
  font-size: 0.95rem;
  line-height: 1.25;
}

.top-subtitle {
  font-size: 0.8rem;
}

.est-year {
  font-size: 0.7rem;
}


/* =========================================
   3. NAV BAR (MAIN MENU)
   ========================================= */

.nav-bar {
  background: #6a1515;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.2rem;
}

.nav-logo-text {
  line-height: 1;
}

.nav-logo-ta {
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Desktop menu links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.nav-ta {
  font-size: 0.78rem;
}

.nav-en {
  font-size: 0.65rem;
  opacity: 0.9;
}

/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
  list-style: none;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 10px;
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

.dropdown-content a:hover {
  background-color: #f2f2f2;
  color: #b57f1b;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Donate button in nav */
.donate-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 2px solid #ffd899;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 6px rgba(255, 210, 150, 0.4);
}

.donate-btn:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 12px rgba(255, 210, 150, 0.8);
}

/* General nav link hover */
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Special donate pill in nav/footer */
.nav-donate {
  border-radius: 999px;
  border: 2px solid #f7d58b;
  background: #f7d58b;
  color: #5b1815;
  font-weight: 700;
  box-shadow: 0 0 0 2px #c58a35;
}

.nav-donate.active {
  border-color: #f7d58b;
  background: #fbe3a3;
  box-shadow: 0 0 0 2px #ffe6b8;
}

/* Hamburger icon (mobile) */
.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.3rem;
}


/* =========================================
   4. HERO IMAGE + HERO CONTENT
   ========================================= */

/* Banner image */
.hero-section,
.hero-section img {
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}

.hero-section {
  line-height: 0 !important;
}

.hero-section img {
  display: block;
  width: 100%;
  height: 43vh;
  object-fit: cover;
}

/* Gradient hero section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), #b43f3f);
  color: var(--white);
  padding: 2.6rem 0 2.1rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: center;
}

.hero-title-ta {
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-size: 0.88rem;
  opacity: 0.97;
  margin-bottom: 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  margin: 0.5rem 0 0.7rem;
}

.hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0 1.2rem;
}

/* Pill chips in hero */
.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
}

.chip:hover {
  background: rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

/* Generic buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #4b3111;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Small card in hero */
.hero-card {
  background: rgba(249, 244, 230, 0.12);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
}

.hero-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  margin-bottom: 0.25rem;
}

.hero-card b {
  font-weight: 600;
}


/* =========================================
   5. GENERIC SECTIONS & STORY LAYOUT
   ========================================= */

section {
  padding: 2.8rem 0 2.4rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

/* Small English label above section titles */
.section-kicker {
  font-size: 0.8rem;
  color: #8c5c1f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

/* Section main titles */
.section-title {
  margin-bottom: 0.3rem;
}

.section-title .ta {
  font-size: 1rem;
  color: #8c5c1f;
}

.section-title .en {
  font-size: 1.3rem;
  display: inline-block;
  margin-top: 0.1rem;
}

.section-subtitle {
  font-size: 0.86rem;
  color: #5f4634;
}

/* Two-column layout (story + sidebar) */
.two-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.7rem;
  align-items: flex-start;
}

/* Temple story text block – force Noto Tamil + safe wrapping */
.temple-story {
  margin-top: 1rem;
  line-height: 1.75;
  font-family: "Noto Sans Tamil", system-ui, sans-serif;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.story-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #8c5c1f;
  margin-top: 1.2rem;
  margin-bottom: 0.35rem;
}

/* all story paragraphs use the same Tamil font */
.temple-story p,
.temple-story .story-text,
.temple-story .ta {
  font-family: inherit;
  font-size: 0.92rem;
  color: #3b2b1f;
  margin-bottom: 0.5rem;
}


/* =========================================
   6. CARDS, LISTS, INFO GRID, DEITY GRID
   ========================================= */

.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0e1c5;
  font-size: 0.9rem;
}

.card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  color: #5a341a;
}

.card p + p {
  margin-top: 0.4rem;
}

/* Bullet-style list with golden dot */
.list-dot {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.list-dot li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;  /* same as paragraph */
  line-height: 1.75;
  font-family: "Noto Sans Tamil", system-ui, sans-serif;
  word-break: break-word;
  overflow-wrap: break-word;
}

.list-dot li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #b37b2c;
}

/* Small info cards (e.g., timings, address) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
}

.info-item {
  background: #fdf7e6;
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #f1dfb9;
  font-size: 0.85rem;
}

.info-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e6230;
  margin-bottom: 0.2rem;
}

.info-value {
  font-weight: 600;
}

/* Deity cards grid */
.deity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.deity-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f0e1c5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.deity-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.deity-ta {
  font-size: 0.8rem;
  color: #8a6231;
  margin-bottom: 0.4rem;
}

.temple-story .list-dot li.ta {
  font-family: "Noto Sans Tamil", system-ui, sans-serif !important;
  font-size: 0.8rem !important;
  line-height: 1.75 !important;
}

/* =========================================
   7. TABLES – BASE STYLE (COMMON)
   Used by: Seva (.table-like), Daily Pooja (.pooja-table),
            Festivals (.festival-table)
   ========================================= */

.table-like,
.festival-table,
.pooja-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-family: "Noto Sans Tamil", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2e1c16;
}

/* Cells – common padding + borders */

.table-like th,
.table-like td,
.festival-table th,
.festival-table td,
.pooja-table th,
.pooja-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #f0e1c5;
  vertical-align: top;
}

/* Header row – SAME look for all temple tables */

.table-like th,
.festival-table th,
.pooja-table th {
  background: #fbf1dd;
  color: #8c5c1f;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.015em;
  text-transform: none;  /* Tamil looks natural, no uppercase */
}

/* Zebra rows – even rows highlighted */

.table-like tr:nth-child(even) td,
.festival-table tr:nth-child(even) td,
.pooja-table tr:nth-child(even) td {
  background: #fdf7ea;
}

/* Common table title used above tables */

.table-title {
  font-family: "Noto Sans Tamil", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #5a341a;
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.2rem;
  letter-spacing: 0.01em;
}

/* =========================================
   8. FESTIVAL TABLE (திருவிழா விவரங்கள்)
   ========================================= */

/* Column widths: Festival / Month / Highlights */

.festival-table th:nth-child(1),
.festival-table td:nth-child(1) {
  width: 22%;
}

.festival-table th:nth-child(3),
.festival-table td:nth-child(3) {
  width: 63%;
}

/* Festival table column widths – desktop */
.festival-table th:nth-child(1),
.festival-table td:nth-child(1) {
  width: 18%;
}

.festival-table th:nth-child(2),
.festival-table td:nth-child(2) {
  width: 22%;
  white-space: nowrap;   /* மாதம் / MONTH in one line */
}

.festival-table th:nth-child(3),
.festival-table td:nth-child(3) {
  width: 60%;            /* more space for திருவிழா highlights */
}

/* =========================================
   9. POOJA TABLE (Daily Pooja & Seva Tables)
   ========================================= */

/* Column widths: Time / Pooja / Details */

.pooja-table th:nth-child(1),
.pooja-table td:nth-child(1) {
  width: 18%;
  min-width: 160px;
}

.pooja-table th:nth-child(2),
.pooja-table td:nth-child(2) {
  width: 23%;
  min-width: 180px;
}

.pooja-table th:nth-child(3),
.pooja-table td:nth-child(3) {
  width: 59%;
}

/* =========================================
   10. HIGHLIGHTS / BANK DETAILS / GALLERY
   ========================================= */

/* Yellow info highlight (Annadhanam / Donate) */
.highlight {
  background: #fdf3d3;
  border-left: 4px solid #b37b2c;
  border-radius: 0.8rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

/* Code-style bank details block */
.bank-details {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  background: #161518;
  color: #f9f5e6;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  margin-top: 0.7rem;
  overflow-x: auto;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

.gallery-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.gallery-caption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a341a;
}


/* =========================================
   11. CONTACT / OFFICE / FORMS / MAP
   ========================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-card,
.office-card {
  display: block;
}

.office-role {
  font-size: 0.9rem;
  margin: 0.15rem 0;
}

.office-role .role-label {
  font-weight: 500;
}

.office-role .role-sep {
  margin: 0 0.3rem;
}

/* Contact form layout */
.contact-card form {
  max-width: 520px;
}

.contact-card .form-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
}

.contact-card .form-row label {
  min-width: 130px;
  white-space: nowrap;
  padding-top: 0.35rem;
  color: #6e4b2c;
}

/* Inputs / Textarea (global) */
form {
  display: grid;
  gap: 0.6rem;
  font-size: 0.86rem;
}

label {
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
  color: #6e4b2c;
}

/* Make ALL inputs + textarea same consistent style */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;              /* <-- Ensures perfect alignment */
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d2b89a;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fffaf1;
  box-sizing: border-box;   /* <-- Prevents overflow from padding */
}

/* Textarea height & behaviour */
textarea {
  min-height: 120px;
  resize: vertical;         /* User can stretch only vertically */
}

/* Map / location placeholder box */
.map-placeholder {
  background: #e8dcc6;
  border-radius: 0.8rem;
  padding: 0.8rem;
  font-size: 0.82rem;
  border: 1px solid #cfba94;
}


/* =========================================
   12. FOOTER
   ========================================= */

footer {
  background: #2c1a15;
  color: #f7e9cc;
  padding: 1.4rem 0;
  font-size: 0.78rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links a {
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}


/* =========================================
   13. RESPONSIVE – NAV & HEADER
   ========================================= */

/* Tablet & below: hamburger nav */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(52px + 40px);  /* top bar + nav bar approx */
    left: 0;
    right: 0;
    background: #6a1515;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 0.8rem;
    display: none;
    white-space: normal;
  }

  .nav-links a {
    align-items: flex-start;
    min-width: 0;
  }

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



/* Desktop-only header alignment */
@media (min-width: 721px) {
  .header-center {
    display: flex !important;
  }

  .header-right {
    display: flex !important;
  }

  .header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    flex: 0 0 42%;
  }

  .header-left > div {
    flex: unset !important;
  }

  .top-title,
  .top-subtitle,
  .est-year {
    text-align: left !important;
  }
}

/* Small mobile header (hide right/center) */
@media (max-width: 628px) {
  .header-center,
  .header-right {
    display: none !important;
  }

  .top-bar-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.6rem;
  }

  .header-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
  }

  .header-left img.title-icon {
    height: 70px;
    width: auto;
    flex-shrink: 0;
  }

  .header-left > div {
    flex: 1;
    min-width: 0;
  }

  .top-title.ta,
  .top-subtitle.en,
  .est-year {
    text-align: left;
  }

  .top-title.ta {
    font-size: 1rem;
    line-height: 1.3;
  }

  .top-subtitle.en {
    font-size: 0.82rem;
    line-height: 1.25;
    margin-top: 3px;
  }

  .est-year {
    font-size: 0.75rem;
    margin-top: 3px;
  }
}


/* =========================================
   14. RESPONSIVE – CONTACT GRID / HERO GRID
   ========================================= */

/* Stack contact columns on small laptops */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Stack hero + two-col sections on tablets */
@media (max-width: 840px) {
  .hero-inner,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.1rem;
  }
}

/* Contact form: labels above inputs on mobile */
@media (max-width: 640px) {
  .contact-card .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card .form-row label {
    min-width: 0;
    padding-top: 0;
  }
}


/* =========================================
   15. RESPONSIVE – STORY TEXT (LANDSCAPE)
   ========================================= */

@media (max-width: 1024px) and (orientation: landscape) {
  .temple-story,
  .temple-story p,
  .temple-story .story-text,
  .temple-story .ta {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .story-section-title {
    font-size: 0.85rem !important;
  }

}

/* =========================================
   16. RESPONSIVE – TABLES (ALL)
   Keep tables as tables on mobile, just a bit smaller
   ========================================= */

@media (max-width: 768px) {

  .table-like,
  .festival-table,
  .pooja-table {
    font-size: 0.95rem;   /* tweak if you want; 1rem = same as cards */
  }

  .table-like th,
  .table-like td,
  .festival-table th,
  .festival-table td,
  .pooja-table th,
  .pooja-table td {
    padding: 0.45rem 0.5rem;
  }

  /* make sure display stays as table, not block */
  .festival-table,
  .pooja-table {
    display: table !important;
  }

  .festival-table tr,
  .pooja-table tr {
    display: table-row !important;
  }

  .festival-table td,
  .festival-table th,
  .pooja-table td,
  .pooja-table th {
    display: table-cell !important;
    border-bottom: 1px solid #f0e1c5 !important;
  }

  /* no fake labels */
  .festival-table td::before,
  .pooja-table td::before {
    content: "" !important;
  }

  .list-dot li {
      font-size: 0.85rem !important;   /* small but readable */
      line-height: 1.65 !important;   /* tighter for mobile */
    }
}


/* ============================================
   GLOBAL TABLE OVERRIDE
   (Seva / Daily Pooja / Festivals – same look)
   ========================================= */

.table-like,
.table-like th,
.table-like td,
.festival-table,
.festival-table th,
.festival-table td,
.pooja-table,
.pooja-table th,
.pooja-table td {
  font-family: "Noto Sans Tamil", system-ui, sans-serif !important;
  font-size: 0.82rem !important;      /* same as the cards */
  line-height: 1.7 !important;
}


/* 2) Header row styling – same across all tables */
.table-like th,
.festival-table th,
.pooja-table th {
  background: #fbf1dd;
  color: #8c5c1f;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: none;            /* no uppercase Tamil */
}

/* 3) Zebra stripes – even rows in all tables */
.table-like tr:nth-child(even) td,
.festival-table tr:nth-child(even) td,
.pooja-table tr:nth-child(even) td {
  background: #fdf7ea;
}

/* =========================================
   FIX: Prevent festival text from overflowing on mobile
   ========================================= */

@media (max-width: 768px) {

  .festival-table {
    table-layout: fixed !important;   /* allow auto column resizing */
    width: 100% !important;
  }

  .festival-table td,
  .festival-table th {
    white-space: normal !important;   /* allow wrapping */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Month column only should stay nowrap */
  .festival-table td:nth-child(2),
  .festival-table th:nth-child(2) {
    white-space: normal !important;
  }
}

@media (max-width: 480px) {
  .deity-grid {
    grid-template-columns: 1fr !important;
  }

  .deity-card {
    padding: 1.2rem !important;
    border-radius: 1rem;
  }

  .deity-card p,
  .deity-card .ta {
    font-size: 1rem !important;
    line-height: 1.75 !important;

  }

   .list-dot li {
      font-size: 0.85rem !important;  /* even smaller for very small screens */
      line-height: 1.6 !important;
    }

}




