:root {
  --primary-color: #2a7d8c;
  --primary-light: rgba(42, 125, 140, 0.08);
  --secondary-color: #f4b41a;
  --text-dark: #2c3e50;
  --text-muted: #5a6b7c;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background-color: #f4f7f9;
  line-height: 1.7;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.donate-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 22px;
  border-radius: 5px;
  transition: var(--transition);
}
.donate-btn:hover {
  background: #1e5e6a;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin: 30px 5% 10px 5%;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  gap: 8px;
  transition: var(--transition);
}
.back-link:hover {
  color: var(--secondary-color);
  transform: translateX(-3px);
}

.content {
  padding: 20px 5% 60px 5%;
  max-width: 1100px;
  margin: 0 auto;
}

h1 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-size: 2.4rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  margin-top: 0;
  margin-bottom: 30px;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
}

h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}
h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
}

.mandir-section {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: var(--card-shadow);
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-align: justify;
}

/* Gallery/Slideshow Refinement */
.slideshow-container {
  position: relative;
  max-width: 900px;
  margin: 25px auto;
  background-color: #1a202c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: var(--transition);
  background-color: rgba(0, 0, 0, 0.4);
  user-select: none;
  z-index: 10;
  border-radius: 0 8px 8px 0;
}

.next {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.prev:hover,
.next:hover {
  background-color: var(--primary-color);
}

.dots-container {
  text-align: center;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid var(--border-color);
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: #cbd5e1;
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

.slide-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(42, 125, 140, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
  letter-spacing: 1px;
}

/* Video Container Styling */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: var(--card-shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Lists */
ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

li {
  margin-bottom: 12px;
  color: var(--text-dark);
  position: relative;
  list-style-type: none;
  padding-left: 10px;
}

li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.3rem;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Image Cards */
.info-card {
  margin: 10px 0;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Interactive Map & Address Blocks */
.address-map-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.info-section {
  padding: 25px;
  background: var(--light-bg);
  border-top: 4px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.info-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-section p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contacts Table Styling */
.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table td {
  padding: 10px 0;
  vertical-align: middle;
  border-bottom: 1px dashed var(--border-color);
}

.contact-table tr:last-child td {
  border-bottom: none;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--secondary-color);
}

.whatsapp-link {
  color: #25d366;
}
.whatsapp-link:hover {
  color: #128c7e;
}

/* Timing Layout Update */
.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-section {
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.session-heading {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.program-list {
  padding-left: 0;
  margin: 0;
}

.program-item {
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  flex-wrap: wrap;
  gap: 5px;
}

.program-item::before {
  display: none;
}

.program-name {
  font-weight: 500;
  color: var(--text-dark);
}

.program-time {
  color: var(--primary-color);
  font-weight: 600;
}

.timing-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px !important;
  padding: 8px;
  background: rgba(244, 180, 26, 0.1);
  border-radius: 6px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .address-map-flex {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .mandir-section {
    padding: 20px;
  }
  h1 {
    font-size: 1.9rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}

/* Back Link Button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin: 20px 0 0 20px;
  padding: 10px 18px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}
.back-link:hover {
  transform: translateX(-5px);
  background: var(--primary-light);
}

/* Fixed and cleaned Wikipedia Data layout */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}
.info-card {
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  font-size: 0.85rem;
}
.info-card h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
}
.info-card p {
  text-align: justify;
  margin-bottom: 10px;
}

.highlight-box {
  background: #f0f7f8;
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 6px 6px 0;
}
.highlight-box p {
  text-align: justify;
  margin: 0;
}

/* Modernized Elegant Blockquote */
blockquote {
  background-color: var(--light-bg);
  border-left: 5px solid var(--primary-color);
  margin: 35px 0;
  padding: 25px 30px;
  font-style: normal;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--card-shadow);
}
blockquote b {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.info-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}
.info-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* Grid utilities for spanning elements */
.grid-span-2 {
  grid-column: span 2;
}

.grid-span-2 {
  grid-column: span 1;
}
h1 {
  font-size: 2rem;
}

/* Hero / Quote Section Styles */
.prashasti-section {
  margin: 30px 0 40px;
  background: var(&#45;&#45;light-bg);
  border: 1px solid var(&#45;&#45;border-color);
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(&#45;&#45;card-shadow);
}

.quote-container {
  position: relative;
  background: #fff;
  border-left: 5px solid var(&#45;&#45;primary-color);
  padding: 25px 30px;
  margin-bottom: 30px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.quote-icon {
  position: absolute;
  top: -5px;
  left: 15px;
  font-size: 4rem;
  color: rgba(42, 125, 140, 0.08);
  font-family: "Montserrat", sans-serif;
  line-height: 1;
}

.quote-text {
  margin: 0;
  font-size: 1.15rem;
  color: #1a2a3a;
  line-height: 1.7;
}

.quote-text b {
  color: var(&#45;&#45;primary-color);
  display: inline-block;
  margin-top: 5px;
  font-size: 1.2rem;
}

.reflection-text p {
  margin: 0 0 15px 0;
  color: var(&#45;&#45;text-muted);
}

.reflection-text p:last-child {
  margin-bottom: 0;
}

.reflection-text b {
  color: #c0392b;
  background: #fdf2f2;
  padding: 2px 6px;
  border-radius: 4px;
}

.intro-hindi-section {
  background: var(&#45;&#45;primary-light);
  padding: 20px 25px;
  border-radius: 8px;
  border-right: 4px solid var(&#45;&#45;primary-color);
  margin-bottom: 40px;
}

.intro-hindi-text {
  margin: 0;
  font-size: 1.1rem;
  color: var(&#45;&#45;primary-dark);
}

/* Beautiful Responsive Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: var(&#45;&#45;card-shadow);
  border: 1px solid var(&#45;&#45;border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
}

th,
td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(&#45;&#45;border-color);
}

th {
  background-color: var(&#45;&#45;primary-color);
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

tr:nth-child(even) {
  background-color: #fdfefe;
}

tr:hover {
  background-color: #f5f9fa;
}

.card {
  background: #fff;
  border: 1px solid var(&#45;&#45;border-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(&#45;&#45;card-shadow);
  border-top: 4px solid var(&#45;&#45;secondary-color);
  transition: var(&#45;&#45;transition);
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(&#45;&#45;primary-color);
  font-size: 1.25rem;
}

ul.styled-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

ul.styled-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  color: var(&#45;&#45;text-muted);
  font-size: 0.98rem;
}

ul.styled-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(&#45;&#45;primary-color);
  font-weight: bold;
}

ul.styled-list li:last-child {
  margin-bottom: 0;
}

ul.styled-list li b {
  color: var(&#45;&#45;text-dark);
}

:root {
  --primary-color: #2a7d8c;
  --primary-dark: #1e5e6a;
  --primary-light: #e9f2f4;
  --secondary-color: #f4b41a;
  --text-dark: #2c3e50;
  --text-muted: #5a6c7d;
  --light-bg: #f8fafb;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.8;
}

header {
  background: #fff;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

.donate-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
}

.donate-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin: 30px 5% 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary-dark);
  transform: translateX(-3px);
}

.content {
  padding: 20px 5% 60px;
  max-width: 1000px;
  margin: 0 auto;
}

h1 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
  margin-top: 10px;
  margin-bottom: 40px;
  font-weight: 700;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 600;
}

h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.content-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  text-align: justify;
}

/* Hero / Quote Section Styles */
.prashasti-section {
  margin: 30px 0 40px;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--card-shadow);
}

.quote-container {
  position: relative;
  background: #fff;
  border-left: 5px solid var(--primary-color);
  padding: 25px 30px;
  margin-bottom: 30px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.quote-icon {
  position: absolute;
  top: -5px;
  left: 15px;
  font-size: 4rem;
  color: rgba(42, 125, 140, 0.08);
  font-family: "Montserrat", sans-serif;
  line-height: 1;
}

.quote-text {
  margin: 0;
  font-size: 1.15rem;
  color: #1a2a3a;
  line-height: 1.7;
}

.quote-text b {
  color: var(--primary-color);
  display: inline-block;
  margin-top: 5px;
  font-size: 1.2rem;
}

.reflection-text p {
  margin: 0 0 15px 0;
  color: var(--text-muted);
}

.reflection-text p:last-child {
  margin-bottom: 0;
}

.reflection-text b {
  color: #c0392b;
  background: #fdf2f2;
  padding: 2px 6px;
  border-radius: 4px;
}

.intro-hindi-section {
  background: var(--primary-light);
  padding: 20px 25px;
  border-radius: 8px;
  border-right: 4px solid var(--primary-color);
  margin-bottom: 40px;
}

.intro-hindi-text {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

/* Beautiful Responsive Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
}

th,
td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

tr:nth-child(even) {
  background-color: #fdfefe;
}

tr:hover {
  background-color: #f5f9fa;
}

/* Video Container Upgrade */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 25px 0 45px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Modernized Image Grid and Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}

.info-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.info-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Dynamic layout tweaks for varied specific grids */
.info-grid-span-2 {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .info-grid-span-2 {
    grid-column: span 1;
  }
}

/* Future Goals Grid */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 25px;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--secondary-color);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.25rem;
}

ul.styled-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

ul.styled-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

ul.styled-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
}

ul.styled-list li:last-child {
  margin-bottom: 0;
}

ul.styled-list li b {
  color: var(--text-dark);
}
