/* =====================================================
   CSS COMPLETO - BLUE CONCURSOS
   Inclui: Posts, Editais, Header, Questões Comentadas
   VERSÃO CORRIGIDA - Sem duplicações
===================================================== */

/* ==== Estilo da seção de posts recentes tipo Tecnoblog ==== */
.posts-tecnoblog {
  width: 100%;
  margin: 0 auto;
  padding: 10px 0 0 0;
}

.posts-tecnoblog .posts-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 250px);
  gap: 10px;
}

.posts-tecnoblog .post-destaque {
  grid-row: 1 / span 2;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.posts-tecnoblog .post-menor {
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.posts-tecnoblog .overlay {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  text-decoration: none;
  color: white;
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.posts-tecnoblog .overlay h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  position: absolute;
  bottom: 15px;
  left: 15px;
}

/* ==== Responsividade para posts recentes ==== */
@media (max-width: 1024px) {
  .posts-tecnoblog .posts-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .posts-tecnoblog .post-destaque {
    grid-column: 1 / span 2;
    height: 300px;
  }

  .posts-tecnoblog .post-menor {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .posts-tecnoblog .posts-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .posts-tecnoblog .post-destaque,
  .posts-tecnoblog .post-menor {
    height: 250px;
  }
}

/* ==== Subtela de posts recentes (com laterais livres) ==== */
.subtela-posts {
  max-width: 1200px;
  margin: 40px auto;
  padding: 10px 20px;
}

.subtela-posts .subtela-titulo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 3px solid #0073e6;
  display: inline-block;
}

.subtela-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.subtela-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.subtela-item:hover {
  transform: translateY(-5px);
}

.subtela-item .thumb {
  display: block;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.subtela-item h3 {
  font-size: 1rem;
  margin: 15px;
  line-height: 1.4;
}

.subtela-item h3 a {
  text-decoration: none;
  color: #222;
}

.subtela-item h3 a:hover {
  color: #0073e6;
}

/* ===== Header e Menu principal — estilo final e override ===== */

.header-fixo-app {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  transition: background-color 300ms ease, backdrop-filter 300ms ease, box-shadow 300ms ease, transform 200ms ease !important;
  background-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.header-fixo-app.header-rolado {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

.mainmenu-fixo-app {
  transition: background-color 300ms ease, backdrop-filter 300ms ease !important;
  background-color: rgba(255,255,255,0.06) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  backdrop-filter: blur(2px) !important;
  z-index: 100000 !important;
}

.mainmenu-fixo-app.mainmenu-rolado {
  background-color: rgba(255,255,255,0.96) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}

.header-fixo-app.header-rolado .secondary-menu,
.header-fixo-app.header-rolado .topbar-secondary,
.header-fixo-app.header-rolado .menu-secundario,
.header-fixo-app.header-rolado .topbar {
  display: none !important;
}

body.has-header-fixed {
  padding-top: var(--header-fixo-height, 70px) !important;
}

@media (max-width: 767px) {
  .mainmenu-fixo-app { 
    background-color: rgba(255,255,255,0.10) !important; 
    -webkit-backdrop-filter: blur(4px) !important; 
    backdrop-filter: blur(4px) !important; 
  }
  .mainmenu-fixo-app.mainmenu-rolado { 
    background-color: rgba(255,255,255,0.98) !important; 
  }
}