: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);
}

/* About page styles */
.about-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  background-image: url("../images/jain-temple-background.png");
  background-size: cover;
  background-position: center;
  border-bottom: 6px solid rgba(42, 125, 140, 0.06);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 38, 46, 0.72), rgba(14, 38, 46, 0.38));
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 90%);
  margin: 0 auto;
  color: #fff;
  padding: 60px 0;
}

.about-hero-copy {
  max-width: 720px;
}

.about-eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.about-hero h1 {
  margin: 0 0 12px;
  padding: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.15;
  color: #fff;
  border: none;
}

.about-hero h1::after {
  display: none;
}

.about-lead {
  margin: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
  max-width: 620px;
  font-weight: 500;
  font-style: italic;
}

.about-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 5%;
}

.about-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-column {
  min-width: 0;
}

.about-column-main {
  flex: 1.65;
}

.about-column-side {
  flex: 1;
}

.about-card {
  margin-top: 0;
}

.about-card-spaced {
  margin-top: 18px;
}

.about-text p {
  margin: 0 0 14px;
  color: #314256;
  font-size: 1.02rem;
}

.about-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 4px solid var(--primary-color);
  background: #eef7f9;
  color: var(--primary-dark);
  border-radius: 0 10px 10px 0;
  font-weight: 700;
}

.about-subheading {
  margin: 18px 0 8px;
  color: var(--primary-dark);
  border-bottom: none;
  padding-bottom: 0;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.about-value {
  background: linear-gradient(180deg, #fff, #fafcff);
  border: 1px solid #eef6f8;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(42, 125, 140, 0.03);
}

.about-value-key {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-color);
}

.about-value-label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.about-cta-row,
.about-governance-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.about-timeline {
  margin-top: 18px;
  border-left: 3px solid #eef6f8;
  padding-left: 14px;
}

.about-tl-item {
  position: relative;
  margin: 12px 0 18px;
  padding-left: 14px;
  color: var(--text-dark);
}

.about-tl-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(244, 180, 26, 0.18);
}

.about-tl-item time {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.about-stat {
  background: linear-gradient(180deg, #fff, #fbfbff);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.about-stat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.about-stat-icon img {
  width: 40px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.about-stat-number {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.15rem;
}

.about-stat-label {
  margin-top: 6px;
  color: #475569;
  font-size: 0.82rem;
}

.about-side-note {
  margin-top: 16px;
  color: #5a6b7c;
  font-size: 0.96rem;
}

.about-governance-copy {
  margin: 0;
  color: #475569;
}

.section-title {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 6px solid var(--secondary-color);
  border-bottom: none;
  position: static;
}

.section-title::after {
  display: none;
}

@media (max-width: 992px) {
  .about-grid {
    flex-direction: column;
  }

  .about-column-main,
  .about-column-side {
    width: 100%;
    flex: 1 1 100%;
  }

  .about-hero {
    min-height: 340px;
  }
}

@media (max-width: 575px) {
  .about-hero-inner {
    width: min(92%, 1200px);
    padding: 42px 0;
  }

  .about-card {
    padding: 20px 18px;
  }
}

