/* ============================================================
   CleanDeals Blog v2 — Complete Stylesheet
   Layout   : Article (main) + Sidebar (320px) two-column grid
   Base font: 18px for comfortable long-form reading
   Body text: Source Serif 4 for readability
   Display  : Cormorant Garamond for headings
   UI chrome: Syne for labels, meta, nav
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Syne:wght@400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;1,8..60,300;1,8..60,400&display=swap');

:root {
  --obsidian:    #0A0A0B;
  --obsidian-2:  #111114;
  --obsidian-3:  #17171C;
  --obsidian-4:  #1D1D24;
  --gold:        #C9A84C;
  --gold-dim:    #8A6B2A;
  --gold-bright: #E2C06A;
  --gold-faint:  rgba(201,168,76,0.07);
  --white:       #F5F0E8;
  --white-dim:   rgba(245,240,232,0.65);
  --white-muted: rgba(245,240,232,0.38);
  --white-faint: rgba(245,240,232,0.08);
  --white-line:  rgba(245,240,232,0.09);
  --serif-d: 'Cormorant Garamond', Georgia, serif;
  --serif-b: 'Source Serif 4', Georgia, serif;
  --sans:    'Syne', system-ui, sans-serif;
  --r: 4px;
  --cmax: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--serif-b);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- NAV ---- */
.blog-nav {
  background: rgba(10,10,11,0.96);
  border-bottom: 1px solid var(--white-line);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(16px);
}
.nav-logo { font-family: var(--serif-d); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.nav-logo span { color: var(--gold); }
.nav-back {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  transition: color 0.2s;
}
.nav-back:hover { color: var(--gold); }

/* ---- POST HEADER ---- */
.post-header {
  padding: 5rem 0 3rem;
  background: var(--obsidian-2);
  border-bottom: 1px solid var(--white-line);
}
.post-header .hdr-inner {
  max-width: var(--cmax);
  margin: 0 auto;
  padding: 0 2rem;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1.5rem;
}
.post-breadcrumb a { color: var(--white-muted); transition: color 0.2s; }
.post-breadcrumb a:hover { color: var(--gold); }
.post-breadcrumb .sep { opacity: 0.3; }
.post-category-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.28);
  background: var(--gold-faint);
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.post-header h1 {
  font-family: var(--serif-d);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.1rem;
  max-width: 820px;
  letter-spacing: -0.01em;
}
.post-subtitle {
  font-family: var(--serif-b);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white-dim);
  max-width: 660px;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--white-muted);
  flex-wrap: wrap;
}
.post-meta-bar strong { color: var(--gold-dim); }
.post-meta-bar .sep { opacity: 0.3; }

/* ---- HERO IMG ---- */
.post-hero-img { width: 100%; height: 420px; overflow: hidden; position: relative; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.65) saturate(0.7); }
.img-credit {
  position: absolute; bottom: 0.75rem; right: 1.25rem;
  font-family: var(--sans); font-size: 0.6rem; color: rgba(245,240,232,0.3); font-style: italic;
}
.img-credit a { color: rgba(245,240,232,0.4); }
.img-credit a:hover { color: var(--gold); }

/* ============================================================
   TWO-COLUMN LAYOUT: ARTICLE + SIDEBAR
============================================================ */
.post-layout {
  max-width: var(--cmax);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* ---- ARTICLE ---- */
.post-article { min-width: 0; }

p.lead {
  font-family: var(--serif-b);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.85;
  margin-bottom: 2.25rem;
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.5rem;
  font-style: italic;
}
.post-article p {
  font-family: var(--serif-b);
  font-size: 1.04rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.post-article p strong { color: var(--white); font-weight: 500; }
.post-article p em { color: var(--gold-bright); font-style: italic; }
.post-article a { color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.3); transition: all 0.2s; }
.post-article a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

.post-article h2 {
  font-family: var(--serif-d);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-line);
}
.post-article h3 {
  font-family: var(--serif-d);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin: 2.25rem 0 0.85rem;
  line-height: 1.25;
}

/* ---- LISTS ---- */
.styled-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.styled-list li {
  font-family: var(--serif-b);
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-dim);
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--white-line);
  position: relative;
  line-height: 1.7;
}
.styled-list li:last-child { border-bottom: none; }
.styled-list li::before {
  content: '';
  position: absolute;
  left: 0.25rem; top: 1.1rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.styled-list li strong { color: var(--white); font-weight: 500; }

.dd-list { list-style: none; counter-reset: dd; margin: 0 0 1.5rem; padding: 0; }
.dd-list li {
  counter-increment: dd;
  font-family: var(--serif-b);
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-dim);
  padding: 0.7rem 0 0.7rem 3rem;
  border-bottom: 1px solid var(--white-line);
  position: relative;
  line-height: 1.7;
}
.dd-list li:last-child { border-bottom: none; }
.dd-list li::before {
  content: counter(dd, decimal-leading-zero);
  position: absolute; left: 0; top: 0.7rem;
  font-family: var(--serif-d);
  font-size: 1rem; font-weight: 700;
  color: var(--gold); opacity: 0.65;
}
.dd-list li strong { color: var(--white); font-weight: 500; }

/* ---- CALLOUT BOX ---- */
.callout-box {
  background: var(--obsidian-3);
  border: 1px solid var(--gold-dim);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.callout-box h3 {
  font-family: var(--serif-d) !important;
  font-size: 1.15rem !important;
  color: var(--gold-bright) !important;
  font-weight: 600 !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: none !important;
}
.callout-box p {
  font-size: 0.96rem !important;
  line-height: 1.75 !important;
  margin-bottom: 0 !important;
}
.callout-box a { color: var(--gold) !important; border-bottom: 1px solid rgba(201,168,76,0.3) !important; }

/* ---- CHECKLIST BOX ---- */
.checklist-box {
  background: var(--obsidian-4);
  border: 1px solid var(--white-line);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.checklist-box h3 {
  font-family: var(--serif-d) !important;
  font-size: 1.1rem !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  margin: 0 0 1rem !important;
  padding: 0 0 0.85rem !important;
  border: none !important;
  border-bottom: 1px solid var(--white-line) !important;
}

/* ============================================================
   RELATED POSTS CARDS (inside article)
============================================================ */
.related-posts {
  margin: 3.5rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--white-line);
}
.related-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.related-card {
  background: var(--obsidian-3);
  border: 1px solid var(--white-line) !important;
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  display: block;
  text-decoration: none !important;
  border-bottom: 1px solid var(--white-line) !important;
}
.related-card:hover {
  border-color: var(--gold-dim) !important;
  transform: translateY(-3px);
}
.related-card img {
  width: 100%; height: 115px;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter 0.3s;
  display: block;
}
.related-card:hover img { filter: brightness(0.78); }
.related-card-body { padding: 0.9rem 1rem; }
.related-card-cat {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.3rem;
  display: block;
}
.related-card h4 {
  font-family: var(--serif-d);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white-dim);
  line-height: 1.35;
}
.related-card:hover h4 { color: var(--white); }

/* ============================================================
   SIDEBAR
============================================================ */
.post-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sb-widget {
  background: var(--obsidian-3);
  border: 1px solid var(--white-line);
  border-radius: var(--r);
  overflow: hidden;
}
.sb-head {
  padding: 0.8rem 1.25rem;
  background: var(--obsidian-4);
  border-bottom: 1px solid var(--white-line);
}
.sb-head h3 {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.sb-body { padding: 1rem 1.25rem; }

/* TOC */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { border-bottom: 1px solid var(--white-line); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: block;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--white-dim);
  padding: 0.55rem 0;
  transition: color 0.2s, padding-left 0.2s;
  border: none !important;
  text-decoration: none !important;
}
.toc-list a:hover { color: var(--gold); padding-left: 0.4rem; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-family: var(--sans);
  font-size: 0.67rem;
  color: var(--white-muted);
  background: var(--white-faint);
  border: 1px solid var(--white-line);
  border-radius: 100px;
  padding: 0.28rem 0.72rem;
  transition: all 0.2s;
  text-decoration: none !important;
  border-bottom: 1px solid var(--white-line) !important;
  display: inline-block;
}
.tag:hover {
  background: var(--gold-faint);
  border-color: var(--gold-dim) !important;
  color: var(--gold);
}

/* Categories */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { border-bottom: 1px solid var(--white-line); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--white-dim);
  padding: 0.6rem 0;
  transition: color 0.2s;
  text-decoration: none !important;
  border: none !important;
}
.cat-list a:hover { color: var(--gold); }
.cat-count {
  font-size: 0.63rem;
  color: var(--white-muted);
  background: var(--white-faint);
  border: 1px solid var(--white-line);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
}

/* Sidebar recent posts */
.sb-post-list { display: flex; flex-direction: column; margin: 0 -1.25rem; }
.sb-post-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--white-line);
  align-items: flex-start;
  text-decoration: none !important;
  border-bottom-width: 1px !important;
  transition: background 0.2s;
}
.sb-post-item:last-child { border-bottom: none !important; }
.sb-post-item:hover { background: rgba(245,240,232,0.03); }
.sb-post-item img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  filter: brightness(0.68);
}
.sb-post-cat {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 0.2rem;
}
.sb-post-title {
  font-family: var(--serif-d);
  font-size: 0.82rem;
  color: var(--white-muted);
  line-height: 1.35;
  font-weight: 600;
}
.sb-post-item:hover .sb-post-title { color: var(--white); }

/* Sidebar CTA */
.sb-cta {
  background: linear-gradient(135deg, var(--obsidian-4), var(--obsidian-3));
  border: 1px solid var(--gold-dim);
  border-radius: var(--r);
  padding: 1.4rem 1.25rem;
  text-align: center;
}
.sb-cta .sc-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 0.55rem;
}
.sb-cta h4 {
  font-family: var(--serif-d);
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
.sb-cta p {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--white-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.btn-gold-sm {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--sans);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: all 0.25s;
  text-align: center;
  text-decoration: none !important;
  border: none !important;
}
.btn-gold-sm:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

/* ---- POST FOOTER CTA ---- */
.post-footer-cta {
  background: var(--obsidian-2);
  border-top: 1px solid var(--white-line);
  padding: 4rem 2rem;
  text-align: center;
}
.pf-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.post-footer-cta h3 {
  font-family: var(--serif-d);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  font-weight: 600;
  margin: 0 auto 1.75rem;
  line-height: 1.2;
  max-width: 580px;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.4rem;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: all 0.25s;
  text-decoration: none !important;
  border: none !important;
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.28);
}

/* ---- BLOG FOOTER ---- */
.blog-footer {
  border-top: 1px solid var(--white-line);
  padding: 2rem 0;
  background: var(--obsidian-2);
}
.bf-inner {
  max-width: var(--cmax);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.bf-inner p { font-family: var(--sans); font-size: 0.7rem; color: rgba(245,240,232,0.2); }
.bf-inner a { font-family: var(--sans); font-size: 0.73rem; color: var(--white-muted); text-decoration: none !important; border: none !important; transition: color 0.2s; }
.bf-inner a:hover { color: var(--gold); }

/* ============================================================
   BLOG INDEX PAGE
============================================================ */
.blog-hero { padding: 5.5rem 0 3.5rem; background: var(--obsidian-2); border-bottom: 1px solid var(--white-line); }
.blog-hero-label {
  font-family: var(--sans); font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; display: block;
}
.blog-hero h1 {
  font-family: var(--serif-d);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.08; color: var(--white); margin-bottom: 1rem;
}
.blog-hero h1 em { color: var(--gold); font-style: italic; }
.blog-hero p {
  font-family: var(--serif-b);
  font-size: 1.05rem; font-weight: 300; color: var(--white-dim);
  max-width: 560px; line-height: 1.8;
}
.index-container { max-width: var(--cmax); margin: 0 auto; padding: 0 2rem; }
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; padding: 4rem 0; }
.post-card {
  background: var(--obsidian-3); border: 1px solid var(--white-line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .3s, transform .3s;
  display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
.post-card-img { width: 100%; height: 190px; object-fit: cover; filter: brightness(.62); transition: filter .4s; display: block; }
.post-card:hover .post-card-img { filter: brightness(.8); }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { font-family: var(--sans); font-size: 0.65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: .7rem; }
.post-card h2 { font-family: var(--serif-d); font-size: 1.15rem; color: var(--white); font-weight: 600; line-height: 1.3; margin-bottom: .7rem; }
.post-card p { font-family: var(--serif-b); font-size: 0.88rem; font-weight: 300; color: var(--white-muted); line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.post-link { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); transition: color .2s; text-decoration: none !important; border: none !important; }
.post-link:hover { color: var(--gold-bright); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr 260px; gap: 2.5rem; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  html { font-size: 17px; }
  .post-layout { grid-template-columns: 1fr; padding: 2rem 1.25rem 3rem; }
  .post-sidebar { position: static; }
  .post-hero-img { height: 240px; }
  .post-header { padding: 3rem 0 2rem; }
  .post-header .hdr-inner { padding: 0 1.25rem; }
  .posts-grid { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .related-grid { grid-template-columns: 1fr; }
  .index-container { padding: 0 1.25rem; }
  .blog-hero { padding: 3.5rem 0 2.5rem; }
  .bf-inner { flex-direction: column; text-align: center; padding: 0 1.25rem; }
  .blog-nav { padding: 0 1.25rem; }
  .post-footer-cta { padding: 2.75rem 1.25rem; }
}
@media (max-width: 480px) {
  html { font-size: 16px; }
  .post-header h1 { font-size: 1.65rem; }
  .post-layout { padding: 1.75rem 1rem 2.5rem; }
  .related-grid { grid-template-columns: 1fr; }
}
