.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO: mostrar só o slide ativo */
.hero-slide { display: none; }
.hero-slide.active { display: block; }


/* Hero Banner */
.hero-banner {
  margin: 2rem 0;
}

.hero-banner .container {
  position: relative;
}

.hero-slide {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 450px;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content-noticias {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 3rem 2rem 2rem;
  color: white;
}

.hero-content-noticias h1 {
    font-family: 'Montserrat';
    font-size: 54px;
    font-weight: 600;
    line-height: 120%;
    max-width: 900px;
    margin-bottom: 1.5rem;
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #9a2686;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Recent Articles */
.recent-articles {
  margin: 4rem 0;
}

.recent-articles h2 {
    font-family: 'Montserrat';
    font-size: 54px;
    line-height: 120%;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1c1c1c;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.small-articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Removed box styles for article cards in recent-articles */
.article-card {
  background: transparent; /* Changed from white */
  border-radius: 0; /* Changed from 15px */
  overflow: hidden;
  box-shadow: none; /* Changed from 0 4px 20px rgba(0, 0, 0, 0.1) */
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: none; /* Removed translateY(-5px) */
  box-shadow: none; /* Removed 0 8px 30px rgba(0, 0, 0, 0.15) */
}

.article-card.large {
  display: flex;
  flex-direction: column;
}

.article-card.small {
  display: flex;
  flex-direction: row;
  height: 180px;
}

.article-card.small img {
  width: 267px;
  height: 90%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px; /* Adicionado para arredondar os cantos */
}

.article-card.featured {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 2rem;
}

.article-card.featured img {
  width: 35rem;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px; /* Adicionado para arredondar os cantos */
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px; /* Adicionado para arredondar os cantos */
}

.article-content {
  padding: 1.5rem;
  flex: 1;
  position: relative;
}

.article-meta {
    font-family: 'Open Sans';
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
    margin-top: -1rem;
    line-height: 20px;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: #9a2686;
}
.article-meta .author {
  font-weight: 500;
}

.article-meta .date {
  color: #9a2686;
}

.article-card h3 {
    font-family: 'Montserrat';
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #1c1c1c;
    line-height: 32px;
    max-width: 550px;
}
.article-card p {
    font-family: 'Open Sans';
    font-size: 16px;
    color: #1c1c1c;
    line-height: 24px;
    margin-bottom: 5px;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
    font-family: 'Open Sans';
    color: #9a2686;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

/* Specific styling for different categories */
.tag.categoria-x {
  color: #293992;
  background: #EAEDFF;
}

.tag.categoria-z {
  color: #9a2686;
  background: #FFE7FB;
}

.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.read-more:hover svg {
  transform: translateX(2px);
}

/* All Articles */
.all-articles {
  margin: 4rem 0;
}

.all-articles h2 {
	font-family: 'Montserrat';
    font-size: 54px;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 120%;
    color: #1c1c1c;
}

.articles-grid-all {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.articles-grid-all .article-card {
  display: flex;
  flex-direction: column;
}

.articles-grid-all .article-card img {
  height: 200px;
}

/* Specific styling for all-articles section to align arrows with text */
.articles-grid-all .article-content {
  position: relative;
  padding: 1.5rem;
}

.articles-grid-all .article-card h3 {
    font-family: 'Montserrat';
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    display: flex
;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 7px;
}
.articles-grid-all .read-more {
  position: static;
  flex-shrink: 0;
  margin-top: 0;
  align-self: flex-start;
}

/* Pagination */
/* ===== Pagination (final, consistente) ===== */
.pagination{
  display:flex;
  justify-content:center; /* tudo no centro */
  align-items:center;     /* alinhamento vertical */
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;        /* evita quebrar feio em telas pequenas */
}

/* containers sem visual extra */
.pagination-btn,
.pagination-numbers{ display:flex; align-items:center; gap:.5rem; margin:0; padding:0; }

/* Mesma “caixa” para números e prev/next */
.pagination-number,
.pagination-btn a{
  box-sizing: border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;             /**/
  line-height:1;
 /* border:1px solid #e5e7eb;
  border-radius:8px; 
  background:#fff;*/
  color:#374151;
  font-size:.875rem;
  font-weight:600;
  text-decoration:none;
  transition:all .2s ease;
	min-width: 40px;  
	padding: 0 .5rem; 
}

/* Larguras/paddings */
.pagination-number {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;                 /* alguns temas dão margin no button */
  vertical-align: middle;    /* por via das dúvidas */
}
.pagination-btn a{ vertical-align: middle; }          /* texto + ícone */
.pagination-btn a svg{ display:block; flex-shrink:0; }

.pagination-number::-moz-focus-inner { border: 0; padding: 0; }

/* Estados */
.pagination-number:hover,
.pagination-btn a:hover{ background:#f9fafb; border-color:#d1d5db; }
.pagination-number.active,
.pagination-number[disabled]{ background:#9a2686; border-color:#9a2686; color:#fff; cursor:default; }

/* Dots com a mesma altura */
.pagination-dots{
  box-sizing: border-box;
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px;
  color:#9ca3af; font-weight:700;
}

.pagination .active {
  position: static !important;
  top: 0 !important;
  transform: none !important;
  margin-top: 0 !important;
  box-shadow: none;
}


/* Responsive Design */
@media (max-width: 768px) {
  /* Hero */
  .hero-content-noticias h1 {
    font-size: 1.75rem;
  }

  /* Articles */
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .small-articles {
    gap: 1rem;
  }

  .article-card.small {
    flex-direction: column;
    height: auto;
  }

  .article-card.small img {
    width: 100%;
    height: 200px;
  }

  .article-card.featured {
    flex-direction: column;
  }

  .article-card.featured img {
    width: 100%;
    height: 200px;
  }

   .articles-grid-all {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }

  .articles-grid-all .article-card {
    flex: 0 0 80%; /* cada card ocupa 80% da largura da tela */
    scroll-snap-align: start;
  }
  /* Reset mobile styles for all-articles h3 */
  .articles-grid-all .article-card h3 {
    display: block;
  }

  .articles-grid-all .read-more {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  /* Pagination */
 .pagination{ gap:.75rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content-noticias h1 {
    font-size: 1.5rem;
  }
	.pagination-number{ min-width:36px; height:36px; font-size:.8125rem; }
  .pagination-btn a{ height:36px; padding:0 .75rem; }
}

/* Additional responsive adjustments */
@media (max-width: 1024px) {
  .articles-grid-all {
    grid-template-columns: repeat(2, 1fr);
  }
}
