/* Seção Geral de Notícias */
h1, h2, h3, a, p {
    font-family: Flama, Roboto, sans-serif !important;
}

/* ==========================================================================
   ESTILIZAÇÃO DAS TAGS DE CATEGORIA POR COR (KNOWLEDGE CARDS)
   ========================================================================== */

/* Estilo Base Geral da Tag (Caso surja uma categoria nova sem cor definida) */
.knowledge-card .knowledge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 9999px;
    color: #ffffff;
    background-color: #fff;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   CORES PERSONALIZADAS POR CATEGORIA (Insira aqui os slugs das suas categorias)
   -------------------------------------------------------------------------- */

/* 1. Direitos Humanos (azul) */
.knowledge-card.direitos-humanos .knowledge-tag {
    background-color: #009EDB; 
    color: #ffff;         
}

/* 2. Meio Ambiente (Verde) */
.knowledge-card.meio-ambiente .knowledge-tag {
    background-color: #27AE60; 
    color: #ffffff;        
}

/* 3. Anticorrupção (Exemplo de Categoria Adicional - Azul) */
.knowledge-card.anticorrupcao .knowledge-tag {
    background-color: #2F80ED;
    color: #ffffff;
}

/* 4. Trabalho (Exemplo de Categoria Adicional - Laranja) */
.knowledge-card.trabalho .knowledge-tag {
    background-color: #E28743;
    color: #ffffff;
}

/* ==========================================================================
   CORES DOS BOTÕES POR CATEGORIA (KNOWLEDGE CARDS)
   ========================================================================== */

/* Estilo padrão do link caso não caia em nenhuma categoria mapeada */
.knowledge-card .knowledge-content a {
    color: #666666; 
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* 1. Direitos Humanos (Amarelo / Texto escuro ou dourado para legibilidade) */
.knowledge-card.direitos-humanos .knowledge-content a {
    color: #009EDB;
}
.knowledge-card.direitos-humanos .knowledge-content a:hover {
    color: #1A1A1A; 
}

/* 2. Meio Ambiente (Verde) */
.knowledge-card.meio-ambiente .knowledge-content a {
    color: #27AE60; /* Verde */
}
.knowledge-card.meio-ambiente .knowledge-content a:hover {
    color: #1E7E43; /* Verde mais escuro no hover */
}

/* 3. Anticorrupção (Azul) */
.knowledge-card.anticorrupcao .knowledge-content a {
    color: #2F80ED;
}
.knowledge-card.anticorrupcao .knowledge-content a:hover {
    color: #1B59B3;
}

/* 4. Trabalho (Laranja) */
.knowledge-card.trabalho .knowledge-content a {
    color: #E28743;
}
.knowledge-card.trabalho .knowledge-content a:hover {
    color: #B66226;
}

.news-section {
    background-color: #f7fafc;
    color: #1a2a40;
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}

.news-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reaproveitando os estilos do Badge da seção anterior */
.news-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.news-badge-line {
    display: inline-block;
    width: 4px;
    height: 25px;
    background-color: #11223f;
}

.news-badge-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 4px 12px;
    border-radius: 2px;
    color: #4a5568;
}

/* Alinhamento do Título + Link "Ver Todas" lateral */
.news-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.news-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #11223f;
}

.news-link-desktop {
    display: none;
    align-items: center;
    gap: 5px;
    color: #11223f;
    text-decoration: none;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 10px;
    transition: background-color 0.2s ease;
}

.news-link-desktop:hover {
    color: #4c6585;
    background-color: #f1f1f1e3;
}

.news-link-desktop svg {
    width: 14px;
    height: 14px;
}

.news-section-description {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 40px;
}

/* ESTRUTURA DO SLIDER / CARROSSEL */
.news-slider-wrapper {
    margin-right: -20px;
    margin-bottom: 40px;
}

.news-slider {
  padding-bottom:20px;
}

.news-slider::-webkit-scrollbar {
    display: none;
}


/* CARD */
.news-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background-color: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* hover card */
.news-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.10),
        0 8px 20px rgba(0, 0, 0, 0.06);
}

/* WRAPPER IMG */
.news-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px;
}

.news-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.news-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .48);
    opacity: 0;
    transform:
        translateY(-6px) scale(.85);
    transition:
        opacity .3s ease,
        transform .35s cubic-bezier(.2, .8, .2, 1);
	margin: 0;
}

.news-arrow svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    color: #11223f;
}

/* hover */
.news-card:hover .news-arrow {
    opacity: 1;
    transform:
        translateY(0) scale(1);
}

.news-card:hover .news-image-wrapper::after {
    opacity: 1;
}

/* IMAGEM */
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .5s ease,
        filter .4s ease;
}

/* zoom da imagem */
.news-card:hover .news-img {
    transform: scale(1.06);
    filter: brightness(.96);
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: #11223f;
    margin-bottom: 12px;
	display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color:rgb(107 114 128 / 1);
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 25px;
	 display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rodapé do Card */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.news-section .swiper-pagination {
	display: none;
}

.news-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #11223f;
    letter-spacing: 1px;
}

.news-read-time {
    font-size: 0.7rem;
    color: #a0aec0;
}


.news-action-bottom {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.news-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgb(41 125 109 / 1);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 30px;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 12px rgb(41 125 109 / .2);
    transition: all 0.3s ease;
}

.news-cta-btn:hover {
	color: #ffffff !important;
    background-color: rgba(41, 125, 110, 0.788);
  transform: translateY(-2px) scale(1.06);
}

.news-cta-btn svg {
    width: 18px;
    height: 18px;
}


@media (min-width: 992px) {
    .news-section-title {
        font-size: 3.2rem;
    }

    .news-link-desktop {
        display: flex;
    }

    .news-card {
        flex: 0 0 28%;
        height: 520px;
    }
}


/* ==================================================
   CONHECIMENTO EM AÇÃO
================================================== */

.knowledge-section{
    background:#f3f4f6;
    padding:120px 0;
}

.knowledge-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 40px;
}

/* ==================================================
   HEADER
================================================== */

.badge-publicacoes{
    background:#c9ab49;
}

.knowledge-section .news-header{
    margin-bottom:60px;
}

.knowledge-section .news-header-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:40px;
}

.knowledge-section .events-section-title{
    font-size: 3.75rem;
    line-height: 1;
	letter-spacing: -.05em;
    font-weight:900;
    color:#001b44;
    margin:0;
}

.knowledge-section .events-section-title span{
    color:#001b44;
}

.knowledge-section .events-section-title br + *{
    color:#496588;
}

.knowledge-section .events-section-description{
    max-width:650px;
    margin-top:30px;
    font-size:18px;
    line-height:1.6;
    color:#667085;
}

.knowledge-section .news-link-desktop{
    display:flex;
    align-items:center;
    gap:8px;

    text-decoration:none;
    color:#001b44;

    font-size:14px;
    font-weight:700;
    letter-spacing:.12em;

    transition:.3s;
}

.knowledge-section .news-link-desktop:hover{
    opacity:.7;
}

/* ==================================================
   GRID
================================================== */

.knowledge-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:22px;
}

/* ==================================================
   CARD
================================================== */

.knowledge-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    text-decoration:none;
    transition:.35s ease;
    display:flex;
    flex-direction:column;
    border:1px solid #ececec;
}

.knowledge-card:hover{
    transform:translateY(-10px);

    box-shadow:
    0 20px 45px rgba(0,0,0,.08);
}

/* ==================================================
   IMAGEM
================================================== */

.knowledge-image{
    position:relative;
    height:285px;
    overflow:hidden;
}

.knowledge-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s ease;
}

.knowledge-card:hover .knowledge-image img{
    transform:scale(1.05);
}

/* ==================================================
   TAG
================================================== */

.knowledge-tag{
    position:absolute;
    top:12px;
    left:12px;
    padding:7px 12px;
    border-radius:999px;
    color:#fff;
    font-size:10px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

/* ==================================================
   IDIOMA
================================================== */

.knowledge-lang{
    position:absolute;
    bottom:12px;
    left:12px;
    color:#fff;
    font-size:11px;
    font-weight:500;
    padding:4px 8px;
    border-radius:999px;
    backdrop-filter:blur(10px);
    background:rgba(0,0,0,.25);
}

/* ==================================================
   CONTEÚDO
================================================== */

.knowledge-content{
    padding:18px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.knowledge-content h3{
    color:#001b44;
    font-size:14px;
    line-height:1.45;
    font-weight:700;
    margin:0 0 20px;
}

.knowledge-content a{
    margin-top:auto;
    text-decoration:none;
    font-size:10px;
    font-weight:700;
    letter-spacing:.15em;
    display:flex;
    align-items:center;
    gap:8px;
    transition:.3s;
}

.knowledge-content a:hover{
    gap:12px;
}

/* ==================================================
   CORES DAS CATEGORIAS
================================================== */

.trabalho .knowledge-tag{
    background:#7b4ba2;
}

.trabalho .knowledge-content a{
    color:#7b4ba2;
}

.trabalho1 .knowledge-tag{
    background:#F5A623;
}

.trabalho1 .knowledge-content a{
    color:#F5A623;
}

.trabalho2 .knowledge-tag{
    background:#297D6D;
}

.trabalho2 .knowledge-content a{
    color:#297D6D;
}

.direitos .knowledge-tag{
    background:#009EDB;
}

.direitos .knowledge-content a{
    color:#009EDB;
}

.direitos1 .knowledge-tag{
    background:#ff4c57;
}

.direitos1 .knowledge-content a{
    color:#ff4c57;
}

.ambiente .knowledge-tag{
    background:#2ba66a;
}

.ambiente .knowledge-content a{
    color:#2ba66a;
}

.anticorrupcao .knowledge-tag{
    background:#f6a623;
}

.anticorrupcao .knowledge-content a{
    color:#f6a623;
}

.oceano .knowledge-tag{
    background:#19a7e0;
}

.oceano .knowledge-content a{
    color:#19a7e0;
}

/* ==================================================
   HOVER AVANÇADO
================================================== */

.knowledge-card::after{
    content:"";
    position:absolute;
    inset:0;
    opacity:0;
    background:linear-gradient(
        180deg,
        transparent,
        rgba(0,0,0,.015)
    );

    transition:.3s;
    pointer-events:none;
}

.knowledge-card{
    position:relative;
}

.knowledge-card:hover::after{
    opacity:1;
}

/* ==================================================
   TABLET
================================================== */

@media(max-width:1200px){

    .knowledge-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .knowledge-section .events-section-title{
        font-size:62px;
    }
}

/* ==================================================
   MOBILE
================================================== */

@media(max-width:768px){

    .knowledge-container{
        padding:0 20px;
    }

    .knowledge-grid{
        grid-template-columns:1fr;
    }

    .knowledge-section .news-header-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .knowledge-section .events-section-title{
        font-size:42px;
    }

    .knowledge-section .events-section-description{
        font-size:16px;
    }

    .knowledge-image{
        height:240px;
    }

}


  /* Seção CTA Final */
.cta-final-section {
    background-color: rgb(30 50 80 / 1); 
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    color: #ffffff;
    padding: 100px 20px; 
    text-align: center;
    width: 100%;
  }
  
  .cta-final-container {
    max-width: 800px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  .cta-final-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
  }
  
  .cta-final-description {
    color: rgb(174 207 230 / 1);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.75rem;
    max-width: 42rem;
    margin-bottom: 12px;
  }
  
  /* Grupo de Botões */
  .cta-final-buttons {
    display: flex;
    flex-direction: column; 
    gap: 16px;
    width: 100%;
    max-width: 450px; 
  }
  
  /* Base Comum dos Botões */
  .cta-final-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }
  
  /* Botão Verde (Preenchido) */
  .btn-primary {
    background-color: rgb(41 125 109 / 1);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(43, 182, 115, 0.3);
  }
  
  .btn-primary:hover {
    background-color: rgb(34, 102, 90);
    transform: translateY(-2px);
  }
  
  /* Botão Transparente (Borda) */
  .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .btn-secondary:hover {
    background-color: #fff;
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    color: rgb(30 50 80 / 1);
  }
  
  /* MEDIA QUERY: DESKTOP (Alinhamento Lado a Lado) */
  @media (min-width: 768px) {
    .cta-final-title {
      font-size: 3.5rem;
    }
  
    .cta-final-buttons {
      flex-direction: row; 
      justify-content: center;
      max-width: none;
      gap: 20px;
    }
    
    .cta-final-buttons a {
      width: auto; 
      min-width: 220px; 
    }
  }
  

.event-status.closed {
  color: #a0aec0 !important; 
  opacity: 0.6; 
}


.event-card.event-past .event-title-link {
  pointer-events: none; 
  cursor: default;       
  text-decoration: none; 
}

.event-card.event-past .event-image-wrapper {
  pointer-events: none;
}

  /* Mínimo para o Swiper funcionar dentro da sua estrutura */
  .news-slider-wrapper {
    position: relative;
  }
  
  .news-slider-wrapper .swiper-slide {
    height: auto;
  }
  .swiper-pagination-bullet {
    background: #11223f;
    opacity: 0.25;
  }
  .swiper-pagination-bullet-active {
    opacity: 1;
  }
  .swiper-button-next,
  .swiper-button-prev {
    color: #fff;
    background: #11223f;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    top: 38%;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 13px;
    font-weight: 900;
  }
  @media (max-width: 991px) {
    .swiper-button-next,
    .swiper-button-prev {
      display: none;
    }
  }
