/*
 * Deferred CSS — Below-the-fold & component styles
 * Loaded asynchronously via media=print → onload → media=all pattern.
 * Contains: story cards, search, buttons, story detail, mobile nav,
 * footer, festival styles, animations, panchang, carousel.
 */

/* === Mobile Navigation (slide-in panel) === */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 375px;
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  will-change: transform;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(75, 46, 46, 0.1);
  background: #fff8e7;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #4b2e2e;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #4b2e2e;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav-close:active {
  transform: scale(0.95);
}

.mobile-nav-items {
  padding: 0.5rem 0;
}

.mobile-nav-items a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.5rem;
  color: #4b2e2e;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(75, 46, 46, 0.05);
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav-items a:hover,
.mobile-nav-items a:active {
  background-color: rgba(255, 153, 51, 0.08);
  color: #ff9933;
}

.mobile-nav-items a:active {
  transform: scale(0.98);
}

.mobile-nav-items a svg {
  color: rgba(75, 46, 46, 0.3);
  transition: color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.mobile-nav-items a:hover svg,
.mobile-nav-items a:active svg {
  color: #ff9933;
  transform: translateX(2px);
}

/* === Story Grid & Cards === */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.story-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  will-change: transform;
  background: white;
  display: flex;
  flex-direction: column;
  height: auto;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.story-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.story-card-link:hover .story-card-background img {
  transform: scale(1.05);
}

.story-card-background {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #8b6914 0%, #d4af37 100%);
  flex-shrink: 0;
}

.story-card-background::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.story-card-background svg,
.story-card-background img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: cover;
}

.story-card-overlay {
  position: relative;
  width: 100%;
  background: white;
  padding: 0;
}

.story-card-content {
  background: white;
  padding: 1.5rem;
}

.story-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: #2d1a1a;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.02em;
  z-index: 10;
}

.story-card-category {
  display: inline-block;
  background: linear-gradient(135deg, #f58220 0%, #d4a04c 100%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-family: 'Lato', sans-serif;
}

.story-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #4b2e2e;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  line-height: 1.4;
}

.story-card-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(45, 26, 26, 0.85);
  font-family: 'Lato', sans-serif;
}

/* === Festival Meta & Cards === */
.festival-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
  font-family: 'Lato', sans-serif;
}

.festival-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #4b2e2e;
  font-weight: 500;
  background: #fff8e7;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(212, 160, 76, 0.2);
}

.festival-card-compact {
  border: 1px solid rgba(212, 160, 76, 0.15);
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  transition: all 0.3s ease;
}

.festival-card-compact:hover {
  box-shadow: 0 8px 24px rgba(212, 160, 76, 0.15);
  transform: translateY(-4px);
}

.festival-card-compact .story-card-content {
  padding: 1.75rem;
}

.festival-description {
  color: rgba(30, 20, 20, 0.75);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0.75rem 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
}

.author-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.story-card p {
  color: rgba(30, 20, 20, 0.75);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  color: #d4a04c;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: 'Lato', sans-serif;
  transition: color 0.15s ease, transform 0.15s ease;
}

.story-card:hover .read-more-link {
  color: #ff9933;
  transform: translateX(4px);
}

/* === Search Styles === */
.story-search-container {
  position: relative;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: rgba(75, 46, 46, 0.5);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 3rem;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  border: 2px solid #d4af37;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #4b2e2e;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ff9933;
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.search-input::placeholder {
  color: rgba(75, 46, 46, 0.5);
}

.search-clear {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(75, 46, 46, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.search-clear:hover {
  color: #4b2e2e;
}

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid #d4af37;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
}

.search-results-header {
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b6914;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  font-family: 'Lato', sans-serif;
}

.search-results-list {
  padding: 0.5rem;
}

.search-result-item {
  display: block;
  padding: 1rem;
  border-radius: 0.375rem;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background: rgba(255, 248, 231, 0.5);
}

.search-result-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #4b2e2e;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

.search-result-content p {
  font-size: 0.875rem;
  color: rgba(75, 46, 46, 0.8);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(75, 46, 46, 0.6);
  font-family: 'Lato', sans-serif;
}

.search-result-category {
  background: rgba(255, 153, 51, 0.15);
  color: #ff9933;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.search-result-date {
  color: rgba(75, 46, 46, 0.6);
}

.search-no-results {
  padding: 2rem;
  text-align: center;
}

.search-no-results p {
  color: #4b2e2e;
  margin-bottom: 0.5rem;
}

.search-suggestion {
  font-size: 0.875rem;
  color: rgba(75, 46, 46, 0.6);
  font-family: 'Lato', sans-serif;
}

/* === Story Meta & Buttons === */
.story-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #d4af37;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Lato', sans-serif;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #ff9933;
  color: #4b2e2e;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  will-change: background-color, transform;
}

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

/* === Story Detail === */
.story-detail {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.story-meta-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.story-category {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 153, 51, 0.15);
  color: #ff9933;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  font-family: 'Lato', sans-serif;
}

.story-reading-time {
  font-size: 0.75rem;
  color: rgba(75, 46, 46, 0.6);
  font-family: 'Lato', sans-serif;
}

.story-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #4b2e2e;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* === Story Banner === */
.desktop-banner {
  display: none;
}

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

.story-banner {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.story-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-banner-meta-top {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 10;
}

.story-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 70%);
  z-index: 10;
}

.story-banner-content {
  width: 100%;
  padding: 2rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.story-banner-meta-top .story-category {
  display: inline-block;
  padding: 0.4375rem 0.75rem;
  background: rgba(212, 106, 37, 0.92);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.25rem;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-banner-meta-top .story-reading-time {
  display: inline-block;
  padding: 0.4375rem 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 0.25rem;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.story-title-overlay {
  color: #ffffff !important;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.75rem 0;
  text-shadow: 
    0 3px 20px rgba(0, 0, 0, 0.7),
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 1px 4px rgba(0, 0, 0, 0.4);
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.015em;
  max-width: 95%;
}

.story-media-buttons {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
  align-items: center;
}

.story-banner-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

/* === Author Card === */
.story-author-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-style: normal;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: fit-content;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-author-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.story-author-card .author-avatar {
  margin: 0;
  flex-shrink: 0;
}

.story-author-card .author-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 106, 37, 0.3);
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.written-by {
  color: #5a5a5a;
  font-size: 0.75rem;
  font-weight: 400;
}

.story-author-card .author-name {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.875rem;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.author-role {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.publish-info {
  color: #666;
  font-size: 0.6875rem;
  font-weight: 400;
}

/* Author Tooltip */
.story-author-card .author-tooltip {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 0;
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 280px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: none;
}

.story-author-card:hover .author-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.author-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 1.5rem;
  border: 8px solid transparent;
  border-top-color: white;
  margin-left: -8px;
}

.author-tooltip .author-bio {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0 0 0.75rem 0;
}

.author-tooltip .author-social {
  display: flex;
  gap: 0.625rem;
  margin: 0;
}

.author-tooltip .author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border-radius: 50%;
  color: #666;
  transition: all 0.2s ease;
}

.author-tooltip .author-social a:hover {
  background: #d46a25;
  color: white;
  transform: translateY(-2px);
}

/* === Story Author & Date === */
.story-author-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  font-style: normal;
}

.story-date {
  font-size: 0.875rem;
  color: rgba(75, 46, 46, 0.6);
  font-family: 'Lato', sans-serif;
}

.story-intro {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(75, 46, 46, 0.9);
  margin-bottom: 2.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
}

/* === Story Section === */
.story-section {
  margin-bottom: 3rem;
  contain: content;
}

.story-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #4b2e2e;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  contain: layout style paint;
  position: relative;
  padding-bottom: 0.75rem;
}

.story-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #ff9933, #d4af37);
  border-radius: 2px;
}

.story-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(75, 46, 46, 0.9);
  margin-bottom: 1rem;
  font-family: 'Lato', sans-serif;
}

/* === Story Moral & Why Matters === */
.story-moral,
.story-why-matters {
  background: rgba(255, 248, 231, 0.5);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid #d4af37;
}

.story-moral p,
.story-why-matters p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.story-moral p:last-child,
.story-why-matters p:last-child {
  margin-bottom: 0;
}

/* === Bhagavad Gita Verse Section === */
.story-verse-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.8), rgba(255, 243, 205, 0.6));
  border-radius: 12px;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
  position: relative;
  contain: content;
}

.story-verse-section::before {
  content: '🕉️';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8e7;
  padding: 0 15px;
  font-size: 1.5rem;
  opacity: 0.7;
}

.story-verse-section h2 {
  text-align: center;
  color: #8b4513;
  margin-bottom: 1.75rem;
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
}

.story-verse-section h2::after {
  width: 80px;
  left: 50%;
  transform: translateX(-50%);
}

.gita-verse {
  background: rgba(255, 255, 255, 0.7);
  padding: 1.75rem;
  border-radius: 8px;
  border-left: 4px solid #ff9933;
}

.verse-reference {
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #8b4513;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.verse-reference .verse-label {
  font-family: 'Playfair Display', serif;
  margin-right: 0.5rem;
}

.verse-reference .verse-number {
  font-family: 'Lato', monospace;
  background: rgba(212, 175, 55, 0.2);
  padding: 2px 10px;
  border-radius: 4px;
}

.verse-sanskrit {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 248, 231, 0.6);
  border-radius: 6px;
  border-left: 3px solid #d4af37;
}

.verse-sanskrit .sanskrit-text {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 1.3rem;
  line-height: 2;
  text-align: center;
  color: #4b2e2e;
  font-weight: 600;
  margin: 0;
}

.verse-transliteration {
  margin-bottom: 1.25rem;
  text-align: center;
}

.verse-transliteration .transliteration-text {
  font-style: italic;
  color: rgba(75, 46, 46, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.verse-translation {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 243, 205, 0.4);
  border-radius: 6px;
}

.verse-translation .translation-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4b2e2e;
  text-align: justify;
  margin: 0;
  font-weight: 500;
}

.verse-relevance {
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  margin-top: 1rem;
}

.verse-relevance .relevance-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(75, 46, 46, 0.85);
  font-style: italic;
  margin: 0;
}

/* Hindi verse styling */
[lang="hi"] .verse-sanskrit .sanskrit-text {
  font-size: 1.4rem;
  line-height: 2.2;
}

[lang="hi"] .verse-translation .translation-text,
[lang="hi"] .verse-relevance .relevance-text {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.1rem;
}

/* Responsive verse styling */
@media (max-width: 768px) {
  .story-verse-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .gita-verse {
    padding: 1.25rem;
  }

  .verse-sanskrit .sanskrit-text {
    font-size: 1.1rem;
  }

  .verse-translation .translation-text {
    font-size: 1rem;
  }
}

/* === Moral List & Practical Steps === */
.moral-list {
  list-style: none;
  padding: 0;
}

.moral-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(75, 46, 46, 0.9);
  font-family: 'Lato', sans-serif;
}

.moral-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ff9933;
  font-weight: 700;
  font-size: 1.25rem;
}

.practical-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  contain: layout style;
}

.practical-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  contain: layout style paint;
  background: rgba(255, 248, 231, 0.5);
  padding: 1.25rem;
  border-radius: 0.5rem;
  border-left: 4px solid #ff9933;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practical-step:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: #ff9933;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: 'Lato', sans-serif;
}

.practical-step-content {
  flex: 1;
}

.practical-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ff9933;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.practical-step p {
  margin: 0;
  padding-top: 0.25rem;
  line-height: 1.7;
}

/* === FAQ Section === */
.faq-section {
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.faq-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #4b2e2e;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.faq-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #d4af37;
  margin-top: 0.5rem;
}

.faq-search {
  position: relative;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.faq-search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-family: 'Lato', sans-serif;
  background: #ffffff;
  color: #1f2937;
  transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-search-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.faq-search-input::placeholder {
  color: #9ca3af;
}

.faq-search-icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  pointer-events: none;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
}

.faq-accordion-item {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-item:last-child {
  border-bottom: none;
}

.faq-accordion-item:hover {
  background: rgba(255, 248, 231, 0.3);
}

.faq-accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #4b2e2e;
  transition: color 0.15s ease, background-color 0.15s ease;
  gap: 1rem;
  will-change: background-color;
  contain: layout style paint;
}

.faq-accordion-header:hover {
  color: #d4af37;
}

.faq-accordion-header.active {
  background: rgba(255, 248, 231, 0.5);
}

.faq-accordion-header span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-number {
  flex-shrink: 0;
  font-weight: 700;
  color: #d4af37;
}

.faq-accordion-icon {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.2s ease;
  width: 20px;
  height: 20px;
  will-change: transform;
}

.faq-accordion-icon.rotate {
  transform: rotate(180deg);
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
  background: rgba(255, 248, 231, 0.3);
  will-change: max-height, padding;
  contain: layout style;
}

.faq-accordion-content.open {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 3.25rem;
}

.faq-accordion-content p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(75, 46, 46, 0.8);
  font-family: 'Lato', sans-serif;
}

.faq-no-results {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
  font-size: 0.9375rem;
  font-family: 'Lato', sans-serif;
}

/* === Author Bio Section === */
.story-author-bio-section {
  margin: 3rem 0 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.author-bio-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-bio-avatar {
  flex-shrink: 0;
  margin: 0;
}

.author-bio-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(212, 106, 37, 0.2);
}

.author-bio-content {
  flex: 1;
}

.author-bio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.author-bio-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
  font-family: 'Lato', sans-serif;
}

.author-bio-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  font-family: 'Playfair Display', serif;
}

.author-bio-role {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-family: 'Lato', sans-serif;
}

.author-bio-social {
  display: flex;
  gap: 0.75rem;
}

.author-bio-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 50%;
  color: #6b7280;
  transition: all 0.2s ease;
}

.author-bio-social a:hover {
  background: #d46a25;
  color: white;
  transform: translateY(-2px);
}

.author-bio-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0;
  font-family: 'Lato', sans-serif;
}

.author-books-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.author-books-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #8b4513;
  margin-right: 0.2rem;
  font-family: 'Lato', sans-serif;
}

.author-book-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(212, 106, 37, 0.28);
  background: rgba(255, 248, 231, 0.92);
  color: #7a3f12;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  padding: 0.36rem 0.68rem;
  font-family: 'Lato', sans-serif;
  transition: all 0.2s ease;
}

.author-book-chip:hover {
  background: #d46a25;
  color: #fff;
  border-color: #d46a25;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .author-bio-card {
    flex-direction: column;
    gap: 1rem;
  }

  .author-bio-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .author-bio-social {
    order: -1;
  }
}

/* === Product Tiles === */
.story-product-tiles-section {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.story-product-tiles-section h2 {
  font-size: 1.25rem;
  color: #4b2e2e;
  margin: 0 0 0.75rem;
}

.story-product-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.story-product-tile {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 106, 37, 0.25);
  background: rgba(255, 248, 231, 0.92);
  color: #7a3f12;
  font-size: 0.81rem;
  line-height: 1.3;
  font-weight: 600;
  padding: 0.44rem 0.62rem;
  max-width: 320px;
  transition: all 0.2s ease;
}

.story-product-tile:hover {
  background: #d46a25;
  color: #fff;
  border-color: #d46a25;
}

/* === Story Trust & Related === */
.story-trust {
  background: rgba(212, 175, 55, 0.1);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  contain: layout style paint;
}

.story-trust p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(75, 46, 46, 0.8);
  font-style: italic;
  font-family: 'Lato', sans-serif;
}

.related-stories {
  background: rgba(255, 153, 51, 0.08);
  padding: 1.25rem;
  border-radius: 0.375rem;
  margin-bottom: 2.5rem;
  border-left: 3px solid #ff9933;
  contain: layout style paint;
}

.related-stories p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(75, 46, 46, 0.9);
  font-family: 'Lato', sans-serif;
}

.related-stories a {
  color: #ff9933;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 153, 51, 0.3);
  text-underline-offset: 2px;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-stories a:hover {
  color: #d4af37;
  text-decoration-color: #d4af37;
}

/* === Story Content & Hero Image === */
.story-hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 2rem;
}

.story-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4af37;
  margin-bottom: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
}

.author-info-wrapper {
  position: relative;
}

.author-name {
  font-size: 0.875rem;
  color: rgba(75, 46, 46, 0.8);
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  cursor: pointer;
  font-style: normal;
}

.author-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  min-width: 250px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  will-change: opacity;
}

.author-info-wrapper:hover .author-tooltip {
  opacity: 1;
  visibility: visible;
}

.author-bio {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.author-social {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 0.375rem;
  color: #6b7280;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-social a:hover {
  background: #3b82f6;
  color: #ffffff;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff9933;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  margin: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Verse Box === */
.verse-box {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 0.375rem;
  border: 2px solid #d4af37;
  background: rgba(255, 153, 51, 0.2);
  padding: 1.5rem;
  contain: layout style paint;
}

.verse-content {
  margin: 0;
  padding: 0;
}

.verse-attribution {
  margin-top: 1rem;
}

.verse-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4af37;
  margin-bottom: 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.5rem;
}

.verse-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  line-height: 1.625;
  font-style: italic;
  color: #4b2e2e;
  margin-bottom: 0;
}

.verse-meaning {
  font-family: 'Lato', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(75, 46, 46, 0.85);
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.25rem;
  border-left: 3px solid #ff9933;
}

.verse-reference {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4af37;
  margin-top: 0.75rem;
}

/* === Story Content === */
.story-content {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(75, 46, 46, 0.9);
  font-family: 'Lato', sans-serif;
  contain: content;
}

.story-content p,
.story-paragraph {
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.story-content p:first-of-type::first-letter,
.story-paragraph:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin: 0.1rem 0.5rem 0 0;
  font-family: 'Playfair Display', serif;
  color: #ff9933;
}

.story-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4b2e2e;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.story-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #4b2e2e;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  text-align: left;
}

/* === Hero Section (Story pages) === */
.hero {
  background: linear-gradient(to bottom, rgba(255, 153, 51, 0.1), rgba(212, 175, 55, 0.1));
  border-bottom: 2px solid #d4af37;
  padding: 3rem 0;
  margin-bottom: 3rem;
  position: relative;
}

.hero-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem;
  border: 2px solid #d4af37;
  border-radius: 0.375rem;
  background: rgba(255, 153, 51, 0.2);
}

.hero-quote blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: #4b2e2e;
  margin-bottom: 0.75rem;
  line-height: 1.625;
  font-family: 'Playfair Display', serif;
}

.hero-quote cite {
  color: #d4af37;
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: 'Lato', sans-serif;
}

/* === Section Title & Intro === */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #4b2e2e;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.section-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(75, 46, 46, 0.85);
  font-family: 'Lato', sans-serif;
}

/* === Footer === */
.footer {
  background: #4b2e2e;
  padding: 3rem 0 2rem;
  color: rgba(255, 248, 231, 0.8);
  margin-top: 4rem;
}

.footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem 0;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-text h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff8e7;
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.footer-logo-text p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 248, 231, 0.6);
  font-family: 'Lato', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #d4af37;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.footer-section p {
  color: rgba(255, 248, 231, 0.8);
  line-height: 1.6;
  font-size: 0.875rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 248, 231, 0.8);
  transition: color 0.2s;
  font-size: 0.875rem;
  font-weight: 400;
}

.footer-links a:hover {
  color: #ff9933;
}

.subscribe-form {
  display: flex;
  margin-top: 1rem;
}

.subscribe-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  background: #fff8e7;
  color: #4b2e2e;
}

.subscribe-input::placeholder {
  color: rgba(75, 46, 46, 0.5);
}

.subscribe-btn {
  padding: 0.75rem 1.5rem;
  background: #ff9933;
  color: #4b2e2e;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Lato', sans-serif;
}

.subscribe-btn:hover {
  background: #d4af37;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: rgba(255, 248, 231, 0.8);
  font-size: 1rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #ff9933;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 248, 231, 0.1);
  color: rgba(255, 248, 231, 0.6);
  font-size: 0.875rem;
}

/* === Festival Carousel === */
.festival-carousel {
  margin-bottom: 3rem;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.carousel-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-background svg {
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.carousel-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 153, 51, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  width: fit-content;
  font-family: 'Lato', sans-serif;
}

.carousel-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 600px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.carousel-date,
.carousel-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 248, 231, 0.95);
  font-size: 0.9375rem;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
}

.carousel-date svg,
.carousel-location svg {
  flex-shrink: 0;
}

.carousel-excerpt {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 248, 231, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  font-family: 'Lato', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background: #ff9933;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: background 0.2s ease, transform 0.2s ease;
  width: fit-content;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

.carousel-link:hover .carousel-cta {
  background: #d4af37;
  transform: translateX(4px);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
  color: #4b2e2e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
  left: 1.5rem;
}

.carousel-nav-next {
  right: 1.5rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: #ff9933;
  border-color: #ff9933;
}

@media (max-width: 1024px) {
  .carousel-container {
    height: 350px;
  }

  .carousel-content {
    padding: 2rem 4rem;
  }

  .carousel-title {
    font-size: 2rem;
  }

  .carousel-excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

@media (max-width: 640px) {
  .carousel-container {
    height: 400px;
    border-radius: 0.5rem;
  }

  .carousel-content {
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    justify-content: flex-end;
  }

  .carousel-badge {
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
  }

  .carousel-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .carousel-meta {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .carousel-date,
  .carousel-location {
    font-size: 0.8125rem;
  }

  .carousel-date svg,
  .carousel-location svg {
    width: 16px;
    height: 16px;
  }

  .carousel-excerpt {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .carousel-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-nav-prev {
    left: 1rem;
  }

  .carousel-nav-next {
    right: 1rem;
  }

  .carousel-indicators {
    bottom: 1.5rem;
  }

  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
}

/* === Festival Page Specific Styles === */
.devotional-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #6b4423;
  font-style: italic;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
  border-left: 4px solid #d4a574;
  border-radius: 8px;
}

.section-with-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #d4a574;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
  border: 2px solid #ffb366;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.highlight-box-primary {
  background: linear-gradient(135deg, #fff0f0 0%, #ffe0e0 100%);
  border-color: #ff9999;
}

.highlight-box-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.highlight-box-icon {
  font-size: 2rem;
  color: #d4a574;
  flex-shrink: 0;
}

.highlight-box-primary .highlight-box-icon {
  color: #c85a54;
}

.highlight-box-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #4b2e2e;
}

.highlight-box-content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4b2e2e;
}

.highlight-box-content p {
  margin-bottom: 0.75rem;
}

.highlight-box-content p:last-child {
  margin-bottom: 0;
}

.highlight-box-content strong {
  color: #4b2e2e;
  font-weight: 700;
}

/* Do's and Don'ts Grid */
.dos-donts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .dos-donts-grid {
    grid-template-columns: 1fr;
  }

  .story-banner {
    height: 280px;
    border-radius: 0.5rem;
  }

  .story-banner-meta-top {
    top: 1rem;
    left: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .story-banner-meta-top .story-category,
  .story-banner-meta-top .story-reading-time {
    font-size: 0.625rem;
    padding: 0.375rem 0.625rem;
  }

  .story-banner-content {
    padding: 1.5rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }

  .story-title-overlay {
    font-size: 1.75rem;
  }

  .story-banner-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    padding-top: 0.625rem;
  }

  .story-author-card {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
  }

  .story-author-card .author-avatar img {
    width: 36px;
    height: 36px;
  }

  .written-by {
    font-size: 0.6875rem;
  }

  .story-author-card .author-name {
    font-size: 0.8125rem;
  }

  .author-meta {
    gap: 0.375rem;
  }

  .author-role {
    font-size: 0.625rem;
    padding: 0.15625rem 0.4375rem;
  }

  .publish-info {
    font-size: 0.625rem;
  }

  .story-author-card .author-tooltip {
    min-width: 260px;
    max-width: 90vw;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
  }

  .story-author-card:hover .author-tooltip {
    transform: translateX(-50%) translateY(0);
  }

  .author-tooltip::after {
    left: 50%;
  }

  .story-title {
    font-size: 1.875rem;
  }
}

.dos-column, .donts-column {
  padding: 1.5rem;
  border-radius: 8px;
}

.dos-column {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
}

.donts-column {
  background: #ffebee;
  border-left: 4px solid #f44336;
}

.dos-column h3, .donts-column h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.dos-column ul, .donts-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dos-column li, .donts-column li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.dos-column li::before {
  content: "✓";
  color: #4caf50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.donts-column li::before {
  content: "✗";
  color: #f44336;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Devotional Quote */
.devotional-quote {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  text-align: center;
  border: 2px solid #d0d0d0;
}

.devotional-quote-sanskrit {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4b2e2e;
  font-family: 'Noto Serif', serif;
}

.devotional-quote-transliteration {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #6b4423;
}

.devotional-quote-translation {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4b2e2e;
  margin-bottom: 0.5rem;
}

.devotional-quote-reference {
  font-size: 0.9rem;
  font-style: italic;
  color: #8b6f47;
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #d0d0d0, transparent);
  margin: 3rem 0;
}

/* Related Festivals Grid */
.related-festivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-festival-card {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(75, 46, 46, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.related-festival-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.related-festival-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #4b2e2e;
}

.related-festival-date {
  font-size: 0.9rem;
  color: #8b6f47;
  margin-bottom: 0.75rem;
}

.related-festival-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b4423;
}

/* Contact & About page */
.email-link {
  transition: color 0.2s ease-in-out;
}

.email-link:hover {
  color: #b8941f !important;
}

.about-explore-link {
  display: block;
  padding: 1.25rem;
  background: white;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #4b2e2e;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-explore-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* === Enhanced Footer Structure === */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 248, 231, 0.15);
}

.footer-brand {
  grid-column: 1;
}

.footer-brand-tagline {
  font-size: 0.8125rem;
  color: #d4af37;
  font-style: italic;
}

.footer-brand-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 248, 231, 0.85);
  margin-top: 1.5rem;
}

.footer-brand-description strong {
  color: #d4af37;
  font-weight: 600;
}

.footer-brand-mission {
  font-size: 0.875rem;
  margin-top: 1rem;
  color: rgba(255, 248, 231, 0.7);
  line-height: 1.7;
  font-style: italic;
}

.footer-section-title {
  color: #d4af37;
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
  position: relative;
}

.footer-location-tag {
  font-size: 0.8125rem;
  color: rgba(255, 248, 231, 0.5);
  font-weight: 400;
  font-style: italic;
}

.footer-view-all {
  display: inline-block;
  margin-top: 1rem;
  color: #ff9933;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-view-all:hover {
  color: #d4af37;
}

.footer-festival-date {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 248, 231, 0.5);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Footer Panchang Details */
.footer-panchang-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-panchang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 248, 231, 0.08);
}

.footer-panchang-label {
  color: rgba(255, 248, 231, 0.6);
  font-weight: 400;
}

.footer-panchang-value {
  color: #d4af37;
  font-weight: 600;
}

.footer-panchang-note {
  font-size: 0.6875rem;
  color: rgba(255, 248, 231, 0.4);
  margin-top: 0.75rem;
  font-style: italic;
}

.footer-no-data {
  font-size: 0.8125rem;
  color: rgba(255, 248, 231, 0.4);
  font-style: italic;
}

/* Footer Secondary Section */
.footer-secondary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 248, 231, 0.1);
}

.footer-secondary-title {
  font-size: 0.9375rem;
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.025em;
}

.footer-editorial-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-editorial-links li {
  margin: 0;
}

.footer-editorial-links a {
  color: rgba(255, 248, 231, 0.7);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-editorial-links a:hover {
  color: #ff9933;
}

/* Footer Authority Statement */
.footer-authority-statement {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  border-left: 3px solid #d4af37;
}

.footer-authority-statement p {
  margin: 0;
  color: rgba(255, 248, 231, 0.7);
}

.footer-authority-statement strong {
  color: #d4af37;
  font-weight: 600;
}

/* Footer Bottom */
.footer-copyright {
  margin: 0;
  color: rgba(255, 248, 231, 0.6);
  font-size: 0.8125rem;
}

.footer-blessing {
  margin: 0.75rem 0 0 0;
  color: #d4af37;
  font-size: 0.875rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* === Footer Responsive === */
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-secondary {
    grid-template-columns: 1fr;
  }

  .footer-editorial-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-panchang-details {
    gap: 0.5rem;
  }

  .footer-authority-statement {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-main-grid {
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .footer-secondary {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-brand-description {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .footer-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-panchang-item {
    font-size: 0.75rem;
    padding: 0.4rem 0;
  }

  .footer-blessing {
    font-size: 0.8125rem;
  }
}
