.ceys-news-inline-image {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 8px 8px;
  border-radius: 8px;
  vertical-align: middle;
}

figure.ceys-news-inline-image.alignnone {
  width: auto !important;
  max-width: 320px !important;
}

.ceys-news-inline-image.alignleft {
  float: left;
  max-width: min(48%, 420px);
  margin: 6px 24px 18px 0;
}

.ceys-news-inline-image.alignright {
  float: right;
  max-width: min(48%, 420px);
  margin: 6px 0 18px 24px;
}

.ceys-news-inline-image.aligncenter {
  display: block;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ceys-news-inline-image img {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  border-radius: 8px;
}

.ceys-news-content::after {
  content: "";
  display: block;
  clear: both;
}

.ceys-news-listing,
.ceys-news-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ceys-news-section-head {
  margin: 24px 0 16px;
}

.ceys-news-section-head h2 {
  margin: 0;
  color: #173047;
  font-size: 28px;
  font-weight: 900;
}

.ceys-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ceys-news-grid-home {
  width: 100%;
}

.ceys-home-news-more {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  text-align: center;
}

.ceys-home-news-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  color: #fff;
  background: #1d3a6c;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(29, 58, 108, .2);
}

.ceys-home-news-more a:hover,
.ceys-home-news-more a:focus-visible {
  color: #fff;
  background: #5fb030;
  transform: translateY(-1px);
}

.home .ceys-news-actions a {
  color: #fff !important;
  background: #1d3a6c !important;
}

.home .ceys-news-actions a:hover,
.home .ceys-news-actions a:focus-visible {
  color: #fff !important;
  background: #5fb030 !important;
}

.ceys-news-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 39, 63, .08);
}

.ceys-news-card-media,
.ceys-news-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  color: #fff;
  background: linear-gradient(135deg, #5fb030, #1d3a6c);
  font-weight: 900;
  text-decoration: none;
}

.ceys-news-card-media img,
.ceys-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ceys-news-card-body,
.ceys-news-content {
  padding: 18px;
}

.ceys-news-card-body small,
.ceys-news-meta {
  color: #1d3a6c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ceys-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.ceys-news-card-body h3,
.ceys-news-content h3 {
  margin: 8px 0 10px;
  color: #173047;
  font-size: 20px;
  line-height: 1.25;
}

.ceys-news-card-body h3 a,
.ceys-news-content h3 a {
  color: inherit;
  text-decoration: none;
}

.ceys-news-card-body p,
.ceys-news-content p {
  margin: 0 0 14px;
  color: #4f5f6f;
  line-height: 1.55;
}

.ceys-news-card-link {
  color: #1d3a6c;
  font-weight: 900;
  text-decoration: none;
}

.ceys-news-empty {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto;
  color: #4f5f6f;
}

.single-ceys_noticia .site-main {
  padding-top: 32px;
}

/* CEyS mobile news centering: tarjetas en una columna sin corte lateral. */
@media (max-width: 680px) {
  .ceys-news-listing,
  .ceys-news-grid,
  .ceys-home-news-more {
    width: min(calc(100vw - 32px), 360px) !important;
    max-width: min(calc(100vw - 32px), 360px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ceys-news-grid {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }

  .ceys-news-card,
  .ceys-news-card * {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .ceys-news-card-body h3,
  .ceys-news-content h3,
  .ceys-news-card-body p,
  .ceys-news-content p {
    overflow-wrap: break-word;
  }
}
