* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}


body
{
   background-color: #FFFFFF;
}

/* POP-UP - INICIO */

.ajuste-popup
{
  
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 1, 63, 0.5);
    z-index: 1000;
}

.popup-conteudo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    text-align: center;
}





.popup-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1740a9;
}

.fechar-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.fechar-popup:hover {
    color: #ccc;
}
/* POP-UP - FIM */

/* BOTÃO WHATSAPP - INICIO */

.whatsapp-button {

    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}


.whatsapp-button:hover {
    background-color: #1DA335;
}

.whatsapp-button i {
    font-size: 40px; /* ajuste o tamanho do ícone aqui */
}

/* BOTÃO WHATSAPP - INICIO */

/* LOGIN - INICIO */

.ajuste-login
{
  display: none;
}

.fundo-banner-login
{
  background-color: #1740a9;
  opacity: 0.8;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 3;
}

.banner-login {
    width: 400px;
    /* height: 250px; */ /* Remova a altura fixa */
    background-color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    border-radius: 15px;
    padding: 20px; /* Adicione um padding para dar espaço aos elementos */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-login img {
    width: 100%;
    max-width: 150px;
    border-radius: 10px;
    margin-bottom: 20px;
}



.inputs-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.inputs-login input {
    width: 80%;
    height: 40px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#botao-login {
    width: 80%;
    height: 40px;
    background-color: #1740a9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

/* LOGIN - FINAL */

/* ANIMAÇÃO INICIAL - INICIO */

.animacao {
  background-color: #1740a9;
  animation: mudar-cor 2s forwards;
  animation-delay: 2s;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

@keyframes mudar-cor
{
  0%{
    background-color: #1740a9;
  }
  100% {
    background-color: #FFFFFF;
  }
}



.intro img
{
  width: 50%; 
  height: 50%; 
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#logo_branca_40_anos
{   
    
    animation: desaparecer 1s forwards;
    animation-delay: 2s;
}

@keyframes desaparecer
{
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

#logo_azul_40_anos
{
    animation: aparecer-sumir 3s forwards;
    animation-delay: 3s;
    opacity: 0;
}

@keyframes aparecer-sumir {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }
 
  100% {
    opacity: 0;
    display: none;
  }
}

/* ANIMAÇÃO INICIAL - FIM */

/* MENU - INICIO */


.admin-button img
{
  width: 30px;
  left: 0;
  cursor: pointer;
}

.navbarCategoria {
    background-color: #1740a9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;

    z-index: 1000;
}

.navbar {
    background-color: #1740a9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
}

.body--animation .navbar {
    opacity: 0;
    animation: aparecer-menu 3s forwards;
    animation-delay: 6s;
}

/* Quando não há animação (loginError = 1), mostrar o menu imediatamente */
body:not(.body--animation) .navbar {
    opacity: 1;
    animation: none;
}

@keyframes aparecer-menu {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }

}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo Styles */
.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    cursor: pointer;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 2.5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    color: #87ceeb;
}

/* Dropdown Arrow */
.dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    margin: 4px 8px;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu Animation */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.container p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1740a9;
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link {
        padding: 20px;
        justify-content: space-between;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #2850c7;
        border-radius: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height 0.3s ease;
    }
    
    .nav-item.active .dropdown-menu {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-link {
        padding: 15px 40px;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #87ceeb;
    }
    
    .dropdown-link:last-child {
        border-bottom: none;
    }
    
    /* Adjust main content for mobile */
    .container h1 {
        font-size: 2rem;
    }
    
    .container p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 10px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .main-content {
        margin-top: 60px;
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .container h1 {
        font-size: 1.8rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.dropdown-link:focus {
    outline: 2px solid #87ceeb;
    outline-offset: 2px;
}

/* Hover effects for better UX */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Prevent dropdown from closing on hover in desktop */
@media screen and (min-width: 769px) {
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* MENU - FIM */

/* BANNER INICIO */

.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    display: block;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
}

.body--animation .banner {
    opacity: 0;
    animation: banner 2s forwards;
    animation-delay: 6s;
}



@keyframes banner{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8); /* cor de fundo semi-transparente */
}


.banner-h1
{
  margin-bottom: 30px;
}

.banner-link {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.banner-link:hover {
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* BANNER - FIM */


/* SLIDESHOW - INICIO */

.ajuste-padding-slideshow
{
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  
}

.slideshow-container {
  position: relative;
  margin: auto;
  max-width: 1200px;
  height: 500px;
  overflow: hidden;
  border-radius: 15px;
  margin-top: 80px;
  opacity: 0;
  animation: slideshow 2s forwards;
  animation-delay: 6s;
}


body.body--animation {
  padding-top: 70px
}

body:not(.body--animation) .slideshow-container {
  margin-top: 80px;
}

/* Quando não há animação (loginError = 1), mostrar o slideshow imediatamente */
body:not(.body--animation) .slideshow-container {
  opacity: 1;
  animation: none;
}

/* Quando não há animação, mostrar o primeiro slide */
body:not(.body--animation) .slide:first-child {
  display: block;
}

@keyframes slideshow{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

.slideshow-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legenda {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background-color:#2850c7;
  color: #fff;
  font-size: 18px;
}

.slideshow-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}

.prev-slide, .next-slide {
  background-color: transparent;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: text-shadow 0.3s ease;
}

.prev-slide:hover, .next-slide:hover {
  text-shadow: 0 0 12px rgba(255, 255, 255, 1);
}

.prev-slide {
  position: absolute;
  left: 10px;
}

.next-slide {
  position: absolute;
  right: 10px;
}

.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background-color: #333;
}

/* SLIDESHOW - FIM */

/* ÚLTIMAS NOTÍCIAS - INÍCIO */

.ajusteCategoria
{
  width: 100%;
  height: auto;
  min-height: calc(100vh - 136px);
  position: relative;
  margin-top: 80px;
}

.ajusteNoticias
{
  width: 100%;
  height: auto;
  position: relative;
  margin-top: -40px;
  border-radius: 15px;
}

.body--animation .ajusteNoticias {
  opacity: 0;
  animation: slideshow 2s forwards;
  animation-delay: 6s;
}

/* Quando não há animação (loginError = 1), mostrar as notícias imediatamente */
body:not(.body--animation) .ajusteNoticias {
  opacity: 1;
  animation: none;
}

@keyframes slideshow{
    0%{
        opacity: 0;
        display: none;
    }
    100%{
        opacity: 1;
        display: block;
    }
}




.ajusteNoticias h2
{
  padding-left: 10px;
}

.noticias {
  max-width: 1200px;
  margin: 40px auto;
  padding: 10px;
  color: #1740a9;
}

.noticias-grid {
  display: block;
  margin-top: 20px;
}

.noticia-item {
  background-color: #ffffff;
  padding: 20px;
  cursor: pointer;
  border-radius: 15px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}

.noticia-item img {
  width: 300px;
  height: 240px;
  object-fit: contain;
  border-radius: 15px;
  flex-shrink: 0;
}

.noticia-item h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.posicao-noticias-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.posicao-noticias-txt p {
  margin: 0;
  line-height: 1.6;
}

.no-news {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
  background-color: #f9f9f9;
  border-radius: 15px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .noticia-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .noticia-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 15px;
  }
  
  .posicao-noticias-txt {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .noticia-item {
    padding: 15px;
  }
  
  .noticia-item img {
    max-width: 100%;
  }
}

/* ÚLTIMAS NOTÍCIAS - FIM */

/* FOOTER - INÍCIO */

.footer {
    background-color: #2850c7;
    color: #fff;
    text-align: center;
    padding: 20px;
    bottom: 0;
    width: 100%;
}

.body--animation .footer {
    opacity: 0;
    animation: aparecer-menu 3s forwards;
    animation-delay: 6s;
}

/* Quando não há animação (loginError = 1), mostrar o footer imediatamente */
body:not(.body--animation) .footer {
    opacity: 1;
    animation: none;
}

@keyframes aparecer-menu {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }


}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* FOOTER - FIM */

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Auto-hide flash messages after 5 seconds */
.flash-message {
    animation: slideDown 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Category Header */
.category-header {
    margin-top: 60px;
}