/* ============================================================
   BLOG LIST — 3 cards per row
   ============================================================ */

.blog-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  padding: 0;
}

/* ── Each article card ── */
.blog-list article.post {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-list article.post:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* ── Thumbnail ── */
.blog-list article.post .post-thumbnail {
  overflow: hidden;
  display: block;
  height: 180px;
  flex-shrink: 0;
}

.blog-list article.post .post-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-list article.post:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* ── Entry header ── */
.blog-list article.post .entry-header {
  padding: 14px 16px 6px;
}

/* ── Post title ── */
.blog-list article.post .entry-title,
.blog-list article.post h1.entry-title,
.blog-list article.post h2.entry-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 6px !important;
  color: #222222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-list article.post .entry-title a,
.blog-list article.post h1.entry-title a,
.blog-list article.post h2.entry-title a {
  color: #222222 !important;
  text-decoration: none;
  font-size: 14px !important;
  transition: color 0.2s ease;
}

.blog-list article.post .entry-title a:hover,
.blog-list article.post h1.entry-title a:hover,
.blog-list article.post h2.entry-title a:hover {
  color: #0a8a7c !important;
}

/* ── Hide "Leave a reply" link ── */
.blog-list article.post .entry-content a[href*="respond"],
.blog-list article.post .entry-summary a[href*="respond"],
.blog-list article.post .reply-link {
  display: none !important;
}

/* ── Entry summary ── */
.blog-list article.post .entry-summary {
  padding: 0 16px 12px;
  flex: 1;
}

.blog-list article.post .entry-summary p {
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #666666;
  margin: 0 !important;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Entry content (fallback) ── */
.blog-list article.post .entry-content {
  padding: 0 16px 12px;
  flex: 1;
}

.blog-list article.post .entry-content p {
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #666666;
  margin: 0 !important;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Entry footer / meta ── */
.blog-list article.post .entry-footer,
.blog-list article.post .entry-meta {
  font-size: 11px;
  color: #999999;
  padding: 10px 16px 12px;
  border-top: 1px solid #eeeeee;
  margin-top: auto;
  line-height: 1.55;
  background: #f9f9f9;
}

.blog-list article.post .entry-footer a,
.blog-list article.post .entry-meta a {
  color: #0a8a7c;
  text-decoration: none;
  font-weight: 600;
}

.blog-list article.post .entry-footer a:hover,
.blog-list article.post .entry-meta a:hover {
  color: #066b60;
  text-decoration: underline;
}

/* ============================================================
   PAGINATION NAV — #nav-below.navigation
   <div class="nav-previous"> ← Older posts
   <div class="nav-next">     Newer posts →
   ============================================================ */

#nav-above,
#nav-below {
  grid-column: 1 / -1;        /* span full width inside .blog-list grid */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-top: 8px;
  border-top: 1px solid #e0e0e0;
}

/* Hide the assistive h3 visually */
#nav-above .assistive-text,
#nav-below .assistive-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Both nav buttons */
#nav-above .nav-previous a,
#nav-above .nav-next a,
#nav-below .nav-previous a,
#nav-below .nav-next a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #0a8a7c;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

#nav-above .nav-previous a:hover,
#nav-above .nav-next a:hover,
#nav-below .nav-previous a:hover,
#nav-below .nav-next a:hover {
  background: #066b60;
  transform: translateY(-1px);
}

/* Arrow span inside the links */
#nav-above .meta-nav,
#nav-below .meta-nav {
  font-style: normal;
  font-size: 14px;
}

/* ── Tablet: 2 per row ── */
@media (max-width: 900px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile: 1 per row ── */
@media (max-width: 560px) {
  .blog-list {
    grid-template-columns: 1fr;
  }

  #nav-above,
  #nav-below {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}