/* Wrapper */
.ces-ev-archive { width: 100%; }
.ces-ev-archive.is-loading { opacity: .6; pointer-events: none; transition: opacity .15s ease; }

/* List + row grid */
.ces-ev-list { display: grid; gap: 40px; }

.ces-ev-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* media | body */
  gap: 24px;
  align-items: stretch;
}

/* Media */
.ces-ev-media { position: relative; }
.ces-ev-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

/* Body: pin CTA to bottom via grid rows */
.ces-ev-body {
  display: grid;
  grid-template-rows:
    auto      /* title */
    auto      /* sep */
    minmax(0,1fr) /* text (expands) */
    auto      /* sep */
    auto      /* date/time line (optional) */
    auto      /* sep (optional) */
    auto      /* venue line (optional) */
    auto      /* sep (optional) */
    auto;     /* CTA at bottom */
  gap: 10px;
  height: 100%;
}

/* Title */
.ces-ev-title {
  margin: 0;
  font-family: "Manrope", Sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  color: #000000;
}
.ces-ev-title a { color: #000000; text-decoration: none; }
.ces-ev-title a:hover { text-decoration: none; }

/* 80% red divider */
.ces-ev-sep {
  height: 1px;
  background: #9E0303;
  width: 80%;
}

/* Text */
.ces-ev-text {
  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;
}

/* Meta lines */
.ces-ev-meta {
  font-family: "Manrope", Sans-serif;
  color: #000000;
  font-weight: 400;
  font-size: 14px;
}

/* CTA */
.ces-ev-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-ev-btn:hover { color: #9E0303;}
.ces-ev-btn-icon svg { display: block; width: 18px; height: 18px; transition: transform .3s ease; }
.ces-ev-btn:hover .ces-ev-btn-icon svg { transform: translateX(6px); }

/* Empty */
.ces-ev-empty { font-family: "Manrope", Sans-serif; font-size: 16px; color: #444; }
.ces-ev-rows {
  margin-top: 80px;
}
/* Pagination (matches posts archive look) */
.ces-ev-pagination { margin-top: 16px; text-align: center; }
.ces-ev-pagination .page-numbers {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ces-ev-pagination .page-numbers li { list-style: none; }
.ces-ev-pagination a,
.ces-ev-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-ev-pagination .current { background: #9E0303; color: #fff; }

/* ===== Smaller desktops (≤ 1400px) ===== */
@media (max-width: 1400px) {
  .ces-ev-row   { gap: 20px; }
  .ces-ev-title { font-size: 26px; }
  .ces-ev-text  { font-size: 17px; }
}

/* ===== Laptops (≤ 1200px) ===== */
@media (max-width: 1200px) {
  .ces-ev-row   { gap: 18px; grid-template-columns: 1fr 1fr; }
  .ces-ev-title { font-size: 24px; }
  .ces-ev-text  { font-size: 16px; }
}

/* ===== Tablets landscape (≤ 992px) ===== */
@media (max-width: 992px) {
  .ces-ev-row   { grid-template-columns: 1fr; gap: 16px; }
  .ces-ev-title { font-size: 22px; }
  .ces-ev-text  { -webkit-line-clamp: 4; }
  .ces-ev-sep   { width: 100%; } /* full width on narrow screens */
}

/* ===== Tablets portrait (≤ 768px) ===== */
@media (max-width: 768px) {
  .ces-ev-title { font-size: 20px; }
}

/* ===== Phones (≤ 576px) ===== */
@media (max-width: 576px) {
  .ces-ev-list  { gap: 14px; }
  .ces-ev-title { font-size: 18px; }
  .ces-ev-text  { font-size: 15px; -webkit-line-clamp: 5; }
}
