:root {
  --bg-parchment: #fdfaf4;
  --bg-darker: #f8f4ea;
  --maroon: #800000;
  --maroon-dark: #4a0000;
  --maroon-light: #9c2e2e;
  --gold: #d4af37;
  --gold-dark: #aa862c;
  --gold-tan: #c9b38f;
  --text-dark: #3a2e28;
  --text-light: #fdfaf4;
  --shadow-subtle: 0 4px 15px rgba(74, 0, 0, 0.08);
}

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

html {
  background-color: #e6dac3; /* Warm darker background to contrast with main page */
overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

p {
  line-height: 1.9;
  font-weight: 300;
  color: #5a4a42;
}



body {
  font-family: 'Inter', sans-serif;
  background-color: #f5efe6;
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 300;
  max-width: 1300px;
  margin: 0 auto;
 box-shadow: 0 0 30px rgba(0,0,0,0.1); /* Adds depth to the main wrapper */
  overflow-x: hidden;

  /* ✨ Layered elegant texture */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(212,175,55,0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(212,175,55,0.06), transparent 40%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.035'%3E%3Ccircle cx='60' cy='60' r='1.5'/%3E%3C/g%3E%3C/svg%3E");

  background-repeat: no-repeat, no-repeat, repeat;
  background-size: cover, cover, 120px;
}

body::before,
body::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background-image: url('assets/mandala-light.png'); /* use a faint mandala */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -50px;
  left: -100px;
}

body::after {
  bottom: 0px;
  right: -100px;
  transform: rotate(180deg);
}

body > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  body {
    border-left: 20px solid var(--maroon-dark);
    border-right: 20px solid var(--maroon-dark);
  }
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  color: var(--maroon-dark);
  font-weight: 500;
  letter-spacing: 1px;
}

img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}


.sloka-sanskrit,
.sloka-text {
  font-family: 'Rozha One', serif;
}

a {
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* Base Animations */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.main-header {
   background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nataraja-logo { height: 90px; width: auto; }

.title-logo { height: 70px; width: auto; }

.top-nav {
  width: 90%;
  max-width: 1000px;
  padding: 1rem 0;
  border-top: 1px solid var(--gold-tan);
  border-bottom: 1px solid var(--gold-tan);
  margin-bottom: 1rem;
}

.top-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  color: var(--maroon-dark);
  font-family: 'Cinzel', serif;
  font-weight: 300;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.top-nav a:hover {
  color: var(--gold-dark);
  text-shadow: 0 0 8px rgba(212,175,55,0.4);
}

.sloka-banner {
  text-align: center;
 padding: 0 1rem 1.5rem;
}

.sloka-text {
  font-size: 1.3rem;
  color: var(--maroon);
  letter-spacing: 0.1em;
  
}

/* Layouts */
.container {
  max-width: 1000px;
  /* tighter max width for reading */
  margin: 0 auto;
  padding: 0 2rem;
}

/* Legacy Section */
.legacy-section {
  padding: 4rem 0;
  background-color: var(--bg-darker);
}

.dual-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
}

.legacy-text h2,
.philosophy-text h2 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  color: var(--maroon-dark);
  text-transform: uppercase;
}

.legacy-text p,
.philosophy-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  
}

.foundational-sloka {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--gold-tan);
  text-align: center;
}

.foundational-sloka h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sloka-sanskrit {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 0.5rem;
  letter-spacing: 1.2px;
}

.sloka-english {
  font-style: italic;
  color: var(--maroon-light);
   opacity: 0.8;
  font-size: 1rem;
}

/* Visionaries Section */
.visionaries-section {
  padding: 5rem 0;
}

.visionaries-section>.container>h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--maroon-dark);
}

.intro-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  font-style: italic;
  color: #555;
}

.founder-profiles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.founder-image-wrapper {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  box-shadow: var(--shadow-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.founder-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.5s ease;
}

.founder-img:hover {
  transform: scale(1.03);
}

.founder-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.profile-card {
   padding: 2rem;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 0.3s ease;
}

.profile-card:hover {
  box-shadow: 0 8px 25px rgba(74, 0, 0, 0.12);
}

.profile-card h3 {
  font-size: 1.5rem;
  color: var(--maroon);
  margin-bottom: 0.2rem;
}

.profile-card h4 {
  font-family: 'Inter', sans-serif;
  color: var(--gold-dark);
  font-weight: 500;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.profile-card>p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.profile-card ul {
  list-style-type: none;
}

.profile-card li {
 margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: #444;
}

.profile-card li::before {
   content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-size: 0.9rem;
  top: 3px;
}

.profile-card li strong {
  color: var(--maroon-dark);
  font-weight: 600;
}

.philosophy-box {
 margin-top: 4rem;
  text-align: center;
}

.philosophy-box h3 {
  color: var(--maroon-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-transform: uppercase;
}

 .card-effect {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(212,175,55,0.2);
  transition: transform 0.3s ease;
}

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

/* Footer */
.main-footer {
  background-color: #f7f3eb;
  padding: 3rem 1rem 2rem;
  text-align: center;
  border-top: 2px solid var(--gold-tan);
}

.lotus-icon {
  margin-bottom: 1rem;
}

.lotus-svg {
  width: 40px;
  height: 40px;
  color: var(--maroon-dark);
  margin-bottom: 1rem;
}

.contact-info {
  font-size: 1rem;
  font-family: 'Cinzel', serif;
  margin-bottom: 1rem;
  color: var(--maroon-dark);
  opacity: 0.8;
}

.copyright {
  font-size: 0.85rem;
  color: #777;
}

/* --- Founder Slideshow Effects --- */
.slideshow-container {
  position: relative;
  height: 450px; /* Match your image height */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: crossFade 15s infinite; /* 15s total for 3 images */
}

/* Timing for 3 images: 0-33%, 33-66%, 66-100% */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes crossFade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

/* --- Performance Section Styles --- */
.performance-section {
  padding: 5rem 0;
  background-color: var(--bg-darker);
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.performance-card h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--maroon);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

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

.gallery-cta {
  text-align: center;
  margin-top: 4rem;
}

.btn-gallery {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--maroon-dark);
  color: white;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
}

.btn-gallery:hover {
  background-color: var(--gold);
  color: var(--maroon-dark);
}


@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  } 

  .nataraja-logo { height: 80px; }
  .title-logo { height: 60px; }
  
  .top-nav ul {
    gap: 1.2rem;
  }

  .legacy-text h2, .philosophy-text h2, .visionaries-section > .container > h2 {
    font-size: 1.5rem;
  }

  .sloka-sanskrit {
    font-size: 1.4rem;
  }

  /* Just adjust the padding for mobile here, the shadow stays global */
  .card-effect {
    padding: 1.5rem;
  }

  body::before, body::after {
    display: none; 
  }
}


/* Resources Page Specific Styles */
.resources-header {
  text-align: center;
  padding: 4rem 0 2rem;
}

.resources-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  padding-bottom: 5rem;
}

.blog-card {
  background: white;
  padding: 2rem;
  border: 1px solid var(--gold-tan);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(128, 0, 0, 0.1);
}

.blog-date {
  font-size: 0.8rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
}

.read-more:hover {
  color: var(--maroon-light);
}



/* Article Page Layout */
.article-layout {
  display: grid;
  grid-template-columns: 4fr 1fr; /* 4 parts content, 1 part sidebar */
  gap: 4rem;
  padding: 4rem 2rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--gold-dark);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--maroon);
}

.post-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #333;
}

/* Sidebar Styling */
.sidebar {
  border-left: 1px solid var(--gold-tan);
  padding-left: 2.5rem;
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.quick-links {
  list-style: none;
}

.quick-links li {
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.quick-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.quick-links a:hover, .quick-links a.active {
  color: var(--maroon);
  font-weight: 600;
}

.sidebar-cta {
  margin-top: 3rem;
  background-color: var(--maroon-dark);
  color: white;
  padding: 1.5rem;
  border-radius: 4px;
}

.sidebar-cta h4 { color: var(--gold); margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 0.75rem; margin-bottom: 1rem; color: #ccc; }

.btn-small {
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8rem;
  border-radius: 2px;
}

/* Responsive sidebar */
@media (max-width: 800px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-left: none;
    border-top: 1px solid var(--gold-tan);
    padding-left: 0;
    padding-top: 2rem;
  }
}
