/* ═══════════════════════════════════════════════════════════════════════
   Svayambu BLOG THEME — one shared stylesheet for ALL blog pages
   (category listing pages + individual post pages)

   Palette (by owner's choice):
     • Website blue   → base colour, nav, links, primary buttons
     • Lord Hanuman orange → accents (headings, hover bars, CTA hover)
     • Lord Shiva ash/grey → text, calm surfaces, dark cards
     • Wheat          → warm highlights (subtitle, zebra rows, dark-card title)
   ═══════════════════════════════════════════════════════════════════════ */

.blog-theme {
  /* Website blue */
  --bl-blue: #2563eb;
  --bl-blue-dark: #1e40af;
  --bl-blue-deep: #1d4ed8;
  --bl-blue-soft: #eff6ff;
  /* Lord Hanuman orange */
  --bl-orange: #f7931e;
  --bl-orange-hot: #ff6b35;
  --bl-orange-grad: linear-gradient(90deg, #ff6b35, #f7931e);
  --bl-orange-soft: #fff7ed;
  /* Lord Shiva ash / grey */
  --bl-ash: #4a5568;
  --bl-ash-2: #64748b;
  --bl-ash-dark: #1e293b;
  --bl-ash-soft: #f1f5f9;
  /* Wheat */
  --bl-wheat: #f5e6c8;
  --bl-wheat-2: #e9d5a8;
  --bl-wheat-ink: #8a6a2c;
  /* Neutrals */
  --bl-border: #e2e8f0;
  --bl-card: #ffffff;
  --bl-text: #1e293b;
  --bl-muted: #64748b;
  --bl-page: #f8fafc;

  font-family: 'Inter', sans-serif;
  color: var(--bl-text);
  -webkit-font-smoothing: antialiased;
}

/* ─── Category colours (shared by pills & dots) ─────────────────────────── */
.c-notifications { background: var(--bl-blue); color: #fff; }
.c-results       { background: var(--bl-orange-grad); color: #fff; }
.c-cutoff        { background: var(--bl-ash); color: #fff; }
.c-admitcard     { background: var(--bl-blue-dark); color: #fff; }
.c-syllabus      { background: var(--bl-wheat-2); color: var(--bl-ash-dark); }

.b-dot {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}

/* ─── Flag pills: NEW = blue · HOT/URGENT = Hanuman orange · other = ash ── */
.b-flag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
  background: var(--bl-ash-2); color: #fff;
  flex-shrink: 0; line-height: 1.6; white-space: nowrap;
}
.b-flag.f-new  { background: var(--bl-blue); }
.b-flag.f-hot  { background: var(--bl-orange-grad); }

/* ─── Category pill (detail header) ─────────────────────────────────────── */
.b-cat {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 12px; border-radius: 99px;
  flex-shrink: 0; white-space: nowrap;
}

/* ═══ LISTING PAGES (/blog?category=…) ═══════════════════════════════════ */

.bl-banner {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  box-shadow: inset 0 -3px 0 var(--bl-orange);   /* Hanuman orange base line */
  padding: 2.2rem 1rem 2.4rem;
  text-align: center;
}
.bl-banner h1 {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; margin: 0 0 0.45rem;
}
.bl-banner p {
  font-size: 0.95rem; margin: 0;
  color: var(--bl-wheat);                         /* wheat subtitle */
}

.bl-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 1.75rem 1.5rem 3.5rem;
}

/* Category nav pills */
.bl-nav {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin: 0 0 1.75rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--bl-border);
}
.bl-nav a {
  padding: 0.55rem 1.1rem;
  background: var(--bl-card);
  border: 1.5px solid var(--bl-border);
  border-radius: 99px;
  color: var(--bl-ash); font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.bl-nav a:hover {
  border-color: var(--bl-blue); color: var(--bl-blue);
  background: var(--bl-blue-soft);
}
.bl-nav a.active {
  background: var(--bl-blue); border-color: var(--bl-blue);
  color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Post list card */
.bl-card {
  background: var(--bl-card);
  border: 1px solid var(--bl-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 41, 59, 0.06),
              0 10px 28px -20px rgba(30, 41, 59, 0.25);
}
.bl-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(90deg, var(--bl-orange-soft), #fff);
  border-bottom: 1px solid var(--bl-border);
  color: var(--bl-blue-dark);
  font-size: 0.95rem; font-weight: 800;
}
.bl-section-title::before {          /* orange chip */
  content: ""; width: 11px; height: 11px; border-radius: 3px;
  background: var(--bl-orange-grad); flex-shrink: 0;
}

/* One post row — light, decent hover */
.bl-row {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--bl-ash-soft);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.bl-row:last-child { border-bottom: none; }
.bl-row:hover {
  background: #f7faff;
  box-shadow: inset 3px 0 0 var(--bl-orange);   /* subtle orange marker */
}
.bl-row-main { flex: 1; min-width: 0; }
.bl-title {
  font-size: 0.95rem; font-weight: 600;
  color: var(--bl-text); line-height: 1.5; margin: 0;
}
.bl-title a { color: inherit; text-decoration: none; }
.bl-title a:hover,
.bl-row:hover .bl-title a { color: var(--bl-blue); }
.bl-ext {
  display: inline-block; margin-left: 5px;
  font-size: 0.75rem; color: var(--bl-ash-2);
  text-decoration: none; transition: color 0.15s;
}
.bl-ext:hover { color: var(--bl-orange); }
.bl-date {
  font-size: 0.75rem; color: var(--bl-muted);
  white-space: nowrap; flex-shrink: 0;
}
.bl-arrow {
  color: var(--bl-border); font-size: 1.05rem; font-weight: 700;
  flex-shrink: 0; transition: color 0.15s, transform 0.15s;
}
.bl-row:hover .bl-arrow { color: var(--bl-orange); transform: translateX(3px); }

/* View-more button: blue → orange on hover */
.bl-more { text-align: center; padding: 1.4rem 1rem; background: var(--bl-ash-soft); }
.bl-more a {
  display: inline-block;
  background: linear-gradient(90deg, var(--bl-blue), var(--bl-blue-deep));
  color: #fff; font-size: 0.88rem; font-weight: 700;
  padding: 0.7rem 1.8rem; border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}
.bl-more a:hover {
  background: var(--bl-orange-grad);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(247, 147, 30, 0.35);
}

/* Empty state */
.bl-empty { padding: 3.5rem 1rem; text-align: center; color: var(--bl-muted); }
.bl-empty-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.bl-empty p { margin: 0.25rem 0; }

/* ═══ POST PAGES (/blog/<id>) ════════════════════════════════════════════ */

.bd-page { background: var(--bl-page); min-height: 80vh; }

.bd-topbar {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  box-shadow: inset 0 -3px 0 var(--bl-orange);   /* same orange base line */
  padding: 0.6rem 0;
}
.bd-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.bd-breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: #cbd5e1;
}
.bd-breadcrumb a { color: #cbd5e1; text-decoration: none; }
.bd-breadcrumb a:hover { color: #fff; }
.bd-breadcrumb span { color: rgba(255, 255, 255, 0.5); }
.bd-back-btn {
  font-size: 0.73rem; font-weight: 600; color: #e2e8f0;
  padding: 4px 13px; border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px; text-decoration: none;
  background: rgba(15, 23, 42, 0.35);
  transition: all 0.15s;
}
.bd-back-btn:hover { background: var(--bl-blue); border-color: var(--bl-blue); color: #fff; }

.bd-body {
  max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start;
}
.bd-main { display: flex; flex-direction: column; gap: 1.25rem; }

/* Header card */
.bd-header-card {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: 12px; padding: 1.6rem 1.75rem;
}
.bd-cat-badge {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.bd-title {
  font-size: 1.45rem; font-weight: 800; color: var(--bl-ash-dark);
  line-height: 1.35; margin: 0 0 0.75rem; letter-spacing: -0.3px;
}
.bd-date {
  font-size: 0.78rem; color: var(--bl-ash-2); margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.35rem;
}
.bd-source-box {
  margin-top: 0.75rem; padding: 0.85rem 1rem;
  background: var(--bl-blue-soft); border: 1px solid #bfdbfe;
  border-left: 4px solid var(--bl-blue);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.bd-source-label { font-size: 0.72rem; font-weight: 700; color: var(--bl-blue-dark); }
.bd-source-link { font-size: 0.8rem; color: var(--bl-blue); text-decoration: none; word-break: break-all; }
.bd-source-link:hover { color: var(--bl-orange); }

/* Content card + reading styles */
.bd-content-card {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: 12px; padding: 1.85rem;
}
.bd-content { font-size: 0.92rem; color: #334155; line-height: 1.85; }
.bd-content p { margin: 0 0 1em; }
.bd-content h2 {
  font-size: 1.12rem; font-weight: 800; color: var(--bl-ash-dark);
  margin: 1.4em 0 0.6em; padding: 0.4rem 0.8rem;
  border-left: 4px solid var(--bl-orange);      /* Hanuman accent headings */
  background: linear-gradient(90deg, var(--bl-orange-soft), transparent);
  border-radius: 0 8px 8px 0;
}
.bd-content h3 {
  font-size: 1rem; font-weight: 700; color: var(--bl-blue-dark);
  margin: 1.1em 0 0.4em;
}
.bd-content ul, .bd-content ol { padding-left: 1.35rem; margin: 0.6em 0; }
.bd-content li { margin-bottom: 6px; }
.bd-content li::marker { color: var(--bl-blue); }
.bd-content strong { font-weight: 700; color: var(--bl-ash-dark); }
.bd-content table {
  width: 100%; border-collapse: collapse; margin: 1em 0;
  font-size: 0.84rem; border-radius: 8px; overflow: hidden;
}
.bd-content th {
  background: linear-gradient(90deg, var(--bl-blue-dark), var(--bl-blue));
  color: #fff; font-weight: 700; padding: 9px 11px; text-align: left;
}
.bd-content td { border-bottom: 1px solid var(--bl-border); padding: 9px 11px; }
.bd-content tbody tr:nth-child(even) { background: #fdf9f0; }  /* light wheat zebra */
.bd-content a {
  color: var(--bl-blue); text-decoration: none;
  border-bottom: 1px solid #bfdbfe;
}
.bd-content a:hover { color: var(--bl-orange); border-color: var(--bl-orange); }
.bd-content blockquote {
  margin: 1em 0; padding: 0.75rem 1rem;
  background: var(--bl-ash-soft); border-left: 4px solid var(--bl-ash);
  border-radius: 0 8px 8px 0; color: var(--bl-ash); font-style: italic;
}
.bd-content img { max-width: 100%; border-radius: 10px; }
.bd-content hr { border: none; border-top: 1px solid var(--bl-border); margin: 1.4em 0; }

/* CTA: blue → orange on hover (matches listing button) */
.bd-cta-row { text-align: center; padding: 0.5rem 0; }
.bd-cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--bl-blue), var(--bl-blue-deep));
  color: #fff; font-size: 0.88rem; font-weight: 700;
  padding: 0.75rem 2rem; border-radius: 99px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.18s ease;
}
.bd-cta-btn:hover {
  background: var(--bl-orange-grad);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(247, 147, 30, 0.35);
}

/* Prev / Next */
.bd-bottom-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1rem; margin-top: 0.5rem;
}
.bd-nav-btn {
  display: flex; align-items: center; gap: 0.6rem; max-width: 48%;
  padding: 0.75rem 1rem;
  background: var(--bl-card); border: 1.5px solid var(--bl-border);
  border-radius: 12px; text-decoration: none; transition: all 0.15s;
}
.bd-nav-btn:hover { border-color: var(--bl-blue); background: var(--bl-blue-soft); }
.bd-nav-arrow { font-size: 1.1rem; color: var(--bl-blue); font-weight: 700; flex-shrink: 0; transition: color 0.15s; }
.bd-nav-btn:hover .bd-nav-arrow { color: var(--bl-orange); }
.bd-nav-text { display: flex; flex-direction: column; min-width: 0; }
.bd-nav-label {
  font-size: 0.65rem; font-weight: 700; color: var(--bl-ash-2);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.bd-nav-title { font-size: 0.78rem; font-weight: 600; color: var(--bl-ash-dark); line-height: 1.3; }
.bd-next { text-align: right; }
.bd-next .bd-nav-text { align-items: flex-end; }

/* Sidebar */
.bd-sidebar {
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: calc(64px + 1rem);
}
.bd-side-card {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: 12px; padding: 1.1rem 1.2rem;
}
.bd-side-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 800; color: var(--bl-ash-dark);
  margin-bottom: 0.8rem;
}
.bd-side-title::before {           /* same orange chip as listing */
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--bl-orange-grad); flex-shrink: 0;
}
.bd-side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.bd-side-list li { display: flex; align-items: center; gap: 0.55rem; }
.bd-side-list a {
  font-size: 0.8rem; color: #334155; text-decoration: none;
  padding: 6px 8px; border-radius: 7px; display: block;
  flex: 1; transition: background 0.12s, color 0.12s;
}
.bd-side-list a:hover { background: var(--bl-blue-soft); color: var(--bl-blue); }

/* Dark Shiva-ash CTA card: ash surface + wheat title + Hanuman orange button */
.bd-side-cta {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #475569;
}
.bd-side-cta .bd-side-title { color: var(--bl-wheat); }
.bd-side-text { font-size: 0.78rem; color: #cbd5e1; margin: 0 0 0.8rem; line-height: 1.55; }
.bd-side-btn {
  display: inline-block; width: 100%; text-align: center;
  background: var(--bl-orange-grad); color: #fff;
  font-size: 0.78rem; font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
  transition: all 0.15s;
}
.bd-side-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bd-body { grid-template-columns: 1fr; }
  .bd-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .bd-side-card { flex: 1; min-width: 280px; }
  .bd-nav-btn { max-width: 100%; width: 100%; }
}
@media (max-width: 768px) {
  .bl-banner { padding: 1.7rem 1rem 1.9rem; }
  .bl-banner h1 { font-size: 1.45rem; }
  .bl-wrap { padding: 1.4rem 1rem 3rem; }
  .bl-nav a { font-size: 0.8rem; padding: 0.5rem 0.95rem; }
  .bl-row { padding: 0.85rem 1rem; gap: 0.6rem; }
  .bl-title { font-size: 0.9rem; }
}
@media (max-width: 640px) {
  .bl-arrow { display: none; }
  .bl-row { flex-wrap: wrap; }
  .bl-date { order: 3; width: 100%; font-size: 0.72rem; }
}
@media (max-width: 540px) {
  .bd-sidebar { display: none; }
  .bd-title { font-size: 1.1rem; }
  .bd-header-card, .bd-content-card { padding: 1.1rem; }
}
