/* ============================================================
   DharmKosh.in — Main stylesheet
   Design tokens + base + layout + components
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --primary: #E85D04;
  --primary-dark: #C94700;
  --maroon: #651C12;
  --dark-maroon: #3A100B;
  --gold: #D99A2B;
  --cream: #FFF8ED;
  --background: #FFFCF7;
  --text: #2D211C;
  --text-muted: #6F625B;
  --border: #EDE2D5;
  --light-orange: #FFF1E3;
  --white: #FFFFFF;
  --success: #1E7D43;
  --danger: #C0392B;
  --shadow-sm: 0 1px 3px rgba(58, 16, 11, 0.08);
  --shadow-md: 0 4px 14px rgba(58, 16, 11, 0.10);
  --shadow-lg: 0 12px 32px rgba(58, 16, 11, 0.16);
  --radius-card: 12px;
  --radius-section: 14px;
  --container: min(100% - 24px, 1280px);
  --header-h: 85px;
  --nav-h: 43px;
  --topbar-h: 28px;
  --font: 'Noto Sans Devanagari', 'Nirmala UI', 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--dark-maroon);
  line-height: 1.35;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.5px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.container { width: var(--container); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-gold { background: var(--gold); color: #3A100B; }
.btn-gold:hover { background: #c6861f; color: #3A100B; }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-light:hover { background: rgba(255,255,255,.28); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 18px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a53024; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Header ---------- */
.topbar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  color: var(--text-muted);
}
.topbar-left { font-weight: 600; color: var(--primary-dark); }
.topbar-center { letter-spacing: .5px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right a { color: var(--text-muted); display: inline-flex; }
.topbar-right a:hover { color: var(--primary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 247, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 21px; font-weight: 800; color: var(--dark-maroon); letter-spacing: -0.3px; }
.brand-name span { color: var(--primary); }
.brand-tagline { font-size: 11.5px; color: var(--text-muted); letter-spacing: .4px; }

.header-search { position: relative; flex: 0 1 320px; }
.header-search input {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  padding: 8px 44px 8px 36px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.header-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,93,4,.12); }
.header-search .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-muted); pointer-events: none;
}
.search-submit {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.search-submit svg { width: 16px; height: 16px; }
.search-submit:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--dark-maroon); border-radius: 2px; }

/* Dark maroon nav bar */
.main-nav {
  background: var(--maroon);
  position: sticky;
  top: var(--header-h);
  z-index: 49;
  height: var(--nav-h);
}
.main-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.main-nav-inner::-webkit-scrollbar { display: none; }
.main-nav a, .main-nav .nav-item > a {
  color: #D9C7BD;
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 0;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.main-nav a:hover, .main-nav a.active, .main-nav .nav-item > a:hover, .main-nav .nav-item > a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* Nav dropdown */
.nav-item {
  position: relative; display: flex; align-items: center; overflow: visible;
}
.nav-item > a { display: flex; align-items: center; gap: 3px; }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 170px;
  background: var(--white); border: 1px solid var(--border); border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-md); padding: 6px 0; z-index: 51;
}
.nav-item:hover .nav-dropdown, .nav-item .nav-dropdown:hover { display: block; }
.nav-item.has-dropdown.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 9px 16px; font-size: 14px; color: var(--text-dark);
  border-radius: 0 !important; white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--light-orange); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-icon {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: none; border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-icon:hover { background: var(--light-orange); border-color: var(--primary); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,230,190,.60) 0%, rgba(255,230,190,.18) 45%, transparent 70%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding-block: 0;
}
.hero-content {
  margin-left: 8%;
  max-width: 500px;
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  color: #5A1A0A;
  margin-bottom: 14px;
}
.hero-subtitle {
  font-size: 16px;
  color: #5A1A0A;
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 22px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  height: 50px;
  background: #F36C0A;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, transform .15s;
}
.hero-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-cta:hover { background: #d95f00; transform: translateY(-1px); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(70,35,20,.65);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.hero-arrow:hover { background: rgba(70,35,20,.85); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }

/* ---------- Section headings ---------- */
.section { padding-block: 20px; }
.section.alt { background: var(--cream); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.section-title { margin-bottom: 0; position: relative; padding-bottom: 8px; font-size: clamp(20px, 2.8vw, 26px); display: flex; align-items: center; gap: 10px; }
.section-title::before, .section-title::after {
  content: "✦";
  font-size: 10px;
  color: var(--primary);
  opacity: .6;
}
.section-title::after {
  content: "";
  position: static;
  display: inline-block;
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  margin-left: 6px;
}
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-subtitle { color: var(--text-muted); font-size: 16.5px; max-width: 48em; margin: 0; }
.section-head.center .section-subtitle { margin-inline: auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 205px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #E2CDB4; }
.card-media {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 12px;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card-body { width: 100%; padding: 0; margin-top: 8px; }
.card-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--light-orange);
  border: 1px solid #F6D9BD;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: var(--dark-maroon); }
.card-title a:hover { color: var(--primary); }
.card-excerpt {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.card-meta svg { width: 13px; height: 13px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

/* ---------- Homepage popular/article cards ---------- */
.hp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.hp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hp-card-img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--cream);
  border: none;
}
.hp-card-img.article-img { height: 180px; }
.hp-card-bottom {
  padding: 10px 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}
.hp-card-bottom h3 { margin: 0; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.hp-card-bottom p { margin: 0; font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.3; }
.hp-card-bottom .hp-arrow { width: 20px; height: 20px; flex-shrink: 0; color: rgba(255,255,255,.8); }

/* Homepage article card (white bottom) */
.hp-article-bottom {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-article-bottom h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--dark-maroon); line-height: 1.3; }
.hp-article-bottom .hp-excerpt { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-article-bottom .hp-meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-muted); margin-top: auto; padding-top: 6px; }
.hp-article-bottom .hp-meta span { display: inline-flex; align-items: center; gap: 3px; }
.hp-article-bottom .hp-meta svg { width: 12px; height: 12px; }

/* ---------- Aarti deity groups ---------- */
.aarti-deity-group { margin-bottom: 34px; }
.aarti-deity-title { margin-bottom: 14px; }
.aarti-deity-title a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--primary);
}
.aarti-deity-title a:hover { text-decoration: underline; }
.aarti-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--light-orange);
  border-radius: 20px;
  padding: 2px 10px;
}

/* ---------- Quick categories ---------- */
.quick-grid-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-top: -24px;
  position: relative;
  z-index: 3;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 12px 6px;
  min-height: 100px;
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #E2CDB4; }
.quick-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #FFF8EF;
  border: 1px solid #F4E2CF;
  color: var(--primary);
  flex-shrink: 0;
}
.quick-icon svg { width: 26px; height: 26px; }
.om-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #FFF8EF;
  border: 1px solid #F3E2CF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.om-icon img { width: 27px; height: 28px; object-fit: contain; display: block; }
.quick-title { font-size: 13px; font-weight: 700; color: var(--dark-maroon); line-height: 1.3; }
.quick-desc { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

/* ---------- Trust bar ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); min-height: 80px; }
.trust-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--light-orange); color: var(--primary); }
.trust-icon svg { width: 20px; height: 20px; }
.trust-title { font-weight: 700; color: var(--dark-maroon); font-size: 14px; }
.trust-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Panchang summary ---------- */
.panchang-card {
  background: linear-gradient(135deg, var(--dark-maroon) 0%, var(--maroon) 60%, #7a2a1c 100%);
  color: var(--cream);
  border-radius: var(--radius-section);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.panchang-card::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,154,43,.28), transparent 65%);
}
.panchang-card h3 { color: var(--gold); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.panchang-date { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.panchang-tithi { font-size: 18px; color: var(--cream); margin-bottom: 14px; }
.panchang-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.panchang-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13.5px;
}
.panchang-pill strong { color: var(--gold); font-weight: 700; }
.panchang-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; position: relative; z-index: 1; }

/* Home panchang grid */
.home-panchang-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
}
.home-panchang-datecard {
  background: linear-gradient(135deg, var(--dark-maroon), var(--maroon));
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 160px;
}
.home-panchang-datecard .hpd-day { font-size: 42px; font-weight: 800; line-height: 1; color: #fff; }
.home-panchang-datecard .hpd-month { font-size: 16px; font-weight: 600; color: var(--gold); margin-top: 2px; }
.home-panchang-datecard .hpd-weekday { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; }
.home-panchang-datecard .hpd-holiday { font-size: 12px; font-weight: 600; color: var(--gold); background: rgba(217,154,43,.15); border: 1px solid rgba(217,154,43,.3); padding: 2px 10px; border-radius: 999px; margin-top: 8px; }
.home-panchang-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.home-panchang-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 72px;
}
.home-panchang-card .hpc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.home-panchang-card .hpc-value { font-size: 14px; font-weight: 600; color: var(--text); }
.home-panchang-card .hpc-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #FFF8EF;
  border: 1px solid #F4E2CF;
  color: var(--primary);
  margin-bottom: 6px;
  flex-shrink: 0;
}
.home-panchang-card .hpc-icon svg { width: 22px; height: 22px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, #FFE0B2, #FFCC80);
  border: 1px solid #F6D9BD;
  border-radius: var(--radius-section);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
.newsletter-text { flex-shrink: 0; }
.newsletter h3 { font-size: 18px; margin-bottom: 2px; }
.newsletter p { color: var(--text-muted); font-size: 13px; margin: 0; }
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.newsletter-form input {
  flex: 1;
  font-family: var(--font);
  font-size: 16px;
  padding: 13px 18px;
  border: 1px solid #E5C8A4;
  border-radius: 999px;
  background: var(--white);
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,93,4,.12); }
.newsletter-msg { margin-top: 12px; font-size: 14.5px; }
.newsletter-msg.ok { color: var(--success); }
.newsletter-msg.err { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-maroon); color: #D9C7BD; margin-top: 20px; }
.footer-top { padding-block: 36px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tagline { color: #B99A8E; }
.footer-about { font-size: 14.5px; margin-top: 14px; max-width: 34em; color: #CBB6AA; }
.footer-title { color: var(--gold); font-size: 16px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: #D9C7BD; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); vertical-align: -3px; margin-right: 6px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--cream);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: #B99A8E; }
.footer-bottom a { color: #D9C7BD; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #C9B8A8; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ---------- Page hero (archive/detail) ---------- */
.page-head {
  background: linear-gradient(180deg, var(--cream), var(--background));
  border-bottom: 1px solid var(--border);
  padding-block: 44px;
}
.page-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-head p { color: var(--text-muted); max-width: 46em; margin: 0; font-size: 16.5px; }

/* ---------- Content list / cards ---------- */
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; margin-bottom: 22px; }
.sidebar-box h4 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.sidebar-links a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14.5px; }
.sidebar-links a:hover { background: var(--light-orange); color: var(--primary); }
.sidebar-links .count { font-size: 12px; color: var(--text-muted); background: var(--cream); padding: 1px 8px; border-radius: 999px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; color: var(--text); background: var(--white);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------- Content detail ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.article-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-section); padding: 40px 44px; box-shadow: var(--shadow-sm); }
.article-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; }
.article-hero-img { border-radius: var(--radius-card); background: var(--cream); border: 1px solid var(--border); margin-bottom: 28px; }
.article-hero-img img { max-height: 380px; margin-inline: auto; object-fit: contain; padding: 20px; }

.article-body { font-size: 17px; line-height: 1.9; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body p { margin-bottom: 1.1em; }
.article-body ul, .article-body ol { margin-bottom: 1.2em; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--cream);
  margin: 1.6em 0;
  padding: 16px 22px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--dark-maroon);
}
.article-body code {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .92em;
}

/* Devanagari mantra block */
.mantra-box {
  background: linear-gradient(160deg, var(--cream), var(--light-orange));
  border: 1px solid #F2D8BC;
  border-radius: var(--radius-card);
  padding: 26px 28px;
  margin: 24px 0;
  text-align: center;
}
.mantra-sanskrit { font-size: 23px; line-height: 2; font-weight: 600; color: var(--dark-maroon); white-space: pre-line; }
.mantra-meaning { font-size: 15px; color: var(--text-muted); margin-top: 14px; white-space: pre-line; }

/* Chalisa verses */
.chalisa-box {
  background: linear-gradient(160deg, var(--cream), var(--light-orange));
  border: 1px solid #F2D8BC;
  border-radius: var(--radius-card);
  padding: 26px 28px;
  margin: 24px 0;
  font-size: 18px;
  line-height: 2.1;
  color: var(--dark-maroon);
  white-space: pre-line;
}

/* Info tiles */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 22px 0; }
.info-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 18px; }
.info-tile .label { font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 3px; }
.info-tile .value { font-size: 15.5px; color: var(--text); white-space: pre-line; }

/* Steps (puja vidhi) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0; display: grid; gap: 16px; }
.steps li {
  position: relative;
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px 18px 62px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-weight: 700; border-radius: 50%;
}
.steps li h4 { margin-bottom: 4px; }
.steps li p { margin: 0; font-size: 15px; color: var(--text-muted); white-space: pre-line; }

/* FAQ */
.faq-list { display: grid; gap: 14px; margin: 22px 0; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 16.5px; font-weight: 600;
  color: var(--dark-maroon); padding: 18px 20px;
}
.faq-q .faq-chevron { margin-left: auto; width: 18px; height: 18px; transition: transform .2s ease; color: var(--primary); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 15.5px; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag-list a {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
}
.tag-list a:hover { color: var(--primary); border-color: var(--primary); }

/* Share + print */
.article-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; }
.article-nav a { flex: 1; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 18px; }
.article-nav a:hover { border-color: var(--primary); }
.article-nav .nav-label { font-size: 12px; color: var(--text-muted); }
.article-nav .nav-title { font-weight: 600; color: var(--dark-maroon); }

/* ---------- Search ---------- */
.search-head { text-align: center; padding-block: 40px 8px; }
.search-form { display: flex; gap: 12px; max-width: 620px; margin: 20px auto 0; }
.search-form input {
  flex: 1;
  font-family: var(--font);
  font-size: 17px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}
.search-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,93,4,.12); }
.search-results { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.search-result { display: flex; gap: 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; align-items: center; }
.search-result img { width: 84px; height: 84px; object-fit: contain; background: var(--cream); border-radius: 10px; padding: 6px; border: 1px solid var(--border); flex-shrink: 0; }
.search-result h3 { margin-bottom: 4px; font-size: 17px; }
.search-result p { margin: 0; font-size: 14px; color: var(--text-muted); }
.search-empty { text-align: center; color: var(--text-muted); padding: 60px 0; }
.search-empty svg { width: 60px; height: 60px; color: #D9C8B8; margin: 0 auto 16px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14.5px; font-weight: 600; color: var(--dark-maroon); margin-bottom: 6px; }
.form-label .req { color: var(--danger); }
.form-control {
  width: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,93,4,.12); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: auto; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.form-msg { font-size: 14px; margin-top: 8px; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }
.form-error { font-size: 13.5px; color: var(--danger); margin-top: 4px; }

/* Flash */
.flash {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  display: flex; align-items: center; gap: 10px;
}
.flash-success { background: #E9F6EE; color: var(--success); border-color: #CBE7D6; }
.flash-error { background: #FDEFEE; color: var(--danger); border-color: #F4D2CE; }

/* ---------- Static page ---------- */
.static-body { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-section); padding: 40px 44px; }
.static-body h2 { margin-top: 1.4em; }
.static-body p { color: #4a3a33; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { margin-bottom: 10px; }
.contact-info p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Panchang Calendar Navigation ---------- */
.pc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pc-nav-center {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-nav-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-nav-select {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark-maroon);
  cursor: pointer;
  transition: border-color .18s ease;
}
.pc-nav-select:focus {
  outline: none;
  border-color: var(--primary);
}
.pc-nav-btn {
  white-space: nowrap;
}

/* ---------- Panchang Calendar Grid ---------- */
.pc-calendar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: linear-gradient(135deg, var(--dark-maroon), var(--maroon));
}
.pc-weekday {
  text-align: center;
  padding: 12px 4px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--gold);
  letter-spacing: .3px;
}
.pc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.pc-cell {
  min-height: 105px;
  padding: 5px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background .15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pc-cell:nth-child(7n) {
  border-right: none;
}
.pc-empty {
  background: var(--cream);
}
.pc-cell-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.pc-cell-link:hover {
  opacity: .85;
}
.pc-day {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  width: 26px;
  height: 26px;
  text-align: center;
  line-height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pc-moon {
  font-size: 15px;
  line-height: 1;
  margin: 1px 0;
}
.pc-tithi {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark-maroon);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-nakshatra {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-festival-text {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--light-orange);
  border: 1px solid #F6D9BD;
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: auto;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Today ---- */
.pc-today {
  background: var(--light-orange);
}
.pc-today .pc-day {
  background: var(--primary);
  color: #fff;
}

/* ---- Selected ---- */
.pc-selected {
  background: var(--primary) !important;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.pc-selected .pc-day {
  background: #fff;
  color: var(--primary);
}
.pc-selected .pc-tithi,
.pc-selected .pc-nakshatra {
  color: #fff;
}
.pc-selected .pc-festival-text {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

/* ---- Amavasya ---- */
.pc-amavasya {
  background: linear-gradient(135deg, #1a0a06 0%, #2d1510 100%);
}
.pc-amavasya .pc-day {
  color: var(--gold);
}
.pc-amavasya .pc-tithi {
  color: var(--gold);
  font-weight: 700;
}
.pc-amavasya .pc-nakshatra {
  color: #b89a8a;
}
.pc-amavasya .pc-festival-text {
  background: rgba(217,154,43,.2);
  border-color: rgba(217,154,43,.3);
  color: var(--gold);
}
.pc-amavasya.pc-selected {
  background: var(--primary) !important;
  box-shadow: inset 0 0 0 2px var(--gold);
}

/* ---- Purnima ---- */
.pc-purnima {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF1D0 100%);
}
.pc-purnima .pc-day {
  color: var(--primary-dark);
}
.pc-purnima .pc-tithi {
  color: var(--primary-dark);
  font-weight: 700;
}
.pc-purnima .pc-festival-text {
  background: rgba(232,93,4,.15);
  border-color: rgba(232,93,4,.25);
}
.pc-purnima.pc-selected {
  background: var(--primary) !important;
  box-shadow: inset 0 0 0 2px var(--gold);
}

/* ---- Ekadashi ---- */
.pc-ekadashi {
  border-left: 3px solid var(--primary) !important;
}
.pc-ekadashi .pc-tithi {
  color: var(--primary);
  font-weight: 700;
}

/* ---- Festival ---- */
.pc-festival {
  background: var(--light-orange);
}

/* ---------- Legend ---------- */
.pc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pc-legend-item {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pc-legend-amavasya {
  background: #2d1510;
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 6px;
}
.pc-legend-purnima {
  color: var(--primary-dark);
  background: #FFF1D0;
  padding: 3px 10px;
  border-radius: 6px;
}
.pc-legend-ekadashi {
  border-left: 3px solid var(--primary);
  padding-left: 8px;
}
.pc-legend-festival {
  background: var(--light-orange);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 6px;
}

/* ---------- Panchang Control Bar ---------- */
.pc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-sm);
}
.pc-controls-left, .pc-controls-center, .pc-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-controls { flex-direction: column; align-items: stretch; }
.pc-controls-left, .pc-controls-center, .pc-controls-right { justify-content: center; }
.pc-nav-date {
  font-family: var(--font);
  font-size: 14px;
  padding: 7px 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}
.pc-nav-date:focus { outline: none; border-color: var(--primary); }

.pc-view-switch {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.pc-view-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--white);
  transition: all .15s ease;
}
.pc-view-btn.active {
  background: var(--primary);
  color: #fff;
}
.pc-view-btn:hover:not(.active) {
  background: var(--light-orange);
  color: var(--dark-maroon);
}

/* ---------- Quick Cards ---------- */
.pc-quick-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.pc-qcard {
  text-align: center;
  padding: 18px 10px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.pc-qcard-icon { font-size: 26px; margin-bottom: 4px; }
.pc-qcard-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.pc-qcard-value { font-size: 18px; font-weight: 700; color: var(--dark-maroon); }
.pc-qcard-sunrise { border-bottom: 3px solid #FF8C00; }
.pc-qcard-sunset { border-bottom: 3px solid #C0392B; }
.pc-qcard-moonrise { border-bottom: 3px solid #5D6D7E; }
.pc-qcard-moonset { border-bottom: 3px solid #2C3E50; }

/* ---------- Popup (Hover Quick View) ---------- */
.pc-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  width: 300px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.6;
  pointer-events: auto;
  max-height: 80vh;
  overflow-y: auto;
}
.pc-popup.show { display: block; }
.pc-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.pc-popup-head strong { font-size: 13px; color: var(--dark-maroon); }
.pc-popup-moon { font-size: 18px; }
.pc-popup-row { margin-bottom: 3px; }
.pc-popup-lbl { font-weight: 600; color: var(--dark-maroon); }
.pc-popup-row small { color: var(--text-muted); }
.pc-popup-fest { margin-top: 6px; padding: 4px 8px; background: var(--light-orange); border-radius: 6px; font-weight: 700; color: var(--primary-dark); }
.pc-popup-link {
  display: block;
  margin-top: 8px;
  text-align: center;
  padding: 6px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.pc-popup-link:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Weekly View ---------- */
.pc-weekly {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.pc-weekly-day {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.pc-weekly-day:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pc-weekly-today { border: 2px solid var(--primary); background: var(--light-orange); }
.pc-weekly-head { margin-bottom: 6px; }
.pc-weekly-date { font-size: 24px; font-weight: 800; color: var(--dark-maroon); }
.pc-weekly-wday { font-size: 12px; color: var(--text-muted); display: block; }
.pc-weekly-moon { font-size: 28px; margin: 6px 0; }
.pc-weekly-tithi { font-size: 13px; font-weight: 700; color: var(--dark-maroon); margin-bottom: 2px; }
.pc-weekly-nak { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.pc-weekly-fest { font-size: 11px; font-weight: 700; color: var(--primary-dark); background: var(--light-orange); padding: 2px 6px; border-radius: 4px; margin: 4px 0; }
.pc-weekly-link {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.pc-weekly-link:hover { text-decoration: underline; }

/* ---------- Panchang Detail Section ---------- */
.pc-detail {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pc-detail-head { margin-bottom: 20px; }
.pc-detail-head h2 { font-size: 22px; margin-bottom: 2px; }
.pc-detail-head p { color: var(--text-muted); font-size: 14px; margin: 0; }
.pc-detail-section { margin-top: 24px; }
.pc-detail-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--light-orange);
  color: var(--dark-maroon);
}
.pc-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.pc-detail-grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pc-detail-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pc-detail-item {
  padding: 12px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.pc-detail-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
.pc-detail-val { font-size: 15px; font-weight: 700; color: var(--dark-maroon); }
.pc-detail-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pc-muhurat-rahu { color: var(--danger); }

/* ---------- Choghadiya Table ---------- */
.pc-chog-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
}
.pc-chog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.pc-chog-shubh { background: #E8F5E9; border-left: 3px solid #4CAF50; }
.pc-chog-ashubh { background: #FFEBEE; border-left: 3px solid #E53935; }
.pc-chog-madhya { background: #FFF8E1; border-left: 3px solid #FFB300; }
.pc-chog-name { font-weight: 700; color: var(--dark-maroon); min-width: 60px; }
.pc-chog-type { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.06); }
.pc-chog-time { color: var(--text-muted); margin-left: auto; }

/* ---------- Hora Grid ---------- */
.pc-hora-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.pc-hora-item {
  text-align: center;
  padding: 10px 6px;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.pc-hora-lord { font-size: 14px; font-weight: 700; color: var(--dark-maroon); margin-bottom: 2px; }
.pc-hora-time { font-size: 11px; color: var(--text-muted); }

/* ---------- Festival Card ---------- */
.pc-festival-card {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--light-orange), #FFF8E1);
  border: 1px solid #F6D9BD;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ---------- Print ---------- */
.print-body { max-width: 760px; margin-inline: auto; padding: 40px 24px; }
.print-head { text-align: center; border-bottom: 2px solid var(--maroon); padding-bottom: 20px; margin-bottom: 26px; }
.print-head h1 { font-size: 28px; }
.print-content { line-height: 2; font-size: 16px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Dark mode toggle ---------- */
.dark-mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dark-mode-btn:hover { border-color: var(--primary); background: var(--light-orange); }
.dark-mode-btn svg { width: 16px; height: 16px; }

/* ---------- Language selector ---------- */
.lang-selector { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-btn:hover { border-color: var(--primary); background: var(--light-orange); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  z-index: 60;
}
.lang-dropdown-panel.open { display: block; }
.lang-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text);
  border-radius: 0;
}
.lang-dropdown-panel a:hover { background: var(--light-orange); color: var(--primary); }
.lang-dropdown-panel a.active { font-weight: 700; color: var(--primary); }

/* ---------- Dark theme ---------- */
[data-theme="dark"] body { background: #1a1210; color: #e8ddd5; }
[data-theme="dark"] .topbar { background: #241a16; border-color: #3a2a22; }
[data-theme="dark"] .site-header { background: rgba(26,18,16,.94); border-color: #3a2a22; }
[data-theme="dark"] .brand-name { color: #e8ddd5; }
[data-theme="dark"] .header-search input { background: #2a1e1a; border-color: #3a2a22; color: #e8ddd5; }
[data-theme="dark"] .dark-mode-btn, [data-theme="dark"] .lang-btn { background: #2a1e1a; border-color: #3a2a22; color: #e8ddd5; }
[data-theme="dark"] .hero-overlay { background: linear-gradient(90deg, rgba(20,12,8,.55) 0%, rgba(20,12,8,.20) 45%, transparent 70%); }
[data-theme="dark"] .hero-title, [data-theme="dark"] .section-title, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #e8ddd5; }
[data-theme="dark"] .hero-subtitle { color: #b0a49a; }
[data-theme="dark"] .quick-grid-wrap { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .quick-card { background: #3a2a22; }
[data-theme="dark"] .quick-icon { background: #2a1e1a; border-color: #3a2a22; color: #f09a3d; }
[data-theme="dark"] .om-icon { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .hp-card { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .home-panchang-card { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .home-panchang-card .hpc-value { color: #e8ddd5; }
[data-theme="dark"] .home-panchang-card .hpc-icon { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .trust-item { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .section.alt { background: #221814; }
[data-theme="dark"] .card { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .card-title a { color: #e8ddd5; }
[data-theme="dark"] .newsletter { background: linear-gradient(120deg, #3a2a22, #2a1e1a); border-color: #3a2a22; }
[data-theme="dark"] .newsletter h3 { color: #e8ddd5; }
[data-theme="dark"] .newsletter-form input { background: #2a1e1a; border-color: #3a2a22; color: #e8ddd5; }
[data-theme="dark"] .footer-links a, [data-theme="dark"] .footer-contact a { color: #c4b0a6; }
[data-theme="dark"] .lang-dropdown-panel { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .lang-dropdown-panel a { color: #e8ddd5; }
[data-theme="dark"] .trust-title { color: #e8ddd5; }

/* ---------- Samudrik Shastra ---------- */
.samudrik-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.samudrik-card {
  display: block;
  background: var(--white);
  border: 1px solid #F3E2CF;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.samudrik-card:hover {
  box-shadow: 0 6px 20px rgba(90,26,10,.1);
  transform: translateY(-3px);
}
.samudrik-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #F3E2CF;
}
.samudrik-card-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.samudrik-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.samudrik-card:hover .samudrik-card-img img {
  transform: scale(1.04);
}
.samudrik-card-body {
  padding: 14px 16px 16px;
}
.samudrik-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.35;
}
.samudrik-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}
.samudrik-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.samudrik-cat-hero {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #F3E2CF;
}
.samudrik-cat-hero img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}
.samudrik-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.samudrik-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid #F3E2CF;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark);
  transition: background .15s;
}
.samudrik-topic:hover {
  background: #FFF8EF;
}
.samudrik-topic-icon {
  flex-shrink: 0;
  color: var(--primary);
}
.samudrik-back {
  margin-top: 30px;
}
[data-theme="dark"] .samudrik-card { background: #2a1e1a; border-color: #3a2a22; }
[data-theme="dark"] .samudrik-card-body h3 { color: #e8ddd5; }
[data-theme="dark"] .samudrik-card-body p { color: #b0a096; }
[data-theme="dark"] .samudrik-topic { background: #2a1e1a; border-color: #3a2a22; color: #e8ddd5; }
[data-theme="dark"] .samudrik-topic:hover { background: #33241c; }

/* ---------- Swapna Phal Article ---------- */
.swapna-intro-box {
  background: #FFF8EF;
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
}
.swapna-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.swapna-content ul {
  list-style: disc;
  padding-left: 24px;
  margin: 10px 0;
}
.swapna-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.samudrik-topic-link {
  text-decoration: none;
  cursor: pointer;
}
.faq-list {
  margin-bottom: 24px;
}
.faq-item {
  border: 1px solid #F3E2CF;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}
.faq-a {
  display: none;
  padding: 0 18px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.faq-item.open .faq-a { display: block; }
[data-theme="dark"] .swapna-intro-box { background: #2a1e1a; color: #e8ddd5; }
[data-theme="dark"] .swapna-content { color: #e8ddd5; }
[data-theme="dark"] .faq-item { border-color: #3a2a22; }
[data-theme="dark"] .faq-q { background: #2a1e1a; color: #e8ddd5; }
[data-theme="dark"] .faq-a { color: #b0a096; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { height: 330px; }
  .hero-bg { object-position: 65% center; }
  .hero-content { margin-left: 6%; }
  .hero-arrow.prev { left: 20px; }
  .hero-arrow.next { right: 20px; }
  .list-layout, .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .topbar-center, .topbar-right { display: none; }
  .header-search { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 16px; z-index: 51; flex: none; }
  .header-search.open { display: flex; }
  .header-search input { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .btn-icon { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--maroon);
    border-bottom: 1px solid rgba(255,255,255,.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    z-index: 48;
    height: auto;
  }
  .main-nav.open { max-height: 85vh; overflow-y: auto; }
  .main-nav-inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 4px 0;
  }
  .main-nav-inner a, .main-nav-inner .nav-item > a {
    padding: 10px 20px;
    height: auto;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-dropdown {
    position: static;
    background: rgba(0,0,0,.15);
    box-shadow: none;
    border: none;
    border-radius: 0;
  }
  .nav-dropdown a { padding-left: 36px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .samudrik-grid { grid-template-columns: repeat(2, 1fr); }
  .home-panchang-grid { grid-template-columns: 1fr; }
  .home-panchang-datecard { min-height: 100px; }
  .home-panchang-info { grid-template-columns: repeat(3, 1fr); }
  .newsletter { flex-direction: column; text-align: center; padding: 16px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 980px) {
  .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card { min-height: 0; }
  .card-media { width: 72px; height: 72px; }
  .card-excerpt { display: none; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .quick-card { min-height: 0; padding: 10px 4px; }
  .quick-icon { width: 42px; height: 42px; }
  .quick-icon svg { width: 22px; height: 22px; }
  .quick-title { font-size: 11px; }
  .quick-desc { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 10px; gap: 8px; }
  .hero { height: 310px; }
  .hero-bg { object-position: 55% center; }
  .hero-content { margin-left: 5%; max-width: 400px; }
  .hero-title { font-size: clamp(24px, 5vw, 38px); }
  .hero-subtitle { font-size: 14px; }
  .hero-cta { height: 46px; font-size: 14px; padding: 0 22px; }
  .hero-arrow { width: 34px; height: 34px; }
  .hero-arrow.prev { left: 12px; }
  .hero-arrow.next { right: 12px; }
  .home-panchang-info { grid-template-columns: repeat(2, 1fr); }
  .home-panchang-card { min-height: 60px; padding: 10px 12px; }
  .newsletter-form { flex-direction: column; width: 100%; }
}

@media (max-width: 480px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-cards { grid-template-columns: 1fr; }
  .samudrik-grid { grid-template-columns: 1fr; }
  .hero { height: 300px; }
  .hero-bg { object-position: 45% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(255,230,190,.70) 0%, rgba(255,230,190,.25) 40%, transparent 65%); }
  .hero-content { margin-left: 0; max-width: 90%; }
  .hero-title { font-size: clamp(22px, 7vw, 32px); }
  .hero-subtitle { font-size: 13px; }
  .hero-cta { height: 44px; font-size: 13px; padding: 0 20px; }
  .home-panchang-info { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
  .brand-tagline { display: none; }
  .search-result { flex-direction: column; text-align: center; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .topbar { display: none; }
  .hp-card-img { height: 180px; }
  .hp-card-img.article-img { height: 150px; }
  .lang-dropdown-panel { right: 0; }
}

@media (max-width: 360px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- Print media ---------- */
@media print {
  .site-header, .site-footer, .article-tools, .breadcrumb, .sidebar, .no-print, .newsletter { display: none !important; }
  body { background: #fff; font-size: 14px; }
  .article-wrap { border: 0; box-shadow: none; padding: 0; }
}

/* ================================================================
   HINDU VRAT LIST PAGE
   ================================================================ */

.vratsuchi { padding-top: 18px; }

/* ---- Filter Bar ---- */
.vrat-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
  padding: 14px 18px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.vrat-filter-btn {
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--white); color: var(--text-dark); font-size: 13px;
  cursor: pointer; transition: all .15s ease;
}
.vrat-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.vrat-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- TOC ---- */
.vrat-toc {
  margin-bottom: 32px; padding: 20px 24px; background: var(--light-orange);
  border-radius: var(--radius-card); border-left: 4px solid var(--primary);
}
.vrat-toc h3 { margin-bottom: 12px; font-size: 16px; color: var(--dark-maroon); }
.vrat-toc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 20px;
}
.vrat-toc-grid a {
  color: var(--primary); font-size: 13.5px; text-decoration: none; padding: 3px 0;
}
.vrat-toc-grid a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---- Section ---- */
.vrat-section {
  margin-bottom: 40px; padding: 28px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-section);
}
.vrat-section-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--light-orange); }
.vrat-section-head h2 { font-size: 22px; color: var(--dark-maroon); margin-bottom: 6px; }
.vrat-section-head p { color: var(--text-muted); font-size: 14px; }

/* ---- Cards Grid ---- */
.vrat-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px;
}
.vrat-card {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--white); transition: box-shadow .2s ease;
}
.vrat-card:hover { box-shadow: var(--shadow-md); }
.vrat-card-top { padding: 14px 18px 10px; border-bottom: 1px solid var(--border); }
.vrat-card-top h3 { font-size: 17px; color: var(--dark-maroon); margin: 6px 0 0; }
.vrat-card-body { padding: 14px 18px 18px; }
.vrat-card-body p { font-size: 13.5px; line-height: 1.7; color: var(--text-dark); margin-top: 8px; }
.vrat-card-body p strong { color: var(--primary-dark); }

/* Small card (used in Ekadashi/Pradosh lists) */
.vrat-card-sm { padding: 16px 18px; }
.vrat-card-sm h4 { font-size: 15px; color: var(--dark-maroon); margin: 0 0 8px; }
.vrat-card-sm p { font-size: 13px; line-height: 1.7; color: var(--text-dark); margin: 0; }

/* Meta info */
.vrat-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.vrat-meta > div { font-size: 13px; line-height: 1.5; }
.vrat-meta strong { color: var(--primary-dark); }

/* Badges */
.vrat-badge {
  display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 600;
  border-radius: 12px; background: var(--light-orange); color: var(--primary-dark);
  text-transform: uppercase; letter-spacing: .3px;
}
.vrat-badge.badge-annual { background: #e8f5e9; color: #2e7d32; }

/* ---- Bottom Note ---- */
.vrat-bottom-note {
  margin-top: 40px; padding: 24px 28px; background: var(--light-orange);
  border: 1px solid #f5deb3; border-radius: var(--radius-card);
}
.vrat-bottom-note h3 { font-size: 18px; color: var(--dark-maroon); margin-bottom: 16px; }
.vrat-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 24px; }
.vrat-rule {
  font-size: 13.5px; line-height: 1.7; color: var(--text-dark);
  padding: 10px 14px; background: var(--white); border-radius: 8px; border: 1px solid #f0e0c0;
}
.vrat-rule strong { color: var(--primary-dark); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .vrat-cards { grid-template-columns: 1fr; }
  .vrat-toc-grid { grid-template-columns: 1fr 1fr; }
  .vrat-section { padding: 18px 14px; }
  .vrat-filter-bar { padding: 10px 12px; }
  .vrat-bottom-note { padding: 16px 14px; }
  .vrat-rules { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .vrat-toc-grid { grid-template-columns: 1fr; }
  .vrat-filter-btn { padding: 6px 12px; font-size: 12px; }
}
