@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&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}

.title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-family: Roboto Condensed;
  font-weight: 600;
  font-size: 36px;
  line-height: 120%;
  letter-spacing: 0%;
  padding-top: 20px;
}

a:hover {
  /* color: #0a58ca; */
}

.subtitle {
  color: #666;
  font-family: Poppins;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;

}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

}

div#dividerTop,
div#dividerBottom {
  margin: 30px 0;
}

/* ===== CARD ===== */
.card {
  border-radius: 8px;
  text-align: left;
  --bs-border-width: 0px;
  border: none;
}

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

.card.pequeno .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-family: Roboto Condensed;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;

}

/* ===== DIFERENTES TIPOS ===== */

.span3 {
  grid-column: span 3;
}

.card.anuncio {
  grid-column: span 1;
}

.card.anuncio img{
      max-height: 420px;
    object-fit: contain;
}

/* ===== GRANDE: layout padrão (mobile) ===== */
.card.grande .grande-inner {
  display: block;
}

.card.grande .grande-img {
  width: 100%;
  margin-bottom: 1rem;
}

.card.grande .grande-info {
  display: flex;
  flex-direction: column;
}

.card.grande h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.likes {
  font-family: Roboto Condensed;
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0%;
  color: #4B5563;

}

.card.grande .tag {
  padding: 10px;
  min-width: 69px;
  height: 27px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #9766FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Roboto Condensed;
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;

}

.card.grande .meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #777;
}

/* ===== DESKTOP (mín. 768px para garantir espaço) ===== */
@media (min-width: 768px) {
  .card.grande .grande-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
  }

  .card.grande .grande-img {
    width: 100%;
    max-width: 489px;
    height: 432px;
    margin-bottom: 0;
  }

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

  .card.grande .grande-info {
    flex: 1;
    justify-content: center;
  }

  .card.grande .meta {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

/* ===== MOBILE: grid de 2 colunas, todos cards empilhados ===== */
@media (max-width: 767px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card,
  .card.grande,
  .card.pequeno,
  .card.anuncio,
  .span3 {
    grid-column: span 1 !important;
  }
}

.card.grande .grande-info p {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0.5rem 0;
}

/* container da tag e data */
.card.grande .top-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card.pequeno .top-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card.pequeno .tag {
  padding: 10px;
  min-width: 69px;
  height: 27px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #9766FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Roboto Condensed;
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;

}

.card.pequeno .top-info .date {
  font-size: 0.8rem;
  color: #666;
  font-family: Roboto Condensed;
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0%;

}

.card.pequeno h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* estilo da data (alinhada à direita) */
.card.grande .top-info .date {
  font-size: 0.8rem;
  color: #666;
  font-family: Roboto Condensed;
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0%;

}

/* ajustes no título para manter máximo 2 linhas */
.card.grande h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* descrição já está limitada a 6 linhas */
.card.grande .grande-info p {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0.5rem 0;
  font-family: Roboto Condensed;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;

}

/* ===== IMAGEM PEQUENA ===== */
.card.pequeno .img-pequena {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  max-width: 100%;
  margin-bottom: 10px;
}

/* DESKTOP: limita o tamanho da imagem */
@media (min-width: 768px) {
  .card.pequeno .img-pequena {
    max-width: 302px;
    max-height: 225px;
    width: 100%;
    height: auto;
  }
}

/* ======== IMAGENS ======== */

/* Pequenas - padrão */
.card.pequeno .img-pequena {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  max-width: 100%;
  margin-bottom: 10px;
}

/* Grandes - já aplicadas dentro do layout */
.card.grande .grande-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}


/* ========== DESKTOP ========== */
@media (min-width: 768px) {
  .card.pequeno .img-pequena {
    max-width: 360px;
    max-height: 225px;
  }

  /* Descrição do post grande: até 6 linhas */
  .card.grande .grande-info p {
    -webkit-line-clamp: 6;
  }
}

/* ========== MOBILE ========== */
@media (max-width: 767px) {

  .card .img-pequena,
  .card.grande .grande-img img {
    width: 100%;
    height: 146px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Todos os textos no mobile com 2 linhas */
  .card h3,
  .card .excerpt,
  .card.grande .grande-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card.pequeno .img-pequena {
    width: 100%;
    height: 146px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    max-width: 100%;
    margin-bottom: 10px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.page-btn,
.arrow-btn {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  color: #000;
  cursor: pointer;
  transition: background 0.2s ease;
}

.page-btn.active,
.arrow-btn:not(.disabled) {
  background: #f3f4f6;
}

.page-btn.active {
  color: #9766FF;
  font-weight: bold;
}

.arrow-btn img {
  width: 24px;
  height: 24px;
}

.arrow-btn.disabled {
  opacity: 0.5;
  cursor: default;
}

.dots {
  font-size: 1rem;
  color: #999;
  padding: 0 0.25rem;
}

.skeleton {
  background: #f6f6f6;
  animation: pulse 1.2s ease-in-out infinite;
}

.skeleton-box {
  background: #ddd;
  border-radius: 8px;
  height: 200px;
  width: 100%;
}

.skeleton-line {
  height: 14px;
  background: #ddd;
  border-radius: 4px;
  margin: 10px 0;
}

.skeleton-line.w-50 {
  width: 50%;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-line.w-75 {
  width: 75%;
}

.skeleton-line.w-100 {
  width: 100%;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

.skeleton-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 2rem 0;
  border-radius: 0;
}

.breadcrumb span {
  display: flex;
  font-family: Roboto Condensed;
  font-weight: 400;
  font-size: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 16px;
  color: #000;
  padding-top: 90px !important;
}

.breadcrumb a {
  color: #000;
  text-decoration: none;
  font-weight: 400;
}

.breadcrumb span {
  font-weight: bold;
}

.breadcrumb-separator {
  width: auto;
  height: auto;
  vertical-align: middle;
  margin: 0 4px;
}

@media (max-width: 767px) {
  .breadcrumb {
    padding-top: 70px !important;
  }
}