/* Spiritual Nuggets Custom Theme Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Proza+Libre:wght@400;500;600&display=swap');

/* Custom Properties */
:root {
  /* Color Palette */
  --color-purple-dark: #301A2E;
  --color-orange: #D15F50;
  --color-cream: #FDFBF5;
  --color-beige: #F5E9DD;
  --color-white: #FFFFFF;

  /* Typography */
  --font-cormorant: 'Cormorant Garamond', serif;
  --font-proza: 'Proza Libre', sans-serif;

  /* Override Material Theme Typography */
  --md-text-font: var(--font-proza);
}

/* Base Typography */
body {
  font-family: var(--font-proza);
}

/* Homepage specific styles */
body.homepage .md-main {
  display: none;
  /* Hero section is the main content, hide the empty md-main container */
}

/* Set minimum height for main content area on non-homepage pages */
body:not(.homepage) .md-main {
  min-height: 90vh;
  padding-top: 4rem;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: var(--font-cormorant);
  font-weight: 300;
  color: var(--color-purple-dark);
  line-height: 1.2;

  h1,
  .md-typeset h1 {
    word-spacing: 1px;
  }

}

/* Custom Spiritual Header Styles */
.spiritual-header {
  background-color: var(--color-purple-dark) !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}



.spiritual-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 80rem;
  /* 1280px */
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .spiritual-nav {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .spiritual-nav {
    padding: 0 2rem;
  }
}

/* Logo */
.spiritual-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.spiritual-logo-img {
  height: 2.5rem;
  width: auto;
}

/* Desktop Navigation */
.spiritual-nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .spiritual-nav-desktop {
    display: block;
  }
}

.spiritual-nav-links {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.spiritual-nav-link {
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  /* Further reduced */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
}

.spiritual-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.spiritual-nav-link--active {
  background-color: var(--color-orange);
  color: white;
}

/* Mobile Menu Button */
.spiritual-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.spiritual-mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.spiritual-menu-label {
  font-family: var(--font-proza);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .spiritual-mobile-menu-btn {
    display: none;
  }
}

/* Custom tooltip for menu toggle */
.menu-toggle {
  position: relative;
}

.menu-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--color-purple-dark);
  color: var(--color-white);
  font-family: var(--font-cormorant);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

.menu-toggle:hover::after,
.menu-toggle:focus::after {
  opacity: 1;
  visibility: visible;
}

.md-image {
  width: 60%;
  max-width: 100%;
  display: block;
  margin: auto;
}

/* =========================================
   Mobile Hub-and-Spoke Navigation
   ========================================= */
/* Hide sidebar on mobile - cards ARE the navigation */
@media (max-width: 76.1875em) {
  .md-sidebar--primary {
    display: none !important;
  }

  /* Ensure content takes full width */
  .md-content {
    margin-left: 0 !important;
  }
}

/* Mobile-only navigation styling */
@media (max-width: 76.1875em) {

  /* Fix main nav drawer title to match header styling */
  .md-nav--primary>.md-nav__title {
    background-color: var(--color-purple-dark) !important;
    color: var(--color-white) !important;
    padding: 0 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    height: 4rem !important;
    box-sizing: border-box !important;
  }

  /* Hide site name text in main nav title while keeping logo */
  .md-nav--primary>.md-nav__title {
    font-size: 0 !important;
  }

  .md-nav--primary>.md-nav__title .md-nav__button {
    font-size: 1rem !important;
  }

  /* Fix all nav titles to match header styling - same height as spiritual-nav */
  .md-nav__title {
    background-color: var(--color-purple-dark) !important;
    color: var(--color-white) !important;
    padding: 0 0.5rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    height: 4rem !important;
    gap: 0.25rem !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Hide the default back icon span completely */
  .md-nav__title .md-nav__icon {
    display: none !important;
  }

  /* Add back arrow as prefix to the nav title text */
  .md-nav__title:not(.md-nav--primary > .md-nav__title)::before {
    content: "← " !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    color: var(--color-white) !important;
    margin-right: 0.25rem !important;
  }

  /* Mobile nav list items - proper touch targets */
  .md-nav__item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .md-nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--color-purple-dark);
    font-size: 0.875rem;
  }

  .md-nav__link:hover,
  .md-nav__link:focus {
    background-color: var(--color-beige);
    color: var(--color-purple-dark);
  }

  .md-nav__link--active {
    color: var(--color-orange);
    font-weight: 500;
  }

  /* Nav item expansion arrows */
  .md-nav__link .md-nav__icon {
    color: var(--color-purple-dark);
    opacity: 0.6;
  }

  /* Mobile sidebar drawer */
  .md-sidebar--primary {
    background-color: var(--color-white);
  }

  .md-sidebar__scrollwrap {
    background-color: var(--color-white);
  }
}

/* Mobile back link - hidden on desktop */
.md-back {
  display: none;
}

/* Breadcrumbs - hidden (desktop uses sidebar, mobile uses back button) */
.md-path {
  display: none;
}

.md-path__list {
  display: inline;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.75rem;
}

.md-path__item {
  display: inline;
}

.md-path__item:not(:last-child)::after {
  content: " / ";
  color: var(--color-purple-dark);
  opacity: 0.3;
}

.md-path__link,
.md-path__current {
  color: var(--color-purple-dark);
  text-decoration: none;
}

.md-path__link {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.md-path__link:hover {
  opacity: 1;
  color: var(--color-orange);
}

.md-path__current {
  opacity: 0.9;
}

/* Mobile: Show back link, hide breadcrumbs */
@media (max-width: 76.1875em) {
  .md-path {
    display: none;
  }

  .md-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-purple-dark);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    /* Button reset */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
  }

  .md-back:hover {
    opacity: 1;
    color: var(--color-orange);
  }

  .md-back svg {
    fill: currentColor;
    flex-shrink: 0;
  }

  .md-back span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
  }
}

/* Back to Top Button (navigation.top) Styling */
.md-top {
  background-color: var(--color-purple-dark);
  color: white;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.md-top:hover {
  background-color: var(--color-orange);
}

/* Custom Footer Styles */
.spiritual-footer {
  background-color: var(--color-purple-dark) !important;
  color: white;
  margin-top: auto;
}

/* Adjust main content padding for fixed header */
body:not(.homepage) .md-main {
  padding-top: 4rem;
}

/* Reduce top padding for content area on inner pages */
body:not(.homepage) .md-content__inner {
  padding-top: 1rem;
}

/* Mobile: reduce top padding and hide decorative images */
@media (max-width: 76.1875em) {
  body:not(.homepage) .md-main {
    padding-top: 3.5rem;
  }

  body:not(.homepage) .md-content__inner {
    padding-top: 0.5rem;
  }

  /* Hide decorative images on mobile to prioritize navigation cards */
  .md-content .md-image {
    display: none !important;
  }

  .md-content p[align="center"] {
    display: none !important;
  }
}

/* Ensure header is always on top */
.md-header {
  z-index: 100;
}

/* Sidebar Styling for non-homepage pages */
body:not(.homepage) .md-sidebar {
  background-color: var(--color-white);
}

body:not(.homepage) .md-nav__title {
  color: var(--color-purple-dark);
  font-weight: 600;
}

body:not(.homepage) .md-nav__link {
  color: var(--color-purple-dark);
  opacity: 0.8;
  transition: all 0.2s ease;
  font-weight: normal;
  border-left: 3px solid transparent;
}

body:not(.homepage) .md-nav__link:hover {
  opacity: 1;
  background-color: var(--color-beige);
  color: var(--color-purple-dark);
}

body:not(.homepage) .md-nav__link--active {
  background-color: transparent;
  color: var(--color-orange);
  opacity: 1;
  font-weight: 500;
  border-left: 3px solid var(--color-orange);
  border-right: none !important;
  padding-left: calc(0.6rem - 3px);
}

body:not(.homepage) .md-nav__item--nested>.md-nav__link {
  color: var(--color-purple-dark);
}

/* Content area styling for non-homepage pages */
body:not(.homepage) .md-content {
  background-color: var(--color-white);
}

body:not(.homepage) .md-content__inner {
  background-color: transparent;
  padding: 1rem 0.5rem 1rem 0.5rem;
  /* Reduced top padding */
  border-radius: 0;
  box-shadow: none;
}

/* Main container background */
body:not(.homepage) .md-main .md-container {
  background-color: var(--color-cream);
}

/* Typography for content pages */
body:not(.homepage) .md-typeset h1 {
  color: var(--color-purple-dark);
  font-family: var(--font-cormorant);
  font-weight: 400;
  font-size: 1.75rem;
  /* Further reduced */
  margin-top: 0;
  margin-bottom: 1rem;
}

body:not(.homepage) .md-typeset h2 {
  color: var(--color-purple-dark);
  font-family: var(--font-cormorant);
  font-weight: 400;
  font-size: 1.375rem;
  /* Further reduced */
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

body:not(.homepage) .md-typeset h3,
body:not(.homepage) .md-typeset h4,
body:not(.homepage) .md-typeset h5,
body:not(.homepage) .md-typeset h6 {
  color: var(--color-purple-dark);
  font-family: var(--font-cormorant);
  font-weight: 400;
}

body:not(.homepage) .md-typeset {
  color: #374151;
  font-size: 0.875rem;
  /* Further reduced from 0.9375rem */
  line-height: 1.6;
  /* Reduced from 1.75 */
}

/* Paragraph spacing */
body:not(.homepage) .md-typeset p {
  margin-bottom: 1rem;
  /* Consistent paragraph spacing */
}

/* List spacing */
body:not(.homepage) .md-typeset ul,
body:not(.homepage) .md-typeset ol {
  margin-bottom: 1rem;
}

body:not(.homepage) .md-typeset li {
  line-height: 1.5;
}

body:not(.homepage) .md-typeset a:not(.section-card):not(.page-list__link) {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body:not(.homepage) .md-typeset a:hover {
  color: var(--color-purple-dark);
}

/* TOC (Table of Contents) Sidebar Styling */
body:not(.homepage) .md-nav--secondary .md-nav__link {
  color: var(--color-purple-dark);
  opacity: 0.8;
  font-size: 0.75rem;
  /* Reduced from 0.875rem */
}

body:not(.homepage) .md-nav--secondary .md-nav__link:hover {
  opacity: 1;
  color: var(--color-orange);
}

body:not(.homepage) .md-nav--secondary .md-nav__link--active {
  color: var(--color-orange);
  opacity: 1;
  font-weight: 500;
}

/* Remove background from TOC active items */
body:not(.homepage) .md-nav__link--active,
body:not(.homepage) .md-nav__link:focus {
  background-color: transparent;
}

/* Buttons */
.md-button {
  font-family: var(--font-proza);
  font-weight: 500;
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  /* Reduced padding */
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  /* Reduced button text size */
}

.md-button--primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: 1px solid var(--color-orange);
}

.md-button--primary:hover {
  background-color: rgba(209, 95, 80, 0.9);
  color: var(--color-white);
}

.md-button--secondary {
  background-color: var(--color-purple-dark);
  color: var(--color-white);
  border: 1px solid var(--color-purple-dark);
}

.md-button--secondary:hover {
  background-color: rgba(48, 26, 46, 0.9);
  color: var(--color-white);
}

/* Hero Section for Homepage */
.hero-section {
  background-color: var(--color-cream);
  margin-top: 0;
  /* Reset any default margins */
  padding-top: 4rem;
  /* Add top padding to account for fixed header */
}

.hero-container {
  max-width: 80rem;
  /* 1280px */
  margin: 0 auto;
  padding: 1.5rem 1rem;
  /* Further reduced */
}

@media (min-width: 768px) {
  .hero-container {
    padding: 2rem 1.5rem;
    /* Further reduced */
  }
}

@media (min-width: 1024px) {
  .hero-container {
    padding: 2.5rem 2rem;
    /* Further reduced */
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* Further reduced */
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* Further reduced */
  }
}

.hero-image {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 18rem;
  /* Slightly larger */
  margin: 0 auto;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Gradient overlays */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, #FDFBF5 0%, transparent 15%),
    linear-gradient(to bottom, #FDFBF5 0%, transparent 15%),
    linear-gradient(to left, #FDFBF5 0%, transparent 15%),
    linear-gradient(to right, #FDFBF5 0%, transparent 15%);
}

.hero-radial-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 65%, #FDFBF5 100%);
  opacity: 0.8;
}

.hero-text h1 {
  font-size: 1.375rem;
  /* Further reduced */
  margin-bottom: 0.375rem;
  color: var(--color-purple-dark);
  font-weight: 300;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 1.75rem;
    /* Further reduced */
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 2.25rem;
    /* Further reduced */
  }
}

.hero-text .subtitle {
  font-family: var(--font-cormorant);
  font-size: 1rem;
  /* Further reduced */
  color: var(--color-orange);
  margin-bottom: 0.75rem;
  /* Further reduced */
  font-weight: 300;
}

@media (min-width: 768px) {
  .hero-text .subtitle {
    font-size: 1.125rem;
    /* Further reduced */
  }
}

.hero-description {
  font-size: 0.8125rem;
  /* Further reduced */
  line-height: 1.5;
  color: #374151;
  margin-bottom: 0.875rem;
  /* Further reduced */
}

.hero-description p {
  margin-bottom: 0.625rem;
  /* Further reduced */
}

.hero-description p:last-child {
  margin-bottom: 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Further reduced */
  margin-top: 1rem;
  /* Further reduced */
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* What's New Section */
.whats-new-section {
  padding: 2.5rem 0;
  /* Reduced from 4rem */
  background-color: var(--color-white);
}

.whats-new-container {
  max-width: 80rem;
  /* 1280px */
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .whats-new-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .whats-new-container {
    padding: 0 2rem;
  }
}

.whats-new-header {
  text-align: center;
  margin-bottom: 2rem;
  /* Reduced from 3rem */
}

.whats-new-header h2 {
  font-size: 1.5rem;
  /* Reduced */
  margin-bottom: 0.375rem;
  font-weight: 300;
  color: var(--color-purple-dark);
}

@media (min-width: 768px) {
  .whats-new-header h2 {
    font-size: 1.875rem;
    /* Reduced */
  }
}

@media (min-width: 1024px) {
  .whats-new-header h2 {
    font-size: 2.25rem;
    /* Reduced */
  }
}

.section-divider {
  height: 1px;
  width: 8rem;
  background: linear-gradient(to right, transparent, var(--color-orange), transparent);
  margin: 0 auto;
}

/* Article Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
  /* Fixed width cards */
  gap: 1.5rem;
  /* Reduced gap */
  margin-bottom: 2rem;
  /* Reduced margin */
  justify-content: center;
  /* Center the grid */
}

.article-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.5s ease;
  text-decoration: none;
  display: block;
}

.article-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Center content container */
.whats-new-footer {
  text-align: center;
  margin-top: 2rem;
}

/* Standalone Article Card for Markdown Usage */
.article-card-standalone {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.5s ease;
  display: block;
  margin-bottom: 1.5rem;
  max-width: 350px;
  /* Max width for standalone cards */
}

.article-card-standalone:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Grid container for multiple cards in markdown */
.article-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
  /* Fixed width cards */
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: center;
  /* Center the grid */
}

/* Ensure standalone cards don't have text decoration */
.article-card-standalone a.article-read-more {
  text-decoration: none;
}

/* Style adjustments for cards in content pages */
body:not(.homepage) .article-card-standalone {
  max-width: 100%;
}

body:not(.homepage) .article-grid-container {
  max-width: 100%;
}

/* Mobile Responsive - Additional overrides */
@media (max-width: 400px) {

  .md-image {
    width: 100% !important;
  }
}

@media (max-width: 768px) {


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

  .hero-image {
    order: 1;
  }

  .hero-text {
    order: 2;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  /* Fix header padding on mobile */
  .spiritual-nav {
    padding: 0 0.5rem;
  }

  /* Ensure mobile menu takes full width */
  .spiritual-nav-mobile {
    width: 100%;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Utility class - removed .hidden since we use drawer now */

/* Footer Styles */
.spiritual-footer {
  background-color: var(--color-purple-dark) !important;
  color: white;
}

/* Ensure footer has correct background on all pages */
body .spiritual-footer {
  background-color: var(--color-purple-dark) !important;
}

/* Override any Material theme footer backgrounds */
footer.spiritual-footer {
  background: var(--color-purple-dark) !important;
  background-color: var(--color-purple-dark) !important;
}

.spiritual-footer .md-container {
  max-width: 64rem;
  /* Reduced from 80rem for more margin */
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .spiritual-footer .md-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .spiritual-footer .md-container {
    padding: 0 2rem;
  }
}

.spiritual-footer-newsletter {
  padding: 1.5rem 0;
  /* Further reduced */
}

.spiritual-footer-content {
  max-width: 40rem;
  /* Reduced from 48rem */
  margin: 0 auto;
  text-align: center;
}

.spiritual-footer-title {
  font-family: var(--font-cormorant);
  font-size: 1.125rem;
  /* Further reduced */
  font-weight: 300;
  margin-bottom: 0.375rem;
  /* Further reduced */
  color: white;
}

@media (min-width: 768px) {
  .spiritual-footer-title {
    font-size: 1.375rem;
    /* Further reduced */
  }
}

.spiritual-footer-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.875rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.6875rem;
}

/* Newsletter Form */
.spiritual-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 20rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .spiritual-newsletter-form {
    flex-direction: row;
    align-items: center;
    max-width: none;
    justify-content: center;
  }
}

.spiritual-newsletter-input {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  font-family: var(--font-proza);
  width: 100%;
}

@media (min-width: 640px) {
  .spiritual-newsletter-input {
    width: 14rem;
  }
}

.spiritual-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.spiritual-newsletter-input:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(209, 95, 80, 0.3);
}

.spiritual-newsletter-button {
  padding: 0.5rem 1rem;
  background-color: var(--color-orange);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: var(--font-proza);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.spiritual-newsletter-button:hover {
  background-color: rgba(209, 95, 80, 0.9);
}

/* Links Section */
.spiritual-footer-links {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  /* Further reduced */
}

.spiritual-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .spiritual-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spiritual-footer-column {
  text-align: left;
}

.spiritual-footer-heading {
  font-family: var(--font-cormorant);
  font-size: 1rem;
  /* Further reduced */
  margin-bottom: 0.5rem;
  /* Further reduced */
  color: white;
  font-weight: 400;
}

.spiritual-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spiritual-footer-list li {
  margin-bottom: 0.375rem;
  /* Reduced from 0.5rem */
}

.spiritual-footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.75rem;
  /* Reduced from 0.875rem */
}

.spiritual-footer-link:hover {
  color: white;
}

.spiritual-footer-link--active {
  color: var(--color-orange) !important;
  font-weight: 500;
}

.spiritual-footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  /* Reduced from 0.875rem */
  line-height: 1.5;
}

/* Copyright */
.spiritual-footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  /* Further reduced */
}

.spiritual-footer-copyright-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  /* Reduced from 0.875rem */
  margin: 0;
}

/* Material footer navigation - keep it but hide meta */
.md-footer-meta {
  display: none;
}

/* Fix Material theme container issues */
.md-container:not(.spiritual-footer .md-container) {
  background-color: inherit;
}

/* Remove sticky footer implementation - using min-height instead */

/* Contact Form Styles */
.contact-form-container {
  max-width: 500px;
  margin: 2rem auto;
  /* Center the form */
}

.contact-form {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--color-purple-dark);
  font-weight: 500;
  font-size: 0.8125rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-family: var(--font-proza);
  transition: border-color 0.2s ease;
  background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(209, 95, 80, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-message {
  margin-top: 1rem;
  padding: 0.625rem;
  border-radius: 0.25rem;
  display: none;
  font-size: 0.8125rem;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.contact-info {
  margin-top: 3rem;
}

.contact-info h2 {
  color: var(--color-purple-dark);
  font-family: var(--font-cormorant);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-method h3 {
  color: var(--color-purple-dark);
  font-family: var(--font-cormorant);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-method p {
  color: #374151;
  font-size: 0.875rem;
}

/* Contact form button */
.contact-form .md-button {
  width: 100%;
  margin-top: 0.5rem;
  background-color: var(--color-orange);
  color: white;
  border-color: var(--color-orange);
}

.contact-form .md-button:hover {
  background-color: rgba(209, 95, 80, 0.9);
  color: white;
  border-color: rgba(209, 95, 80, 0.9);
}

/* Hide default mkdocs-material header */
body .md-header:not(.spiritual-header) {
  display: none;
}

/* Fix tooltip size */
.md-tooltip {
  font-size: 0.75rem;
  /* Reduced from default */
  padding: 0.25rem 0.5rem;
  max-width: 200px;
}

.md-tooltip__inner {
  font-size: 0.75rem;
}

/* Article Card Styles */
.article-card-header {
  position: relative;
  height: 5rem;
  /* Reduced from 8rem */
  background: linear-gradient(to bottom right, rgba(209, 95, 80, 0.2), rgba(209, 95, 80, 0.1), var(--color-cream));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  /* Reduced padding */
  overflow: hidden;
}

.article-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--color-orange);
  /* Changed to orange */
  color: white;
  padding: 0.125rem 0.5rem;
  /* Reduced padding */
  border-radius: 9999px;
  font-size: 0.625rem;
  /* Reduced from 0.75rem */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.article-title {
  font-family: var(--font-cormorant);
  font-size: 1.125rem;
  /* Reduced from 1.5rem */
  color: var(--color-purple-dark);
  line-height: 1.2;
  /* Tighter line height */
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 1.25rem;
    /* Reduced from 1.875rem */
  }


  .md-content__inner {
    padding: 1rem 0.25rem 1rem 0.25rem;
  }
}

.article-card-body {
  flex: 1;
  padding: 1rem;
  /* Reduced padding */
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.article-topic {
  background: linear-gradient(to right, var(--color-purple-dark), rgba(48, 26, 46, 0.8));
  color: white;
  padding: 0.125rem 0.5rem;
  /* Reduced padding */
  border-radius: 9999px;
  font-size: 0.625rem;
  /* Reduced from 0.75rem */
  font-weight: 500;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Removed .article-reading-time - no longer used */

/* Removed .reading-icon - no longer used */

.article-description {
  flex: 1;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  /* Reduced from 0.875rem */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: flex-end;
  /* Changed from space-between */
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

/* Removed .article-date - no longer used */

.article-read-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-orange);
  font-weight: 600;
  font-size: 0.75rem;
  /* Reduced from 0.875rem */
  transition: gap 0.2s ease;
}

.article-card:hover .article-read-more {
  gap: 0.5rem;
}

.arrow-icon {
  width: 1rem;
  height: 1rem;
}

/* Image Modal Styles */
#image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#image-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#image-modal-content img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

footnote-backref {
  display: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: #333;
  color: white;
  padding: 16px 24px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 350px;
  font-size: 14px;
  line-height: 1.4;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  background: #4caf50;
}

.toast.error {
  background: #f44336;
}

.toast.info {
  background: #2196f3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    max-width: none;
    width: 100%;
  }
}

/* Loading state for submit button */
.spiritual-newsletter-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spiritual-newsletter-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================
   Section Cards - Dynamic Navigation Hubs
   ========================================= */
/* These cards are generated dynamically from the nav structure */

.section-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .section-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .section-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-beige);
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.section-card:hover {
  border-color: var(--color-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.section-card h3 {
  font-family: var(--font-cormorant);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-purple-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.section-card .card-count {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-orange);
  background: rgba(232, 119, 34, 0.08);
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
}

/* =========================================
   Mobile Hub Menu - Full Page View
   ========================================= */
.mobile-hub-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 500;
  background: linear-gradient(180deg, var(--color-cream) 0%, #f8f6f3 100%);
  flex-direction: column;
  animation: hubMenuFadeIn 0.25s ease-out;
  overflow: hidden;
}

.mobile-hub-menu.is-open {
  display: flex;
}

@keyframes hubMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-hub-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 4rem;
  background: var(--color-purple-dark);
  color: var(--color-white);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-hub-menu__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.mobile-hub-menu__logo {
  height: 2.5rem;
  width: auto;
}

.mobile-hub-menu__title {
  font-family: var(--font-cormorant);
  font-size: 1.5rem;
  font-weight: 400;
}

.mobile-hub-menu__close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.mobile-hub-menu__close:hover,
.mobile-hub-menu__close:active {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-hub-menu__close svg {
  fill: currentColor;
}

.mobile-hub-menu__sections {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.mobile-hub-menu__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mobile-hub-menu__card:hover,
.mobile-hub-menu__card:active {
  border-color: var(--color-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.mobile-hub-menu__card--active {
  background-color: var(--color-orange);
}

.mobile-hub-menu__card--active .mobile-hub-menu__card-title {
  color: var(--color-white);
}

.mobile-hub-menu__card--active .mobile-hub-menu__card-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.mobile-hub-menu__card-title {
  font-family: var(--font-cormorant);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-purple-dark);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.mobile-hub-menu__card-count {
  font-size: 0.75rem;
  color: var(--color-orange);
  background: rgba(232, 119, 34, 0.08);
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.75rem;
  font-weight: 500;
}

/* Hide on desktop */
@media (min-width: 1220px) {
  .mobile-hub-menu {
    display: none !important;
  }
}

/* Hub navigation container - mobile only (desktop uses sidebar) */
.hub-navigation {
  display: none;
  margin-top: 1.5rem;
}

@media (max-width: 76.1875em) {
  .hub-navigation {
    display: block;
  }
}

/* Page list for leaf pages */
.page-list {
  margin-top: 1.5rem;
}

.page-list__divider {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-purple-dark);
  opacity: 0.6;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-beige);
}

.page-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-list__item {
  margin: 0;
  padding: 0;
}

.page-list__link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-purple-dark);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

.page-list__link:hover {
  background-color: var(--color-beige);
  color: var(--color-orange);
}

/* Ensure touch targets are adequate */
@media (max-width: 768px) {
  .page-list__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}


