/* ============================================
   BLOG LISTING PAGE — Divided Sky Roofing + Exteriors
   ============================================ */

/* --- Hide old Zephyr elements --- */
.ds-blog-page .l-header,
.ds-blog-page .w-header,
.ds-blog-page .l-footer,
.ds-blog-page .w-footer,
.ds-blog-page .l-titlebar,
.ds-blog-page .w-toplink,
.ds-blog-page .w-nav,
.ds-blog-page .us-footer,
.ds-blog-page .l-main,
.ds-blog-page .us-footer-terms,
.ds-blog-page .w-footer-terms,
.ds-blog-page [class*="footer-terms"],
.ds-blog-page .us_error_frame,
.ds-blog-page #us_error_frame,
.ds-blog-page [id*="us_error"],
.ds-blog-page .l-section {
  display: none !important;
}

div[style*="position: fixed"][style*="z-index"][style*="right"] {
  display: none !important;
}
.w-footer-terms, .us-footer-terms, footer.us-footer {
  display: none !important;
}


/* ============================================
   HERO
   ============================================ */
.blog-hero {
  background: #1a1a1a;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, 0.55);
  z-index: 1;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 232, 6, 0.15), transparent);
}

.blog-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 16px 0 20px;
  letter-spacing: -0.03em;
}

.blog-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0;
}


/* ============================================
   BLOG LISTING / GRID
   ============================================ */
.blog-listing {
  background: #222222;
  padding: 64px 0 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* --- Card Base --- */
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: rgba(119, 232, 6, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- Featured cards span full width --- */
.blog-card-featured {
  grid-column: span 1;
}

/* First two featured cards side by side, then rest in 2-col grid below */

/* --- Image --- */
.blog-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

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

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

.blog-card-no-image {
  background: rgba(255, 255, 255, 0.02);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Card Body --- */
.blog-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-card-tag {
  display: inline-block;
  background: rgba(119, 232, 6, 0.1);
  color: #77E806;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
}

.blog-card-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.blog-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.blog-card-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: #77E806;
}

.blog-card-featured .blog-card-title {
  font-size: 1.35rem;
}

.blog-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 20px;
  flex: 1;
}

.blog-card-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #77E806;
  text-decoration: none;
  transition: color 0.2s;
  margin-top: auto;
}

.blog-card-link:hover {
  color: #8fff2a;
}


/* ============================================
   PAGINATION
   ============================================ */
.blog-pagination {
  margin-top: 56px;
  text-align: center;
}

.blog-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination li {
  display: inline-block;
}

.blog-pagination a,
.blog-pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.blog-pagination a:hover {
  background: rgba(119, 232, 6, 0.1);
  border-color: rgba(119, 232, 6, 0.3);
  color: #77E806;
}

.blog-pagination .current {
  background: #77E806;
  color: #1a1a1a;
  font-weight: 800;
  border: 1px solid #77E806;
}

/* Prev / Next text links */
.blog-pagination .prev,
.blog-pagination .next {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Page dots (WP uses span.dots for "...") */
.blog-pagination .dots {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ============================================
   EMPTY STATE
   ============================================ */
.blog-empty {
  text-align: center;
  padding: 80px 0;
}

.blog-empty p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
}


/* ============================================
   CTA SECTION
   ============================================ */
.blog-cta {
  background: #1a1a1a;
  padding: 80px 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .blog-hero {
    padding: 120px 0 48px;
  }

  .blog-hero h1 {
    font-size: 2.2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-featured {
    grid-column: span 1;
  }

  .blog-card-featured .blog-card-title {
    font-size: 1.2rem;
  }

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

  .blog-listing {
    padding: 40px 0 60px;
  }

  .blog-cta {
    padding: 60px 0;
  }

  .blog-cta h2 {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 1.8rem;
  }

  .blog-card-title {
    font-size: 1.05rem;
  }

  .blog-pagination ul {
    gap: 4px;
  }

  .blog-pagination a,
  .blog-pagination .current {
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .blog-hero-overlay {
    background: rgba(25, 25, 25, 0.45);
  }
}
