/* =========================================
   1. VARIÁVEIS E RESET GLOBAL
   ========================================= */
:root {
  --verde-gov: #007521;
  --azul-gov: #004394;
  --amarelo-gov: #FDB913;
  --vermelho-gov: #DF280F;
  --cinza-claro: #f4f4f4;
  --texto-escuro: #333333;
  --branco: #ffffff;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--branco);
  color: var(--texto-escuro);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   2. NAVBAR GOVERNO (Barra Azul Superior)
   ========================================= */
.navbar-gov {
  background-color: var(--azul-gov);
  width: 100%;
  height: 54px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Lado Esquerdo */
.navbar-gov .frame {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-gov .button-text {
  color: var(--branco);
  font-size: 14px;
  font-weight: 500;
}

.navbar-gov .line {
  width: 1px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Lado Direito */
.navbar-gov .div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-gov .frame-2 {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-gov .img, 
.navbar-gov .twitter, 
.navbar-gov .youtube {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: opacity 0.2s;
}
.navbar-gov a:hover img { opacity: 0.8; }

/* Busca */
.navbar-gov .input { display: flex; align-items: center; }
.navbar-gov .placeholder {
  display: flex;
  align-items: center;
  background-color: var(--branco);
  padding: 6px 12px;
  border-radius: 4px;
  gap: 8px;
}
.navbar-gov .text-wrapper {
  border: none;
  outline: none;
  font-size: 13px;
  width: 120px;
}
.navbar-gov .search { width: 16px; height: 16px; }

/* Botão Contato */
.navbar-gov .button-with-text {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--amarelo-gov);
  padding: 6px 16px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.navbar-gov .button-with-text:hover { background-color: #e5a800; }
.navbar-gov .button-2 {
  font-weight: 700;
  font-size: 14px;
  color: var(--texto-escuro);
}

/* Responsividade Navbar Gov */
@media (max-width: 991px) {
  .navbar-gov { height: auto; flex-direction: column; padding: 15px; gap: 15px; }
  .navbar-gov .div { width: 100%; justify-content: center; flex-wrap: wrap; }
  .navbar-gov .placeholder { width: 100%; }
}

/* =========================================
   3. NAVBAR SITE (Menu Principal Branco - REFATORADO)
   ========================================= */
.navbar-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: var(--branco);
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 1000;
}

.navbar-site .header {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--branco);
}

.navbar-site .frame {
  display: flex;
  width: 100%;
  max-width: 1200px; /* Largura máxima responsiva */
  height: 100px;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Espaçamento lateral */
}

/* --- LOGO (Esquerda) --- */
.navbar-site .logos {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
}

.navbar-site .secretaria-da-educa {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #000000;
  font-size: 11px;
  line-height: 1.2;
  margin: 0;
}

.navbar-site .text-wrapper,
.navbar-site .span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
}
.navbar-site .span { font-weight: 700; }

.navbar-site .line {
  width: 1px;
  height: 28px;
  background-color: #000;
  opacity: 0.2;
}

.navbar-site .img {
  width: auto;
  height: 50px; /* Altura controlada */
  object-fit: contain;
}

/* --- MENU (Direita) --- */
.navbar-site .div {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.navbar-site .navbar-item,
.navbar-site .navbar-item-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 100%;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Estilo dos Links */
.navbar-site .text-wrapper-2,
.navbar-site .text-wrapper-3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #333; /* Cor do texto */
  font-size: 14px;
  white-space: nowrap;
}

/* Hover e Ativo */
.navbar-site .navbar-item:hover,
.navbar-site .navbar-item-2:hover {
  background-color: #f4f4f4;
}

/* Item Ativo (Início) */
.navbar-site .navbar-item {
  background-color: #f4f4f4; /* Fundo cinza do item ativo */
  border-bottom-color: var(--azul-gov); /* Borda azul */
}
.navbar-site .navbar-item .text-wrapper-2 {
  font-weight: 700;
  color: var(--azul-gov);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
  .navbar-site .frame {
    height: auto;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .navbar-site .div {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap; /* Quebra linha se necessário */
    height: auto;
  }

  .navbar-site .navbar-item,
  .navbar-site .navbar-item-2 {
    height: 45px;
    padding: 0 15px;
    border-bottom: none; /* Remove borda inferior no mobile */
    border-radius: 4px;
  }
  
  .navbar-site .navbar-item {
     background-color: transparent; /* Remove fundo fixo no mobile se preferir */
     border: 1px solid var(--azul-gov); /* Borda para destacar ativo */
  }
}

/* =========================================
   4. BANNER HERO
   ========================================= */
.banner-hero {
  position: relative; /* Para segurar o divider absoluto */
  width: 100%;
  /* altura automática ou fixa dependendo da imagem */
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.divider-sobreposto {
  position: absolute;
  bottom: 0; /* Alinhado ao rodapé do banner */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translateY(50%); /* Desce 50% da própria altura para ficar "no meio" da linha */
  z-index: 10;
  padding: 0 20px; /* Margem de segurança */
}

.divider-sobreposto img {
  max-width: 743px; /* Tamanho original */
  width: 100%; /* Responsivo */
  height: auto;
}

/* =========================================
   5. SEÇÃO CALENDÁRIO (.datas)
   ========================================= */
.datas {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 100px 20px;
  position: relative;
  background-color: var(--vermelho-gov);
  background-image: url('../images/background-cronograma.svg') !important; 
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.datas .frame {
  width: 100%;
  max-width: 970px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.se-liga-nas-datas {
  font-weight: 700;
  color: var(--branco);
  font-size: 32px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0;
}

.lista-datas { display: flex; flex-direction: column; gap: 24px; }
.data-row { display: flex; width: 100%; align-items: stretch; flex-wrap: wrap; }

.info-box {
  flex: 2;
  border: 2px solid var(--branco);
  border-radius: 12px 0 0 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  background-color: rgba(0,0,0,0.1);
  min-width: 250px;
}

.icon-text-group { display: flex; align-items: center; gap: 16px; }
.img-icon { width: 24px; height: 24px; object-fit: contain; }
.text-desc { font-weight: 500; color: var(--branco); font-size: 16px; }

.date-box {
  flex: 1;
  background-color: #024ea2;
  border-radius: 0 12px 12px 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.date-text { font-weight: 700; color: var(--branco); font-size: 16px; text-align: center; margin: 0; }

@media (max-width: 768px) {
  .datas { padding: 60px 20px; }
  .data-row { flex-direction: column; }
  .info-box { border-radius: 12px 12px 0 0; border-bottom: none; }
  .date-box { border-radius: 0 0 12px 12px; border: 2px solid var(--branco); border-top: none; }
}

/* =========================================
   6. SEÇÃO VANTAGENS (Carrossel Horizontal)
   ========================================= */
.vantagens-section {
  width: 100%;
  background-color: var(--amarelo-gov);
  padding: 80px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.vantagens-container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.vantagens-header { text-align: center; max-width: 800px; padding: 0 20px; }
.vantagens-titulo { font-weight: 700; color: #2d4f9e; font-size: 32px; margin-bottom: 20px; }
.vantagens-subtitulo { font-weight: 400; color: #000; font-size: 16px; }

/* Wrapper Relativo para posicionar botões */
.vantagens-carousel-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

/* Trilho de Scroll */
.vantagens-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 5%;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.vantagens-track::-webkit-scrollbar { display: none; }
.vantagens-track.active { cursor: grabbing; scroll-behavior: auto; }

/* Card Individual Vantagens */
.vantagens-card {
  min-width: 22vw; /* Desktop: 4.5 cards */
  width: 22vw;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background-color: var(--branco);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  user-select: none;
}

.vantagens-icon { width: 40px; height: 40px; object-fit: contain; align-self: flex-start; }
.vantagens-content { display: flex; flex-direction: column; gap: 8px; width: 100%; align-items: flex-start; }
.vantagens-card-title { margin: 0; font-weight: 600; font-size: 16px; line-height: 24px; }
.vantagens-card-desc { margin: 0; font-weight: 400; font-size: 16px; line-height: 24px; text-align: left; }

.text-verde { color: var(--verde-gov); }
.text-azul { color: var(--azul-gov); }
.text-vermelho { color: var(--vermelho-gov); }
.text-amarelo { color: var(--amarelo-gov); }

/* Botões Flutuantes (Verdes) */
.vantagens-btn {
  background-color: var(--verde-gov);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 20;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s, background-color 0.2s;
}
.vantagens-btn:hover { transform: translateY(-50%) scale(1.1); background-color: #005a1a; }
.vantagens-btn.prev-btn { left: 20px; }
.vantagens-btn.next-btn { right: 20px; }
.vantagens-btn img { width: 24px; height: 24px; filter: brightness(0) invert(1); }

@media (max-width: 1280px) { .vantagens-card { min-width: 28vw; width: 28vw; } }
@media (max-width: 991px) { .vantagens-card { min-width: 40vw; width: 40vw; } }
@media (max-width: 600px) {
  .vantagens-card { min-width: 85vw; width: 85vw; }
  .vantagens-btn { display: none; }
  .vantagens-track { padding: 20px; }
}

/* =========================================
   7. SEÇÃO CONHEÇA (Carrossel Colorido)
   ========================================= */
.carousel-wrapper.property-slide {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slide-item {
  display: none;
  width: 100%;
  padding: 60px 20px;
  justify-content: center;
  animation: fadeEffect 1s;
}

.slide-item.active { display: flex; }

@keyframes fadeEffect { from {opacity: 0.4;} to {opacity: 1;} }

.slide-item .frame {
  width: 100%;
  max-width: 1170px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slide-item .content-wrapper {
  background-color: transparent;
  border: 2px solid var(--branco);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
}

.slide-item .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.slide-item .div-textos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 550px;
}

.slide-item .tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid var(--branco);
}

.slide-item .tag img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  margin-right: 10px;
}

.slide-item .text-wrapper { font-weight: 500; color: var(--branco); font-size: 14px; }

.slide-item .titulo-slide {
  font-weight: 700;
  color: var(--branco);
  font-size: 32px;
  line-height: 1.2;
  margin: 0;
}

.slide-item .lista-beneficios {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--branco);
  font-size: 16px;
  line-height: 2;
}

.slide-item .lista-beneficios li { padding-left: 20px; position: relative; }
.slide-item .lista-beneficios li::before { content: "◆"; position: absolute; left: 0; font-size: 12px; top: 2px; }

.slide-item .img-estudante { width: 100%; max-width: 468px; height: auto; border-radius: 8px; }

.nav-carrossel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

.nav-left { display: flex; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 15px; }
.slide-indicator { height: 12px; width: auto; }

.nav-btn-conheca {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-btn-conheca:hover { opacity: 1; }
.nav-btn-conheca img { width: 24px; height: 24px; filter: brightness(0) invert(1); }

@media (max-width: 991px) {
  .slide-item .content { justify-content: center; text-align: left; }
  .slide-item .div-textos { max-width: 100%; }
  .slide-item .img-estudante { margin-top: 20px; }
}

/* =========================================
   8. SEÇÃO FAQ
   ========================================= */
.faq-section {
  width: 100%;
  padding: 80px 20px;
  background-color: var(--branco);
  display: flex;
  justify-content: center;
}

.faq-container {
  width: 100%;
  max-width: 970px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.faq-titulo { font-weight: 700; color: #2d4f9e; font-size: 32px; text-align: center; margin: 0; }
.faq-list { width: 100%; display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  width: 100%;
  background-color: #e3e3e3;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }

.question-text { font-weight: 600; color: #000; font-size: 16px; }
.faq-answer { padding: 0 24px 24px 24px; border-top: 1px solid rgba(0,0,0,0.05); }
.chevron-icon { width: 24px; height: 24px; transition: transform 0.3s ease; }
.faq-item[open] .chevron-icon { transform: rotate(180deg); }

/* =========================================
   9. SEÇÃO BLOG
   ========================================= */
.blog-section {
  width: 100%;
  padding: 80px 20px;
  background-color: var(--branco);
  display: flex;
  justify-content: center;
}

.blog-container {
  width: 100%;
  max-width: 1170px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-header { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.blog-title { font-weight: 700; color: #333; font-size: 32px; margin: 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
}

.blog-card { display: flex; flex-direction: column; gap: 16px; }
.blog-img-wrapper { width: 100%; height: 220px; border-radius: 8px; overflow: hidden; }
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-card:hover .blog-img { transform: scale(1.05); }

.blog-content { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.blog-card-title { font-weight: 700; color: #333; font-size: 18px; line-height: 1.4; margin: 0; }

.blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background-color: #fcb900;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.blog-btn:hover { background-color: #e5a800; }

.blog-footer { text-align: center; margin-top: 20px; }
.link-mais-noticias {
  font-weight: 600;
  color: var(--azul-gov);
  font-size: 16px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.2s;
}
.link-mais-noticias:hover { border-bottom: 2px solid var(--azul-gov); }

@media (max-width: 768px) {
  .blog-title { font-size: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* =========================================
   10. RODAPÉ (FOOTER)
   ========================================= */
.footer {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 80px 5%;
  background-color: #111928;
  width: 100%;
}

.footer .frame {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer .logos { display: flex; align-items: center; gap: 20px; }
.footer .line { width: 1px; height: 40px; background-color: rgba(255,255,255,0.2); }
.footer .secretaria-da-educa { color: var(--branco); font-size: 13px; line-height: 1.4; margin: 0; }

.footer .div { display: flex; align-items: center; gap: 60px; }
.footer .frame-2 { display: flex; gap: 20px; }
.footer .frame-2 a { display: flex; transition: opacity 0.3s; }
.footer .frame-2 a:hover { opacity: 0.8; }

.footer .frame-3 { display: flex; flex-direction: column; gap: 8px; color: var(--branco); }
.footer .frame-4 { display: flex; align-items: center; gap: 10px; }
.footer .text-wrapper-2 { font-size: 14px; color: var(--branco); }

@media (max-width: 991px) {
  .footer { padding: 60px 20px; }
  .footer .frame { flex-direction: column; align-items: flex-start; gap: 60px; }
  .footer .div { flex-direction: column; align-items: flex-start; gap: 30px; width: 100%; }
}

/* =========================================
   11. COMO RENOVAR
   ========================================= */

/* --- SEÇÃO COMO RENOVAR --- */

.como-renovar-section {
  width: 100%;
  /* Altura mínima para garantir impacto visual */
  min-height: 600px; 
  padding: 100px 20px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Configuração do Background (Imagem + Cor de segurança) */
  background-color: #2d4f9e; /* Azul Seduc */
  background-image: url('../images/como-renovar.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  position: relative;
}

/* Container Branco Central */
.renovar-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 60px 40px 40px 40px; /* Padding extra em cima para o texto */
  width: 100%;
  max-width: 770px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sombra para destacar do fundo */
  position: relative;
}

/* Conteúdo de Texto */
.renovar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: left;
  width: 100%;
  max-width: 600px;
}

.renovar-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #2d4f9e; /* Azul Escuro */
  font-size: 32px;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.renovar-texto {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.renovar-texto p {
  margin: 0;
}

/* Botão Verde */
.renovar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: #027931; /* Verde Botão */
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  
  /* Efeito de "sair" da caixa para baixo */
  margin-bottom: -65px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.renovar-btn:hover {
  background-color: #025f27;
  transform: translateY(-2px);
}

.btn-text {
  font-family: 'Montserrat', sans-serif; /* Usei Montserrat para padronizar */
  font-weight: 600;
  color: #ffffff;
  font-size: 16px;
}

/* --- RESPONSIVIDADE --- */

/* Tablet (até 991px) */
@media (max-width: 991px) {
  .como-renovar-section { padding: 80px 20px 100px 20px; } /* Mais espaço embaixo para o botão */
  .renovar-container { padding: 40px 30px; }
}

/* Celular (até 600px) */
@media (max-width: 600px) {
  .como-renovar-section { 
    padding: 60px 20px 80px 20px; 
    min-height: auto;
  }
  
  .renovar-titulo { font-size: 24px; }
  .renovar-texto { font-size: 14px; }
  
  .renovar-btn {
    width: 100%; /* Botão ocupa largura total no celular */
    margin-bottom: -60px;
    padding: 14px 20px;
  }
  .btn-text { font-size: 14px; }
}