@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,600;0,700;1,400&display=swap');
*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    box-sizing: border-box;
}

/* root values */
:root{
    --container-color: #1a1e21;
    --second-color: #0071C6;
    --green: rgb(31, 201, 45);
    --red: rgb(224, 27, 27);
    --text-color: #172317;
    --bg-color: #fff;
    --shadow: 0 4px 14px hsl(35deg 25% 15% / 10%);
}

::selection{
    color: var(--bg-color);
    background: var(--second-color);
}



a{
    text-decoration: none;
}

li{
    list-style: none;
}

img{
    width: 100%;
}

section{
    padding: 3rem 0 2rem;
}

.container{
    max-width: 1068px;
    margin: auto;
    width: 100%;
}

a{
    color: #fff;
}

/* Header */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
}

header.shadow{
    background: var(--bg-color);
    box-shadow: 0 1px 4px hsl(0 4% 14% / 10%);
    transition: .5s;
}

header.shadow .logo{
    color: var(--text-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    color: black; /* Cor de fundo preta */
    scale: 1.5;
    
}

/* Melhorando a visibilidade ao passar o mouse */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #333; /* Preto mais escuro ao hover */
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 1; /* Garantir visibilidade */
}

.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-color);
}

.logo span{
    color: var(--second-color);
}

.login{
    padding: 8px 14px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 4px;
    background: var(--second-color);
    color: var(--bg-color);
}

.login:hover{
    background: hsl(199, 98%, 56%);
    transition: .5s;
}

.home{
    width: 100%;
    min-height: 500px;
    background-image: url('images/banner.png');
    /* background-position: contain; */
    background-position-y: calc(20%);
    display: grid;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-text{
    color: white;
    text-align: center;
}

.home-title{
    color: #fff;
    font-size: 3.5rem;
}

.home-subtitle{
    font-size: 1rem;
    font-weight: 400;
}

.about{
    position: relative;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 20px 10px 15px 8px hsl(135deg 10% 52% / 10%);
    margin-bottom: 2em;
    margin-top: 1em;
    border-radius: 1em;
    gap: 1.5em;
    
}

.about .contentBx{
    display: flex;
    justify-content: center;
    text-align: left;
    padding: 0px 30px;
    height: 290px;
    text-overflow: ellipsis;
}


.corpo-noticia{
    display: flex;
    gap: 2em;
    flex-direction: row-reverse;
    /* width: 80%; */
    max-height: 200px;
    justify-content: center;
    text-overflow: ellipsis;

}

.titleText{
    font-weight: 600;
    color: #111;
    font-size: 2rem;
    margin-bottom: 1em;
}

.title-text{
    color: #111;
    font-size: 1em;
    display: flex;
    /* justify-content: space-between; */
    flex-direction: column;
    align-items: center;
}

.about .imgBx{
    position: relative;
    min-width: 400px;
    max-height: 400px;
}

.btn2{
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    background: #fff;
    border: .8px solid #111;
    color: #333;
    text-decoration: none;
    transition: 0.5s;
}

.btn2:hover{
    background-color: var(--second-color);
    border: .8px solid transparent;
    color: #fff;
}

.saiba-mais{
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2em;
}

.post-filter{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    margin-top: 2rem !important;
}

.filter-item{
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.active-filter{
    background: var(--second-color);
    color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
}

.post{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    justify-content: center;
    gap: 1.5rem;
}

.post-box{
    background: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 15px;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.post-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 0.5rem;
}

.blog-img{
    width: 100%;
    /* min-height: 570px; */
    object-fit: cover;
    object-position: top;
    border-radius: 0.5rem;
}

.notice-img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 0.5rem;
}

.category{
    margin-top: .5em;
    padding: 1%;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8%;
    text-transform: uppercase;
    color: white;
    background-color: var(--second-color);
}



.post-title{
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-date{
    display: flex;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 400;
}

.post-description{
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin: 5px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--second-color);
}

.profile-name{
    font-size: .8rem;
    font-weight: 500;
}

.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    position: relative;
}

.footer .footer-top {
padding-top: 50px;
}

.footer .footer-about .logo {
line-height: 1;
margin-bottom: 25px;
}

.footer .footer-about .logo img {
    /* max-height: 40px; */
    margin-right: 6px;
}

.footer .footer-about .logo span {
color: var(--heading-color);
font-size: 30px;
font-weight: 700;
letter-spacing: 1px;
font-family: var(--heading-font);
}

.footer .footer-about p {
font-size: 14px;
font-family: var(--heading-font);
}

.footer .social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
font-size: 16px;
color: color-mix(in srgb, var(--default-color), transparent 50%);
margin-right: 10px;
transition: 0.3s;
}

.footer .social-links a:hover {
color: var(--default-color);
border-color: var(--default-color);
}

.footer h4 {
font-size: 16px;
font-weight: bold;
position: relative;
padding-bottom: 12px;
}

.footer .footer-links {
margin-bottom: 30px;
}

.footer .footer-links ul {
list-style: none;
padding: 0;
margin: 0;
}

.footer .footer-links ul i {
padding-right: 2px;
font-size: 12px;
line-height: 0;
}

.footer .footer-links ul li {
padding: 10px 0;
display: flex;
align-items: center;
}

.footer .footer-links ul li:first-child {
padding-top: 0;
}

.footer .footer-links ul a {
color: color-mix(in srgb, var(--default-color), transparent 30%);
display: inline-block;
line-height: 1;
}

.footer .footer-links ul a:hover {
color: var(--default-color);
}

.footer .footer-contact p {
margin-bottom: 5px;
}

.footer .copyright {
padding-top: 30px;
padding-bottom: 30px;
border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
margin-bottom: 0;
}

.footer .credits {
margin-top: 4px;
font-size: 13px;
}


#error {
    width: 100%;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 2em;
    padding-block: 20px 20px;
}


/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .content h3 {
font-weight: 400;
font-size: 34px;
}

.faq .content p {
font-size: 15px;
color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.faq .faq-container .faq-item {
background-color: var(--surface-color);
position: relative;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.1);
overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
font-weight: 600;
font-size: 18px;
line-height: 24px;
margin: 0 30px 0 0;
transition: 0.3s;
cursor: pointer;
display: flex;
align-items: flex-start;
}

.faq .faq-container .faq-item h3 .num {
color: var(--accent-color);
padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
display: grid;
grid-template-rows: 0fr;
transition: 0.3s ease-in-out;
visibility: hidden;
opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
margin-bottom: 0;
overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
position: absolute;
top: 20px;
right: 20px;
font-size: 16px;
line-height: 0;
transition: 0.3s;
cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
color: var(--accent-color);
}

.faq .faq-container .faq-active h3 {
color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
grid-template-rows: 1fr;
visibility: visible;
opacity: 1;
padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
transform: rotate(90deg);
color: var(--accent-color);
}



/* noticias recentes / destaque */

/* Contêiner do swiper: evitamos overflow indesejado */


/* Cada slide centraliza o card */
.myPostsSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: auto;      /* altura automática para evitar cortes */
}

.myPostsSwiper .swiper-slide article {
    height: 420px;              /* altura fixa padronizada */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    overflow: hidden;
  }
  
  

/* Card interno — limite de largura para manter layout consistente */
.post-card {
  width: 100%;
  /* max-width: 360px;   */
  /* background: #fff; */
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

/* Imagem do post com tamanho fixo e object-fit para evitar distorção */
.post-card .post-img img {
  width: 100%;
  height: 200px;       /* altura fixa para uniformidade */
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Autor: imagem pequena circular */
.post-author-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

/* Ajustes tipográficos */
.post-category {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.75rem;
}
.post-card .title { font-size: 1.05rem; margin: 0.4rem 0 0.8rem; }
.post-meta { font-size: 0.85rem; color: #6c757d; }


/* Ajusta setas do Swiper — move um pouco mais para fora */
.myPostsSwiper .swiper-button-prev,
.myPostsSwiper .swiper-button-next {
  color: #333; /* mantém visível em fundo claro */
  transition: all 0.3s ease;
  top: 45%; /* centraliza verticalmente */
}

/* Move as setas para fora do container */
.myPostsSwiper .swiper-button-prev {
  left: 0px; 
}

.myPostsSwiper .swiper-button-next {
  right: 0px;
}

/* Efeito hover suave */
.myPostsSwiper .swiper-button-prev:hover,
.myPostsSwiper .swiper-button-next:hover {
  color: #000;
  transform: scale(1.2);
}


/* Responsividade: colapsa para 2 ou 1 slides */
@media (max-width: 991.98px) {
  .post-card { max-width: 320px; }
  .post-card .post-img img { height: 180px; }
}
@media (max-width: 767.98px) {
  .post-card { max-width: 100%; padding: 12px; }
  .post-card .post-img img { height: 160px; }
  .myPostsSwiper .swiper-button-prev { display: none; }
  .myPostsSwiper .swiper-button-next { display: none; }
  .myPostsSwiper .swiper-slide article {
    height: auto; /* em telas menores, deixa fluir */
  }
}



@media (max-width: 1060px){
    .container{
        margin: 0 auto;
        width: 95%;
    }

    .home-text{
        width: 100%
    }

    .corpo-noticia{
        flex-direction: column;
        text-align: center;
        font-size: 14px;
        
    }
    .titleText {
        font-size: 1.5rem;
    }

    .imgBx{
        display: none;
    }

    .about {
        box-shadow: none;
        
    }
    
}

@media (max-width: 768px){
    .nav{
        padding: 10px 0;
    }

    section{
        padding: 2rem 0 !important;
    }

    .header-content{
        margin-top: 3rem !important;
    }

    .home{
        min-height: 380px;
    }

    .home-title{
        font-size: 3rem;
    }

    .header-title{
        font-size: 2rem;
    }

    .header-img{
        height: 370px;
    }

    .about{
        flex-direction: column;
        
    }

    .about .contentBx{
        height: 230px;
        min-width: 100%;
        width: 100%;
        text-align: center;
        padding-right: 0px;
        display: flex;
        flex-direction: column;
        
    }
    

    .about .contentBx,
    .about .imgBx{
        min-width: 100%;
        width: 100%;
        margin-bottom: 2em;
        text-align: center;
        /* height: 230px; */
    }

    .about .imgBx{
        min-height: 250px;
    }

    .btn2{
        margin-bottom: 30px;
    }

    .post-header{
        height: 435px;
    }

    .post-header{
        margin-top: 9rem !important;
    }
}

@media (max-width: 570px){
    
    .nav {
        max-width: 100vw;
        justify-content: space-between;
        
    }
    .login {
        font-size: 12px;
        padding: 3px 5px;
    }
    .post-header{
        height: 390px;
    }

    .header-title{
        width: 100%;
    }

    .header-img{
        height: 340px;
    }
}

@media (max-width: 396px){
    .home-title{
        font-size: 2rem;
    }

    .home-subtitle{
        font-size: 0.9rem;
    }

    .home{
        min-height: 300px;
    }

    .post-box{
        padding: 10px;
    }

    .header-title{
        font-size: 1.4rem;
    }

    .header-img{
        height: 240px;
    }

    .post-header{
        height: 335px;
    }

    .header-img{
        height: 340px;
    }
}



.flash-container {
    pointer-events: none; /* evita interferir no clique dos elementos abaixo */
  }
  
  .flash-container .toast {
    pointer-events: all;
    animation: fadeInSlide 0.4s ease-out;
  }
  
  @keyframes fadeInSlide {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

  /* styles for news thumbnail as background */
.news-thumb {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 150px;      /* altura mínima desejada */
    width: 100%;
    display: block;
  }
  
  /* garante que a coluna ocupe 100% da altura do card */
  .row.h-100.align-items-stretch { /* você provavelmente já tem isso, só pra reforçar */
    align-items: stretch;
  }
  
  /* opcional: placeholder look when no image */
  .news-thumb--placeholder {
    background-color: #f5f5f5;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }

  