.ces-news-wrap { position: relative; }

.ces-news-swiper { width: 100%; height: 100%; }

.ces-news-card {
  height: 100%;
}

.ces-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch; /* was start; needed so right column can fill height */
}

.ces-news-media { position: relative; }
.ces-news-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}

/* Make the right column fill and let the button pin to bottom */
.ces-news-body {
  display: grid;
  gap: 10px;
  min-height: 100%;
  grid-auto-rows: min-content;              /* compact rows for title/date/excerpt */
  grid-template-rows: auto auto 1fr auto;   /* title | date | excerpt flex | button */
}

/* Also works even if the grid collapses for some reason */
.ces-news-btn { margin-top: auto; }

.ces-news-title {
  margin: 0;
  font-family: "Manrope", Sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
}
.ces-news-title a { color: #9E0303; text-decoration: none; }
.ces-news-title a:hover { text-decoration: none; }

.ces-news-date {
  font-family: "Manrope", Sans-serif;
  color: #000000;
  font-weight: 400;
  font-size: 12px;
}

.ces-news-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;
}

.ces-news-btn {
  display: inline-flex !important;
  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-news-btn-icon svg {
  transition: transform .3s ease;
}
.ces-news-btn:hover {
  color: #9E0303;
}
.ces-news-btn:hover svg {
  transform: translateX(10px);
}
.ces-news-btn-icon svg { display: block; width: 18px; height: 18px; }

.ces-news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #9E0303;
  cursor: pointer;
  transition: transform .3s ease;
}
.ces-news-arrow:hover {
    color: #9E0303;
}

.ces-news-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Position with your chosen offsets */
.ces-news-arrow.ces-prev { left: -45px; }
.ces-news-arrow.ces-next { right: -45px; }

.ces-news-arrow:focus-visible { outline: 2px solid #9E0303; outline-offset: 2px; }

/* ===== Smaller desktops (≤ 1400px) ===== */
@media (max-width: 1400px) {
  .ces-news-grid { gap: 22px; }
  .ces-news-title { font-size: 26px; }
  .ces-news-excerpt { font-size: 17px; }
  .ces-news-btn { font-size: 17px; }
  .ces-news-btn-icon svg { width: 18px; height: 18px; }
}

/* ===== Laptops (≤ 1200px) ===== */
@media (max-width: 1200px) {
  .ces-news-grid { gap: 20px; }
  .ces-news-title { font-size: 24px; }
  .ces-news-excerpt { font-size: 16px; }
  .ces-news-btn { font-size: 16px; }
}

/* ===== Tablets landscape (≤ 992px) ===== */
@media (max-width: 992px) {
  .ces-news-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .ces-news-title { font-size: 22px; }

}

/* ===== Tablets portrait (≤ 768px) ===== */
@media (max-width: 768px) {
  .ces-news-grid { grid-template-columns: 1fr; gap: 16px; }
  .ces-news-title { font-size: 20px; }
  .ces-news-excerpt { -webkit-line-clamp: 4; }
  .ces-news-btn { font-size: 15px; }
}

/* ===== Phones (≤ 576px) ===== */
@media (max-width: 576px) {
  .ces-news-grid { padding: 16px; gap: 14px; }
  .ces-news-title { font-size: 18px; }
  .ces-news-excerpt { font-size: 14px; -webkit-line-clamp: 4; }
  .ces-news-btn-icon svg { width: 16px; height: 16px; }
  .ces-news-btn { font-size: 14px; }
}
