/* ===========================================================
   Digital Dhara 360° — shared styles for Blog & content pages
   Brand-consistent with the homepage (orange #FF6A00, Syne + DM Sans),
   light theme + automatic dark mode. Used by /blog/ pages.
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #FF6A00;
  --orange-dark: #C24A00;
  --charcoal: #171310;
  --ink: #2B2521;
  --muted: #5A544C;
  --bg: #FBF7F3;
  --card: rgba(255,255,255,0.72);
  --line: rgba(20,17,14,0.09);
  --radius: 18px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 5%; }
.narrow { max-width: 760px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,243,0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--charcoal); white-space: nowrap; }
.brand span { color: var(--orange); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.92rem; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--orange); }
.header-cta {
  background: var(--orange); color: #fff; font-weight: 700; font-size: 0.88rem;
  padding: 10px 20px; border-radius: 50px; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(255,106,0,0.28); transition: transform 0.2s, box-shadow 0.2s;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,106,0,0.4); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---- Hero / page head ---- */
.page-head { padding: 56px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange-dark); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px;
}
h1 { font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.12; color: var(--charcoal); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.page-head p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.02rem; }

/* ---- Breadcrumb ---- */
.crumbs { font-size: 0.82rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }

/* ---- Blog listing grid ---- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px,100%),1fr)); gap: 26px; padding: 10px 0 70px; }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(20,17,14,0.05);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(255,106,0,0.3); box-shadow: 0 22px 48px rgba(255,106,0,0.12); }
.post-card .thumb { height: 168px; display: flex; align-items: center; justify-content: center; position: relative; }
.post-card .thumb svg { width: 52px; height: 52px; opacity: 0.92; }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-tag { font-size: 0.72rem; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.post-card h3 { font-family: 'Syne', sans-serif; font-size: 1.12rem; font-weight: 700; line-height: 1.32; margin-bottom: 10px; color: var(--charcoal); }
.post-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.post-card .pc-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.post-card .read { color: var(--orange); font-weight: 600; }

/* ---- Article ---- */
.article { padding: 8px 0 60px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: 0.84rem; margin-bottom: 26px; }
.article-meta .pill { background: rgba(255,106,0,0.1); color: var(--orange-dark); padding: 4px 12px; border-radius: 50px; font-weight: 600; }
.article-body { font-size: 1.06rem; color: var(--ink); }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--charcoal); margin-top: 40px; line-height: 1.2; }
.article-body h3 { font-family: 'Syne', sans-serif; font-size: 1.22rem; font-weight: 700; color: var(--charcoal); margin-top: 30px; }
.article-body p, .article-body li { line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-top: 10px; }
.article-body strong { color: var(--charcoal); }
.article-body a { text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--orange); background: rgba(255,106,0,0.05);
  padding: 16px 22px; border-radius: 0 12px 12px 0; font-size: 1.08rem; color: var(--charcoal);
}
.article-body .key-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
}
.article-body .key-box h3 { margin-top: 0; }

/* ---- CTA band ---- */
.cta-band {
  background: radial-gradient(120% 130% at 50% -10%, #FF9A4D, var(--orange) 45%, #E25600);
  color: #fff; text-align: center; border-radius: 22px; padding: 40px 30px; margin: 50px 0;
}
.cta-band h2 { font-family: 'Syne', sans-serif; font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.cta-band p { opacity: 0.92; margin-bottom: 22px; }
.btn-white { display: inline-block; background: #fff; color: var(--orange); font-weight: 700; padding: 13px 30px; border-radius: 50px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); transition: transform 0.2s; }
.btn-white:hover { transform: translateY(-2px); }

/* ---- Footer ---- */
.site-footer { background: linear-gradient(180deg,#171717,#0E0E0E); color: rgba(255,255,255,0.7); padding: 50px 0 28px; border-top: 1px solid rgba(255,106,0,0.2); }
.site-footer .bar { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer .brand { color: #fff; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--orange); }
.site-footer .fnav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; }
.site-footer .copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 20px; font-size: 0.8rem; }

/* ---- Dark mode (auto) ---- */
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --ink: #ECE8E3; --charcoal: #ECE8E3; --muted: #B6AFA6; --card: rgba(255,255,255,0.045); --line: rgba(255,255,255,0.1); --orange-dark: #FF9F58; }
  .site-header { background: rgba(18,18,18,0.82); }
  .nav a { color: var(--ink); }
  .article-body strong { color: #ECE8E3; }
  .article-body .key-box { background: rgba(255,255,255,0.05); }
}
