/* =========================================================
ECJ SECCIÓN DE NOTICIAS
========================================================= */

.ecj-news-section,
.ecj-news-section * {
  box-sizing: border-box;
}

.ecj-news-section {
  --ecj-news-width: 66%;
  --ecj-sidebar-width: 34%;

  width: 100%;

  display: grid;
  grid-template-columns:
    minmax(0, var(--ecj-news-width))
    minmax(280px, var(--ecj-sidebar-width));

  gap: 22px;

  align-items: start;

  font-family: inherit;
}

.ecj-news-section-full {
  position: relative;

  width: 100vw;
  max-width: none;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding-left: 16px;
  padding-right: 16px;
}

.ecj-news-section-no-sidebar {
  grid-template-columns: 1fr;
}

/* =========================================================
ENCABEZADO
========================================================= */

.ecj-news-heading {
  margin-bottom: 4px;

  border-bottom: 3px solid #0b1f33;
}

.ecj-news-heading h2 {
  margin: 0;

  padding: 0 0 9px;

  color: #0b1f33;

  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.35px;
}

/* =========================================================
LISTA
========================================================= */

.ecj-news-list {
  width: 100%;
}

.ecj-news-row {
  min-width: 0;

  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);

  gap: 17px;

  padding: 14px 0;

  border-bottom: 1px solid #dfe6eb;
}

/* IMAGEN */

.ecj-news-thumb {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 10;

  overflow: hidden;

  display: block;

  border-radius: 5px;

  background: #edf1f4;

  text-decoration: none !important;
}

.ecj-news-thumb img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform .25s ease;
}

.ecj-news-row:hover .ecj-news-thumb img {
  transform: scale(1.025);
}

.ecj-news-no-image {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #8a98a4;

  font-size: 11px;
  font-weight: 600;
}

/* TEXTO */

.ecj-news-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;

  justify-content: center;
}

.ecj-news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 5px;

  color: #778591;

  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}

.ecj-news-category {
  color: #178dcc;

  text-transform: uppercase;

  letter-spacing: .4px;
}

.ecj-news-date::before {
  content: "•";
  margin-right: 8px;

  color: #b4bec6;
}

.ecj-news-title {
  margin: 0;

  color: #0b1f33;

  font-size: 20px;
  line-height: 1.12;
  font-weight: 800;

  letter-spacing: -.3px;
}

.ecj-news-title a {
  color: #0b1f33 !important;

  text-decoration: none !important;
}

.ecj-news-title a:hover {
  color: #178dcc !important;
}

.ecj-news-excerpt {
  margin: 7px 0 0;

  color: #536474;

  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

/* =========================================================
SIDEBAR
========================================================= */

.ecj-news-sidebar {
  min-width: 0;

  position: sticky;
  top: 16px;

  overflow: hidden;

  background: #fff;

  border: 1px solid #dfe6eb;
  border-radius: 6px;
}

.ecj-sidebar-heading {
  padding: 11px 14px;

  border-bottom: 1px solid #dfe6eb;
  border-top: 3px solid #2faef3;

  color: #0b1f33;

  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
}

.ecj-sidebar-content {
  min-width: 0;

  padding: 12px;
}

.ecj-sidebar-content > *:first-child {
  margin-top: 0 !important;
}

.ecj-sidebar-content > *:last-child {
  margin-bottom: 0 !important;
}

.ecj-news-empty {
  padding: 24px 0;

  color: #788691;

  font-size: 14px;
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 980px) {

  .ecj-news-section {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }

  .ecj-news-row {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
  }

  .ecj-news-title {
    font-size: 18px;
  }

  .ecj-news-excerpt {
    font-size: 12px;
  }
}

/* =========================================================
MÓVIL
========================================================= */

@media (max-width: 760px) {

  .ecj-news-section,
  .ecj-news-section-full {
    grid-template-columns: 1fr;

    padding-left: 8px;
    padding-right: 8px;
  }

  .ecj-news-sidebar {
    position: static;
  }

  .ecj-news-heading h2 {
    font-size: 21px;
  }

  .ecj-news-row {
    grid-template-columns: 120px minmax(0, 1fr);

    gap: 11px;

    padding: 11px 0;
  }

  .ecj-news-title {
    font-size: 15px;
    line-height: 1.17;
  }

  .ecj-news-excerpt {
    margin-top: 5px;

    font-size: 11px;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
  }

  .ecj-news-meta {
    font-size: 8px;
  }
}

/* =========================================================
MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 430px) {

  .ecj-news-row {
    grid-template-columns: 105px minmax(0, 1fr);

    gap: 9px;
  }

  .ecj-news-title {
    font-size: 14px;
  }

  .ecj-news-excerpt {
    -webkit-line-clamp: 2;
  }
}
