:root {
  --saffron: #e39b1b;
  --marigold: #ffb14a;
  --deep-maroon: #5a1d1d;
  --warm-stone: #f6f0e8;
  --ink: #1c1b1a;
  --sand: #f3e7d7;
  --night: #12100d;
}

.modern-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--warm-stone) 100%);
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--deep-maroon);
  color: #fff;
  padding: 8px 14px;
  z-index: 2000;
}

.skip-link:focus {
  left: 16px;
}

.modern-nav {
  background: rgba(10, 10, 10, 0.7);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.modern-nav .navbar-brand img {
  width: 140px;
  margin-top: -20px;
}

.custom-menu > li > a {
  color: #f8f3ea !important;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 20px 14px;
}

.custom-menu > li.active > a,
.custom-menu > li > a:hover {
  color: var(--marigold) !important;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) brightness(0.85);
  transition: opacity 1.2s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 6, 4, 0.85) 0%, rgba(10, 6, 4, 0.55) 45%, rgba(10, 6, 4, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--marigold);
}

.hero h1 {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 48px;
  margin: 18px 0;
  line-height: 1.2;
}

.hero-sub {
  font-size: 18px;
  max-width: 560px;
  opacity: 0.9;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.btn-outline:hover {
  background: var(--marigold);
  color: var(--night);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 40px;
  max-width: 520px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  border-radius: 14px;
}

.highlight-value {
  font-size: 32px;
  font-weight: 700;
  display: block;
  color: var(--marigold);
}

.highlight-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.hero-scroll a {
  color: #f9e3b8;
  letter-spacing: 1px;
}

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head h2 {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 36px;
  color: var(--deep-maroon);
}

.section-head.light h2,
.section-head.light p {
  color: #fff;
}

.section-head p {
  color: #5b4e45;
  font-size: 16px;
}

.section-about {
  background: #fff;
}

.align-center {
  display: flex;
  align-items: center;
}

.about-card {
  background: var(--warm-stone);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(92, 50, 25, 0.18);
}

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

.about-card h3 {
  font-family: "Cinzel", "Times New Roman", serif;
  margin-top: 0;
  color: var(--deep-maroon);
}

.pillars {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.pillar {
  background: var(--sand);
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(90, 29, 29, 0.08);
}

.section-spaces {
  background: linear-gradient(120deg, #372018, #6a3a24);
}

.space-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.space-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.space-card-body {
  padding: 16px;
}

.space-card h3 {
  font-family: "Cinzel", "Times New Roman", serif;
  margin-top: 0;
  color: var(--deep-maroon);
}

.section-schedule {
  background: #fff;
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.schedule-tab {
  background: var(--sand);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--deep-maroon);
}

.schedule-tab.active {
  background: var(--deep-maroon);
  color: #fff;
}

.schedule-grid {
  max-width: 720px;
  margin: 0 auto;
}

.schedule-panel {
  display: none;
}

.schedule-panel.active {
  display: grid;
  gap: 16px;
}

.schedule-item {
  background: var(--warm-stone);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 18px rgba(90, 29, 29, 0.12);
}

.schedule-item span {
  font-weight: 700;
  color: var(--deep-maroon);
  min-width: 90px;
}

.section-seva {
  background: linear-gradient(120deg, #3c2016, #1e0f0c);
  color: #fff;
}

.seva-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.seva-card h3 {
  font-family: "Cinzel", "Times New Roman", serif;
  margin-top: 0;
  color: var(--marigold);
}

.text-link {
  color: var(--marigold);
  font-weight: 600;
}

.download-links {
  list-style: none;
  padding-left: 0;
}

.download-links li {
  margin-bottom: 8px;
}

.download-links a {
  color: #fff;
}

.donation-panel {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 16px;
}

.bank-card {
  background: #fff;
  color: var(--ink);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.note {
  margin-top: 10px;
  color: #f7d7a6;
}

.section-events {
  background: #fff;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.timeline-item {
  background: var(--sand);
  padding: 18px 22px;
  border-left: 4px solid var(--marigold);
  border-radius: 12px;
}

.timeline-item h4 {
  margin-top: 0;
  color: var(--deep-maroon);
  font-family: "Cinzel", "Times New Roman", serif;
}

.section-gallery {
  background: linear-gradient(120deg, #2c170f, #59311c);
  color: #fff;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.gallery-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 50%;
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.gallery-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  scroll-snap-align: center;
}

.gallery-cta {
  text-align: center;
  margin-top: 20px;
}

.section-visit {
  background: #fff;
}

.visit-card {
  background: var(--warm-stone);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(90, 29, 29, 0.16);
  margin-bottom: 24px;
}

.visit-card h3 {
  font-family: "Cinzel", "Times New Roman", serif;
  margin-top: 0;
  color: var(--deep-maroon);
}

.section-follow {
  background: #fff7ea;
}

.footer-modern {
  background: #1a0f0b;
  color: #f7ead5;
  padding: 20px 0;
}

.footer-modern a {
  color: var(--marigold);
}

.audio-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
}

.audio-toggle {
  background: var(--deep-maroon);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.page-hero {
  padding: 120px 0 60px;
  background-image: var(--hero-image, linear-gradient(120deg, #fff8ef, #f1e2d2));
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid rgba(90, 29, 29, 0.12);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 248, 239, 0.92), rgba(241, 226, 210, 0.88));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: "Cinzel", "Times New Roman", serif;
  color: var(--deep-maroon);
  font-size: 38px;
  margin-bottom: 10px;
}

.page-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: var(--saffron);
  margin-bottom: 8px;
}

.modern-body h2,
.modern-body h3,
.modern-body h4 {
  font-family: "Cinzel", "Times New Roman", serif;
  color: var(--deep-maroon);
}

.modern-body p,
.modern-body li,
.modern-body td {
  font-size: 16px;
  line-height: 1.7;
  color: #4b3f36;
}

.modern-body .container {
  position: relative;
}

.modern-body .table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(90, 29, 29, 0.08);
}

.modern-body .table > tbody > tr > td,
.modern-body .table > thead > tr > th {
  border-top: 1px solid rgba(90, 29, 29, 0.12);
  padding: 12px 16px;
}

.modern-body .event-box,
.modern-body .note1,
.modern-body .note {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(90, 29, 29, 0.1);
}

.modern-body .event-box h4 {
  margin-top: 0;
}

.modern-body .marquee-text {
  max-height: none;
}

.modern-body .panel-heading,
.modern-body .panel-body,
.modern-body .well {
  background: #fff;
}

.modern-body .nav-tabs {
  border-bottom: 2px solid rgba(90, 29, 29, 0.12);
}

.modern-body .nav-tabs > li > a {
  border: none;
  color: var(--deep-maroon);
  font-weight: 600;
}

.modern-body .nav-tabs > li.active > a,
.modern-body .nav-tabs > li > a:hover {
  background: var(--sand);
  border: none;
  color: var(--deep-maroon);
}

.modern-body .list-group-item {
  border: none;
  margin-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(90, 29, 29, 0.08);
}

.modern-body .btn {
  border-radius: 999px;
}

.quick-nav {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(90, 29, 29, 0.12);
}

.quick-nav .container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.quick-nav-label {
  font-weight: 700;
  color: var(--deep-maroon);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quick-nav-links {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.quick-nav-links a {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--deep-maroon);
  font-weight: 600;
}

.quick-nav-links a.active {
  background: var(--deep-maroon);
  color: #fff;
}

.masonry-grid {
  column-count: 3;
  column-gap: 18px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.15);
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.masonry-item figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.7));
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-item:hover figcaption {
  opacity: 1;
}

.project-grid,
.trustee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.project-card,
.trustee-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 32px rgba(90, 29, 29, 0.12);
  height: 100%;
}

.project-badge {
  display: inline-block;
  background: var(--deep-maroon);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.project-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-maroon);
  font-size: 18px;
  margin-bottom: 12px;
}

.project-card img {
  border-radius: 14px;
  margin-bottom: 16px;
}

.trustee-card h4 {
  margin-top: 0;
}

.trustee-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.trustee-list li {
  margin-bottom: 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.lightbox-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 16px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.modern-body section#about,
.modern-body section#abouthome,
.modern-body section#bloghome,
.modern-body section#gallery {
  position: relative;
  overflow: hidden;
}

.modern-body section#about::before,
.modern-body section#abouthome::before,
.modern-body section#bloghome::before,
.modern-body section#gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 210, 140, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(90, 29, 29, 0.12), transparent 60%);
  pointer-events: none;
}

.modern-body section#about > .container,
.modern-body section#abouthome > .container,
.modern-body section#bloghome > .container,
.modern-body section#gallery > .container,
.modern-body section#gallery > .container-fluid {
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
  .quick-nav {
    top: 62px;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 1;
  }
  .quick-nav .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

.modern-body .thumbnail,
.modern-body .panel,
.modern-body .well {
  border-radius: 14px;
  border: none;
  box-shadow: 0 16px 30px rgba(90, 29, 29, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .align-center {
    display: block;
  }
  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-strip {
    grid-auto-columns: minmax(180px, 1fr);
  }
}
