/* Card-grid redesign of the /windsor-hills-blog/ index -- replaces the
   original single-column stacked list (24 posts one after another read
   badly). Scoped to .blog-grid so it can't affect any other page. */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 24px auto 60px;
  padding: 0 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.blog-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__cat-label {
  color: #ff4157;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
}

/* Beats the site's global Elementor kit rule (.elementor-kit-1176 h3),
   which is more specific (class + type selector) than a bare class and
   would otherwise win regardless of link order. */
.blog-card h3.blog-card__title {
  margin: 8px 0 10px;
  font-family: 'Lato', sans-serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.3;
  text-align: left;
}

.blog-card__title a {
  color: #162541;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: #ff4157;
}

.blog-card__excerpt {
  color: #7d7d7d;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  margin: 0 0 14px;
}

.blog-card__btn {
  align-self: flex-start;
  background: #ff4157;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: 3px;
}

.blog-card__btn:hover {
  background: #162541;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 16px;
  font-family: 'Lato', sans-serif;
}

.blog-pagination__pages {
  display: flex;
  gap: 4px;
}

.blog-pagination__link,
.blog-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 3px;
  color: #162541;
  text-decoration: none;
  font-size: 14px;
}

.blog-pagination__link:hover,
.blog-pagination__num:hover {
  background: #f4f4f4;
}

.blog-pagination__num.is-current {
  background: #ff4157;
  color: #fff;
}
