/* Wrapper */
.ces-posts-archive { width: 100%; }
.ces-posts-archive.is-loading { opacity: .6; pointer-events: none; transition: opacity .15s ease; }

/* List + row */
.ces-posts-list { display: grid; gap: 40px; }

.ces-posts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch; /* ensures equal-height columns so CTA can pin */
}

/* Media */
.ces-posts-media { position: relative; }
.ces-posts-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

/* Body (make 4-row grid so CTA pins to bottom) */
.ces-posts-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* title, date, excerpt grows, button */
  gap: 10px;
  height: 100%;
}

.ces-posts-title {
  margin: 0;
  font-family: "Manrope", Sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  color: #000000;
}
.ces-posts-title a { color: #000000; text-decoration: none; }
.ces-posts-title a:hover { text-decoration: none; }

.ces-posts-date {
  font-family: "Manrope", Sans-serif;
  color: #000000;
  font-weight: 400;
  font-size: 12px;
}

.ces-posts-excerpt {
  font-family: "Manrope", Sans-serif;
  color: #000000;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button */
.ces-posts-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-family: "Manrope", Sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #9E0303;
  text-decoration: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: transform .3s ease;
}
.ces-posts-btn:hover { color: #9E0303;  }
.ces-posts-btn-icon svg { display: block; width: 18px; height: 18px; transition: transform .3s ease; }
.ces-posts-btn:hover .ces-posts-btn-icon svg { transform: translateX(6px); }
.ces-posts-rows {
  margin-top: 80px;
}
/* Empty */
.ces-posts-empty { font-family: "Manrope", Sans-serif; font-size: 16px; color: #444; }

/* Pagination */
.ces-posts-pagination { margin-top: 16px; text-align: center; }
.ces-posts-pagination .page-numbers {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ces-posts-pagination .page-numbers li { list-style: none; }
.ces-posts-pagination a,
.ces-posts-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #9E0303;
  border-radius: 4px;
  font-family: "Manrope", Sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #9E0303;
}
.ces-posts-pagination .current { background: #9E0303; color: #fff; }

/* ===== Smaller desktops (≤ 1400px) ===== */
@media (max-width: 1400px) {
  .ces-posts-row   { gap: 20px; }
  .ces-posts-title { font-size: 26px; }
  .ces-posts-excerpt { font-size: 17px; }
}

/* ===== Laptops (≤ 1200px) ===== */
@media (max-width: 1200px) {
  .ces-posts-row     { gap: 18px; grid-template-columns: 1fr 1fr; }
  .ces-posts-title   { font-size: 24px; }
  .ces-posts-excerpt { font-size: 16px; }
}

/* ===== Tablets landscape (≤ 992px) ===== */
@media (max-width: 992px) {
  .ces-posts-row   { grid-template-columns: 1fr; gap: 16px; }
  .ces-posts-title { font-size: 22px; }
  .ces-posts-excerpt { -webkit-line-clamp: 4; }
}

/* ===== Tablets portrait (≤ 768px) ===== */
@media (max-width: 768px) {
  .ces-posts-title { font-size: 20px; }
}

/* ===== Phones (≤ 576px) ===== */
@media (max-width: 576px) {
  .ces-posts-list   { gap: 14px; }
  .ces-posts-title  { font-size: 18px; }
  .ces-posts-excerpt { font-size: 15px; -webkit-line-clamp: 5; }
}
