@import url('https://fonts.googleapis.com/css2?family=Gentium+Book+Plus:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --peacock: #0B6E7F;
  --peacock-dark: #054752;
  --peacock-deep: #022E35;
  --peacock-light: #EAF6F5;
  --gold: #C9A227;
  --gold-light: #E8D9A8;
  --cream: #FBFAF6;
  --ink: #2A2A2A;
}

/* ---------- Sanskrit (Devanagari) in Shobhika ---------- */
@font-face { font-family: 'Shobhika'; src: url('/fonts/Shobhika-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF, U+25CC; }
@font-face { font-family: 'Shobhika'; src: url('/fonts/Shobhika-Regular.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF, U+25CC; }
@font-face { font-family: 'Shobhika'; src: url('/fonts/Shobhika-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF, U+25CC; }
@font-face { font-family: 'Shobhika'; src: url('/fonts/Shobhika-Bold.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF, U+25CC; }

* { box-sizing: border-box; }
body {
  font-family: 'Shobhika', 'Gentium Book Plus', 'Gentium Book Basic', Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
  margin: 0;
  line-height: 1.7;
}

/* ---------- Header ---------- */
header.site-header {
  color: #fff;
  padding: 3rem 1rem 2.6rem;
  text-align: center;
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}
header.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}
header.site-header a { color: #fff; text-decoration: none; }
header.site-header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 5px;
  text-shadow: 0 2px 10px rgba(2,46,53,0.6);
}
header.site-header p {
  color: var(--gold-light);
  font-style: italic;
  margin: 0.5rem 0 0;
  text-shadow: 0 1px 6px rgba(2,46,53,0.5);
}

/* ---------- Nav ---------- */
nav.site-nav {
  text-align: center;
  padding: 0.9rem;
  background: var(--peacock-dark);
  border-bottom: 2px solid var(--gold);
}
nav.site-nav a {
  color: var(--gold-light);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
}
nav.site-nav a:hover { color: #fff; }

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem;
}

/* ---------- Homepage category cards ---------- */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin: 2.5rem 0;
}
.category-card {
  background: #fff;
  border: 1px solid var(--gold-light);
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
  width: 220px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(11,110,127,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(11,110,127,0.18);
}
.category-card img { width: 84px; height: 84px; margin: 0 auto 0.8rem; display: block; }
.category-card h3 {
  color: var(--peacock-dark);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.category-card p {
  color: var(--ink);
  font-size: 0.88rem;
  margin: 0;
  opacity: 0.8;
}

/* ---------- Post list ---------- */
.post-list-item {
  border-bottom: 1px solid var(--gold-light);
  padding: 1.5rem 0;
}
.post-list-item h2 a {
  color: var(--peacock-dark);
  text-decoration: none;
  font-size: 1.5rem;
}
.post-list-item h2 a:hover { color: var(--peacock); }
.post-list-item .meta {
  color: var(--gold);
  font-style: italic;
  font-size: 0.9rem;
}
.post-list-item .summary { margin-top: 0.5rem; }

/* ---------- Taxonomy / level banner pages ---------- */
.level-banner {
  text-align: center;
  padding: 2.2rem 1rem 1.6rem;
  background: var(--peacock-light);
  border-radius: 10px;
  margin-bottom: 2rem;
  border: 1px solid var(--gold-light);
}
.level-banner img { width: 96px; height: 96px; margin-bottom: 0.8rem; }
.level-banner h1 {
  color: var(--peacock-dark);
  margin: 0 0 0.4rem;
  border: none;
  padding: 0;
}
.level-banner p {
  color: var(--ink);
  font-style: italic;
  margin: 0;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Article page ---------- */
article.post h1 {
  color: var(--peacock-dark);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.5rem;
}
article.post .meta {
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1.5rem;
}
article.post h2 {
  color: var(--peacock-dark);
  margin-top: 2rem;
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 0.3rem;
}
article.post h3 { color: var(--gold); }
article.post blockquote {
  border-left: 4px solid var(--gold);
  background: var(--peacock-light);
  margin: 1.2rem 0;
  padding: 0.8rem 1.2rem;
  font-style: italic;
}
article.post a { color: var(--peacock); }

/* Article images and tables */
article.post img {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border: 1px solid var(--gold-light);
  border-radius: 4px;
}
article.post table {
  max-width: 100%;
  font-size: 0.95rem;
  border: 1px solid var(--gold-light);
}
article.post table th {
  background: var(--peacock-dark);
  color: #fff;
}
article.post table img {
  margin: 0.3rem auto;
  border: none;
  max-width: 90px;
}
article.post table td, article.post table th {
  padding: 0.5rem;
}

/* Level tag chip shown on article pages */
.level-chip {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--gold);
  font-style: italic;
  border-top: 1px solid var(--gold-light);
  background: var(--peacock-light);
}

/* ---------- Starfield header animation ---------- */
header.site-header {
  background: none !important;
  overflow: hidden;
}
.starfield-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.starfield-wrap svg { width: 100%; height: 100%; }
header.site-header .header-content {
  position: relative;
  z-index: 1;
}
.tw {
  animation-name: twinkle;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  transform-origin: center;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
/* ---------- Consultation form ---------- */
.consult-intro { font-size: 1.08rem; max-width: 640px; }
.consult-form { margin-top: 1.5rem; }
.consult-form fieldset {
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  background: #fff;
  padding: 1rem 1.2rem 0.4rem;
  margin: 0 0 1.4rem;
}
.consult-form legend {
  color: var(--peacock-dark);
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 0 0.4rem;
}
.consult-form label {
  display: block;
  margin-bottom: 0.9rem;
  font-weight: bold;
  color: var(--peacock-deep);
  font-size: 0.97rem;
}
.consult-form input[type=text],
.consult-form input[type=email],
.consult-form input[type=tel],
.consult-form input[type=date],
.consult-form input[type=time],
.consult-form select,
.consult-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-weight: normal;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #cfc6a6;
  border-radius: 4px;
}
.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--peacock);
  box-shadow: 0 0 0 2px rgba(11,110,127,0.15);
}
.consult-form .row { display: flex; gap: 1rem; flex-wrap: wrap; }
.consult-form .row > label { flex: 1 1 220px; }
.consult-form .consent { font-weight: normal; font-size: 0.95rem; }
.consult-form .consent input { margin-right: 0.4rem; }
.consult-form .req { color: #9b2c2c; }
.consult-form .hp-field { display: none; }
.consult-btn {
  display: inline-block;
  background: var(--peacock);
  color: #fff !important;
  text-decoration: none;
  font: inherit;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 0.75rem 1.8rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
}
.consult-btn:hover { background: var(--peacock-dark); }
.consult-note { font-size: 0.88rem; color: #666; }

/* Source line at the end of a quoted verse */
article.post blockquote .src {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  font-style: normal;
  color: #6b6b6b;
  line-height: 1.4;
}
article.post blockquote p { margin: 0.35rem 0; }
