/* ==============================
   POST GRID (FLEXBOX)
================================ */
.ajax-post-grid {
  display: flex;
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
}

.ajax-post-column {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

/* ==============================
   POST CARD
================================ */
.custom-post-card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  width: 33.33%;    
}

/* ==============================
   POST IMAGE
================================ */
.custom-post-card .post-image {
  width: 100%;
  overflow: hidden;
}

.custom-post-card .post-image img {
  width: 100%;
  height: 250px;
  display: block;
  max-height: 250px;
    object-fit: cover;
}

/* ==============================
   POST CONTENT
================================ */
.post-content-wrap {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-title a {
  color: #000000;
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
}

.post-meta {
  font-size: 16px;
  color: #000;
  margin-bottom: 15px;
}

.post-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin-bottom: 15px;
}

/* ==============================
   READ MORE BUTTON
================================ */
.read-more-btn {
  align-self: flex-start;
  background-color: #f2c200;
  color: #000000;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  margin-top: auto;
}

/* ==============================
   CATEGORY PILLS
================================ */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.category-pills a {
  padding: 8px 16px;
  background-color: #f1f1f1;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  color: #000000;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ==============================
   RESPONSIVE
================================ */

/* TABLET */
@media (max-width: 1024px) {
  .ajax-post-grid {
    flex-wrap: wrap;
  }

      .post-title a {
        font-size: 20px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
  .ajax-post-column {
    flex-direction: column;
  }
  .custom-post-card {
      width: 100%;
  }
}
