/* ========================================
   BLOG STYLES - Green's Tree Service LLC
======================================== */

/* Blog Hero */
html,
body {
  overflow-x: clip;
}

.blog-hero {
  background: linear-gradient(135deg, rgba(10, 60, 30, 0.92) 0%, rgba(20, 80, 45, 0.88) 100%);
  color: white;
  padding: 140px 0 50px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

.blog-hero p {
  font-size: 17px;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
}

/* Blog Container */
.blog-container {
  max-width: 900px;
}

/* Blog Listing */
.blog-listing {
  padding: 48px 0 64px;
  background: var(--bg-light);
  min-height: 50vh;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Blog Card */
.blog-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card-body {
  padding: 28px 32px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.3;
}

.blog-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-read-more {
  gap: 10px;
}

/* Blog Tag */
.blog-tag {
  display: inline-block;
  background: var(--bg-cream);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: capitalize;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all 0.15s ease;
}

.blog-page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.blog-page-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========================================
   SINGLE POST
======================================== */
.blog-post {
  padding: 120px 0 64px;
}

.blog-post-header {
  margin-bottom: 32px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
  transition: gap 0.15s ease;
}

.blog-back-link:hover {
  gap: 10px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.blog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-post-header h1 {
  font-size: 36px;
  line-height: 1.2;
  color: var(--text-dark);
}

/* Post Content Prose */
.blog-post-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
}

.blog-post-content h2 {
  font-size: 24px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.blog-post-content h3 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.blog-post-content p {
  margin-bottom: 16px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-post-content li {
  margin-bottom: 6px;
}

.blog-post-content strong {
  font-weight: 600;
  color: var(--text-dark);
}

.blog-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.blog-post-content code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 16px;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.blog-post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post-content a:hover {
  color: var(--primary-dark);
}

/* Author Byline (in post meta) */
.blog-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-author-link:hover {
  color: var(--primary);
}

.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}

.blog-meta-sep {
  color: var(--text-light);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.blog-card-author {
  font-weight: 600;
  color: var(--text-dark);
}

/* Author Box (bottom of post) */
.blog-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.blog-author-box-avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s;
  border: 2px solid var(--border);
}

.blog-author-box-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.blog-author-box-avatar:hover {
  transform: scale(1.05);
}

.blog-author-box-info {
  flex: 1;
}

.blog-author-box-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 600;
}

.blog-author-box-name {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.blog-author-box-name:hover {
  color: var(--primary);
}

.blog-author-box-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Author Page */
.author-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.author-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.4);
}

.author-hero-role {
  opacity: 0.8;
  font-size: 16px;
}

.author-bio-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 36px;
}

.author-bio-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.author-bio-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.author-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.author-posts-header h2 {
  font-size: 22px;
  color: var(--text-dark);
}

.author-post-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 50px;
}

/* Post Footer CTA */
.blog-post-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.blog-cta-box {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.blog-cta-box h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.blog-cta-box p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

/* ========================================
   BLOG FIGURES & IMAGES
======================================== */
.blog-figure {
  margin: 0;
}

.blog-figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.blog-figure figcaption {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 7px;
  line-height: 1.45;
  text-align: center;
}

/* Float-right single image */
.blog-figure--right {
  float: right;
  margin: 4px 0 20px 28px;
  max-width: 300px;
  width: 45%;
}

/* Two-up side-by-side row */
.blog-figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
  clear: both;
}

.blog-clearfix {
  clear: both;
  display: block;
  height: 0;
}

/* ========================================
   HIGHLIGHT
======================================== */
mark.blog-hl {
  background: #fff3bf;
  color: inherit;
  padding: 1px 3px;
  border-radius: 2px;
}

/* ========================================
   WIDE CONTAINER (post page)
======================================== */
.blog-container-wide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ========================================
   POST FEATURED IMAGE
======================================== */
.blog-post-hero-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 440px;
}
.blog-post-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* ========================================
   TWO-COLUMN LAYOUT WITH SIDEBAR
======================================== */
.blog-content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ========================================
   STICKY SIDEBAR
======================================== */
.blog-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blog-sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.blog-sidebar-cta-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 24px 20px;
  color: white;
}

.blog-sidebar-cta-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-sidebar-cta-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  margin-bottom: 14px;
}

.blog-sidebar-cta-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
}

.blog-sidebar-cta-btn {
  display: block;
  background: #e5841b;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}

.blog-sidebar-cta-btn:hover { background: #c96e10; }

.blog-sidebar-coming-soon {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-sidebar-related-placeholder {
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ========================================
   BLOG CARD WITH IMAGE
======================================== */
.blog-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.03);
}

.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ========================================
   AUTHOR CREDENTIAL PILLS
======================================== */
.author-cred-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}

.author-cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

.author-cred-pill svg { color: #7ee8a2; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
  .blog-content-with-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .blog-sidebar {
    width: 100%;
  }

  .blog-hero {
    padding: 120px 0 40px;
  }

  .blog-post {
    padding: 100px 0 48px;
  }

  .blog-hero h1 {
    font-size: 28px;
  }

  .blog-card-body {
    padding: 20px 22px;
  }

  .blog-card h2 {
    font-size: 19px;
  }

  .blog-post-header h1 {
    font-size: 26px;
  }

  .blog-post-content h2 {
    font-size: 20px;
  }

  .blog-cta-box {
    padding: 24px 20px;
  }

  .blog-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .author-hero-avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }

  .author-bio-section {
    padding: 22px 20px;
  }

  .author-posts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .blog-figure--right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
  }

  .blog-figure-row {
    grid-template-columns: 1fr;
  }
}
