/* Core Variables: House Seal Theme */
:root {
  --primary: #0F244A; /* Seal Navy Blue */
  --primary-light: #1A346B;
  --secondary: #C5A059; /* Seal Gold */
  --accent: #C5A059; /* Seal Gold Accent */
  --text-light: #F8F9FA;
  --text-dark: #333333;
  --bg-light: #FFFFFF;
  --bg-offset: #F9F7F2; /* Lightest gold-gray */
  --glass-bg: rgba(15, 36, 74, 0.85); /* For sticky nav */
  --transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.3);
}

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

.btn-accent:hover {
  background-color: #d19a5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 169, 109, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 4px 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar.scrolled {
  padding: 2px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.nav-brand img {
  height: 75px;
  width: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .btn-accent {
  color: var(--primary);
}

.nav-links .btn-accent:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(to bottom, rgba(21,34,56,0.4) 0%, rgba(21,34,56,0.0) 100%), url('assets/majestic-sunset.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 160px; /* offset the massive nav */
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-light);
  animation: fadeIn 1.5s ease;
  text-align: center;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
}

.hero p.subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

.hero p.description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* About Section */
.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--primary);
  color: var(--text-light);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.section-alt .about-text h2 {
  color: var(--text-light);
}

.about-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-element {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform var(--transition-speed) ease;
}

.feature-element:hover {
  transform: translateY(-5px);
}

.feature-icon {
  background: var(--accent);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Services / Features Grid */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: inherit;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
  transition: all var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card-content {
  padding: 30px;
}

.card-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card-content p {
  color: var(--text-dark);
  font-size: 1rem;
}

/* Projects Banner */
.project-banner {
  background: var(--secondary);
  color: var(--text-light);
  padding: 40px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
}

.project-banner h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}

/* Footer */
.footer {
  background: var(--primary-light);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
}

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

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

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .member-grid {
    grid-template-columns: 1fr !important;
  }
  .navbar {
    position: relative; /* Un-stick on mobile to prevent clipping content */
    padding: 20px 0;
  }
  .navbar .container {
    flex-direction: column;
    gap: 15px;
  }
  .nav-brand {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 40px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-cta p {
    white-space: normal !important;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero p.subtitle {
    font-size: 1.1rem;
  }
  .reading-container {
    padding: 30px 20px;
  }
}

/* Blog Listing Styles */
.blog-hero {
  padding: 220px 0 100px;
  background: url('assets/blog-hero-bg.png') center/cover no-repeat;
  text-align: center;
  position: relative;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.0));
  z-index: 1;
}
.blog-hero > .container {
  position: relative;
  z-index: 2;
}
.blog-hero h1 {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(255,255,255,0.9);
}
.blog-hero p {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 500;
  max-width: 650px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(255,255,255,0.9);
}
.blog-filters {
  background: var(--primary);
  padding: 20px 0;
}
.filter-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.filter-pill {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.filter-pill.active, .filter-pill:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 0;
}
.blog-card {
  background: var(--primary);
  border-radius: 12px;
  padding: 30px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed) ease;
}
.blog-card:hover {
  transform: translateY(-8px);
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.blog-category {
  background: var(--secondary);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
}
.blog-date {
  color: rgba(255,255,255,0.7);
}
.blog-card img.author-seal {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  margin-bottom: 20px;
}
.blog-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
}
.read-more {
  margin-top: auto;
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Individual Post Styles */
.post-hero {
  padding: 220px 0 120px;
  text-align: center;
  position: relative;
  background: var(--bg-offset); /* Default fallback */
}

/* Post Categories Backgrounds */
.post-category-spiritual {
  background: url('assets/blog-hero-bg.png') center/cover no-repeat;
}
.post-category-spiritual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.0));
  z-index: 1;
}
.post-category-temple {
  background: url('assets/blog-hero-temple-bg.png') center/cover no-repeat;
}
.post-category-temple::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.0));
  z-index: 1;
}
.post-hero > .container {
  position: relative;
  z-index: 2;
}
.post-hero .author-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
.post-hero h1 {
  color: var(--primary);
  font-size: 3.5rem;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(255,255,255,0.9);
}
.post-meta-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(255,255,255,0.9);
}
.reading-wrapper {
  background: var(--bg-light);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding-bottom: 80px;
}
.reading-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-light);
  padding: 60px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4A4A4A;
}
.reading-container p {
  margin-bottom: 25px;
}

/* Blog Post Formatting */
.article-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.has-dropcap::first-letter {
  float: left;
  font-size: 4.5rem;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 8px;
  font-family: 'Playfair Display', serif;
  color: var(--secondary);
  font-weight: 700;
}

.article-divider {
  text-align: center;
  margin: 3rem 0;
  color: var(--secondary);
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
}
.article-divider::before {
  content: '♦ ♦ ♦';
}

.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--primary);
  text-align: center;
  margin: 3rem auto;
  padding: 0 2rem;
  border-left: 4px solid var(--secondary);
  border-right: 4px solid var(--secondary);
  line-height: 1.4;
  max-width: 90%;
}
