.sync-news-list {
  padding: 5px;
  container-type: inline-size;
  container-name: sync-news-list;
}
.sync-news-list,
.sync-news-list * {
  font-family: 'Roboto', ui-sans-serif, system-ui, -apple-system, Segoe UI, Helvetica, Arial;
}
.news-heading {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
}
.sync-news-list .news-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}

.sync-news-list .news-grid>.news-card {
  grid-column: span 3;
}

@container sync-news-list (min-width:500px) and (max-width:768px){
  .sync-news-list .news-grid>.news-card {
    grid-column: span 6;
  }
}
@container sync-news-list (max-width:499px) {
  .sync-news-list .news-grid>.news-card {
    grid-column: span 12;
  }
}
.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}
.news-cover {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
  overflow: hidden;
}
.is-raven .news-cover {
  aspect-ratio: 3 / 4;
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.news-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}
.news-meta .meta-icon {
  display: inline-flex;
  color: #6b7280;
}
.news-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}
.news-title a {
  color: #0f172a;
  text-decoration: none;
}
.news-title a:hover {
  text-decoration: underline;
}
.news-excerpt {
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-actions {
  margin-top: auto;
  padding: 0;
}
.news-actions .btn-orange {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 0 0 10px 10px;
  height: 48px;
  display: flex;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #ef7d00;
  color: #1c1c1c;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}
.news-actions .btn-orange svg {
  margin-left: 8px;
}
.news-card.is-raven .news-excerpt {
  display: none;
}
.news-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.news-pager .pager-btn,
.news-pager .pager-page {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  background: #fff;
}
.news-pager .pager-page.is-current {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}
.news-pager .pager-btn:hover,
.news-pager .pager-page:hover {
  border-color: #9ca3af;
}


/* --- layout switch --------------------------------------------------- */
.sync-news-list.layout-grid .news-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}

.sync-news-list.layout-grid .news-grid>.news-card {
  grid-column: span 3;
}

@container sync-news-list (min-width:500px) and (max-width:768px) {
  .sync-news-list.layout-grid .news-grid>.news-card {
    grid-column: span 6;
  }
}

@container sync-news-list (max-width:499px) {
  .sync-news-list.layout-grid .news-grid>.news-card {
    grid-column: span 12;
  }
}

/* Horizontal (row): um por linha, imagem à esquerda, conteúdo à direita */
.sync-news-list.layout-row .news-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sync-news-list.layout-row .news-card {
  flex-direction: row;
  /* horizontal */
  align-items: stretch;
  min-height: 150px;
}

.sync-news-list.layout-row .news-cover {
  flex: 0 0 280px;
  /* largura fixa da imagem */
  aspect-ratio: 3 / 3;
  max-height: 220px;
}

.sync-news-list.layout-row .news-body {
  flex: 1 1 auto;
  padding: 16px 16px 8px 16px;
}

.sync-news-list.layout-row .news-actions .btn-orange {
  width: auto;
  border-radius: 8px;
  height: 40px;
  padding: 0 16px;
  margin: 8px 10px 10px auto;
  width: 120px;
}

@container sync-news-list (min-width:500px) and (max-width:768px) {

  .sync-news-list.layout-row .news-cover {
    flex-basis: auto;
    width: 20%;
    max-height: none;
    aspect-ratio: 3 / 4;
  }

  .sync-news-list.layout-row .news-body {
    padding-bottom: 50px;
  }
  .sync-news-list.layout-row .news-actions {
    margin-left: -120px;
  }

  .news-actions .btn-orange {
    width: 100%;
    border-radius: 0 0 10px 10px;
  }

}

@container sync-news-list (max-width:499px) {
  .sync-news-list.layout-row .news-card {
    flex-direction: column;
  }

  .sync-news-list.layout-row .news-cover {
    flex-basis: auto;
    width: 100%;
    max-height: none;
    aspect-ratio: 3 / 2;
  }

  .sync-news-list.layout-row .news-actions .btn-orange {
    width: 100%;
    border-radius: 0 0 10px 10px;
    margin: 0;
  }
}