.noticias-section {
  padding: 80px 0 60px;
  background: #0f1117;
  position: relative;
}

.noticias-header {
  text-align: center;
  margin-bottom: 2rem;
}

.noticias-header h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.noticias-header p {
  color: #a0aec0;
  font-size: 1rem;
}

.noticias-header .forum-link {
  color: #22a5e5;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.4rem;
  transition: color 0.2s;
}

.noticias-header .forum-link:hover {
  color: #5bc8ff;
}

/* ── Carrossel ─────────────────────────────────────────────── */
.noticias-carousel-wrapper {
  position: relative;
}

.noticias-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.noticias-carousel::-webkit-scrollbar {
  display: none;
}

/* Botões de navegação */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(22, 27, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
}

.carousel-btn:hover {
  background: rgba(34, 165, 229, 0.25);
  border-color: rgba(34, 165, 229, 0.5);
}

.carousel-btn.prev {
  left: -20px;
}

.carousel-btn.next {
  right: -20px;
}

@media (max-width: 576px) {
  .carousel-btn {
    display: none;
  }
}

/* ── Card ──────────────────────────────────────────────────── */
.noticia-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #1a1f2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 576px) {
  .noticia-card {
    flex: 0 0 260px;
  }
}

.noticia-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 165, 229, 0.4);
  box-shadow: 0 8px 32px rgba(34, 165, 229, 0.12);
  color: inherit;
  text-decoration: none;
}

.noticia-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #232840;
  display: block;
}

.noticia-card-img-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1e2540 0%, #232840 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a4266;
  font-size: 2rem;
}

.noticia-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.noticia-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22a5e5;
  margin-bottom: 0.45rem;
}

.noticia-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8eaf0;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noticia-card-excerpt {
  font-size: 0.82rem;
  color: #8892a4;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.noticia-card-date {
  font-size: 0.75rem;
  color: #5a6480;
  margin-top: auto;
}

/* ── Skeleton ──────────────────────────────────────────────── */
.noticia-skeleton {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #1a1f2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}

.skeleton-img {
  width: 100%;
  height: 140px;
  background: linear-gradient(90deg, #1e2540 25%, #262d48 50%, #1e2540 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 1rem 1.1rem;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1e2540 25%, #262d48 50%, #1e2540 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 0.6rem;
}

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

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

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

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

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── Erro ──────────────────────────────────────────────────── */
.noticias-error {
  text-align: center;
  color: #8892a4;
  padding: 2rem;
  width: 100%;
}