@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

body {
  overflow-x: hidden;
}

.swiper-slide {
  width: 312px;
  flex-shrink: 0;
}

.swiper-slide .post-card img {
  max-width: 312px;
  height: 224px;
  object-fit: cover;
  border-radius: 16px;
}

.font-h2 {
  font-family: Roboto Condensed;
  font-weight: 600;
  font-size: 30px;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
}

.font-ver-todos {
  font-family: Roboto Condensed;
  font-weight: 600;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
}

.font-category-filter {
  font-family: Roboto Condensed;
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
}

.font-category {
  font-family: Roboto Condensed;
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;
}

.font-text {
  font-family: Roboto Condensed;
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: 0%;
}


.noticias-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ver-todos {
  color: #f15a29;
  font-weight: bold;
  text-decoration: none;
}

.filtros-categorias {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filtros-categorias .swiper-slide {
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  background: #f5f5f5;
  color: #f15a29;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.swiper-categorias .swiper-slide.ativo {
  background: #f15a29;
  color: #fff;
}
/*.swiper-categorias .swiper-slide {
  white-space: nowrap; 
  width: auto !important; 
}*/

.swiper-categorias .swiper-slide {
  padding: 6px 14px;
  border-radius: 20px;
  background: #f5f5f5;
  color: #f15a29;
  font-weight: bold;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  white-space: nowrap; /* ✅ evita quebra */
  width: auto !important; /* ✅ se o Swiper estiver impondo width */
  display: inline-block;
  text-align: center;
  cursor: pointer;
}


.noticias-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.noticias-main {
  flex: 2;
}

.noticias-lateral {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* grid 2 colunas */
.noticias-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Post grandes (grid-2) */
.noticias-grid-2 .post-card img {
  max-width: 398px;
  height: 258px;
  object-fit: cover;
  border-radius: 16px;
}

/* Post médios (grid-3) */
.noticias-grid-3 .post-card img {
  max-width: 261px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

/* Post lateral (já existente e correto) */
.noticias-lateral .post-card img {
  max-width: 224px;
  height: 176px;
  object-fit: cover;
  border-radius: 16px;
}


/* grid 3 colunas */
.noticias-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
  grid-auto-rows: auto;
  overflow: hidden;
}

.noticias-grid-3 .post-card {
  min-height: unset;
}

/* post padrão */
.post-card {
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.post-info {
  padding: 12px;
}

.noticias-lateral .post-card {
  flex-direction: row;
  height: 176px;
}

.noticias-lateral .post-card img {
  width: 224px;
  height: 176px;
  object-fit: cover;
  border-radius: 16px;
}

.noticias-lateral .post-info {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.noticias-lateral .post-info .categoria {
      color: #f15a29;
    font-family: Roboto Condensed;
    font-weight: 700;
    font-size: 16px;
}

.noticias-lateral .post-info .titulo {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.3;
  color: #000;
  text-decoration: none;
}

.noticias-lateral .post-info .meta {
    color: #4B5563;
  display: flex;
  font-family: Roboto Condensed;
font-weight: 500;
font-size: 14px;
gap: 5px;
}


.post-info .categoria {
      color: #f15a29;
    font-family: Roboto Condensed;
    font-weight: 700;
    font-size: 16px;
}
.post-info.p-3 img {
    border-radius: 0px;
}
.post-info .titulo {
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

.post-info .meta {
  color: #4B5563;
  display: flex;
  font-family: Roboto Condensed;
font-weight: 500;
font-size: 14px;
gap: 5px;
}

/* Responsivo */
@media (max-width: 1024px) {
  .noticias-layout {
    flex-direction: column;
  }

  .noticias-grid-2,
  .noticias-grid-3 {
    grid-template-columns: 1fr;
  }

  .noticias-lateral {
    flex-direction: column;
  }
}

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  min-height: 100%;
}

.skeleton-img {
  height: 180px;
  width: 100%;
  border-radius: 12px;
}

.skeleton-line {
  height: 14px;
  width: 80%;
}

.skeleton-line.short {
  width: 40%;
}
.skeleton-categoria {
  height: 36px;
  width: 100px; /* ou ajuste com clamp() se quiser responsivo */
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite linear;
  border-radius: 20px;
  margin-right: 8px; /* espaço entre os "botões" */
  flex-shrink: 0;
}

span.categoria {
    border-radius: 20px;
    padding: 6px 8px;
    background: #f5f5f5;
}

.titulo {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


@media (max-width: 768px) {
  .filtros-categorias {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
  }

  .filtros-categorias button {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .noticias-grid-2,
  .noticias-grid-3 {
    display: none;
  }
  
}

.filtros-categorias {
  overflow-x: auto;
  white-space: nowrap;
  gap: 8px;
}

.filtros-categorias button {
  white-space: nowrap;
  flex-shrink: 0;
}

.noticias-grid-2,
.noticias-grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.noticias-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.noticias-lateral {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: #fff;
  border-radius: 16px;
}

.post-card img {
  width: 100%;
  object-fit: cover;
}

.swiper-slide {
  width: 312px;
  flex-shrink: 0;
}

.swiper-slide .post-card img {
  max-width: 100%;
  height: 224px;
}

@media (min-width: 768px) {
  #noticias-carousel-mobile {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .noticias-carousel-wrapper {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .noticias-layout {
    display: block;
  }
}
