/* Layout B: clean horizontal */

body.page-homeb {
  background: #f7f7f4;
}

.page-homeb .hero {
  padding: 24px 0 6px;
  background: linear-gradient(180deg, #0d2b55 0%, #143b72 65%, #f7f7f4 100%);
  border-bottom: none;
}

.page-homeb .hero-carousel {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 22px 40px rgba(5, 28, 59, 0.35);
}

.page-homeb .quick-access {
  background: #f7f7f4;
}

.page-homeb .quick-access__head {
  border-bottom: 2px solid #d7d3c7;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.page-homeb .quick-access__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.page-homeb .botao-acesso {
  min-height: 72px;
  border-radius: 10px;
  border: 1px solid #ddd9cd;
  background: #fff;
  box-shadow: none;
  padding: 12px 12px 12px 10px;
  justify-content: flex-start;
  gap: 10px;
}

.page-homeb .botao-acesso i {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--icon-start, #2668c9), var(--icon-end, #2aa4ff));
  flex: 0 0 36px;
}

.page-homeb .botao-acesso span {
  line-height: 1.25;
}

.page-homeb .content-block--noticias .row.news-grid {
  display: block;
}

.page-homeb .content-block--noticias article {
  max-width: none;
  flex: none;
  width: 100%;
  margin-bottom: 14px !important;
}

.page-homeb .news-card {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  border-radius: 12px;
  border: 1px solid #ddd9cd;
  overflow: hidden;
  min-height: 220px;
  align-items: start;
}

.page-homeb .news-card__media {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
}

.page-homeb .news-card--featured .news-card__media {
  height: 240px;
  min-height: 240px;
  max-height: 240px;
}

.page-homeb .news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-homeb .content-block--palestras .talk-card--poster {
  display: grid;
  grid-template-columns: minmax(220px, 220px) minmax(0, 1fr);
  column-gap: 0;
  align-items: stretch;
  border: 1px solid #ddd9cd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-width: none;
}

.page-homeb .content-block--palestras .talk-card--poster .talk-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  height: 100%;
  min-height: 290px;
  padding: 10px;
  background: #101827;
  border-right: 1px solid #ddd9cd;
  overflow: hidden;
  flex-shrink: 0;
}

.page-homeb .content-block--palestras .talk-card--poster .talk-card__img {
  width: 100%;
  height: 100%;
  max-height: 270px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.page-homeb .content-block--palestras .talk-card--poster .talk-card__body {
  min-width: 0;
  padding: 18px 18px 18px 18px;
  background: #fff;
  overflow: hidden;
}

.page-homeb .content-block--palestras .talk-card--poster .talk-card__title,
.page-homeb .content-block--palestras .talk-card--poster .talk-card__excerpt,
.page-homeb .content-block--palestras .talk-card--poster .talk-card__place,
.page-homeb .content-block--palestras .talk-card--poster .talk-card__meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-homeb .tv .row {
  margin-left: -7px;
  margin-right: -7px;
}

.page-homeb .tv .row > [class*="col-"] {
  padding-left: 7px;
  padding-right: 7px;
}

.page-homeb .video-card {
  border: 1px solid #ddd9cd;
  border-radius: 12px;
  overflow: hidden;
}

.page-homeb .video-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.page-homeb .video-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1199px) {
  .page-homeb .quick-access__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .page-homeb .quick-access__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-homeb .hero {
    padding: 10px 0 10px;
  }

  .page-homeb .hero-carousel {
    border-radius: 12px;
  }

  .page-homeb .news-card {
    grid-template-columns: 1fr;
  }

  .page-homeb .news-card__media {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .page-homeb .news-card--featured .news-card__media {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .page-homeb .content-block--palestras .talk-card--poster {
    grid-template-columns: 1fr;
  }

  .page-homeb .content-block--palestras .talk-card--poster .talk-card__media {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    border-right: none;
    border-bottom: 1px solid #ddd9cd;
  }

  .page-homeb .content-block--palestras .talk-card--poster .talk-card__img {
    max-height: none;
  }

  .page-homeb .content-block--palestras .talk-card--poster .talk-card__body {
    padding: 14px 14px 16px;
  }
}
