@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500&display=swap');

body {
  font-family: Arial, sans-serif;
  background-color: #efefef;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

header {
  background-color: #ffffff;
  height: 80px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.grupo-image {
  display: flex;
  /* Usar Flexbox para alinhamento */
  justify-content: center;
  /* Centralizar a imagem horizontalmente */
  align-items: center;
  /* Centralizar a imagem verticalmente */
  padding: 20px;
  /* Adicionar um pouco de espaçamento */
  overflow: hidden;
  /* Garantir que a imagem não ultrapasse a área da seção */
}

/* Garantir que a imagem seja responsiva */
.grupo-image img {
  max-width: 100%;
  /* A imagem não pode ultrapassar a largura do contêiner */
  height: auto;
  /* Manter a proporção da imagem */
  display: block;
  /* Evitar espaçamento embaixo da imagem */
  object-fit: contain;
  /* Ajusta a imagem para caber no contêiner sem distorcer */
}

/* Neutraliza a cor padrão do Bootstrap para garantir que o 'active' funcione */
.btn-info {
  /* Garante que o fundo seja neutro e o texto cinza no estado base */
  background-color: white !important;
  border-color: #ccc !important;
  color: #666 !important;
}

/* Garante que o estado ATIVO do Bootstrap não sobrescreva o background azul */
.btn-info.active {
  background-color: #189bae !important;
  color: white !important;
}

#menu {
  width: 100%;
  display: flex;
  justify-content: center;
  justify-content: space-between;
  /* Espaçamento entre a logo e o botão */
}

/* Estilo para o container dos botões de idioma */
.language-switcher {
  position: absolute;

  /* ----- POSIÇÃO NO CANTO DIREITO ----- */
  /* "Encostado na borda" (do container) */
  /* Ajuste 20px para mais ou menos, se quiser */
  right: 15px;

  /* ----- ALINHAMENTO VERTICAL AUTOMÁTICO ----- */
  top: 50%;
  /* Coloca o topo dele no meio da barra */
  transform: translateY(-50%);
  /* Puxa ele 50% da sua própria altura para cima */

  /* O restante do seu estilo original */
  display: flex;
  align-items: center;
  background-color: #e9ecef;
  border-radius: 20px;
  padding: 4px;
  gap: 4px;
  z-index: 10;
  /* Garante que ele fique por cima de outros itens */
}

/* Estilo para cada botão de idioma (PT e EN) */
.lang-btn {
  display: flex;
  /* Essencial para alinhar itens lado a lado */
  align-items: center;
  /* Alinha verticalmente a bandeira e o texto */
  gap: 8px;
  /* Espaço entre a bandeira e o texto */

  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #6c757d;
  padding: 5px 15px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.lang-btn .lang-flag {
  height: 20px !important;
  /* Altura fixa (o !important é para forçar) */
  width: auto !important;
  /* Largura automática para manter proporção */
  min-width: 20px;
  /* Garante uma largura mínima */
  flex-shrink: 0;
  /* Impede que a bandeira seja "esmagada" */
  object-fit: contain;
  /* Garante que a imagem se ajuste sem distorcer */
}

/* Efeito ao passar o mouse em um botão que NÃO está ativo */
.lang-btn:not(.active):hover {
  color: #343a40;
}

/* Estilo do botão ATIVO (linguagem selecionada) */
.lang-btn.active {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.navbar-toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 5px;
  margin-left: auto;
  /* Empurra o botão para a direita */
}

/* Centraliza a logo */
.navbar-brand {
  margin: 0 auto;
  /* Centraliza a logo */
  display: flex;
  justify-content: center;
}

.navbar-nav {
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative !important;
  display: flex;
  justify-content: center;
}

.navbar-brand img {
  width: 100%;
  height: 100%;
}

.dropdown-menu {
  text-align: left;
}

h1 {
  color: #404247;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-optical-sizing: auto;

  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

h2 {
  color: #004d99;
}

footer p {
  margin: 0;
}

.ativo {
  color: #189bae;
}

.marca {
  background-color: #0e446a;
  color: white;
  height: 40px;
  padding-top: 15px;
  font-size: 100%;
  display: flex;
  align-items: center;
}

.logo {
  margin-right: 10px;
}

li {
  margin: 0 10px;
  list-style: none;
}

.carousel-item img {
  object-fit: fill;
  max-height: 600px;
  width: 100%;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.info {
  text-align: justify;
}

.info p {
  font-size: 1rem;
  line-height: 1.6;
}

.info p:last-of-type {
  margin-bottom: 0.3rem;
  /* bem próximo ao botão */
}


.info h4 {
  margin-top: 2rem;
  color: #404247;
  font-size: x-large;
}

.info h5 {
  margin-top: 2rem;
  color: #404247;
  font-size: large;
  margin-bottom: 1rem;
}

/* ========================================================= */
/* === ESTILO PARA INSTITUIÇÕES COM SUBTÍTULOS (Colunas) === */
/* ========================================================= */

/* Garante que o grupo Universidade (h5) + Lista (div) não seja dividido entre colunas */
.institution-group {
  break-inside: avoid;

  /* === NOVO ESTILO PARA SEPARAÇÃO VISUAL === */
  background-color: rgba(255, 255, 255, 0.9);
  /* Fundo branco sutil */
  padding: 20px 25px;
  /* Espaçamento interno */
  margin-top: 25px;
  /* Mais espaço acima do grupo */
  border-radius: 8px;
  border: 1px solid rgba(14, 68, 106, 0.1);
  /* Borda muito sutil */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  /* Sombra leve */
  transition: all 0.3s ease;
}

/* Remova a margem-bottom, pois o margin-top do próximo grupo já faz a separação */
.institution-group:not(:last-child) {
  margin-bottom: 0;
}

/* === TÍTULO PRINCIPAL (h4) - Elegante e Imponente === */
.info.instituicoes h4 {
  /* Cor e Fonte */
  font-family: "Barlow Condensed", sans-serif;
  /* Usando sua fonte de títulos */
  font-size: 2.8rem;
  /* Aumenta o tamanho para destaque */
  font-weight: 800;
  /* Mais ousado */
  text-transform: uppercase;
  color: #404247;
  /* Azul escuro principal */
  letter-spacing: 1.5px;
  text-align: center;
  /* Centraliza o título */

  /* Espaçamento e Divisão */
  margin-bottom: 2rem;
  padding-bottom: 5px;
  position: relative;
  display: block;
  /* Garante que o ::after ocupe toda a linha */
  transition: all 0.35s ease-out;
}

/* Linha decorativa mais elegante e com gradiente */
.info.instituicoes h4::after {
  content: "";
  display: block;
  width: 100px;
  /* Mais largo que os subtítulos */
  height: 5px;
  /* Mais espesso */
  background: linear-gradient(90deg, #189bae, #0e446a);
  /* Gradiente de assinatura */
  margin: 0.6rem auto 0;
  /* Centraliza a linha e dá espaço */
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Sombra sutil */
}

.info.instituicoes h4:hover {
  /* Sombra que simula um brilho, usando a cor de destaque (ciano) */
  text-shadow: 0 0 15px rgba(24, 155, 174, 0.4);

  /* Leve elevação (efeito 3D sutil) */
  transform: translateY(-2px);

  /* Garante que o cursor não mude para 'pointer' */
  cursor: default;
}

/* Subtítulos (Universidades e Empresas) */
.info.instituicoes h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0e446a;

  margin-top: 0;
  /* Começa no topo do padding do container */
  margin-bottom: 1rem;
  /* Espaço entre o h5 e a lista de departamentos */

  padding-left: 5px;
  border-left: 4px solid #189bae;
  transition: all 0.35s ease-out;
}

.info.instituicoes h5:hover {
  /* Sombra de texto mais discreta */
  text-shadow: 0 0 10px rgba(24, 155, 174, 0.3);

  /* Leve movimento horizontal (continua o estilo do border-left) */
  transform: translateX(3px);

  /* Garante que o cursor não mude para 'pointer' */
  cursor: default;
}

/* Container que aplica o layout em colunas */
.departments-list-group {
  column-count: 2;
  column-gap: 40px;
  margin-bottom: 0;
  /* Remove margem desnecessária */
}

/* Estilo dos Departamentos (<p>) */
.departments-list-group p {
  /* Regras de quebra de coluna para evitar texto cortado no meio */
  break-inside: avoid;

  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  opacity: 0.9;

  /* === CORREÇÃO: Transição Suave para a Volta (Saída) === */
  transition:
    transform 0.35s ease-out,
    /* Suaviza o movimento de entrada/saída */
    opacity 0.35s ease-out,
    /* Suaviza a mudança de transparência */
    color 0.35s ease-out,
    /* Suaviza a mudança de cor do texto */
    padding-left 0.35s ease-out;
  /* Adicione padding-left para movimento caso necessário */
}

/* Bullet moderno para os Departamentos */
.departments-list-group p::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #0099ff;
  /* Azul do Bullet */
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 9px;

  /* === CORREÇÃO: Transição Suave para o Bullet === */
  transition: transform 0.35s ease-out, background 0.35s ease-out;
}

/* Hover clean */
.departments-list-group p:hover {
  transform: translateX(4px);
  opacity: 1;
  color: #000;
}

.departments-list-group p:hover::before {
  transform: scale(1.3);
  background: #00b7ff;
}

/* ----------------------------------------------- */
/* Responsividade: Volta para uma única coluna em telas menores */
@media (max-width: 768px) {
  .departments-list-group {
    column-count: 1;
  }
}

.institutions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 40px;
}

.institutions-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  transition: all .25s ease;
}

/* Bullet moderno */
.institutions-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #0099ff;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 9px;
  transition: transform .25s ease, background .25s ease;
}

@media (max-width: 768px) {
  .institutions-list {
    column-count: 1;
  }
}


/* Hover clean */
.institutions-list li:hover {
  transform: translateX(4px);
  opacity: 1;
}

.institutions-list li:hover::before {
  transform: scale(1.3);
  background: #00b7ff;
}

/* ===== ANIMAÇÃO DE ENTRADA DOS TEXTOS ===== */
.text-animate {
  opacity: 0;
  transform: translateY(15px);
  animation: textFadeIn 0.8s ease forwards;
}

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

/* ===== EFEITO DE SUBLINHADO MODERNO EM LINKS ===== */
.modern-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #189bae;
  font-weight: bold;
}

.modern-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #189bae;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.modern-link:hover::after {
  width: 100%;
}

/* ===== EFEITO DE DESTAQUE NO PARÁGRAFO ===== */
.dynamic-text {
  line-height: 1.7;
  font-size: 1.15rem;
  color: #4a4a4a;
  transition: color .3s ease;
}

.dynamic-text:hover {
  color: #189bae;
}


.info-container a {
  margin-bottom: 1rem;
  color: #494949;
  font-weight: bold;
  font-size: 17px;
  text-align: start;
  text-decoration: none;
}

.info-container a:hover {
  color: #189bae;
  text-decoration: none;
}

.body-pesquisa {
  padding: 0px !important;
}

.card p {
  color: #666;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* ==== ANIMAÇÃO FADE-IN GLOBAL ==== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

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

#missionText {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0;
  transition: opacity .4s ease;
}

/* ==== INFO CONTAINER ==== */
.info-container {
  text-align: center;
  margin: 0 20% 1rem;
  transition: transform .3s ease;
}

/* ícone com animação leve */
.info-container img {
  max-width: 100%;
  margin-bottom: 1rem;
  transition: transform .4s ease;
}

.info-container img:hover {
  transform: scale(1.05);
}

/* =====================
   ZOOM NOS CARDS PRINCIPAIS
   ===================== */

.container-cards .card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  transition: transform .50s ease, box-shadow .35s ease !important;
  cursor: pointer;
}

.container-cards .card:hover {
  transform: translateY(-10px) scale(1.06) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.20) !important;
}

/* Ícone */
.container-cards .card img {
  transition: transform .4s ease;
}

.container-cards .card:hover img {
  transform: scale(1.22);
}

/* Título */
.container-cards .card h3 {
  font-weight: bold;
  margin-top: 1rem;
  color: #404247;
  transition: color .3s ease;
}

.container-cards .card:hover h3 {
  color: #189bae;
}

/* Botão */
.container-cards .btn-primary {
  background-color: #189bae;
  border: none;
  width: 100%;
  border-radius: 10px;
  height: 45px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease, transform .3s ease;
}

.container-cards .btn-primary:hover {
  background-color: #0e446a;
  transform: scale(1.05);
}


/* --- CONTAINER E GRID (Mantendo 2 Colunas Fixas) --- */
#cards-container .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px; /* Reduz margem lateral */
}
#cards-container .col-sm-6 {
    /* Garante 2 colunas e altura igual */
    display: flex; 
    margin-bottom: 20px; /* Reduz espaço vertical entre linhas */
    padding: 0 10px; /* Reduz espaço horizontal entre cards */
}
/* No seu JS, certifique-se de que a classe col-lg-4 foi removida e só sobrou col-sm-6 */

/* --- O CARD (Estrutura Compacta) --- */
.card.pesquisa {
    position: relative;
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    
    background: #ffffff;
    border: none;
    border-radius: 10px; /* Borda levemente menor para compactar */
    
    /* Borda Lateral Elegante */
    border-left: 5px solid #189bae; 
    
    /* Sombra Discreta */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Sombra mais suave e compacta */
    
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    overflow: hidden;
}

/* --- INTERAÇÃO (HOVER) --- */
.card.pesquisa:hover {
    transform: translateY(-4px); /* Sobe minimamente */
    box-shadow: 0 10px 20px rgba(24, 155, 174, 0.15); /* Sombra azulada mais contida */
    border-left-color: #4cdbf3; 
}

/* --- CORPO DO CARD (Ajuste Crítico do Espaçamento) --- */
.card-body.body-pesquisa {
    /* ESPAÇAMENTO MÍNIMO: 1.25rem é um bom meio termo */
    padding: 1.25rem 1.5rem !important; /* Redução para compactar */
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* --- TÍTULO (Ajuste) --- */
.card.pesquisa .card-title.titulo-pesquisa {
    font-size: 1.2rem; /* Fonte ligeiramente menor */
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem; /* Reduzido para aproximar o botão */
    line-height: 1.3;
    /* Faz o título ocupar o espaço e empurrar o botão */
    flex-grow: 1; 
    transition: color 0.3s;
}

.card.pesquisa:hover .card-title.titulo-pesquisa {
    color: #189bae; 
}

/* --- BOTÃO (Compacto) --- */
.card.pesquisa .btn-outline-secondary {
    align-self: flex-start;
    margin-top: auto; 
    
    /* AUMENTO DO TAMANHO AQUI: Mais padding interno */
    padding: 0.6rem 1.25rem; 
    
    border-radius: 50px;
    border: 1px solid #eef2f3; 
    background: #fff;
    color: #888;
    
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    
    display: inline-flex;
    align-items: center;
    gap: 5px; 
}

/* Hover do Botão */
.card.pesquisa:hover .btn-outline-secondary {
    border-color: #189bae;
    background: #189bae;
    color: white;
    box-shadow: 0 3px 6px rgba(24, 155, 174, 0.2);
}

.card.pesquisa a { 
    text-decoration: none !important; 
}

/* =================================================== */
/* === AJUSTES MOBILE (MAX-WIDTH: 576PX) === */
/* =================================================== */

@media (max-width: 767px) {
    
/* --- ESTRUTURA DOS CARDS MOBILE --- */
    #cards-container .col-sm-6 {
        /* Força 100% da largura (coluna única) */
        width: 100%; 
        padding: 0 15px; /* Espaçamento lateral fixo */
        margin-bottom: 20px; 
    }
    #cards-container .row {
        margin: 0 -5px; /* Ajuste fino de margem para mobile */
    }

    /* --- COMPACTAÇÃO INTERNA DOS CARDS MOBILE --- */
    .card.pesquisa {
        box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    }
    .card-body.body-pesquisa {
        /* Padding mais apertado, mas ainda com respiro */
        padding: 1.2rem 1.25rem !important; 
    }

    /* --- TÍTULO MOBILE --- */
    .card.pesquisa .card-title.titulo-pesquisa {
        font-size: 1.15rem; /* Levemente menor para caber melhor */
        margin-bottom: 0.75rem; 
    }

    /* --------------------------------------------------- */
    /* *** CORREÇÃO DO BOTÃO "SAIBA MAIS" (Compacto) *** */
    /* --------------------------------------------------- */
    .card.pesquisa .btn-outline-secondary {
        /* Garante que o botão se ajuste ao conteúdo, removendo o esticamento */
        width: auto; 
        
        /* Usa o display flex definido na versão desktop */
        display: inline-flex;
        
        /* Reafirma o tamanho compacto */
        padding: 0.6rem 1.25rem; 
        font-size: 0.8rem;
    }

}

main {
  background-color: #efefef;
  flex: 1;
}

.difusao {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.difusao h2 {
  font-size: 1.8rem;
  color: #404247;
  margin-bottom: 20px;
  font-weight: bold;
}

.player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#twitch-embed {
  width: 100%;
  max-width: 1100px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  animation: fadeIn .8s ease forwards;
  opacity: 0;
}


.youtube-channel {
  margin: 30px 40px;
}


.section-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: sectionFadeUp .8s ease forwards;
}

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


/* ==========================================================================
  CSS ATUALIZADO YOUTUBE CANAL
  ==========================================================================
*/

/* --- Estilos do Canal --- */
#yt-channel-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

#yt-channel {
  padding: 20px 20px 0 20px;
  /* Reduzido padding inferior */
  font-family: Arial, sans-serif;
  text-align: center;
  transition: transform .3s ease, opacity .3s ease;
}

#yt-channel:hover {
  transform: translateY(-6px);
  opacity: .9;
}

.yt-banner {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  object-fit: cover;
}

.yt-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-top: -55px;
  border: 4px solid #fff;
  object-fit: cover;
  background: #fff;
}

.yt-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 10px;
  color: #111;
}

.yt-meta {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
  /* Reduzido margin */
}

/* --- REQ 1 (ATUALIZADO): Estilo do Separador --- */
.section-divider {
  border: 0;
  height: 1px;
  background: #c5c5c5;
  /* Cor cinza bem mais visível */
  margin: 25px 40px;
  /* Aumentei a margem para separar melhor */
}

/* --- Estilos do Carrossel de Cursos --- */
#canal-bagnato {
  font-family: Arial, sans-serif;
  padding: 0 20px 30px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

#canal-bagnato h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #222;
  padding-left: 5px;
  /* Alinha com os cards */
}

.carousel-row {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 5px 20px 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-row::-webkit-scrollbar {
  height: 8px;
}

.carousel-row::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.carousel-row::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* --- Novo Design dos Cards --- */
#canal-bagnato .card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 280px;
  max-width: 280px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

#canal-bagnato .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* MILTON */
/* --- Milton: mesmo estilo dos cards do canal Bagnato --- */
#canal-milton {
  font-family: Arial, sans-serif;
  padding: 0 20px 30px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

#canal-milton .card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 280px;
  max-width: 280px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

#canal-milton .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

#canal-milton .carousel-row {
  display: flex;
  justify-content: center;
}

#canal-milton .card-title {
  font-size: 16px;
  font-weight: bold;
  color: #111;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 20px;
}

#canal-milton .card-lectures {
  font-size: 14px;
  color: #555;
}

#canal-milton .card-link {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #0d6efd;
  text-decoration: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  transition: color 0.2s ease;
}

#canal-milton .card-link:hover {
  color: #0a58ca;
  text-decoration: underline;
}


/* === Ajusta o wrapper da miniatura === */
.card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

/* === Imagem ocupa o espaço completo do card === */
.card-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

/* === Ícone play centralizado === */
.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-icon-overlay svg {
  width: 40px;
  height: 40px;
  fill: white;
}

/* === Mostra o ícone ao passar o mouse === */
.card-thumbnail-wrapper:hover .play-icon-overlay {
  opacity: 1;
}

/* --- Conteúdo do Card (com o link) --- */
.card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-top-content {
  flex-grow: 1;
}

#canal-bagnato .card-title {
  font-size: 16px;
  font-weight: bold;
  color: #111;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 40px;
}

#canal-bagnato .card-lectures {
  font-size: 14px;
  color: #555;
}

#canal-bagnato .card-link {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #0d6efd;
  text-decoration: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  transition: color 0.2s ease;
}

#canal-bagnato .card-link:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* --- Estilos do Modal (Sem mudanças) --- */
.modal-overlay {
  display: flex;
  /* Mudança: Use flex por padrão */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: #000;
  margin: auto;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.modal-close {
  color: #fff;
  position: absolute;
  top: -35px;
  right: 0;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ccc;
}


/* ==========================================================================
CSS SEÇÃO 4 - NOVO CARROSSEL DE NOTÍCIAS
 ========================================================================== */

.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.carousel-pagination .page-btn {
  background: #ddd;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-pagination .page-btn:hover:not(:disabled) {
  background: #bbb;
}

.carousel-pagination .page-btn.active {
  background: #333;
  color: #fff;
}

.carousel-pagination .page-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.noticias-container {
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}


.noticias-container h2 {
  text-align: center;
  color: #333;
  font-size: 1.9rem;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.noticias-container h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #189bae;
  transform: translateX(-100%);
  animation: underlineSlide .6s .4s ease forwards;
}

@keyframes underlineSlide {
  to {
    transform: translateX(0);
  }
}


/* Carrossel */
#noticiasCarousel .carousel-inner {
  padding: 10px 0;
}

/* Setas */
#noticiasCarousel .carousel-control-prev,
#noticiasCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition: transform .25s ease, background .25s ease;
}

#noticiasCarousel .carousel-control-prev:hover,
#noticiasCarousel .carousel-control-next:hover {
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.6);
}


#noticiasCarousel .carousel-control-prev-icon::before {
  content: "‹";
  font-size: 1.8rem;
  color: #fff;
}

#noticiasCarousel .carousel-control-next-icon::before {
  content: "›";
  font-size: 1.8rem;
  color: #fff;
}


/* Card de notícia */
.noticia-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: #333;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: fadeCard .6s ease forwards;
  opacity: 0;
}

.noticia-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.noticia-card,
.noticia-card:hover,
.noticia-card:focus,
.noticia-card:active {
  text-decoration: none !important;
  color: inherit !important;
}


@keyframes fadeCard {
  to {
    opacity: 1;
  }
}

/* Thumbnail */
.noticia-thumbnail {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #f4f4f4;
}

.noticia-thumbnail.no-image-placeholder {
  background-image: url("../img/logo-cepof-marca.png");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center;
}

/* Conteúdo */
.noticia-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.noticia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.noticia-media {
  background-color: #e8f7f9;
  color: #189bae;
  font-weight: 600;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.noticia-date {
  font-size: 13px;
  color: #777;
}

.noticia-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noticia-spacer {
  flex-grow: 1;
}

.noticia-republicado {
  font-size: 12px;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 6px;
  margin-top: 6px;
  font-style: italic;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}


/* Responsividade */
/* Layout do row do carousel: usamos flex para controlar largura dos items */
#noticiasCarousel .carousel-item .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
}

/* Wrapper previsível para cada card (usado pelo JS) */
.news-card-wrapper {
  box-sizing: border-box;
  padding: 0;
  /* já tem margem no gap */
}

/* Desktop: 4 cards por slide */
@media (min-width: 993px) {
  #noticiasCarousel .carousel-item .row>.news-card-wrapper {
    width: calc((100% - 3 * 24px) / 4);
    /* leva em conta gaps */
    max-width: calc((100% - 3 * 24px) / 4);
  }
}

/* Tablet médio: 3 cards por slide */
@media (min-width: 769px) and (max-width: 992px) {
  #noticiasCarousel .carousel-item .row>.news-card-wrapper {
    width: calc((100% - 2 * 24px) / 3);
    max-width: calc((100% - 2 * 24px) / 3);
  }
}

/* Tablet/celular vertical: 2 cards por slide */
@media (min-width: 576px) and (max-width: 768px) {
  #noticiasCarousel .carousel-item .row>.news-card-wrapper {
    width: calc((100% - 1 * 24px) / 2);
    max-width: calc((100% - 1 * 24px) / 2);
  }
}

/* Telas extra pequenas: 1 card por slide */
@media (max-width: 575px) {
  #noticiasCarousel .carousel-item .row>.news-card-wrapper {
    width: 100%;
    max-width: 100%;
  }

  /* Ajuste de setas para telas muito pequenas */
  #noticiasCarousel .carousel-control-prev {
    left: -10px;
  }

  #noticiasCarousel .carousel-control-next {
    right: -10px;
  }
}

/* Opcional: garanta que o conteúdo interno do card ocupe 100% do wrapper */
.news-card-wrapper .noticia-card {
  display: block;
  width: 100%;
}


/* --- Media Query para Dispositivos Móveis (telas de até 600px de largura) --- */
@media only screen and (max-width: 600px) {

  /* 1. Ajuste do Container Principal (.difusao) */
  .difusao {
    /* Remove a margem lateral excessiva (margin: 50px 20% do CSS original) */
    margin: 20px 5%;
    /* Margem superior/inferior menor e margem lateral mínima */
    padding: 10px;
    /* Reduz o padding interno */
    max-width: 100%;
    /* Garante que ocupe toda a largura disponível */
    /* display: block; ou manter o padrão, já que o foco é o margin */
  }

  /* 2. Ajuste do Título */
  .difusao h2 {
    font-size: 1.4rem;
    /* Reduz o tamanho da fonte para melhor leitura */
    margin-bottom: 15px;
  }

  /* 3. Ajuste do Player do Twitch (#twitch-embed) */
  /* Como já está com width: 100% e aspect-ratio: 16 / 9 no CSS original, 
       ele já é razoavelmente responsivo, mas garantimos que não haja restrições. */
  #twitch-embed {
    /* max-width: 1100px; será ignorado em telas pequenas */
    width: 100%;
  }

  /* 4. Ajuste do Container do YouTube (.youtube-channel) */
  .youtube-channel {
    /* Remove o margin lateral grande (margin: 30px 40px;) que pode causar problemas */
    margin: 20px 0;
    /* Margem apenas vertical, ocupa toda a largura */
    width: 100%;
    /* Garante largura total dentro do .difusao */
  }

  /* 5. Ajuste de Imagens (ex: o banner comentado, se estivesse ativo) */
  .banner-youtube {
    width: 100%;
    max-width: 100%;
    /* Garante que a imagem nunca ultrapasse a tela */
  }
}

/* === FOOTER === */
footer {
  color: white;
  text-align: center;
  font-size: large;
  font-family: Arial, sans-serif;
}

/* === PATROCINADORES === */
.footer .patrocinadores {
  display: flex;
  justify-content: center;
  gap: 10%;
  flex-wrap: wrap;
  padding: 20px;
  background-color: #189bae;
  /* fundo das imagens */
}

/* imagens dos patrocinadores */
.footer .patrocinadores div img {
  max-width: 200px;
  height: auto;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 20px;
  background-color: #1a707e;
  align-items: flex-start;
  justify-content: center;
}

.col-endereco {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 400px;
}

.col-endereco .INCT {
  font-weight: bold;
  font-size: larger;
  margin-bottom: 10px;
}

.footer-info .endereco,
.footer-info .contato {
  text-align: left;
}

.footer-info .mapa {
  max-width: 400px;
  flex-shrink: 0;
}

.footer-info iframe {
  width: 100%;
  height: 150px;
  border: 0;
  border-radius: 8px;
}

.footer-titulo {
  text-align: center;
  font-weight: bold;
  font-size: larger;
  padding: 10px 20px;
  background-color: #1a707e;
}


/* Caixa institucional */

/* ===== FADE ON SCROLL ===== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TITLE EFFECT ===== */

.title {
  position: relative;
  overflow: hidden;
  animation: fadeSlideDown .9s ease both;
}

.title:hover {
  text-shadow: 0 0 14px rgba(0, 180, 255, 0.4);
}

/* ===== INFO TEXT ===== */

.info p {
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.info p:hover {
  opacity: 1;
}

/* ===== SPONSOR BOX ===== */

.inct-sponsors-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 18px;
  margin-top: 35px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  animation: fadeSlideUp 1s ease both;
  margin-bottom: 35px;
}

.inct-imagens img {
  transition: transform .35s ease, filter .35s ease;
}

.inct-imagens:hover img {
  transform: scale(1.04);
  filter: brightness(1.09);
}

/* ===== KEYFRAMES ===== */

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

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


/* Flex container logos */
.inct-imagens-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* Base das imagens */
.inct-imagens img {
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Faixa INCT maior */
.inct-imagens:first-child img {
  max-width: 560px;
  width: 100%;
}

/* Logo FAPESP menor */
.inct-imagens:last-child img {
  max-width: 320px;
  width: 100%;
}

/* Hover sutil */
.inct-imagens img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Responsivo adicional */
@media (max-width: 768px) {
  .inct-sponsors-box {
    padding: 30px 20px;
    gap: 30px;
  }

  .inct-imagens:first-child img {
    max-width: 100%;
  }
}



.col label {
  font-size: large;
  margin-top: 1rem;
  margin-bottom: 1%;
  color: #404247;
  justify-content: start;
}

.table-responsive {
  margin-bottom: 2rem;
  overflow-x: auto;
  /* Adiciona rolagem horizontal */
  -webkit-overflow-scrolling: touch;
  /* Suaviza o scroll em dispositivos móveis */
  width: 100%;
  /* Garante que o contêiner ocupe toda a largura disponível */
}

.table {
  margin-top: 1.5rem;
  width: 100%;
  /* Garante que a tabela ocupe a largura total do contêiner */
  max-width: 100%;
  /* Impede que a tabela ultrapasse os limites */
  border-collapse: collapse;
  /* Remove espaçamento entre células */
}

.info-container .livro {
  text-align: center;
  max-height: auto;
  max-width: auto;
}

.info-container .card-img-top {
  border-radius: 10px;
  margin-bottom: 0px;
  max-width: 40%;
}

.info-container .card-body {
  padding: 20px;
}

.info-container .card-title {
  margin-top: 0px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.close-menu {
  display: none;
  /* Invisível por padrão */
  background: none;
  border: none;
  color: #333;
  font-size: 2rem;
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 1100;
  cursor: pointer;
}

.pesquisa {
  text-align: start;
  max-width: 90% !important;
  margin-left: auto;
  margin-right: auto;
}

.titulo-pesquisa {
  color: #189bae !important;
  text-align: start !important;
  font-size: x-large !important;
}

.titulo-pesquisa:hover {
  color: #666 !important;
}

.card-body a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Container dos botões */
.btn-group-toggle {
  margin: 20px auto 30px;
  /* Margem ajustada para centralizar e dar espaço */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Centraliza os botões */
  border: none;
  /* Remove bordas conflitantes */
}

/* Estilo Base dos Botões (Chips/Tags) */
.tipo-card {
  /* Aparência */
  background-color: white;
  color: #666;
  border: 1px solid #ccc;
  /* Borda leve e neutra */
  border-radius: 50px;
  /* Bordas arredondadas (chip look) */

  /* Tamanho e Espaçamento */
  font-size: 1rem;
  /* Aumenta um pouco para melhor legibilidade */
  font-weight: 500;
  padding: 8px 18px;
  /* Mais preenchimento interno */
  margin: 5px;
  /* Espaço entre os chips */

  /* Transição para suavizar hover e clique */
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Efeito de Hover (Mouse sobre o Chip) */
.tipo-card:hover {
  background-color: #f0f0f0;
  /* Fundo cinza suave no hover */
  color: #189bae;
  /* Cor do texto de destaque (igual aos seus links) */
  border-color: #189bae;
  /* Borda de destaque */
}

/* Estilo para o estado ATIVO/SELECIONADO */
.btn-group-toggle .tipo-card.active,
.btn-group-toggle .tipo-card:focus {
  /* Cor de Destaque */
  background-color: #189bae;
  /* Cor principal de destaque */
  color: white;
  /* Texto branco */
  border-color: #189bae;

  /* Efeito de Leve Levitação */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(24, 155, 174, 0.4);
  /* Sombra do destaque */
}


/* --- CSS ATUALIZADO E MODERNO --- */

/* Container Principal da Tabela (O "Card") */
.table-container {
  background-color: #ffffff;
  /* Fundo branco apenas no card */
  border-radius: 16px;
  /* Bordas mais arredondadas */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Sombra difusa e elegante */
  padding: 30px;
  margin-top: 20px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  /* Borda ultra sutil */
}

/* Título da Seção (Mantido caso precise usar, mas é só remover no HTML) */
h3.text-secondary {
  font-weight: 700;
  color: #344767 !important;
  /* Cor cinza-azulado moderno */
  letter-spacing: -0.5px;
}

/* --- Tabela --- */
.table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

/* Cabeçalho */
thead.table-dark th {
  background-color: #344767 !important;
  /* Um azul noturno mais moderno que o preto */
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 15px;
  border: none;

  /* CORREÇÃO PARA VISIBILIDADE DO HEAD (FIXAR NO TOPO) */
  position: sticky;
  top: 0;
  z-index: 2;
  /* Garante que fique acima do corpo da tabela */
}

/* Arredondar os cantos do cabeçalho */
thead.table-dark th:first-child {
  border-top-left-radius: 10px;
}

thead.table-dark th:last-child {
  border-top-right-radius: 10px;
}

/* Corpo da Tabela */
tbody tr td {
  padding: 16px 15px;
  /* Mais espaçamento vertical nas células */
  vertical-align: middle;
  color: #495057;
  font-size: 0.95rem;
  border-bottom: 1px solid #f1f3f5;
}

/* Efeito Hover na Linha */
tbody tr:hover td {
  background-color: #f8f9fa;
  color: #212529;
  cursor: default;
}

/* --- Inputs do DataTables (Search e Length) --- */

/* Área do Filtro (Search) */
.dataTables_filter {
  margin-bottom: 20px;
}

.dataTables_filter label {
  /* Removido o texto "Search:" no JS, mas mantemos o estilo do label */
  font-weight: 600;
  color: #6c757d;
  margin-right: 10px;
}

.dataTables_filter input {
  /* BORDAS REFORÇADAS para o Search */
  border: 1px solid #ced4da !important;
  border-radius: 8px;
  padding: 8px 15px;
  width: 280px;
  /* Mais largo */
  outline: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  background-color: #fcfcfc;
}

.dataTables_filter input:focus {
  border-color: #0d6efd !important;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
  /* Glow suave */
}

/* Área do Length (Mostrar 10 registros) */
.dataTables_length label {
  color: #6c757d;
  font-size: 0.9rem;
}

.dataTables_length select {
  /* BORDAS REFORÇADAS para o Select */
  border: 1px solid #ced4da !important;
  border-radius: 6px;
  padding: 5px 10px;
  margin: 0 8px;
  outline: none;
  color: #495057;
  background-color: #fcfcfc;
  cursor: pointer;
}

.dataTables_length select:focus {
  border-color: #0d6efd !important;
}

/* --- Paginação --- */
.dataTables_paginate {
  margin-top: 20px !important;
}

.page-item .page-link {
  border: none;
  border-radius: 50%;
  /* Bolinhas */
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  margin: 0 3px;
  font-weight: 500;
  transition: all 0.2s;
}

.page-item.active .page-link {
  background-color: #0d6efd;
  /* Azul Bootstrap */
  color: white;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
  /* Sombra no ativo */
}

.page-item.disabled .page-link {
  background-color: transparent;
  color: #ced4da;
}

.page-link:hover {
  background-color: #e9ecef;
  color: #343a40;
}

/* === SEÇÃO DE TEXTO MODERNA (Inovação) === */
.inovacao-section {
  background: linear-gradient(to bottom,
      rgba(14, 68, 106, 0.05) 0%,
      #ffffff 30%,
      #ffffff 70%,
      rgba(14, 68, 106, 0.05) 100%);
  margin: 2rem 18% 1rem;
  padding: 2rem;
  text-align: justify;
  color: #404247;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

/* leve animação ao aparecer */
.inovacao-section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease-out forwards;
}

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

.logo_center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  animation: logoFadeIn 1s ease-out forwards;
}

.logo_center img {
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.12));
  transition:
    transform 0.4s ease,
    filter 0.4s ease,
    opacity 0.4s ease;
  opacity: 0.95;
  will-change: transform, filter;
}

/* hover elegante */
.logo_center img:hover {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.18));
  opacity: 1;
}

/* animação inicial */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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


/* === SEÇÃO DE VÍDEOS (isolada) === */

.videos-section {
  background: linear-gradient(to bottom,
      rgba(14, 68, 106, 0.05) 0%,
      #ffffff 30%,
      #ffffff 70%,
      rgba(14, 68, 106, 0.05) 100%);
  margin: 2rem 6% 1rem;
  /* menor margem horizontal */
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

/* leve animação ao aparecer */
.videos-section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease-out forwards;
}

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

/* === CAIXAS INDIVIDUAIS DOS VÍDEOS === */
.videos-section .col-lg-6.col-md-12 {
  background: #fff;
  border-radius: 20px;
  padding: 0.6rem 0.6rem 1rem;
  /* padding reduzido */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.videos-section .col-lg-6.col-md-12:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

/* === QUADRO DO VÍDEO === */
.videos-section .ratio.ratio-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* substitui o padding fixo */
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 0.8rem;
}

/* iframe ocupa 100% do container */
.videos-section .ratio.ratio-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.95) contrast(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.videos-section .ratio.ratio-16x9:hover iframe {
  transform: scale(1.03);
  filter: brightness(1.1) contrast(1.1);
}

/* === TÍTULO DA SEÇÃO === */
.video-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.video-section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #0077ff, #00c6ff);
  margin: 0.5rem auto 0;
  border-radius: 3px;
}

/* === TÍTULOS INDIVIDUAIS DOS VÍDEOS === */
.video-caption {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0a58ca;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 3;
}

#legenda-videos-inovacao .video-caption {
  min-height: 100px; 
}

.video-caption::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #00b4d8, #0077ff);
  margin: 0.4rem auto 0;
  border-radius: 2px;
}

/* === CONTAINER DOS VÍDEOS === */
.row.g-4.mb-5 {
  justify-content: center;
  row-gap: 0.5rem !important;
  /* evita sobreposição vertical */
  margin-bottom: 2px;
}

/* === RESPONSIVIDADE === */
@media (min-width: 992px) {
  .videos-section .col-lg-6 {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

@media (max-width: 768px) {
  .video-section-title {
    font-size: 1.8rem;
  }

  .video-caption {
    font-size: 1.2rem;
  }

  .col-lg-6.col-md-12 {
    margin-bottom: 2rem;
  }
}

/* título mantém o estilo atual mas ganha leve modernização */
.inovacao-section h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3.5rem;
  text-transform: uppercase;
  color: #404247;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
  margin-bottom: 2rem;
}

/* linha decorativa sob o título */
.inovacao-section h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0e446a, #189bae);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* === Estilo para os Subtítulos (h2) === */
.inovacao-section>h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  /* Menor que o 3.5rem do h1 */
  text-transform: uppercase;
  color: #0e446a;
  /* Cor escura do gradiente para destaque */
  font-weight: 700;
  /* Mais ousado que o 600 do h1 */
  text-align: left;
  /* Alinhado à esquerda, que é melhor para o fluxo do texto */
  letter-spacing: 0.5px;
  margin-top: 3rem;
  /* Espaço maior para separar do parágrafo anterior */
  margin-bottom: 1.5rem;
  padding-bottom: 5px;
  /* Espaçamento antes da linha decorativa */
  position: relative;
  border-left: 5px solid #189bae;
  /* Linha de destaque lateral sutil */
  padding-left: 15px;
  transition: all 0.3s ease-out;
}

/* Linha decorativa inferior (mantendo a assinatura de estilo) */
.inovacao-section>h2::after {
  content: "";
  display: block;
  width: 60px;
  /* Mais curto que o do h1 (80px) */
  height: 3px;
  /* Mais fino que o do h1 (4px) */
  background: linear-gradient(90deg, #189bae, #0e446a);
  /* Gradiente invertido para interesse */
  margin-top: 5px;
  margin-left: 0;
  border-radius: 2px;
}

/* Efeito sutil ao passar o mouse */
.inovacao-section>h2:hover {
  color: #0e446a;
  /* Mantém a cor original (azul marinho) */

  /* Novo Efeito 1: Sombra de texto sutil e elegante */
  text-shadow: 0 0 10px rgba(24, 155, 174, 0.5);

  /* Novo Efeito 2: Leve transformação para dar profundidade */
  transform: translateX(2px);

}

/* texto mais leve e legível */
.inovacao-section p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.inovacao-section p:hover {
  color: #000;
}

/* link moderno */
.inovacao-section a {
  color: #189bae;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.inovacao-section a:hover {
  color: #0e446a;
  text-shadow: 0 0 10px rgba(14, 68, 106, 0.3);
}

/* leve brilho decorativo no fundo (animação sutil) */
.inovacao-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(24, 155, 174, 0.08), transparent 60%);
  animation: floatLight 10s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes floatLight {
  0% {
    transform: translateY(0);
    opacity: 0.4;
  }

  100% {
    transform: translateY(20px);
    opacity: 0.7;
  }
}

/* garante que o texto fique acima da animação */
.inovacao-section * {
  position: relative;
  z-index: 1;
}

/* responsividade aprimorada */
@media (max-width: 768px) {
  .inovacao-section {
    padding: 2rem 6%;
    /* mantém um pequeno espaçamento nas laterais */
    margin: 1rem 2%;
    /* margens mínimas para não colar na borda */
    border-radius: 12px;
    /* opcional, mantém arredondado mas mais confortável */
  }

  .inovacao-section h1 {
    font-size: 2.5rem;
  }

  .inovacao-section p {
    font-size: 1rem;
  }
}

/* para celulares muito pequenos (ex.: <= 480px) */
@media (max-width: 480px) {
  .inovacao-section {
    padding: 1.5rem 4%;
    margin: 1rem 2%;
  }

  .inovacao-section h1 {
    font-size: 2rem;
  }

  .inovacao-section p {
    font-size: 0.95rem;
  }
}


/* === GALERIA DE IMAGENS === */
/* === GALERIA: SINGLE IMAGE CENTERED === */

.image-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 3rem 0;
}

/* O Cartão Central */
.gallery-item {
  position: relative;
  overflow: visible;
  border-radius: 14px;
  cursor: default;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: fadeInSlideUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  
  width: 100%;
  max-width: 500px; /* Controla a largura máxima da imagem */
  margin: 0 20px;
}

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

/* Envoltório da Borda Neon */
.img-wrap {
  position: relative;
  border-radius: 12px;
  
  /* AQUI: O padding define a espessura da linha neon. 
     Se quiser mais fina ainda, mude de 4px para 2px ou 3px */
  padding: 3px; 
  
  background: linear-gradient(90deg,
      #007bff,
      #189bae,
      rgb(1, 52, 107),
      #00c3ff,
      #007bff);
  background-size: 300% 300%;
  animation: neonMove 4.5s linear infinite;
  display: block; /* Garante que o container se comporte como bloco */
  transition: transform 0.45s cubic-bezier(.2, .9, .2, 1), box-shadow 0.45s ease;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.08);
  
  /* Removemos o background preto, pois a imagem vai cobrir tudo agora */
  background-color: transparent;
}

@keyframes neonMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === IMAGEM === */
.img-wrap img {
  display: block; /* Remove espaços brancos fantasmas abaixo da imagem */
  width: 100%;    /* Ocupa 100% da largura do container (800px) */
  
  /* --- A CORREÇÃO MÁGICA --- */
  height: auto;   /* A altura se ajusta sozinha para manter a proporção original */
  object-fit: cover; /* Garante o preenchimento total */
  /* -------------------------- */
  
  border-radius: 9px;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(.2, .9, .2, 1), filter 0.35s ease;
  will-change: transform, filter;
  position: relative;
  z-index: 2;
}

/* === EFEITO DE FUMAÇA / GLOW ATRÁS === */
.img-wrap::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 16px;
  background: radial-gradient(circle at center,
      rgba(0, 200, 255, 0.4) 0%,
      rgba(0, 150, 255, 0.15) 40%,
      transparent 70%);
  opacity: 0;
  filter: blur(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.95);
  z-index: 1;
}

/* === LEGENDA === */
.caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 20px);
  width: 85%;
  padding: 12px 16px;
  background: rgba(10, 40, 70, 0.7);
  backdrop-filter: blur(8px);
  color: #e9f8ff;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 200, 255, 0.2);
  text-shadow: 0 0 6px rgba(0, 200, 255, 0.3);
  opacity: 0;
  transition: all 0.5s cubic-bezier(.2, .9, .2, 1);
  z-index: 4;
}

/* === HOVER EFFECTS === */
.gallery-item:hover { transform: translateY(-8px); }

.gallery-item:hover .img-wrap {
  transform: scale(1.02);
  box-shadow:
    0 8px 30px rgba(0, 224, 255, 0.3),
    0 0 40px rgba(0, 160, 255, 0.25),
    0 0 80px rgba(0, 123, 255, 0.18);
  filter: saturate(1.15);
}

.gallery-item:hover .img-wrap::after {
  opacity: 1;
  transform: scale(1.1);
}

.gallery-item:hover .img-wrap img {
  /* Leve zoom na imagem ao passar o mouse */
  transform: scale(1.03); 
  filter: brightness(1.15) saturate(1.15);
}

.gallery-item:hover .caption {
  opacity: 1;
  transform: translate(-50%, 0);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.25);
}

/* Responsividade Celular */
@media (max-width: 520px) {
  /* No celular, height auto também funciona perfeitamente */
  .caption { font-size: 0.9rem; padding: 10px 12px; }
}


.midia-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0.3rem 0 3rem;
}


.midia-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  padding: 12px 25px;

  border-radius: 50px;

  font-size: 0.95rem;

  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;

  background: linear-gradient(90deg, #189bae 0%, #0e446a 100%);

  color: #ffffff98 !important;

  box-shadow: 0 8px 25px rgba(14, 68, 106, 0.4);

  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.midia-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(14, 68, 106, 0.6);
  filter: brightness(1.1);
}

.midia-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.midia-button:hover::after {
  left: 100%;
}

/* === ESTILOS PARA O BOTÃO CTA DE PATENTES === */

.cta-patentes-container {
  text-align: center;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(14, 68, 106, 0.1);
  margin-top: 2rem;
}

.cta-patentes-container h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #404247;
  margin-bottom: 1.5rem;
}

.cta-patentes-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;

  background: linear-gradient(90deg, #189bae 0%, #0e446a 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(14, 68, 106, 0.4);

  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.cta-patentes-button .icon {
  margin-right: 10px;
  font-size: 1.4rem;
}

.cta-patentes-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(14, 68, 106, 0.6);
  filter: brightness(1.1);
}

.cta-patentes-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.cta-patentes-button:hover::after {
  left: 100%;
}

/* =========================================================================
   MENU MOBILE: CORREÇÃO DE BUGS E POSICIONAMENTO (max-width: 1200px)
   ========================================================================= */

@media (max-width: 1200px) {

  /* --- 1. HEADER (Container Principal - Usando Flexbox para Posicionamento Simples) --- */
  header {
    display: flex;
    /* Mudamos para Flexbox */
    justify-content: space-between;
    /* Espaço máximo entre os elementos (Esquerda/Centro/Direita) */
    align-items: center;
    /* Centralização Vertical Perfeita */

    padding: 15px 20px;
    min-height: 80px;
    /* Altura mínima para centralizar */

    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1040;
    width: 100%;
    /* Garante que o header ocupe toda a largura */
  }

  /* --- POSIÇÃO 1: EXTREMA ESQUERDA (Idioma) --- */
  .language-switcher {
    order: 1;
    /* Força ser o primeiro item (Esquerda) */
    margin-right: auto;
    /* Empurra o próximo elemento para longe (Logo) */

    /* Zera posicionamentos antigos */
    position: relative;
    left: auto;
    top: auto;
    transform: none;

    /* Estilo e visibilidade */
    background-color: #f0f2f5;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 1045;
  }

  /* --- POSIÇÃO 2: CENTRO (Logo) --- */
  .navbar-brand {
    order: 2;
    /* Fica no meio */

    /* Remove margens auto do Bootstrap que podem atrapalhar */
    margin-left: 0 !important;
    margin-right: 0 !important;

    /* Ajuste para centralização real (se o Flexbox não centralizar perfeitamente devido ao Logo) */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    /* Z-index alto para ficar acima de botões menores */
  }

  .navbar-brand img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
  }

  /* --- POSIÇÃO 3: EXTREMA DIREITA (Menu Hamburger) --- */
  .navbar-toggler {
    order: 3;
    /* Força ser o último item (Direita) */

    /* Zera margens que poderiam empurrar ele para a esquerda */
    margin-left: auto !important;
    margin-right: 0 !important;

    padding: 0;
    border: none;
    background: transparent;
    z-index: 1060;
    /* Z-INDEX ALTO: Fica visível e clicável no Header FECHADO */
    cursor: pointer;

    /* REMOVER TODAS AS REGRAS DE OPACITY AQUI! */
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
    visibility: visible !important;
    transition: opacity 0.3s ease;
    /* Adicionamos transição para o efeito de sumir/aparecer */
  }

  .navbar-toggler-icon {
    width: 30px;
    height: 30px;
    background-size: contain;
  }

  /* --- MENU LATERAL (DRAWER NA DIREITA) - Sem alterações --- */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    /* Fica na direita */
    left: auto;

    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);

    padding: 80px 20px 30px;
    overflow-y: auto;

    z-index: 1070;
    /* Torna o Menu o elemento mais alto, cobrindo TUDO no Header */

    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block !important;
    visibility: hidden;
  }

  .navbar-collapse.show {
    transform: translateX(0);
    visibility: visible;
  }

  .navbar-collapse:not(.show) {
    transform: translateX(100%);
  }

  /* Botão X para fechar (dentro do menu) */
  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #888;
    background: #f9f9f9;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1080;
  }

  .close-menu:hover {
    color: #ff4d4d;
    background-color: #fff0f0;
  }

  /* Oculta o switcher duplicado dentro do menu */
  .navbar-collapse .language-switcher {
    display: none !important;
  }

  /* --- 3. ESTILOS DOS LINKS E CONTEÚDO --- */
  /* .navbar-nav {
    width: 100%;
    padding: 0;
    list-style: none;
  }
  /* --- 1. ESTILOS DOS LINKS PRINCIPAIS (Restaurado para o Design Original) --- */

  .nav-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    /* Cor do texto original */
    padding: 12px 10px;
    /* Padding ajustado para alinhamento esquerdo */
    border-bottom: 1px solid #f0f0f0;

    /* Importante para Links Principais: Garantir quebra de linha */
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;

    transition: all 0.2s ease;
  }

  .nav-link:hover {
    color: #00bcd4;
    /* Cor do texto no hover */
    padding-left: 15px;
    /* Animação de deslize no hover */

    /* 🎨 EFEITO DE FUNDO AZUL/CIANO CLARO AO PASSAR O MOUSE (FUNDO PADRÃO) */
    background-color: rgba(0, 188, 212, 0.05);
  }

  /* Garantir que o .dropdown-item não herde a borda cinza do link principal */
  .dropdown-item {
    border-bottom: 1px solid #eeeeee;
    /* Borda mais clara */

    /* Resetar o padding-left do hover do nav-link principal para não bugar o recuo do sublink */
    padding-left: 15px !important;

    /* Reverter a cor de fundo no hover, pois já temos o background sutil definido abaixo */
    background-color: transparent !important;
  }

  /* --- Estilos Gerais para Links (Corrige o estouro de texto) --- */
  .nav-link,
  .dropdown-item {
    color: #444;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;

    /* 🛠️ CORREÇÃO DE QUEBRA DE LINHA (RESOLVE O PROBLEMA DE ESTOURO) */
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    /* Melhora a leitura do texto quebrado */
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    color: #00bcd4;
    padding-left: 8px;
  }

  /* --- 5. PAINEL DE SUBDIVISÃO (DROPDOWN) - MELHORIA VISUAL --- */

  /* Estilo do Container de Submenus (Geralmente .dropdown-menu) */
  .navbar-nav .dropdown-menu {
    /* IMPORTANTE: Remover display: block e resetar para o padrão fechado */
    display: none;
    position: relative !important;
    width: 100%;
    margin: 5px 0 10px 0;
    padding: 0;
    border: none;
    background-color: #f7f7f7;
    box-shadow: none;
    border-radius: 0;
  }

  /* 🔑 CHAVE: Apenas mostra o submenu quando a classe 'show' é ativada pelo JS/Toggle */
  .navbar-nav .dropdown-menu.show {
    display: block !important;
  }

  /* Estilo dos Sublinks (Itens dentro do Dropdown) - Mantendo o visual bonito e recuado */
  .navbar-nav .dropdown-item {
    font-size: 1rem;
    font-weight: 400;
    color: #555;

    /* Recuo de sublink */
    padding: 10px 15px 10px 25px;

    border-left: 3px solid #00bcd4;
  }

  .navbar-nav .dropdown-item:hover {
    color: #00bcd4;
    padding-left: 30px;
    /* Animação de deslize no hover */
    background-color: rgba(0, 188, 212, 0.05);
    /* Fundo sutil */
    border-left-color: #00bcd4;
  }

  /* Reset geral de formatação interna */
  .btn,
  .form-inline,
  .custom-select {
    width: 100%;
    margin-bottom: 10px;
  }

  /* =========================================================================
   ALINHAMENTO FINAL: GARANTINDO QUE O TEXTO DA MISSÃO ALINHE COM O CARD
   ========================================================================= */

  /* 2. Ajuste da Coluna dos Cards (Manter) */
  /* Garante que o padding interno das colunas seja 15px */
  .col-md-4 {
    padding-left: 15px;
    padding-right: 15px;
  }


  /* =========================================================================
   ALINHAMENTO E ESPAÇAMENTO: CORREÇÃO FINAL (MOBILE)
   ========================================================================= */

  /* 1. Ajuste do Texto da Missão: Forçar Limites Laterais e Justificar */

  /* Aplicamos o padding maior (30px) no container mais externo para afastar da borda do site */
  .info-container {
    padding: 0;
    margin: 0 auto;
    width: 100%;

    /* 🔑 NOVO ESPAÇAMENTO LATERAL MAIOR (30px) */
    padding-left: 30px;
    padding-right: 30px;

    text-align: center;
    /* Mantém o logo centralizado */
  }

  /* O .info contém o parágrafo da missão */
  .info {
    margin: 0;
    width: 100%;

    /* 🔑 JUSTIFICAR O TEXTO */
    text-align: justify;

    padding-top: 15px;
    padding-bottom: 20px;
  }

  /* Para o texto do parágrafo ser justificado */
  .info p {
    text-align: justify;
  }

  /* 2. Ajuste do Container Principal dos Cards */

  /* O container dos cards deve ter o mesmo padding lateral do texto da missão para alinhamento */
  .container-cards {
    /* 🔑 NOVO ESPAÇAMENTO LATERAL MAIOR (30px) */
    padding-left: 30px;
    padding-right: 30px;
  }

  /* 3. Ajuste dos Cards (`.card`) */

  .card {
    /* Borda arredondada maior (15px - Manter) */
    border-radius: 15px;

    /* Garante que o card ocupe o espaço total e se alinhe */
    width: 100%;

    /* Margens zeradas para que o card comece no limite do container (30px de padding) */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px;
  }

  /* =========================================================================
   CENTRALIZAÇÃO: TV UNIVERSITÁRIA
   ========================================================================= */

  /* 4. Ajustar o Link do Canal (yt-channel-link) */
  /* Se este link for um bloco, ele precisa ser centralizado */
  #yt-channel-link {
    display: block;
    /* Garante que ele se comporte como um bloco */
    text-align: center;
    /* Centraliza o conteúdo (se houver texto ou ícone) */
    margin: 15px 0;
  }

  .difusao {
    /* Centraliza o bloco principal */
    margin-left: auto !important;
    margin-right: auto !important;

    /* Zera o padding lateral se ele estiver causando o deslocamento. 
       O padding deve ser aplicado internamente ao invés de no container. */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Se a classe .container estiver definindo uma largura fixa ou máxima, garanta que ela seja 100% */
  .difusao.container {
    max-width: 100%;
    width: 100%;

    /* Aplica o padding que definimos para o resto do site (30px) internamente */
    padding-left: 30px !important;
    padding-right: 30px !important;

    /* Força o container a não ter margem negativa que o Bootstrap possa adicionar */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Garante que o player use 100% do espaço disponível na tela */
  .player-container {
    width: 100%;
    margin: 0 auto;
  }

  /* --- ESTILOS DE CENTRALIZAÇÃO DE TEXTO JÁ APLICADOS (MANTIDOS) --- */
  .difusao h2 {
    text-align: center;
  }

  #canal-bagnato h3 {
    text-align: center;
  }


  /* FOOTER */
  .footer-info {
    display: flex;
    /* Habilita o Flexbox */
    flex-direction: column;
    /* Empilha os itens verticalmente (Endereço, Contato, Mapa) */
    align-items: center;
    /* Centraliza horizontalmente todos os itens-filhos (a chave para o problema) */

    /* Configurações de espaçamento e largura mínima */
    max-width: auto;
    /* Largura máxima para o bloco principal */
    margin: 0 auto;
    /* Centraliza o contêiner footer-info na página */
    padding: 10px 0 20px 0;
    gap: 20px;
  }

  .col-endereco,
  .contato {
    /* Define uma largura máxima para o texto se quebrar no centro do footer */
    max-width: 400px;
    /* Permite que o bloco se ajuste e centraliza o texto dentro dele */
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;

    /* Centraliza o texto dentro dos blocos, garantindo alinhamento visual */
    text-align: center;

    /* Reduz o espaçamento entre as seções */
    margin-bottom: 10px;
  }

  .mapa {
    /* O mapa precisa de largura total para preencher o contêiner */
    width: 100%;
    margin-top: 10px;
    padding: 0 10px;
    /* Adiciona um pequeno padding nas laterais do mapa */
  }

  .mapa iframe {
    width: 100%;
    height: 200px;
    /* Altura reduzida do mapa */
    border: none;
  }

  /* 🎯 REDUÇÃO DE ESPAÇAMENTO */
  .col-endereco {
    margin-bottom: 2px;
    /* Reduz o espaço entre Endereço e Contato */
  }

  .contato {
    margin-bottom: 2px;
    /* Reduz o espaço entre Contato e Mapa */
  }

  /* Ajusta o mapa */
  .mapa {
    margin-top: 2px;
    /* Reduz o espaço acima do mapa (se você preferir 0, use margin-top: 0;) */
  }

  .mapa iframe {
    width: 100%;
    height: 200px;
    border: none;
  }

  /* Ajusta o espaçamento dentro dos parágrafos (opcional, mas ajuda a compactar) */
  .col-endereco p,
  .contato p {
    margin: 3px 0;
  }

  /* Container dos botões: Garante um bom espaçamento e alinhamento */
  .midia-links {
    display: flex;
    /* Para centralizar horizontalmente, se desejar */
    flex-direction: column;
    align-items: center;
    /* Centraliza os botões */
    gap: 15px;
    /* Espaço entre os botões */
    margin: 30px auto;
    /* Espaçamento vertical e centralização */
    padding: 0 15px;
    /* Padding nas laterais para não grudar na borda da tela */
    max-width: 500px;
    /* Limita a largura máxima dos botões para desktop/tablet */
  }

  /* Estilo do Botão Individual (a.midia-button) */
  .midia-button {
    /* Responsividade */
    width: 100%;
    /* Ocupa a largura total do container .midia-links */
    box-sizing: border-box;
    /* Inclui padding e borda na largura/altura total */

    /* Design */
    display: flex;
    align-items: center;
    text-align: left;
    /* Alinha o texto à esquerda (se for quebrar linha) */
    text-decoration: none;
    color: #fff;
    /* Cor do texto */
    background-color: #38761d;
    /* Cor de fundo - verde escuro/institucional */
    border-radius: 25px;
    /* Bordas arredondadas (mais bonito) */
    padding: 15px 20px;
    /* Mais padding para parecer maior */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
    transition: background-color 0.3s, box-shadow 0.3s;
  }

  .midia-button:hover {
    background-color: #5b9933;
    /* Cor mais clara ao passar o mouse */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  }

  /* Ícone dentro do botão */
  .midia-button .icon {
    font-size: 1.5em;
    /* Aumenta o tamanho do ícone */
    margin-right: 15px;
    /* Espaço entre o ícone e o texto */
    line-height: 1;
    /* Garante que o ícone fique alinhado */
  }

  /* Texto do botão - A CORREÇÃO PRINCIPAL */
  .midia-button .button-text {
    flex-grow: 1;
    /* Permite que o texto ocupe o espaço restante */
    white-space: normal;
    /* **MUITO IMPORTANTE:** Permite a quebra de linha do texto */
    overflow-wrap: break-word;
    /* Garante que palavras longas quebrem se necessário */
    font-size: 1em;
    font-weight: 600;
    /* Deixa o texto mais legível */
  }

}

@media (max-width: 770px) {

  /* 1. Zera a margem superior de todos os títulos 'h3' dentro da seção de vídeos */
  .inovacao-section .video-caption {
    margin-top: 2px !important;
    padding-top: 2px !important;
  }

  /* 2. Zera a margem inferior do contêiner do vídeo (se houver margem implícita) */
  .inovacao-section .ratio {
    margin-bottom: 2px !important;
  }

  /* 3. Garante que as colunas não tenham padding extra quando empilhadas */
  .inovacao-section .col-md-12 {
    padding-top: 0 !important;
    padding-bottom: 5px !important;
  }

  /* Ajusta o container do grupo de botões */
  .btn-group.btn-group-toggle {
    display: flex;
    flex-direction: column;
    width: auto;
    /* AUMENTO DO ESPAÇAMENTO INFERIOR: Aumentamos a margem de baixo para separar dos cards */
    margin: 20px 20px 40px 20px;
    /* Top: 20px, Right: 20px, Bottom: 40px, Left: 20px */
  }

  /* ... (O restante do CSS para os botões individuais permanece o mesmo) ... */

  /* Estiliza os botões individuais (labels) dentro do grupo */
  .btn-group.btn-group-toggle .btn.tipo-card {
    width: 100%;
    display: block;

    margin-left: 0 !important;
    margin-right: 0 !important;

    margin-bottom: 12px;
    border-radius: 8px !important;
    padding: 12px 15px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
  }

  /* Remove a margem inferior do último botão */
  .btn-group.btn-group-toggle .btn.tipo-card:last-child {
    margin-bottom: 0;
  }

  /* Opcional: Efeito visual ao tocar no botão (estado ativo) */
  .btn-group.btn-group-toggle .btn.tipo-card.active,
  .btn-group.btn-group-toggle .btn.tipo-card:active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
  }

  .equipe {
    flex: 0 0 100%;
    /* Desativa a flexibilidade de encolhimento e expansão e define largura base de 100% */
    max-width: 100%;
    /* Garante que a largura máxima é 100% */
    margin-bottom: 20px;
    /* Adiciona um espaço abaixo de cada card em telas pequenas */
  }

}