/* ═══════════════════════════════════════════════════════════
   ProHaska Homes — Blog Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Breadcrumbs ────────────────────────────────────────── */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .85rem;
}
.breadcrumbs li + li::before {
  content: '›';
  margin: 0 8px;
  color: #999;
}
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #666; }

/* ── Blog layout ────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.blog-main { min-width: 0; }

/* ── Blog grid ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Blog card ──────────────────────────────────────────── */
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.blog-card-image {
  display: block;
  height: 200px;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
  margin-bottom: 8px;
}
.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-title a {
  color: var(--navy);
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt {
  font-size: .9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}
.blog-card-meta {
  font-size: .8rem;
  color: #888;
  display: flex;
  gap: 12px;
}

/* ── Single post ────────────────────────────────────────── */
.blog-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 12px 0 16px;
}
.blog-post-meta {
  display: flex;
  gap: 16px;
  font-size: .85rem;
  color: #888;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.blog-post-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}
.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}
.blog-post-body h2, .blog-post-body h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin: 32px 0 12px;
}
.blog-post-body h2 { font-size: 1.5rem; }
.blog-post-body h3 { font-size: 1.25rem; }
.blog-post-body p { margin-bottom: 16px; }
.blog-post-body ul, .blog-post-body ol {
  margin: 16px 0;
  padding-left: 24px;
}
.blog-post-body li { margin-bottom: 8px; }
.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.blog-post-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 20px 0;
  background: #faf8f4;
  font-style: italic;
  color: #555;
}
.blog-post-body a.auto-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
}
.blog-post-body a.auto-link:hover { border-bottom-style: solid; }

/* ── Tags ───────────────────────────────────────────────── */
.blog-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 30px 0 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.tag-link {
  display: inline-block;
  padding: 4px 14px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  font-size: .8rem;
  text-decoration: none;
  transition: all .2s;
}
.tag-link:hover { background: var(--gold); color: #fff; }

/* ── Share ───────────────────────────────────────────────── */
.blog-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: .85rem;
}
.blog-share span { font-weight: 600; color: var(--navy); }
.blog-share a {
  color: var(--gold);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: .8rem;
  transition: all .2s;
}
.blog-share a:hover { background: var(--gold); color: #fff; }

/* ── Blog CTA ───────────────────────────────────────────── */
.blog-cta-box {
  background: var(--navy);
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin: 40px 0;
}
.blog-cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #fff;
}
.blog-cta-box p { opacity: .85; margin-bottom: 16px; }
.blog-cta-box .cta-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gold);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 6px;
  transition: background .2s;
}
.blog-cta-box .cta-btn:hover { background: var(--gold-light, #d4ad5a); }
.blog-cta-box .cta-outline { background: transparent; border: 2px solid #fff; }
.blog-cta-box .cta-outline:hover { background: rgba(255,255,255,.1); }

/* ── Related posts ──────────────────────────────────────── */
.related-posts {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.related-posts h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ── Sidebar ────────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.sidebar-widget h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget li { padding: 6px 0; border-bottom: 1px solid #f1f1f1; }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a { color: #444; text-decoration: none; font-size: .9rem; }
.sidebar-widget a:hover { color: var(--gold); }
.sidebar-widget a span { color: #999; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 30px;
}
.page-link {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #444;
  font-size: .85rem;
  transition: all .2s;
}
.page-link:hover { background: #f5f5f5; }
.page-link.active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-layout { grid-template-columns: 1fr; gap: 20px; }
  .blog-sidebar { position: static; }
  .blog-post-title { font-size: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-share { flex-wrap: wrap; }
}
