/* Proud Sanatan — गर्वित सनातन */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --saffron: #ff9933;
  --deep-saffron: #ff6600;
  --maroon: #8b0000;
  --gold: #ffd700;
  --cream: #fff8e7;
  --dark: #2d1b00;
  --text: #4a2c0a;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(139, 0, 0, 0.10);
  --radius: 18px;
  --font: 'Noto Sans Devanagari', 'Noto Sans', -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(135deg, #fff8e7 0%, #ffe9c2 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: 'ॐ';
  position: fixed;
  font-size: min(400px, 70vw);
  opacity: 0.035;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  color: var(--saffron);
}

a { color: var(--maroon); }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--maroon);
  color: #fff;
  padding: 10px 18px;
  z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.header {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.logo-icon {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  color: #fff;
  font-size: 1.3rem;
  padding: 4px 12px;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 50px;
  transition: background 0.2s;
  display: inline-block;
}
.nav-links a:hover, .nav-links a:focus { background: rgba(255,255,255,0.18); }
.nav-links .lang-switch {
  background: #fff;
  color: var(--deep-saffron);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-links .lang-switch:hover { background: var(--cream); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 55%, var(--maroon) 100%);
  padding: 88px 20px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '🕉️';
  position: absolute;
  font-size: min(300px, 60vw);
  opacity: 0.08;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-small { padding: 56px 20px 48px; }
.hero-content { max-width: 880px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.18);
  border: 2px solid var(--gold);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.35);
  text-wrap: balance;
}
.hero h1 .gold { color: var(--gold); }
.hero p {
  font-size: 1.05rem;
  color: #fff;
  max-width: 680px;
  margin: 0 auto 28px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.story-meta-line { font-size: 0.9rem !important; opacity: 0.95; margin-bottom: 0 !important; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.breadcrumb a { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: #fff; color: var(--deep-saffron); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.btn-secondary { background: var(--maroon); color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.25); }

/* ---------- sections ---------- */
.section {
  padding: 64px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-header { text-align: center; margin-bottom: 44px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--saffron);
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--maroon);
  margin-bottom: 10px;
  text-wrap: balance;
}
.section-subtitle { font-size: 1rem; max-width: 640px; margin: 0 auto; }

.sanskrit-quote {
  background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
  margin: -34px auto 0;
  max-width: 720px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.sanskrit-text { font-size: 1.4rem; font-weight: 700; color: var(--maroon); margin-bottom: 8px; }
.sanskrit-meaning { font-size: 0.9rem; font-style: italic; }

/* ---------- cards ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.fact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.fact-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(139, 0, 0, 0.16);
}
.fact-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fact-icon { font-size: 1.9rem; }
.fact-category {
  background: var(--cream);
  border: 1px solid var(--gold);
  color: var(--maroon);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fact-card h3 { font-size: 1.12rem; line-height: 1.4; margin-bottom: 10px; }
.fact-card h3 a { color: var(--maroon); text-decoration: none; }
.fact-card h3 a:hover { text-decoration: underline; }
.fact-card h3 a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.fact-card { position: relative; }
.fact-card p { font-size: 0.92rem; flex: 1; }
.fact-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: #8a6a3f;
}
.fact-link { color: var(--deep-saffron); font-weight: 700; }

/* ---------- story article ---------- */
.story-article { max-width: 800px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -30px; margin-bottom: 20px; padding: 44px clamp(20px, 5vw, 56px); z-index: 2; }
.story-lede {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--maroon);
  border-left: 4px solid var(--saffron);
  padding-left: 16px;
  margin-bottom: 28px;
}
.story-content h2 {
  color: var(--maroon);
  font-size: 1.4rem;
  margin: 34px 0 14px;
  text-wrap: balance;
}
.story-content h3 { color: var(--deep-saffron); font-size: 1.1rem; margin: 22px 0 10px; }
.story-content p { margin-bottom: 16px; }
.story-content ul { margin: 0 0 16px 22px; }
.story-content li { margin-bottom: 10px; }
.story-content blockquote {
  font-style: italic;
  padding: 18px 22px;
  background: var(--cream);
  border-left: 4px solid var(--saffron);
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}
.highlight-box {
  background: linear-gradient(135deg, #fff3d6 0%, #ffe9c2 100%);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 1.02rem;
}
.sanskrit-box {
  background: linear-gradient(135deg, var(--maroon) 0%, #5c0000 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}
.sanskrit-box .sanskrit { font-size: 1.25rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; line-height: 1.8; }
.sanskrit-box .meaning { font-size: 0.88rem; font-style: italic; opacity: 0.95; }
.story-sources {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px dashed var(--saffron);
}
.story-share { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.related-section { padding-top: 8px; }

/* ---------- footer ---------- */
.footer {
  background: linear-gradient(135deg, var(--maroon) 0%, #4a0000 100%);
  color: #ffe9c2;
  padding: 48px 20px 36px;
  text-align: center;
  margin-top: 40px;
  border-top: 4px solid var(--gold);
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer-om { font-size: 0.85rem; opacity: 0.85; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    background: var(--deep-saffron);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 10px;
    min-width: 190px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .nav { position: relative; }
  .nav-links.open { display: flex; }
  .hero { padding: 56px 16px 48px; }
  .story-article { margin-top: -16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .fact-card { transition: none; }
}

@media print {
  .header, .footer, .story-share, .related-section, .hero-buttons { display: none; }
  body { background: #fff; }
  body::before { display: none; }
}
