.site-grid {
  background-color: #f0f8ff;
  padding: 1rem;
}

.blog-items .blog-item {
  background-color: #fff;
  padding: 10px 10px 10px 20px;
  border-radius: 8px;
}

.item-content h1 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.blog-item .item-image {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.text-justify { text-align: justify; }

.img-bordered { border: 1px solid #000; }

.text-red { color: #ff0000; }

.temple-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}



/* === Make Read More look like CTA Button without editing overrides === */
.readmore a {
  background-color: #ff5600;
  color: #ffffff !important;
  padding: 0.625rem 1.125rem;
  text-decoration: none;
  border-radius: 0.3125rem;
  display: inline-block;
  font-weight: 600;
  margin-top: 0.625rem;
  font-size: 1rem;
}

.readmore a:hover {
  background-color: #f03244;
}

/* === Optional Hover Card Effect === */
.blog-items .blog-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}


/* === Responsive Tweaks for Mobile === */
@media (max-width: 768px) {
  .site-grid {
    padding: 0.75rem;
  }

  .blog-items .blog-item {
    padding: 10px 10px;
  }

  .item-content h1 {
    font-size: 1.05rem;
    text-align: center; /* Optional: center headings on mobile */
  }

  .blog-item .item-image {
    flex-direction: column;
    margin-bottom: 0.75rem;
  }

  /* Optional: reduce spacing/margins on smaller screens */
  ul, p, li {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}


/* === Heading Styles === */
h1 {
  color: #ff5600;
  font-size: calc(1.5rem + 1vw); /* ~24–32px responsive */
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  color: #f33533;
  font-size: calc(1.25rem + 0.5vw); /* ~20–26px */
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #dcdcdc;
  padding-bottom: 0.3rem;
}

h3 {
  color: #444444;
  font-size: 1.125rem; /* ~18px */
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
}

/* === Table Styling === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  border: 1px solid #ccc;
  font-size: 1rem; /* 16px */
}

table th,
table td {
  padding: 0.625rem;
  border: 1px solid #db8080;
  text-align: left;
}

table thead {
  background-color: #f0f0f0;
}

/* === List Styling === */
ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

ul li {
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

/* === Highlight Box (FAQs, Notes, Festival Info) === */
.highlight-box {
  background-color: #f9f9f9;
  border-left: 4px solid #ff5600;
  padding: 0.9375rem 1.25rem;
  margin: 1.25rem 0;
}

/* === CTA Button Link === */
a.cta-button {
  background-color: #ff5600;
  color: #ffffff !important;
  padding: 0.625rem 1.125rem;
  text-decoration: none;
  border-radius: 0.3125rem;
  display: inline-block;
  font-weight: 600;
  margin-top: 0.625rem;
  font-size: 1rem;
}

a.cta-button:hover {
  background-color: #e54b00;
}

/* ==== Temple Timing: Dedicated Table Styles (no conflicts) ==== */
.temple-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  border: 1px solid #e5e7eb;              /* neutral outer border */
  font-size: 1rem;                         /* ~16px */
  background: #fff;
}

.temple-table caption {
  font-weight: 600;
  margin: .4rem 0 .6rem;
  text-align: left;
}

.temple-table thead th {
  background: #f8fafc;                     /* subtle header bg */
  font-weight: 600;
}

.temple-table th,
.temple-table td {
  padding: .625rem;
  border: 1px solid #e5e7eb;               /* unified cell border */
  text-align: left;
}

.temple-table .text-red {                   /* for aarti notes inside table */
  color: #b91c1c;
  font-weight: 600;
}

/* Optional: Slightly darker h2 for better contrast on small screens */
@media (max-width: 768px) {
  h2 { color: #d22525; }
}

/* Optional: Focus visibility for CTA links (a11y) */
a.cta-button:focus-visible,
.readmore a:focus-visible {
  outline: 3px solid #94a3b8;
  outline-offset: 2px;
}

/* Generic helpers (a11y + notes) */
.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.note-text{font-size:0.95rem;line-height:1.6;color:#444;margin:.5rem 0 1rem}

/* Mobile-friendly stacked layout for any table that adds .table-stack */
@media (max-width:640px){
  .table-stack thead{display:none}
  .table-stack tbody tr{
    display:block;margin:0 0 .75rem;border:1px solid #e5e7eb;
    border-radius:8px;overflow:hidden;background:#fff
  }
  .table-stack tbody th,
  .table-stack tbody td{display:block;border:0;border-bottom:1px solid #f1f5f9}
  .table-stack tbody th{background:#f8fafc;font-weight:700;padding:.7rem 1rem}
  .table-stack tbody td{padding:.7rem 1rem}
  .table-stack tbody td::before{content:attr(data-label) ": ";font-weight:600}
  .table-stack tbody tr:last-child td:last-child{border-bottom:0}
}

/* === Best-practice overrides for consistency (non-breaking) === */

/* 1) Neutralize generic tables site-wide to match temple-table tone */
table {
  border: 1px solid #e5e7eb;          /* was #ccc earlier */
}
table th,
table td {
  border: 1px solid #e5e7eb;          /* was #db8080 earlier */
}
table thead {
  background-color: #f8fafc;          /* aligns with .temple-table thead */
}

/* 2) Unify red tone across site (text + in-table notes) */
.text-red { 
  color: #b91c1c;                      /* matches .temple-table .text-red */
}

/* (No change to .temple-table / .table-stack / .visually-hidden / .note-text —
   they’re already perfect and non-duplicated in your CSS.) */
