
/* Força todas as imagens da galeria a terem a mesma altura com crop */
.galeria-uniforme .gallery-item img {
    height: 250px; /* <<-- Altere este valor para a altura que você deseja! */
    width: 100%;
    object-fit: cover;
    object-position: top;
}

/* Estilização dos títulos e textos da galeria */
.galeria-uniforme .gallery-caption {
    text-align: left;
    padding: 10px 0;
    text-transform: none !important; /* Remove capitalização global do tema */
}

.galeria-uniforme .gallery-caption h4 {
    margin: 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: #000000; /* Cor do título */
    text-transform: none !important; /* Garante título com escrita normal */
}

.galeria-uniforme .gallery-caption p {
    text-align: justify;
    margin: 0;
    font-size: 14px;
    color: #666666; /* Cor do texto */
    line-height: 1.4;
    text-transform: none !important; /* Garante parágrafo com escrita normal */
}

/* Espaçamento geral dos itens da galeria */
.galeria-apoiadores .gallery-item {
    margin-bottom: 25px;
}

/* O Box do Logo (Simula o container cinza/arredondado do seu código) */
.galeria-apoiadores .gallery-icon {
    background-color: #f7f7f7; /* <<-- COR DE FUNDO DOS CARDS (Sua partner.bg padrão) */
    border-radius: 8px; /* rounded-lg */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Garante que o logo não encoste nas bordas do box */
    
    /* Altura padrão no Desktop */
    height: 329px; 
}

/* O Logo em si (Mantém proporção sem cortar) */
.galeria-apoiadores .gallery-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Contain impede que o logo seja cortado */
}

/* Nome do Apoiador */
.galeria-apoiadores .gallery-caption p {
    text-align: center;
    font-size: 24px; /* md:text-2xl */
    font-weight: 500;
    color: #000000;
    margin-top: 12px;
    text-transform: none !important;
}

/* ── RESPONSIVIDADE (MEDIA QUERIES) ── */

/* Tablet */
@media (max-width: 1024px) {
    .galeria-apoiadores .gallery-icon {
        height: 260px; /* Altura no tablet */
        padding: 15px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .galeria-apoiadores .gallery-icon {
        height: 200px; /* Altura no celular */
        padding: 10px;
    }
    .galeria-apoiadores .gallery-caption p {
        font-size: 18px; /* text-lg no celular */
    }
}



/* ========================================== 
Tags Estudos
*/ 
/* Estilos para os Cards de Notas Técnicas */
.nt-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px; /* Limita a largura para melhor legibilidade */
  margin: 0 auto;
}

.nt-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
	align-items: stretch;
}

.nt-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nt-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  flex-shrink: 0;
	display: flex;
}

.nt-image {
  width: 100%;
  height: 100%;
	display: block;
  object-fit: cover;
}

.nt-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  flex: 1;
}

.nt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nt-title {
  font-family: sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #111111;
  margin: 0;
}

.nt-badge {
  background-color: #000000;
  color: #ffffff;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.nt-description {
  font-family: sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  text-align: justify;
  margin: 0;
  white-space: pre-line; /* Mantém quebras de linha caso existam */
}

.nt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff !important;
  background-color: #000000;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: background-color 0.2s;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

.nt-button:hover {
  background-color: #333333;
}

/* Responsividade: Telas maiores que Tablet/Desktop */
@media (min-width: 768px) {
  .nt-card {
    flex-direction: row;
  }
  .nt-image-wrapper {
    width: 280px;
    height: auto;
    min-height: 100%;
  }
  .nt-content {
    padding: 32px;
  }
  .nt-title {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .nt-image-wrapper {
    width: 340px;
  }
}

/* ==========================================================================
   TEMPLATE PADRÃO DE NOTA TÉCNICA (LAYOUT)
   ========================================================================== */

.ntl-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Outfit', sans-serif;
}

/* Cabeçalho do Estudo (Título + Imagem) */
.ntl-header {
  display: flex;
  flex-direction: column-reverse; /* No celular: imagem no topo, texto abaixo */
  gap: 32px;
  margin-bottom: 48px;
}

.ntl-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ntl-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #000000;
  margin: 0 0 16px 0;
}

.ntl-intro {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin: 0 0 24px 0;
  border-left: 4px solid #000000;
  padding-left: 16px;
}

/* Botões de Download do PDF (Chamada para Ação) */
.ntl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ntl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff !important;
  background-color: #0A8754; /* <<-- Atualizado para o seu Azul */
  border: 1px solid #0A8754;  /* <<-- Borda combinando com o fundo */
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}


.ntl-btn:hover {
  background-color: #065736; /* <<-- Tom de azul mais escuro no hover */
  border-color: #065736;     /* <<-- Borda também acompanha o tom escuro */
}


.ntl-btn-secondary {
  background-color: transparent; /* <<-- Fundo transparente */
  color: #0A8754 !important;     /* <<-- Fonte Azul */
  border: 1px solid #0A8754;     /* <<-- Contorno Azul */
}


.ntl-btn-secondary:hover {
  background-color: rgba(48, 131, 220, 0.05); /* <<-- Sutil fundo azul translúcido */
  color: #065736 !important;                 /* <<-- Fonte azul mais escura */
  border-color: #065736;                     /* <<-- Borda azul mais escura */
}


/* Caixa da Imagem de Destaque */
.ntl-img-box {
  width: 80%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ntl-img {
  width: 80%;
  height: auto;
  display: block;
}

/* Corpo de Texto da Matéria (Leitura focada) */
.ntl-body {
  max-width: 100%;
  margin: 0 auto;
}

.ntl-body p {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  margin: 0 0 20px 0;
  text-align: justify;
}

.ntl-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #000000;
  margin: 36px 0 16px 0;
}

/* Responsividade para Telas Maiores (Tablet / Desktop) */
@media (min-width: 768px) {
  .ntl-header {
    flex-direction: row; /* Alinha lado a lado no desktop */
    align-items: center;
  }
  .ntl-header-info {
    flex: 1.2;
  }
  .ntl-header-image {
    flex: 0.8;
  }
  .ntl-title {
    font-size: 34px;
  }
  .ntl-intro {
    font-size: 18px;
  }
  .ntl-body p {
    font-size: 17px;
  }
  .ntl-body h3 {
    font-size: 24px;
  }
}

/* ==========================================================================
   AJUSTES PARA O HEADER VERTICAL
   ========================================================================== */

.ntl-header-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 48px;
}

/* Título em destaque ocupando toda a largura */
.ntl-title-full {
  font-family: sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #000000;
  text-align: center;
  width: 100%;
  margin: 0 0 20px 0;
}

/* Introdução centralizada */
.ntl-intro-full {
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
  max-width: 100%; /* Mantém a largura de leitura alinhada com o texto do artigo */
  margin: 0 0 32px 0;
}

/* Box de Download dos Estudos */
.ntl-download-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 600px; /* Tamanho proporcional para o box */
  text-align: center;
  margin-bottom: 36px;
  box-sizing: border-box;
}

.ntl-download-text {
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.ntl-buttons-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Imagem Centralizada */
.ntl-img-box-centered {
  width: 80%;
  max-width: 100%; /* Alinha perfeitamente com a largura do corpo do texto */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.ntl-img-centered {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsividade para telas maiores */
@media (min-width: 768px) {
  .ntl-title-full {
    font-size: 54px;
  }
  .ntl-intro-full {
    font-size: 24px;
    text-align: center; /* Fica esteticamente melhor centralizado no desktop */
  }
}

/* ==========================================================================
   TRADUTOR
   ========================================================================== */

.gt_switcher_wrapper {
    bottom: 20px !important;   /* distância do rodapé - ajuste */
    right: 20px !important;    /* distância da borda direita - ajuste */
    /* se quiser manter o fixed e z-index, não precisa repetir, mas pode reforçar: */
    position: fixed !important;
    z-index: 999999 !important;
}


/* ==========================================================================
   Youtube
   ========================================================================== */

.e-youtube-base,
.elementor-widget-video .elementor-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
}

.e-youtube-base iframe,
.elementor-widget-video .elementor-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
  .e-youtube-base,
  .elementor-widget-video .elementor-wrapper {
    max-width: 80%;      /* limita a largura no tablet */
    margin-left: auto;   /* centraliza */
    margin-right: auto;
    /* se quiser manter 16:9 é só não alterar o padding-bottom */
  }
}

@media (max-width: 767px) {
  .e-youtube-base,
  .elementor-widget-video .elementor-wrapper {
    max-width: 100%;     /* ocupa toda a largura */
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 75%; /* muda para proporção 4:3 (mais alto) no celular */
    /* se quiser continuar 16:9 no celular, troque 75% por 56.25% */
  }
}
