/* ==========================================================================
   blog.css — "Explore Our Latest Blogs" section (4 blog cards)
   Self-contained, includes its own responsive rules.
   ========================================================================== */

.tp-blog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tp-blog__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-green);
}

.tp-blog__title {
  position: relative;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--tp-text);
  padding-bottom: 0.7rem;
}

.tp-blog__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: var(--tp-green);
}

.tp-blog__viewall {
  flex: 0 0 auto;
}

/* ---- Card ---- */
.tp-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.tp-blog-card:hover {
  border-color: rgba(9, 119, 54, 0.35);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.tp-blog-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

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

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

.tp-blog-card__cat {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tp-white);
  background: var(--tp-green);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tp-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.2rem 1.25rem 1.25rem;
}

.tp-blog-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tp-text);
}

.tp-blog-card__title a {
  transition: color 0.15s ease;
}

.tp-blog-card__title a:hover {
  color: var(--tp-green);
}

.tp-blog-card__excerpt {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--tp-muted);
  flex: 1 1 auto;
}

.tp-blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--tp-border);
  font-size: 0.82rem;
  color: var(--tp-muted);
}

.tp-blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tp-blog-card__meta img {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Responsive — blog
   ========================================================================== */
@media (max-width: 575.98px) {
  .tp-blog__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
