/* ===========================================================
   Guy A Remodeling — blog theme (ezBLOG)
   Reuses the main site's design tokens from /css/style.css.
   The shared header/footer use the site's .hp-* classes, so this
   file only styles the blog listing + single-post content.
   =========================================================== */

.blog-body {
  font-family: var(--gr-font-body);
  color: var(--gr-ink);
  background: #fff;
}

/* Blog pages have no dark hero behind the fixed header, so keep it in its
   solid (scrolled) state from the top instead of transparent with white
   links on a white page. */
.blog-body .hp-header {
  background: #2f3437;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

/* Clear the fixed .hp-header */
#blog-listing,
.blog-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 20px 80px;
}

@media (max-width: 991.98px) {
  #blog-listing,
  .blog-main { padding-top: 120px; }
}

/* ---- Listing page ---- */
.blog_page_heading {
  font-family: var(--gr-font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--gr-ink);
  margin-bottom: 8px;
}

.blog_page_heading::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: var(--gr-teal);
  margin-top: 16px;
}

#blog_list_front { width: 100%; border-collapse: collapse; }
#blog_list_front td { display: block; padding: 0; }

.blog_list {
  border-bottom: 1px solid var(--gr-light-2);
  padding: 36px 0;
}

.blog_list .main_heading {
  font-family: var(--gr-font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

.blog_list .main_heading a { color: var(--gr-ink); text-decoration: none; }
.blog_list .main_heading a:hover { color: var(--gr-teal); }

.blog_list .sub_heading {
  font-family: var(--gr-font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--gr-slate);
  margin: 0 0 16px;
}

.imgthumbnail_wr { margin: 0 0 18px; }
.imgthumbnail_wr img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog_list p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 18px;
}

.listing-button,
.blog-list-button a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  background: var(--gr-teal);
  color: #fff;
  border: 0;
  font-family: var(--gr-font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease;
}
.listing-button:hover,
.blog-list-button a:hover { background: var(--gr-teal-dark); color: #fff; }

/* Pagination */
#blog-listing .btn-secondary {
  background: var(--gr-ink);
  border: 0;
  border-radius: 0;
  font-family: var(--gr-font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
#blog-listing .btn-secondary:hover { background: var(--gr-teal); }

/* ---- Single post ---- */
.blog-post-title {
  font-family: var(--gr-font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.18;
  color: var(--gr-ink);
  margin: 0 0 10px;
}

.blog-post-sub {
  font-size: 1.05rem;
  color: var(--gr-slate);
  margin: 0 0 20px;
}

.blog-post-byline {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gr-slate);
  margin: 0 0 24px;
}

.blog-post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0 0 30px;
}

.blog-post-body { font-size: 16px; line-height: 1.9; color: #1b1b1b; }
.blog-post-body h2 {
  font-family: var(--gr-font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gr-teal);
  margin: 34px 0 12px;
}
.blog-post-body h3 {
  font-family: var(--gr-font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 26px 0 10px;
}
.blog-post-body p { margin: 0 0 18px; }
.blog-post-body a { color: var(--gr-teal); font-weight: 700; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 18px; padding-left: 22px; }
.blog-post-body li { margin-bottom: 8px; }

/* Share row */
.blog-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gr-slate);
}
.blog-share a {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  background: var(--gr-ink); color: #fff;
  border-radius: 50%;
}
.blog-share a:hover { background: var(--gr-teal); }

/* Back-to-blog link */
.blog-back {
  display: inline-block;
  margin-top: 36px;
  font-weight: 700;
  color: var(--gr-teal);
  text-decoration: none;
}
.blog-back:hover { text-decoration: underline; }
