
/* =====================================================
   NOTÍCIAS - VIAÇÃO ARAÇATUBA
   Arquivo: public/css/noticias.css
===================================================== */

.modal-noticias {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.76);
  overflow-y: auto;
}

.modal-noticias.open {
  display: flex;
}

.modal-noticias-conteudo {
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #263238;
  border-radius: 14px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  animation: noticiasEntrada 0.25s ease;
}

@keyframes noticiasEntrada {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CABEÇALHO */

.noticias-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 25px;
  color: #fff;
  background: #173d63;
}

.noticias-identidade {
  display: flex;
  align-items: center;
  gap: 13px;
}

.noticias-simbolo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}

.noticias-identidade h2 {
  margin: 0;
  font-size: 23px;
}

.noticias-identidade p {
  margin: 4px 0 0;
  color: #dce8f2;
  font-size: 12px;
}

.noticias-fechar {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s;
}

.noticias-fechar:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* INTRODUÇÃO */

.noticias-introducao {
  padding: 22px 25px 15px;
}

.noticias-introducao h3 {
  margin: 0 0 7px;
  color: #173d63;
  font-size: 21px;
}

.noticias-introducao p {
  margin: 0;
  color: #64717c;
  font-size: 14px;
  line-height: 1.6;
}

/* ABAS */

.noticias-abas {
  display: flex;
  gap: 8px;
  padding: 12px 25px;
  border-bottom: 1px solid #e5e9ed;
  overflow-x: auto;
}

.noticias-aba {
  padding: 10px 16px;
  border: 1px solid #d9e0e6;
  border-radius: 7px;
  background: #f5f7f9;
  color: #405363;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s;
}

.noticias-aba:hover {
  border-color: #173d63;
  color: #173d63;
}

.noticias-aba.active {
  border-color: #173d63;
  background: #173d63;
  color: #fff;
}

/* CORPO E PAINÉIS */

.noticias-corpo {
  min-height: 260px;
  padding: 20px 25px;
  overflow-y: auto;
}

.noticias-painel {
  display: none;
}

.noticias-painel.active {
  display: block;
}

.noticias-lista {
  display: grid;
  gap: 13px;
}

/* CARDS */

.noticia-card {
  padding: 18px;
  border: 1px solid #e1e7ec;
  border-left: 4px solid #173d63;
  border-radius: 9px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.noticia-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
}

.noticia-card-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.noticia-categoria {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: #eaf1f7;
  color: #173d63;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.noticia-data {
  color: #87939c;
  font-size: 12px;
}

.noticia-card h3 {
  margin: 0 0 9px;
  color: #173d63;
  font-size: 17px;
}

.noticia-card p {
  margin: 0;
  color: #586773;
  font-size: 14px;
  line-height: 1.65;
}

.noticia-link {
  display: inline-block;
  margin-top: 12px;
  color: #1764a0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.noticia-link:hover {
  text-decoration: underline;
}

/* ESTADO VAZIO */

.noticias-vazio {
  padding: 35px 20px;
  border: 1px dashed #cbd5dd;
  border-radius: 9px;
  background: #f8fafb;
  text-align: center;
}

.noticias-vazio .icone {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
}

.noticias-vazio h3 {
  margin: 0 0 7px;
  color: #173d63;
  font-size: 17px;
}

.noticias-vazio p {
  margin: 0;
  color: #71808b;
  font-size: 13px;
  line-height: 1.5;
}

/* NOSSA EQUIPE */

.noticias-equipe-card {
  padding: 30px 25px;
  border-radius: 11px;
  background: #f2f6fa;
  text-align: center;
}

.noticias-equipe-icone {
  margin-bottom: 12px;
  font-size: 43px;
}

.noticias-equipe-card h3 {
  margin: 0 0 12px;
  color: #173d63;
  font-size: 22px;
}

.noticias-equipe-card p {
  max-width: 570px;
  margin: 0 auto 12px;
  color: #5e6e79;
  font-size: 14px;
  line-height: 1.7;
}

/* BOTÃO PRINCIPAL */

.btn-noticias-principal {
  margin-top: 12px;
  padding: 12px 22px;
  border: none;
  border-radius: 7px;
  background: #173d63;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-noticias-principal:hover {
  transform: translateY(-1px);
  background: #245982;
}

/* RODAPÉ */

.noticias-rodape {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 25px;
  border-top: 1px solid #e5e9ed;
  background: #f8fafb;
  color: #84919a;
  font-size: 11px;
}

/* RESPONSIVIDADE */

@media (max-width: 600px) {
  .modal-noticias {
    align-items: flex-end;
    padding: 0;
  }

  .modal-noticias-conteudo {
    width: 100%;
    max-width: none;
    max-height: 94vh;
    border-radius: 15px 15px 0 0;
  }

  .noticias-cabecalho {
    padding: 16px;
  }

  .noticias-identidade h2 {
    font-size: 20px;
  }

  .noticias-introducao {
    padding: 18px 16px 12px;
  }

  .noticias-abas {
    padding: 10px 16px;
  }

  .noticias-corpo {
    padding: 16px;
  }

  .noticias-rodape {
    flex-direction: column;
    padding: 12px 16px;
  }

  .noticias-equipe-card {
    padding: 24px 16px;
  }
}

/* =====================================================
   SEÇÃO DE NOTÍCIAS NA PÁGINA PRINCIPAL
===================================================== */

.news-section {
  padding: 80px 0;
  background: #ffffff;
}

.news-section .section-heading {
  margin-bottom: 40px;
}

.news-section .section-label {
  display: block;
  margin-bottom: 10px;
  color: #c62828;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.news-section h2 {
  margin: 0 0 12px;
  color: #1a237e;
  font-size: 32px;
  font-weight: 700;
}

.news-section .section-heading p {
  max-width: 560px;
  margin: 0;
  color: #607d8b;
  font-size: 15px;
  line-height: 1.6;
}

/* Card principal */

.news-main-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.news-main-icon {
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
}

.news-main-content {
  flex: 1;
}

.news-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.news-main-content h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.news-main-content p {
  margin: 0 0 20px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.news-main-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Atalhos */

.news-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.news-shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-shortcut:hover {
  border-color: #173d63;
  box-shadow: 0 6px 18px rgba(23, 61, 99, 0.1);
  transform: translateY(-2px);
}

.news-shortcut span {
  font-size: 22px;
  margin-bottom: 4px;
}

.news-shortcut strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.news-shortcut small {
  color: #64748b;
  font-size: 13px;
}

/* Responsivo */

@media (max-width: 768px) {
  .news-main-card {
    flex-direction: column;
    padding: 22px;
  }

  .news-shortcuts {
    grid-template-columns: 1fr;
  }

  .news-section h2 {
    font-size: 26px;
  }
}
