/* Blog listing + single article pages */
.blog-page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(0, 20, 80, 0.92) 0%, rgba(10, 14, 26, 0.88) 55%, rgba(232, 58, 0, 0.35) 100%),
    url("../images/GUTTER-GUARDS-installation.webp") center / cover no-repeat;
  color: #fff;
}

.blog-page-hero .crumbs {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.blog-page-hero .crumbs a { color: #ffb199; }
.blog-page-hero .crumbs span { margin: 0 0.3rem; opacity: 0.6; }

.blog-page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 0.65rem;
  max-width: 16ch;
}

.blog-page-hero .lead {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.65;
}

.blog-listing .blog-card {
  box-shadow: 0 14px 40px rgba(0, 20, 80, 0.08);
}

.blog-listing-cta {
  margin-top: 3rem;
  padding: 2.25rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0a2070 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.blog-listing-cta h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.35rem;
}

.blog-listing-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 40ch;
}

.blog-listing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-listing-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.blog-listing-cta .btn-outline:hover {
  background: #fff;
  color: var(--brand-navy) !important;
}

/* Single article */
.page-hero.blog-post-hero {
  min-height: 300px;
  align-items: flex-end;
}

.page-hero.blog-post-hero.hero-worth {
  background-image:
    linear-gradient(180deg, rgba(0, 20, 80, 0.55) 0%, rgba(10, 14, 26, 0.9) 100%),
    url("../images/before-after_e8e09c81.webp");
  background-size: cover;
  background-position: center;
}

.page-hero.blog-post-hero.hero-ember {
  background-image:
    linear-gradient(180deg, rgba(0, 20, 80, 0.55) 0%, rgba(10, 14, 26, 0.9) 100%),
    url("../images/embermeshNEW.webp");
  background-size: cover;
  background-position: center;
}

.page-hero.blog-post-hero.hero-solar {
  background-image:
    linear-gradient(180deg, rgba(0, 20, 80, 0.55) 0%, rgba(10, 14, 26, 0.9) 100%),
    url("../images/birdproofing.webp");
  background-size: cover;
  background-position: center;
}

.page-hero.blog-post-hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.blog-post-meta time,
.blog-post-meta span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.blog-post-meta .blog-tag {
  position: static;
  display: inline-block;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .blog-post-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
  }
}

.blog-post-content img.blog-post-feature {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 28px rgba(0, 20, 80, 0.1);
}

.blog-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .blog-post-sidebar {
    position: sticky;
    top: 100px;
  }
}

.blog-side-box {
  background: #fff;
  border: 1px solid rgba(0, 20, 80, 0.08);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(0, 20, 80, 0.05);
}

.blog-side-box h3 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}

.blog-side-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.blog-side-links a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-navy) !important;
  background: var(--brand-warm-white);
  transition: background 0.18s ease, color 0.18s ease;
}

.blog-side-links a:hover {
  background: rgba(232, 58, 0, 0.08);
  color: var(--brand-orange) !important;
}

.blog-side-cta {
  background: linear-gradient(145deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  color: #fff;
}

.blog-side-cta h3 { color: #fff; }

.blog-side-cta p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.blog-side-cta .btn-call {
  width: 100%;
  justify-content: center;
}

.blog-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 20, 80, 0.08);
}

@media (max-width: 640px) {
  .blog-listing-cta {
    padding: 1.75rem 1.35rem;
  }
}
