/* 
   Shubh Tithee Premium Core Style Sheet 
   Vanilla CSS Design System - Upgraded for Premium Aesthetics and Traditional Resonancy
*/

:root {
  /* Brand Color Tokens (Harmonious & Curated) */
  --saffron: #F97316;
  --saffron-dark: #EA580C;
  --saffron-light: #FFF7ED;
  --gold: #CA8A04;
  --gold-dark: #854D0E;
  --gold-light: #FEF08A;
  --maroon: #7F1D1D;
  --maroon-dark: #450A0A;
  --cream: #FFF7ED;
  --cream-dark: #FFEDD5;
  --ink: #1C1917;
  --ink-light: #57534E;
  --white: #FFFFFF;
  --border: #E7E5E4;
  --green: #166534;
  --green-bg: #F0FDF4;
  --red: #991B1B;
  --red-bg: #FEF2F2;

  /* Typography Scales */
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --max-width: 1200px;
  --padding-section: 64px;
  --radius-card: 12px;
  
  /* Upgraded Shadows & Glows */
  --shadow-sm: 0 1px 3px rgba(127, 29, 29, 0.03), 0 1px 2px rgba(127, 29, 29, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(127, 29, 29, 0.04), 0 2px 6px -1px rgba(127, 29, 29, 0.02);
  --shadow-lg: 0 16px 28px -4px rgba(127, 29, 29, 0.06), 0 8px 12px -4px rgba(127, 29, 29, 0.03);
  --shadow-hover: 0 24px 38px -6px rgba(127, 29, 29, 0.12), 0 12px 18px -4px rgba(127, 29, 29, 0.06);
  --saffron-glow-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
  
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset & Base Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(120% 120% at 50% 10%, #FFFFFF 40%, #FFFBF7 70%, #FFF7ED 120%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Scales */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.15;
  color: var(--maroon);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--maroon);
  font-weight: 700;
  text-align: center;
  position: relative;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--maroon);
  font-weight: 700;
}

h4 {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

p {
  color: var(--ink-light);
}

a {
  color: var(--saffron-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--maroon-dark);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--saffron-light);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold) 0%, var(--saffron) 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--saffron-dark);
}

/* Decorative Ornate SVG Divider Lines */
.traditional-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px auto 32px auto;
  color: var(--gold);
}

.traditional-divider svg {
  width: 120px;
  height: 16px;
  fill: currentColor;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: var(--padding-section) 0;
}

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

.section-header {
  margin-bottom: 48px;
  max-width: 750px;
  text-align: center;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: 1.15rem;
  margin-top: 8px;
}

/* Button & UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  gap: 8px;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
  filter: brightness(1.05);
}

.btn-secondary {
  background-color: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}

.btn-secondary:hover {
  background-color: var(--maroon);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(127, 29, 29, 0.15);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202, 138, 4, 0.35);
  filter: brightness(1.05);
}

/* Sticky Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(202, 138, 4, 0.15);
  box-shadow: var(--shadow-sm);
}

header.site-header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--maroon);
}

.brand-link img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(127, 29, 29, 0.1);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.desktop-nav a {
  color: var(--ink-light);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--saffron);
  transition: var(--transition);
}

.desktop-nav a:hover {
  color: var(--saffron-dark);
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--maroon);
  margin: 6px auto;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: #FFFBF7;
  box-shadow: -6px 0 24px rgba(127, 29, 29, 0.08);
  padding: 100px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 105;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid rgba(202, 138, 4, 0.15);
}

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

.mobile-nav a {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--maroon);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(255, 237, 213, 0.45) 0%, rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(254, 240, 138, 0.25) 0%, rgba(255, 255, 255, 0) 50%);
  padding: 96px 0 80px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-cols: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-content h1 {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--maroon); /* Fallback */
}

.hero-content p.subtext {
  font-size: 1.25rem;
  color: var(--ink-light);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-frame {
  background: var(--white);
  padding: 20px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(202, 138, 4, 0.1);
  border: 2.5px solid var(--gold-light);
  outline: 1.5px dashed var(--gold);
  outline-offset: -12px;
  animation: rotate-slow 35s linear infinite;
  display: flex;
}

.hero-logo-frame img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Double Gold Borders for Major Modules */
.premium-border-frame {
  border: 1px solid rgba(202, 138, 4, 0.25);
  outline: 1px solid rgba(202, 138, 4, 0.15);
  outline-offset: -5px;
}

/* Panchang & Daily Timing Widget */
.panchang-widget {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 244, 0.95) 100%);
  border-radius: var(--radius-card);
  box-shadow: 0 25px 60px -15px rgba(127, 29, 29, 0.08), 0 0 50px rgba(249, 115, 22, 0.03);
  overflow: hidden;
  margin-top: -56px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(202, 138, 4, 0.25);
}

.panchang-header {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, #5C0E0E 50%, var(--maroon-dark) 100%);
  color: var(--white);
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.panchang-header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.panchang-header h3 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.date-pill {
  background-color: rgba(255, 255, 255, 0.12);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  z-index: 1;
  color: var(--white);
}

.panchang-body {
  padding: 32px;
}

/* Grid 1: Daily Panchang Core Essentials */
.panchang-grid-core {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.panchang-core-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(202, 138, 4, 0.15);
  border-radius: 12px;
  padding: 22px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(127, 29, 29, 0.015);
  position: relative;
  overflow: hidden;
}

.panchang-core-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.panchang-core-card:hover {
  border-color: rgba(234, 88, 12, 0.4);
  background-color: var(--white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px -6px rgba(234, 88, 12, 0.1), 0 0 16px rgba(202, 138, 4, 0.04);
}

.panchang-core-card:hover::before {
  background: linear-gradient(90deg, var(--gold) 0%, var(--saffron) 100%);
}

.panchang-core-card .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.panchang-core-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--maroon);
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.panchang-core-card p {
  font-size: 0.85rem;
  color: var(--ink-light);
}

/* Tithi Progress Bar */
.tithi-progress-container {
  margin-top: 16px;
}

.tithi-progress-bar {
  height: 6px;
  background-color: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.tithi-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--saffron) 100%);
  border-radius: 10px;
  transition: width 1s ease;
}

.tithi-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: 6px;
  font-weight: 500;
}

.panchang-solar-panel {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.8) 0%, rgba(254, 240, 138, 0.1) 100%);
  border: 1px dashed rgba(202, 138, 4, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-wrap: wrap;
  box-shadow: inset 0 2px 4px rgba(127, 29, 29, 0.01);
}

.panchang-solar-panel:hover {
  border-color: var(--saffron);
  border-style: solid;
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.06);
}

.panchang-solar-panel > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panchang-solar-panel > div > div {
  display: inline-block !important;
  margin: 0 !important;
}

.panchang-solar-panel > div > div:first-child {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--ink-light) !important;
  white-space: nowrap !important;
}

.panchang-solar-panel > div > div:last-child {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  white-space: nowrap !important;
}

/* Grid 2: Timing Cards (Auspicious vs Inauspicious) */
.panchang-grid-timings {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.timing-card {
  border-radius: 12px;
  padding: 24px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timing-card:hover {
  transform: translateY(-2px);
}

.timing-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 10px;
  letter-spacing: 0.03em;
}

.timing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timing-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.timing-card li span {
  color: var(--ink-light);
  font-weight: 600;
}

.timing-card li strong {
  color: var(--ink);
  background-color: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(202, 138, 4, 0.12);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.timing-card.auspicious {
  background-color: var(--green-bg);
  border-color: rgba(22, 101, 52, 0.18);
  animation: auspicious-pulse 4s ease-in-out infinite;
}

@keyframes auspicious-pulse {
  0% { box-shadow: 0 4px 12px -2px rgba(22, 101, 52, 0.05); }
  50% { box-shadow: 0 4px 20px 4px rgba(22, 101, 52, 0.15); border-color: rgba(22, 101, 52, 0.35); }
  100% { box-shadow: 0 4px 12px -2px rgba(22, 101, 52, 0.05); }
}

.timing-card.auspicious h4 {
  color: var(--green);
}

.timing-card.inauspicious {
  background-color: var(--red-bg);
  border-color: rgba(153, 27, 27, 0.18);
}

.timing-card.inauspicious h4 {
  color: var(--red);
}

/* Pulsing Status Dot */
.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--saffron);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  animation: shubh-glow 2s infinite;
}

@keyframes shubh-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

/* Today's Observance Banner */
.observance-banner {
  background: linear-gradient(90deg, var(--saffron-light) 0%, #FEF9C3 50%, var(--saffron-light) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--maroon);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(202, 138, 4, 0.08);
  position: relative;
  overflow: hidden;
  animation: banner-pulse 6s ease-in-out infinite;
}

@keyframes banner-pulse {
  0% { border-color: var(--gold); box-shadow: 0 4px 15px rgba(202, 138, 4, 0.08); }
  50% { border-color: var(--saffron); box-shadow: 0 4px 22px rgba(249, 115, 22, 0.18); }
  100% { border-color: var(--gold); box-shadow: 0 4px 15px rgba(202, 138, 4, 0.08); }
}

.observance-banner span.emoji {
  font-size: 1.6rem;
}

/* Card Component (Used for Festivals and Guides) */
.card-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

.card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(202, 138, 4, 0.16);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(234, 88, 12, 0.35);
}

.card-icon {
  height: 135px;
  background: linear-gradient(135deg, var(--saffron-light) 0%, var(--cream-dark) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.8rem;
  border-bottom: 1px solid rgba(202, 138, 4, 0.1);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover .card-icon {
  filter: brightness(1.02);
}

.card-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
}

.card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-sans);
}

.badge-festival {
  background-color: var(--saffron-light);
  color: var(--saffron-dark);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.badge-vrat {
  background-color: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-regional {
  background-color: var(--blue-bg);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.card-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-light);
}

.card-title {
  margin-bottom: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.card:hover .card-title {
  color: var(--saffron-dark);
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-bottom: 24px;
  line-height: 1.55;
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  color: var(--maroon);
}

.read-more:hover {
  color: var(--saffron-dark);
}

.read-time {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 600;
}

/* Upcoming Calendar Section Footer */
.observances-footer {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* NRI Section (Single Focused Area) */
.nri-section {
  background-color: var(--cream-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nri-highlight {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--gold-light);
  border-radius: var(--radius-card);
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(202, 138, 4, 0.35);
  position: relative;
  overflow: hidden;
}

.nri-highlight::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(202,138,4,0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.nri-highlight-grid {
  display: grid;
  grid-template-cols: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.nri-highlight h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.nri-highlight p {
  color: var(--cream-dark);
  font-size: 1.15rem;
  line-height: 1.65;
}

.nri-highlight .btn-gold {
  justify-self: flex-end;
}

.nri-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.nri-feature-card {
  background-color: var(--white);
  border: 1px solid rgba(202, 138, 4, 0.15);
  border-radius: 8px;
  padding: 28px;
  transition: var(--transition);
}

.nri-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.nri-feature-card .icon-label {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.nri-feature-card h4 {
  color: var(--maroon);
  margin-bottom: 10px;
  font-size: 1rem;
}

.nri-feature-card p {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Guides Section */
.guides-icon-strip {
  height: 135px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--cream-dark) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.8rem;
  border-bottom: 1px solid rgba(202, 138, 4, 0.1);
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--maroon) 0%, #3F0505 100%);
  color: var(--white);
  border-top: 3px solid var(--gold);
}

.newsletter-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-container h2 {
  color: var(--white);
}

.newsletter-container p {
  color: var(--cream-dark);
  font-size: 1.1rem;
  margin: 16px 0 32px 0;
}

.newsletter-form {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  width: 100%;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  padding: 16px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background-color: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.55);
}

.newsletter-form input[type="email"]:focus {
  background-color: rgba(255,255,255,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.3);
}

.newsletter-form .btn {
  white-space: nowrap;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  border: none;
  font-weight: 700;
  color: var(--white);
}

.newsletter-form .btn:hover {
  transform: translateY(-2px);
}

.newsletter-social-proof {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* Footer Section */
.site-footer {
  background-color: var(--ink);
  color: var(--border);
  padding: 36px 0 20px 0;
  border-top: 4px solid var(--maroon);
}

.footer-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: var(--gold-light);
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #B3B3B3;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--saffron);
  padding-left: 6px;
}

.footer-col p.footer-about {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #B3B3B3;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: #808080;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #808080;
}

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

/* Media Queries for Responsiveness */

@media (max-width: 991px) {
  .hero-grid {
    grid-template-cols: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .nri-highlight-grid {
    grid-template-cols: 1fr;
    gap: 28px;
    text-align: center;
  }
  
  .nri-highlight .btn-gold {
    justify-self: center;
  }
}

@media (max-width: 767px) {
  :root {
    --padding-section: 48px;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .panchang-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .panchang-grid-timings {
    grid-template-cols: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }
  
  .newsletter-form input[type="email"] {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Keyboard Outline Focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

/* Card Filter Bar Styles */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid rgba(202, 138, 4, 0.15);
  color: var(--ink-light);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--saffron-dark);
  color: var(--saffron-dark);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

/* Card Hidden State */
.card.hidden {
  display: none !important;
}

/* Location Pill styling */
.location-pill {
  background-color: rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

/* Detail Pages Styles (Checklist, Tracker, FAQ Accordion) */
.detail-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}
.detail-header {
  margin-bottom: 32px;
  text-align: center;
}
.detail-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
  display: inline-block;
}
.detail-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--maroon);
  line-height: 1.2;
  margin-bottom: 12px;
}
.detail-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.detail-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 40px;
}
.detail-body h3 {
  font-size: 1.5rem;
  margin: 32px 0 16px 0;
  color: var(--maroon);
  font-family: var(--font-serif);
}
.timing-box {
  background-color: var(--saffron-light);
  border: 1.5px dashed var(--gold);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
  font-weight: 600;
  color: var(--maroon);
  text-align: center;
}
.vrat-timing-box {
  background-color: #FAF5FF; /* var(--purple-bg) fallback */
  border: 1.5px dashed #7E22CE; /* var(--purple) fallback */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
  font-weight: 600;
  color: #7E22CE;
  text-align: center;
}
.ritual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  padding-left: 0;
}
.ritual-item {
  background-color: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition);
}
.ritual-item:hover {
  border-color: var(--gold);
  background-color: var(--white);
  transform: translateY(-1px);
}
.vrat-theme .ritual-item:hover {
  border-color: #7E22CE;
}
.ritual-checkbox {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--saffron);
}
.vrat-theme .ritual-checkbox {
  accent-color: #7E22CE;
}
.back-nav {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
}
.error-container {
  text-align: center;
  padding: 80px 24px;
}

/* Progress Tracker */
.progress-tracker {
  margin-bottom: 24px;
  background: var(--cream-light);
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.progress-bar-container {
  flex-grow: 1;
  max-width: 200px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--saffron) 100%);
  transition: width 0.3s ease;
}

/* FAQ Section */
.faq-section {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 40px;
}
.faq-title {
  font-size: 1.5rem;
  color: var(--maroon);
  margin-bottom: 24px;
  font-family: var(--font-serif);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: var(--cream-light);
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--maroon);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-family: var(--font-sans);
}
.faq-question::after {
  content: '＋';
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question::after {
  content: '－';
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  padding: 0 24px 18px 24px;
  max-height: 200px;
}

