/* =========================
   BLOG LISTING PAGE
========================= */

.blog-listing-page {
  background: #f7f7f7;
  padding: 80px 0;
}

.blog-listing-page .container {
  width: min(1280px, 92%);
  margin: 0 auto;
}

.blog-listing-heading {
  text-align: center;
  margin-bottom: 50px;
}

.blog-section-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 600;
  color: #0f4f7a; /* dental blue tone */
  letter-spacing: 0.5px;
}

/* Grid */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
}

/* Card */
.blog-card {
  background: #ffffff;
  border: 2px solid #e7c96a; /* gold border similar to your section */
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  /*transform: translateY(-6px);*/
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

/* Image */
.blog-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f3f3;
  border-bottom: 1px solid #e8e8e8;
}

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

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

/* No featured image fallback */
.blog-card-image.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f4f7a;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  background: #f8f8f8;
  min-height: 260px;
}

/* Content */
.blog-card-content {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.blog-card-separator {
  opacity: 0.6;
}

.blog-card-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  font-weight: 600;
  color: #0f4f7a;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #0b3f63;
}

.blog-card-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: #2c2c2c;
  margin-bottom: 24px;
  flex: 1;
}

/* Button */
.blog-card-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 24px;
  background: #0e4c77;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid #0e4c77 !important;
  transition: all 0.3s ease;
}

.blog-card-btn:hover, .blog-card-btn:active, .blog-card-btn:focus ,.blog-card-btn:visited{
  background: transparent;
  color: #0f4f7a !important;
  border: 1px solid #0e4c77 !important;
}

/* Pagination */
.blog-pagination {
  margin-top: 50px;
  text-align: center;
}

.blog-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #0f4f7a;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: #0f4f7a;
  color: #fff;
  border-color: #0f4f7a;
}

/* Empty state */
.no-posts-found {
  text-align: center;
  padding: 40px 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199px) {
  .blog-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .blog-listing-page {
    padding: 60px 0;
  }

  .blog-listing-heading {
    margin-bottom: 35px;
  }

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

  .blog-card-content {
    padding: 22px 18px 24px;
  }

  .blog-card-title {
    font-size: 24px;
  }

  .blog-card-excerpt {
    font-size: 16px;
  }
}