/* =========================
   TAG DE CATEGORIA (clean)
========================= */
.tag-categoria {
  position: absolute;
  top: 4px;
  right: 12px;

  color: #2563eb;
  padding: 3px;
  border-radius: 5px;

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;

  z-index: 2;
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
}

/* TAG SOMENTE DO DESTAQUE */
.tag-destaque {
  position: absolute;
  top: 12px;
  left: 12px;

  color: #ffffff;
  padding: 3px;
  border-radius: 5px;

  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;

  z-index: 2;
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;

  text-shadow: 2px 2px 2px rgba(206,89,55,0);
}

/* =========================
   CARD DE DESTAQUE
========================= */
.card-destaque {
  position: relative;
  display: block;
  /* altura natural do card mantida */
}

.card-destaque img {
  width: 100%;
  height: 100%;       /* ocupa todo o espaço do card */
  display: block;
  object-fit: cover;   /* preenche o card mantendo proporção */
}

/* =========================
   MINI POSTAGENS
========================= */
.mini-postagem {
  position: relative;
  align-self: flex-start; /* evita esticar */
}

/* =========================
   PADRÃO DE IMAGENS
========================= */
img {
  display: block; /* remove espaçamento bugado */
  max-width: 100%;
  height: auto;
}

/* =========================
   CARROSSEL: TRANSIÇÃO SUAVE
========================= */
.postagem-destaque {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;

  width: 100%;
  /* altura do carrossel será determinada pelo conteúdo do card ou do layout */
}

.postagem-destaque.fade-out {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  filter: blur(2px);
}

.postagem-destaque.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* =========================
   GRID E LAYOUT
========================= */
.grid-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 1.3em;
}

.pagina-vagas {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.carrossel-destaque {
  flex: 2;
  min-width: 250px;
}

.laterais {
  flex: 1;
  min-width: 250px;
}

.grade-adicional {
  width: 100%;
  margin-top: -3em; /* igual ao gap do grid */
}

/* =========================
   ESTILOS DE TITULOS
========================= */
.postagens-recentes-titulo,
.mais-vistas-titulo h2 {
  font-size: 1.30rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1f2937;
  padding-left: 0.50rem;
}

/* =========================
   TELAS GRANDES (WIDESCREEN)
========================= */
@media (min-width: 1400px) {
  .top-header-inner,
  .blue-nav-inner,
  .search-bar-inner {
    max-width: 1400px;
    background-size: cover;
  }

  .top-header-inner {
    padding: 20px 24px;
  }

  .nav-center {
    gap: 32px;
  }

  .menu-link {
    font-size: 1.05rem;
  }

  .brand-logo h2 {
    font-size: 2.2rem;
  }

  .home-noticias {
    gap: 32px;
  }

  .grid-postagens {
    gap: 2rem;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .tag-categoria {
    top: 4px;
    right: 12px;
    font-size: 0.6rem;
    letter-spacing: 0.3px;
  }

  .postagens-recentes-titulo,
  .mais-vistas-titulo h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    padding-top: 30px;
  }
}

