/* Reset e Configurações Básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ajustando paleta de cores para combinar com a logo da igreja */
:root {
  /* Cores principais da logo */
  --primary-color: #2b2d6e; /* Azul marinho da logo */
  --secondary-color: #1f2159; /* Azul marinho mais escuro */
  --accent-color: #3a3d8f; /* Azul marinho mais claro */
  --gold-color: #d4a017; /* Dourado da faixa da logo */

  /* Cores neutras */
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --lighter-bg: #fafbfc;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --border-color: #e0e0e0;

  /* Sombras */
  --shadow: 0 2px 10px rgba(43, 45, 110, 0.1);
  --shadow-lg: 0 10px 30px rgba(43, 45, 110, 0.15);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

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

/* Header com fundo branco e logo visível */
.header {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--gold-color);
}

.header-content {
  display: flex;
  /* justify-content: space-between; */ /* <- Removemos esta linha */
  align-items: center;
}

/* Logo agora usa a imagem real */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .main {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-text .sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold-color);
}

/* Menu com cores ajustadas para fundo branco */
.nav {
  display: flex;
  gap: 1.8rem; /* <-- MUDANÇA: Reduzido de 2rem */
  margin-left: auto; 
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-color);
  border-bottom-color: var(--gold-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- INÍCIO: Estilos do Submenu (Dropdown) --- */

/* Container para o item do menu que terá um dropdown */
.nav-item-dropdown {
  position: relative; /* Necessário para posicionar o submenu */
}

/* O link principal "Sobre" */
.nav-item-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Adiciona um ícone de seta para baixo */
.nav-item-dropdown .nav-link::after {
  content: '\f078'; /* Ícone de seta para baixo do Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  transition: transform 0.3s;
}

/* Gira a seta quando o menu está ativo (hover) */
.nav-item-dropdown:hover .nav-link::after {
  transform: rotate(180deg);
}

/* O menu dropdown (inicia escondido) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  list-style: none;
  z-index: 1001;
  border-top: 3px solid var(--gold-color);
  overflow: hidden; /* Para garantir os cantos arredondados */
}

/* Links dentro do dropdown */
.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background-color: var(--light-bg);
  color: var(--gold-color);
}

/* Mostra o dropdown no hover (apenas em telas de desktop) */
@media (min-width: 969px) {
  .nav-item-dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* --- FIM: Estilos do Submenu --- */

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.carousel-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.3s;
  z-index: 3;
}

.carousel-btn:hover {
  background-color: rgba(212, 160, 23, 0.8);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: var(--gold-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--gold-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #b88c15;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-light:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* About Preview */
.about-preview {
  padding: 80px 0;
  background-color: var(--white);
}

.about-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-text {
  padding-right: 20px;
}

.section-label {
  display: inline-block;
  color: var(--gold-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.about-preview-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-preview-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-preview-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
  background-color: var(--light-bg); /* MUDANÇA: Fundo claro para criar contraste */
  /* color: var(--white); */
  color: var(--text-dark); /* MUDANÇA: Cor de texto padrão para fundo claro */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-card {
  text-align: center;
  padding: 30px;
}

.stat-card i {
  font-size: 3rem;
  color: var(--gold-color);
  margin-bottom: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color); /* MUDANÇA: Adicionada cor para destaque no fundo claro */
}

.stat-label {
  font-size: 1.2rem;
  /* opacity: 0.9; */ /* MUDANÇA: Removida opacidade desnecessária */
  color: var(--text-light); /* MUDANÇA: Cor de texto secundária */
}

/* Banners Section (MODIFICADA) */
.banners-section {
  padding: 80px 0;
  background-color: var(--white);
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.banner-card {
  /* Esta é a tag <a> */
  display: block; /* Garante que a tag <a> se comporte como um bloco */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.banner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.banner-card img {
  width: 100%;
  height: auto; /* Permite que a altura se ajuste à proporção da imagem */
  display: block; /* Remove qualquer espaço extra abaixo da imagem */
}
/* Fim da Seção Modificada */


/* Adicionando estilos para seção de Cultos ao Vivo */
/* Live Worship Section */
.live-worship-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
}

.live-worship-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.live-worship-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.live-worship-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
}

.live-worship-text .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Estilos para o novo banner de Cultos ao Vivo */
.live-worship-banner {
  /* Mantemos o mesmo arredondamento e sombra do vídeo anterior */
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden; /* Essencial para que a imagem respeite as bordas arredondadas */
  
  /* Garante que o link <a> se comporte como um bloco */
  display: block; 
  line-height: 0; /* Remove qualquer espaçamento de linha indesejado */
}

.live-worship-banner img {
  width: 100%;    /* Faz a imagem ocupar 100% da largura do contêiner */
  height: auto;   /* Mantém a proporção correta da imagem */
  display: block; /* Remove qualquer espaço extra que a imagem possa ter por padrão */
}

/* Adicionando estilos para seção da Web Rádio */
/* Web Radio Section */
/* Redesenhando seção da Web Rádio com fundo branco e card estilizado */
.web-radio-section {
  padding: 80px 0;
  background-color: var(--white);
}

.web-radio-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  padding: 50px 60px;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.web-radio-logo img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background-color: var(--white);
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.web-radio-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--white);
}

.web-radio-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.95;
}

.web-radio-button .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-size: 1.1rem;
  background-color: var(--white);
  color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.web-radio-button .btn:hover {
  background-color: var(--gold-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-content.reverse {
  direction: rtl;
}

.about-content.reverse > * {
  direction: ltr;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

/* --- INÍCIO: Seção Trajetória (Linha do Tempo) --- */
.timeline-section {
    padding: 60px 0;
    background-color: var(--white); /* Fundo branco padrão */
}

/* Container da Linha do Tempo */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* A linha vertical central */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color); /* Usa sua variável de cor de borda */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

/* Container de cada item da linha do tempo */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    z-index: 2;
}

/* O círculo na linha do tempo */
.timeline-item::before {
    content: ' ';
    position: absolute;
    width: 18px;
    height: 18px;
    right: -9px;
    background-color: var(--white);
    border: 4px solid var(--primary-color); /* Usa sua cor primária */
    top: 28px;
    border-radius: 50%;
    z-index: 2;
}

/* Itens da direita */
.timeline-item.right {
    left: 50%;
}

/* Círculo para itens da direita */
.timeline-item.right::before {
    left: -9px;
}

/* O card de conteúdo */
.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-bg); /* Usa seu fundo claro */
    position: relative;
    border-radius: 8px;
    box-shadow: var(--shadow); /* Usa sua sombra padrão */
    border: 1px solid var(--border-color); /* Usa sua cor de borda */
}

/* A seta (triângulo) apontando para a linha */
.timeline-content::after {
    content: ' ';
    position: absolute;
    top: 28px;
    right: -15px;
    border: 8px solid transparent;
    border-left-color: var(--light-bg); /* Cor de fundo do card */
}

/* Seta para itens da direita */
.timeline-item.right .timeline-content::after {
    left: -15px;
    border-left-color: transparent;
    border-right-color: var(--light-bg); /* Cor de fundo do card */
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-color); /* Usa sua cor primária */
}

.timeline-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
    color: var(--text-light); /* Usa sua cor de texto clara */
}

.timeline-content ul {
    padding-left: 20px;
    margin-top: 10px;
    text-align: left;
    color: var(--text-light); /* Usa sua cor de texto clara */
}

.timeline-content li {
     margin-bottom: 5px;
     font-size: 0.9rem;
}

/* Media Query para telas pequenas (responsividade) */
@media screen and (max-width: 768px) {
    /* Coloca a linha à esquerda */
    .timeline::after {
        left: 30px;
    }

    /* Itens ocupam 100% e são empurrados para a direita */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Todos os itens se comportam como itens da "direita" */
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 21px; /* Posiciona o círculo na linha */
        right: auto;
    }
    
    /* Todas as setas apontam para a esquerda */
    .timeline-content::after,
    .timeline-item.right .timeline-content::after {
        left: -15px;
        border-right-color: var(--light-bg);
        border-left-color: transparent;
    }
}
/* --- FIM: Seção Trajetória (Linha do Tempo) --- */

/* --- INÍCIO: Seção de Continuação (Texto Pós-Linha do Tempo) --- */
.continuation-text-section {
    /* Padding-top de 60px para separar da linha do tempo.
      Padding-bottom de 0px porque a seção "Values" (Nossos Valores)
      que vem logo abaixo já tem um padding-top de 80px.
    */
    padding: 60px 0 0;
    background-color: var(--white);
}

.continuation-text-body {
    max-width: 900px; /* Mesma largura da linha do tempo para consistência */
    margin: 0 auto;   /* Centraliza o bloco de texto na página */
}

.continuation-text-body p {
    font-size: 1.1rem;         /* Um bom tamanho de fonte para leitura */
    color: var(--text-light);  /* Sua variável de cor de texto */
    line-height: 1.8;
    margin-bottom: 20px;       /* Espaço entre os parágrafos */
    text-align: justify;       /* Alinhamento justificado, como no resto da página */
}

.continuation-text-body p:last-child {
    margin-bottom: 0; /* Remove a margem do último parágrafo */
}
/* --- FIM: Seção de Continuação --- */

/* Values Section */
.values-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.value-card i {
  font-size: 3rem;
  color: var(--gold-color);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.value-card p {
  color: var(--text-light);
}

/* --- INÍCIO: Estilo para Imagem da Diretoria (NOVA CLASSE) --- */
.value-card-img {
  width: 120px;           /* Largura fixa */
  height: 120px;          /* Altura fixa */
  /* Removido: border-radius: 50%; */
  object-fit: cover;      /* Garante que a imagem cubra o espaço sem distorcer */
  margin-bottom: 20px;    /* Mesma margem inferior do ícone */
  /* Removido: border: 4px solid var(--gold-color); */
  box-shadow: var(--shadow); /* Sombra sutil */
  background-color: var(--light-bg); /* Cor de fundo caso a imagem falhe */
}
/* --- FIM: Estilo para Imagem da Diretoria --- */

.directors-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.director-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.director-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.director-photo-wrap {
  align-items: end;
  aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, var(--light-bg), var(--lighter-bg));
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 18px 18px 0;
}

.director-photo,
.director-photo-placeholder {
  height: 100%;
  width: 100%;
}

.director-photo {
  display: block;
  object-fit: contain;
  object-position: top center;
}

.director-photo-placeholder {
  align-items: center;
  color: var(--primary-color);
  display: flex;
  font-size: 3rem;
  justify-content: center;
}

.director-info {
  padding: 18px 18px 20px;
  text-align: center;
}

.director-info h3 {
  color: var(--text-dark);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.director-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.45;
}

.director-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.director-social-links a {
  align-items: center;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--primary-color);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 36px;
}

.director-social-links a:hover {
  background: var(--primary-color);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

/* Offering Section */
.offering-section {
  padding: 80px 0;
}

.offering-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.offering-intro h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.bible-verse {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--lighter-bg) 100%);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  border-left: 4px solid var(--gold-color);
}

.bible-verse i {
  font-size: 2rem;
  color: var(--gold-color);
  margin-bottom: 20px;
}

.bible-verse p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.8;
}

.bible-verse span {
  color: var(--gold-color);
  font-weight: 600;
}

.offering-methods h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  align-items: stretch;
}

.method-card {
  background-color: var(--white);
  padding: 32px 28px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 530px;
  transition: transform 0.3s;
}

.method-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.method-card-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 112px;
  text-align: center;
}

.method-card-header > i {
  font-size: 3rem;
  color: var(--gold-color);
  line-height: 1;
  margin-bottom: 20px;
}

.method-card h3 {
  color: var(--primary-color);
  font-size: clamp(1.45rem, 2.1vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 0;
}

.method-card-body {
  align-items: stretch;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
}

.method-card-text {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 auto 18px;
  max-width: 280px;
  text-align: center;
}

.bank-info,
.pix-info,
.presencial-info {
  text-align: left;
  width: 100%;
}

.bank-info p,
.presencial-info p {
  margin-bottom: 10px;
  color: var(--text-light);
  line-height: 1.6;
}

.method-card-pix .bank-info,
.method-card-pix .pix-info {
  text-align: center;
}

.method-card-pix .bank-info {
  margin-top: auto;
}

.method-card-pix .btn {
  align-self: center;
  width: min(100%, 200px);
}

.method-card .btn i {
  color: inherit;
  font-size: 1.2rem;
  margin: 0;
}

.pix-key {
  background-color: var(--light-bg);
  padding: 15px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 1.1rem;
  margin: 15px 0;
  word-break: break-all;
  border: 2px dashed var(--gold-color);
}

.offering-purpose h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.purpose-item {
  text-align: center;
  padding: 30px;
}

.purpose-item i {
  font-size: 2.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.purpose-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.purpose-item p {
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-intro h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.section-intro p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold-color);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.testimonial-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-color);
}

.testimonial-header h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.testimonial-header span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-content i {
  color: var(--gold-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.testimonial-content p {
  color: var(--text-light);
  line-height: 1.8;
  font-style: italic;
}

.share-testimony {
  text-align: center;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--lighter-bg) 100%);
  padding: 60px;
  border-radius: 10px;
}

.share-testimony h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.share-testimony p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Adicionando estilos para seção de Notícias com carrossel */
/* News Section */
/* Ajustando cores da seção de notícias para cinza claro */
.news-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.news-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.news-section .section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.news-carousel-wrapper {
  position: relative;
  padding: 0 60px;
  overflow: hidden;
}

.news-carousel-container {
  display: flex;
  gap: 30px;
  transition: transform 0.4s ease;
}

.news-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 0 calc(33.333% - 20px);
  min-width: calc(33.333% - 20px);
  color: inherit;
  display: block;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.news-content {
  padding: 25px;
}

.news-content h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-content p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.news-content .rich-text p:last-child {
  margin-bottom: 0;
}

.news-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gold-color);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-carousel-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.news-prev {
  left: 0;
}

.news-next {
  right: 0;
}

.news-button-container {
  text-align: center;
  margin-top: 50px;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text blockquote {
  margin-bottom: 1rem;
}

.rich-text p:last-child,
.rich-text ul:last-child,
.rich-text ol:last-child,
.rich-text blockquote:last-child {
  margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
  color: inherit;
  line-height: 1.8;
  padding-left: 1.35rem;
}

.rich-text a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-text blockquote {
  border-left: 4px solid var(--gold-color);
  color: var(--text-light);
  font-style: italic;
  padding-left: 18px;
}

.site-surface-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.site-nested-card {
  border: 1px solid var(--border-color);
}

.site-divider {
  border-color: var(--border-color);
}

.site-title-text {
  color: var(--text-dark);
}

.site-body-text {
  color: var(--site-body-text);
}

.site-muted-text {
  color: var(--text-light);
}

.site-primary-text {
  color: var(--primary-color);
}

.site-primary-link {
  color: var(--primary-color);
}

.site-primary-link:hover {
  color: var(--secondary-color);
}

.site-social-button {
  background: var(--primary-color);
  color: var(--text-on-dark);
}

.site-social-button:hover {
  background: var(--secondary-color);
}

.site-social-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.news-list-section,
.news-detail-section {
  background: var(--light-bg);
  padding: 80px 0;
}

.optional-page-section {
  background: var(--white);
  padding: 70px 0 0;
}

.news-list-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-list-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-list-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-list-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.news-list-image {
  align-items: center;
  background: var(--dark-section-bg);
  color: var(--white);
  display: flex;
  height: 230px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.news-list-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.news-list-card:hover .news-list-image img {
  transform: scale(1.04);
}

.news-list-image span {
  align-items: center;
  background: color-mix(in srgb, var(--text-on-dark) 10%, transparent);
  border-radius: 50%;
  display: inline-flex;
  font-size: 2rem;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.news-list-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.news-list-content time,
.news-detail-date {
  color: var(--gold-color);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.news-list-content h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 14px;
}

.news-list-content h2 a {
  color: var(--primary-color);
  text-decoration: none;
}

.news-list-content h2 a:hover {
  color: var(--gold-color);
}

.news-list-summary {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.news-read-more {
  align-items: center;
  color: var(--primary-color);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  margin-top: auto;
  text-decoration: none;
}

.news-read-more:hover {
  color: var(--gold-color);
}

.news-detail {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(24px, 5vw, 48px);
}

.news-back-link {
  align-items: center;
  color: var(--primary-color);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 24px;
  text-decoration: none;
}

.news-back-link:hover {
  color: var(--gold-color);
}

.news-detail-image {
  border-radius: 8px;
  display: block;
  margin-bottom: 28px;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.news-detail-summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 1.12rem;
  line-height: 1.8;
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.news-detail-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.85;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
  color: var(--primary-color);
  line-height: 1.25;
  margin: 1.5rem 0 0.75rem;
}

.dynamic-page-section {
  background: var(--light-bg);
  padding: 80px 0;
}

.dynamic-page {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(24px, 5vw, 48px);
}

.dynamic-page.dynamic-page-imagem,
.dynamic-page.dynamic-page-pdf,
.dynamic-page.dynamic-page-google_forms {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
}

.dynamic-page-image {
  display: flex;
  justify-content: center;
  margin: 0 auto 32px;
}

.dynamic-page-imagem .dynamic-page-image {
  margin-bottom: 0;
}

.dynamic-page-imagem .dynamic-page-image img {
  border-radius: 0;
  box-shadow: none;
}

.dynamic-page-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  width: min(100%, 920px);
}

.dynamic-page-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0 auto;
  max-width: 820px;
}

.dynamic-page > .dynamic-page-pdf {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: min(82vh, 820px);
  min-height: 560px;
  overflow: hidden;
}

.dynamic-page > .dynamic-page-pdf object {
  border: 0;
  height: 100%;
  width: 100%;
}

.dynamic-page-google-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 100%;
  min-height: 0;
  overflow: visible;
  width: 100%;
}

.dynamic-page-google-form iframe {
  border: 0;
  display: block;
  height: var(--google-form-height, 900px);
  max-width: 100%;
  min-height: 0;
  width: var(--google-form-width, 640px);
}

.dynamic-page-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.dynamic-home-modal-open {
  overflow: hidden;
}

.dynamic-home-modal[hidden] {
  display: none;
}

.dynamic-home-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 3000;
}

.dynamic-home-modal-backdrop {
  background: rgba(15, 23, 42, 0.72);
  inset: 0;
  position: absolute;
}

.dynamic-home-modal-dialog {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 36px);
  max-width: min(960px, 100%);
  overflow: auto;
  padding: clamp(18px, 4vw, 28px);
  position: relative;
  width: 100%;
  z-index: 1;
}

.dynamic-home-modal-close {
  align-items: center;
  background: var(--primary-color);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  z-index: 2;
}

.dynamic-home-modal-dialog h2 {
  color: var(--primary-color);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.25;
  padding-right: 48px;
}

.dynamic-home-modal-image {
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  width: auto;
}

.dynamic-home-modal-pdf {
  background: #eef2f7;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  height: min(72vh, 720px);
  min-height: 460px;
  overflow: hidden;
}

.dynamic-home-modal-pdf object {
  border: 0;
  height: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .dynamic-page-section {
    padding: 48px 0;
  }

  .dynamic-page > .dynamic-page-pdf,
  .dynamic-page-google-form,
  .dynamic-page-google-form iframe,
  .dynamic-home-modal-pdf {
    min-height: 420px;
  }

  .dynamic-home-modal {
    padding: 10px;
  }

  .dynamic-home-modal-dialog {
    max-height: calc(100vh - 20px);
  }
}

.related-news {
  margin-top: 70px;
}

.empty-state {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 620px;
  padding: 48px 28px;
  text-align: center;
}

.empty-state i {
  color: var(--gold-color);
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.empty-state h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-light);
}

/* Media Section */
.media-section {
  padding: 80px 0;
}

.media-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.tab-btn {
  padding: 15px 40px;
  background-color: var(--light-bg);
  border: 2px solid transparent;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
}

.tab-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--gold-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(43, 45, 110, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--white);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.gallery-overlay span {
  font-size: 1.1rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-card {
  background-color: var(--white);
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  cursor: pointer; /* ADICIONADO: Indica que é clicável */
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail-placeholder {
  align-items: center;
  background: linear-gradient(135deg, var(--dark-section-bg), var(--primary-color));
  color: var(--text-on-dark);
  display: flex;
  font-size: 2.4rem;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(212, 160, 23, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.play-button:hover {
  background-color: var(--gold-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
  color: var(--white);
  font-size: 1.5rem;
  margin-left: 3px;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.video-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Lightbox de Imagem */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background-color: rgba(212, 160, 23, 0.3);
  color: var(--white);
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(212, 160, 23, 0.6);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.contact-grid-centered {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.contact-grid-centered .contact-info {
  margin: 0 auto;
  width: 100%;
}

.contact-grid-centered .contact-info h2,
.contact-grid-centered .contact-info > p {
  text-align: center;
}

.contact-grid-centered .contact-details {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.contact-grid-centered .social-links-large {
  justify-content: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-top: 5px;
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.social-links-large {
  display: flex;
  gap: 15px;
}

.social-links-large a {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links-large a:hover {
  background-color: var(--gold-color);
  transform: translateY(-3px);
}

.contact-form-container {
  background-color: var(--light-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-color);
}

.form-group textarea {
  resize: vertical;
}

.map-container h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.map-placeholder {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer com cores ajustadas */
.footer {
  background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-mid) 52%, var(--footer-bg-end) 100%);
  color: var(--footer-text-color);
  padding: 60px 0 20px;
}

.footer-bottom p a {
  color: var(--footer-link-hover-color);
  text-decoration: none; /* Opcional: remove o sublinhado */
}

/* Garante que a cor não mude depois de clicado */
.footer-bottom p a:visited {
  color: var(--footer-link-hover-color);
}

/* Opcional: faz o link ficar um pouco mais claro ao passar o mouse */
.footer-bottom p a:hover {
  color: var(--footer-link-hover-light-color);
  text-decoration: underline; /* Opcional: adiciona sublinhado ao passar o mouse */
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr) minmax(280px, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--footer-heading-color);
}

.footer-section p {
  line-height: 1.8;
  opacity: 0.9;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--footer-link-color);
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0.9;
}

.footer-links a:hover {
  color: var(--footer-link-hover-color);
  opacity: 1;
}

.footer-links a.active {
  color: var(--footer-link-hover-color);
  opacity: 1;
}

.footer-sub-links {
  list-style: none;
  margin-top: 10px;
  padding-left: 14px;
}

.footer-sub-links li {
  margin-bottom: 8px;
}

.footer-sub-links a {
  font-size: 0.92rem;
  opacity: 0.72;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-contact i {
  color: var(--footer-heading-color);
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: color-mix(in srgb, var(--footer-text-color) 10%, transparent);
  color: var(--footer-text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--footer-link-hover-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--footer-text-color) 10%, transparent);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {

  /* --- INÍCIO: Ajuste Submenu Mobile --- */

/* Dentro de @media (max-width: 968px) */

.nav-item-dropdown {
  /* No mobile, não usamos position: relative */
}
.nav-item-dropdown .nav-link {
  /* Garante que o link principal e a seta fiquem alinhados */
  justify-content: space-between;
}

.nav-item-dropdown .nav-link::after {
  /* Deixa a seta um pouco maior no mobile */
  font-size: 1rem;
}

/* Gira a seta quando o submenu está ativo (pela classe .active-dropdown) */
.nav-item-dropdown.active-dropdown .nav-link::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  /* Reseta os estilos de desktop */
  position: static;
  display: none; /* Inicia escondido */
  box-shadow: none;
  border-radius: 0;
  min-width: auto;
  border-top: none;
  padding-left: 20px; /* Indentação para os sub-links */
  margin-top: 5px;
  overflow: visible;
  background-color: transparent;
}

/* Classe que será adicionada via JS para mostrar o menu */
.dropdown-menu.active {
  display: block;
}

.dropdown-menu a {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-light); /* Cor mais suave para sub-link */
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--gold-color);
  background-color: transparent;
}

/* --- FIM: Ajuste Submenu Mobile --- */



  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .carousel-content h1 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 1.2rem;
  }

  .about-preview-content,
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content.reverse {
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .banners-grid,
  .testimonials-grid,
  .gallery-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .directors-grid,
  .methods-grid,
  .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .live-worship-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  /* Ajustando responsividade da seção da rádio */
  .web-radio-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 40px 30px;
  }

  .web-radio-logo {
    justify-self: center;
  }

  .web-radio-logo img {
    width: 140px;
    height: 140px;
  }

  .web-radio-button {
    justify-self: center;
  }

  .news-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .news-carousel-wrapper {
    padding: 0 50px;
  }
}

@media (max-width: 576px) {
  .logo img {
    height: 50px;
  }

  .logo-text .main {
    font-size: 1.1rem;
  }

  .logo-text .sub {
    font-size: 0.75rem;
  }

  .hero-carousel {
    height: 400px;
  }

  .carousel-content h1 {
    font-size: 1.5rem;
  }

  .carousel-content p {
    font-size: 1rem;
  }

  .values-grid,
  .directors-grid,
  .methods-grid,
  .purpose-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .section-header h2,
  .about-text h2,
  .offering-intro h2 {
    font-size: 1.8rem;
  }

  .live-worship-text h2 {
    font-size: 1.8rem;
  }

  /* Ajustando responsividade da seção da rádio */
  .web-radio-content {
    padding: 30px 20px;
  }

  .web-radio-text h2 {
    font-size: 1.5rem;
  }

  .web-radio-logo img {
    width: 120px;
    height: 120px;
    padding: 15px;
  }

  .news-carousel-wrapper {
    padding: 0 40px;
  }

  .news-carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* --- INÍCIO: Filtro de Congregações --- */
.filter-container {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap; /* Para responsividade em telas menores */
}

.filter-group {
  flex: 1; /* Faz os dois campos dividirem o espaço */
  min-width: 250px; /* Largura mínima antes de quebrar a linha */
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-color);
}

.filter-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.filter-group input:focus {
  outline: none;
  border-color: var(--gold-color);
}

/* --- FIM: Filtro de Congregações --- */


/* --- INÍCIO: Estilos dos Cards de Congregação --- */

/* Ajusta o .value-card para alinhar à esquerda */
.value-card.congregation-card {
  text-align: left;
}

.congregation-grid-scroll {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-color: var(--gold-color) rgba(15, 23, 42, 0.08);
  scrollbar-width: thin;
}

.congregation-grid-scroll::-webkit-scrollbar {
  width: 8px;
}

.congregation-grid-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
}

.congregation-grid-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-color);
  border-radius: 999px;
}

.congregation-card-content {
  color: inherit;
  display: block;
  text-decoration: none;
}

.congregation-card-logo {
  align-items: center;
  background: linear-gradient(135deg, var(--light-bg), var(--white));
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--primary-color);
  display: inline-flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
  width: 58px;
}

.congregation-card-logo img {
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  width: 100%;
}

.congregation-card-logo i {
  color: var(--gold-color);
  font-size: 1.5rem;
  margin: 0;
  width: auto;
}

/* Ajusta o H3 do card */
.value-card.congregation-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px; /* Mais espaço */
}

.congregation-detail-image {
  background: var(--light-bg);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.congregation-detail-image img {
  display: block;
  height: clamp(240px, 36vw, 430px);
  object-fit: cover;
  width: 100%;
}

/* Ajusta os parágrafos de info (endereço, pastor) */
.value-card.congregation-card p {
  display: flex;
  align-items: center;
  gap: 10px; /* Espaço entre ícone e texto */
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* Ajusta o ícone dentro do card */
.value-card.congregation-card p i {
  font-size: 1.1rem;
  color: var(--gold-color);
  margin-bottom: 0; /* Remove o margin-bottom padrão */
  width: 20px; /* Largura fixa para alinhamento */
  text-align: center;
}

.congregation-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.congregation-social-link {
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: 36px;
}

.congregation-social-link:hover {
  background-color: var(--gold-color);
  transform: translateY(-2px);
}

.value-card.congregation-card .congregation-social-link i {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
  width: auto;
}

.congregation-social-directory {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.congregation-social-directory-card {
  align-items: center;
  background-color: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-height: 150px;
  padding: 26px 22px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.congregation-social-directory-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.congregation-social-directory-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0;
}

.congregation-social-directory-card .congregation-social-links {
  justify-content: center;
  margin-top: 0;
}

.congregation-social-directory-card .congregation-social-link {
  height: 34px;
  width: 34px;
}

@media (max-width: 1100px) {
  .congregation-social-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .congregation-social-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .congregation-social-directory {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text-light);
  padding: 28px;
  text-align: center;
}

/* --- FIM: Estilos dos Cards de Congregação --- */

/* [styles.css] - Adicione este código ao final */

/* Ajusta a logo no rodapé */
.footer .logo {
    margin-bottom: 20px; /* Adiciona um espaço abaixo da logo, antes do parágrafo */
}

/* Sobrescreve a cor do texto principal do logo 
  (que por padrão é azul escuro) para BRANCO 
*/
.footer .logo-text .main {
    color: var(--white);
}

/* Garante que o subtítulo (Ribeirão Preto) continue dourado 
  (ele já era dourado, mas é bom garantir) 
*/
.footer .logo-text .sub {
    color: var(--gold-color);
}

/* --- INÍCIO: Player da Web Rádio --- */
.radio-player-bar {
  display: flex; /* Mudança: de 'none' para 'flex' */
  align-items: center;
  justify-content: space-between; /* Empurra o (container+player) para um lado e o (botão X) para o outro */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 0; /* Padding vertical, o horizontal será no botão e container */
  z-index: 1001;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);

  /* --- INÍCIO: Animação --- */
  transform: translateY(100%); /* Começa 100% para baixo (escondido) */
  transition: transform 0.4s ease-in-out; /* Duração da animação */
  /* --- FIM: Animação --- */
}

/* NOVA CLASSE: .active controla a animação */
.radio-player-bar.active {
  transform: translateY(0); /* Posição final (visível) */
}

.radio-player-content {
  /* Esta classe está no .container. Vamos apenas alinhar seu conteúdo */
  display: flex;
  align-items: center;
  /* Removemos o justify-content daqui */
  gap: 20px;
  
  /* Adiciona o padding do container que foi removido da barra */
  padding: 0 20px; 

  position: relative;
  z-index: 2;
  background-color: transparent;
}

.radio-player-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.radio-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.radio-info span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.radio-info strong {
  font-size: 1rem;
}

.radio-player audio {
  height: 40px;
  max-width: 400px;
}

audio::-webkit-media-controls-panel {
    margin: 0;
}

.radio-close-btn {
  background-color: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  flex-shrink: 0;
  
  /* Adiciona padding para afastar o 'X' da borda da tela */
  padding: 0 30px; 

  position: relative;
  z-index: 2;
}

.radio-close-btn:hover {
  opacity: 1;
}

/* Responsividade do Player */
@media (max-width: 768px) {
  .radio-player-bar {
     justify-content: center;
     position: relative;
     /* MUDANÇA: Adiciona padding vertical para a barra ter altura */
     padding: 10px 0; 
  }
  
  .radio-player-content {
    flex-direction: column;
    gap: 10px; /* MUDANÇA: Reduzido o gap */
    align-items: center;
  }
  
  .radio-player-main {
      flex-direction: column; 
      gap: 10px;
      width: 100%;
  }

  .radio-info {
    text-align: center;
  }
 
  /* --- ADICIONE ESTA REGRA --- */
  .radio-current-song {
      max-width: 90%; /* Limita no mobile */
      margin-left: auto;
      margin-right: auto;
  }

  /* MUDANÇA: Adicionada regra para .radio-player */
  .radio-player {
     width: 100%; /* Garante que o container do player ocupe a largura */
     padding: 0 15px; /* Adiciona um respiro para o player não colar nas bordas */
  }

  .radio-player audio {
    max-width: 100%;
    width: 100%;
    height: 40px; /* MUDANÇA: Garante a altura no mobile */
  }

  .radio-close-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0px;
    padding: 0 20px;
  }
}
/* --- FIM: Player da Web Rádio --- */

.radio-info strong {
  font-size: 1rem;
}

/* --- ADICIONE ESTE BLOCO --- */
.radio-current-song {
  font-size: 0.9rem;
  color: var(--gold-color); /* Destaque em dourado */
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.2;
  
  /* Para nomes de músicas longos */
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px; /* Limita a largura no desktop */
}

/* --- INÍCIO: Video Lightbox (NOVO) --- */
.video-lightbox {
  display: none; /* Escondido por padrão */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000; /* Acima de tudo */
  justify-content: center;
  align-items: center;
}

.video-lightbox.active {
  display: flex; /* Mostra quando ativo */
}

.video-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background-color: #000;
}

.video-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.video-lightbox-close:hover {
  opacity: 1;
}

.video-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  overflow: hidden;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .video-lightbox-close {
        top: -30px;
        right: 10px;
        font-size: 2rem;
        color: var(--white);
    }
}
/* --- FIM: Video Lightbox --- */

/* --- INÍCIO: Estilos Logo Player Rádio (NOVO) --- */
.radio-logo-player {
  flex-shrink: 0; /* Impede que a logo encolha */
}

.radio-logo-player img {
  height: 40px;  /* Mesma altura do <audio> player */
  width: 40px;   /* Largura quadrada */
  object-fit: contain; /* Garante que a imagem caiba sem distorcer */
  border-radius: 4px; /* Bordas suaves */
  background-color: var(--white); /* Fundo branco para a logo (caso seja transparente) */
  padding: 4px; /* Pequeno preenchimento interno */
  display: block; /* Remove espaço extra que algumas imagens têm */
}
/* --- FIM: Estilos Logo Player Rádio (NOVO) --- */

/* --- INÍCIO: Animação Ondas Rádio (NOVO) --- */

/* 1. O contêiner das barras */
.radio-equalizer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Alinha as barras */
  display: flex;
  justify-content: space-between; /* Espalha as barras por toda a largura */
  align-items: flex-end; /* Alinha as barras na base */
  
  padding: 0 20px; /* Um respiro nas laterais */
  overflow: hidden;
  
  /* Coloca o overlay atrás do conteúdo (z-index: 2) mas acima do fundo (z-index: 1) */
  z-index: 1; 
  
  /* Efeito sutil para não poluir */
  opacity: 0.25; 
}

/* 2. As barras individuais */
.radio-equalizer-overlay span {
  width: 3px; /* Largura da barra */
  height: 100%; /* Altura inicial (parado) - VAI MUDAR */
  background-color: var(--gold-color); /* Cor da barra */
  
  /* Estado "parado": altura mínima */
  height: 4px;
  transition: height 0.3s ease-out; /* Transição suave ao parar */
}

/* 3. A animação */
@keyframes wave-animation {
  0%   { height: 4px; }
  50%  { height: 50px; } /* Altura máxima da onda */
  100% { height: 4px; }
}

/* 4. Ativa a animação QUANDO a barra tiver a classe 'is-playing' */
.radio-player-bar.is-playing .radio-equalizer-overlay span {
  /* Aplica a animação */
  animation-name: wave-animation;
  animation-duration: 1.2s; /* Duração total da onda */
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* 5. Faz a animação parecer aleatória (mágica do CSS) */
.radio-player-bar.is-playing .radio-equalizer-overlay span:nth-child(2n) {
  animation-duration: 0.8s;
  animation-delay: 0.2s;
}
.radio-player-bar.is-playing .radio-equalizer-overlay span:nth-child(3n) {
  animation-duration: 1s;
  animation-delay: 0.5s;
}
.radio-player-bar.is-playing .radio-equalizer-overlay span:nth-child(4n) {
  animation-duration: 0.6s;
  animation-delay: 0.3s;
}
.radio-player-bar.is-playing .radio-equalizer-overlay span:nth-child(5n) {
  animation-duration: 1.4s;
  animation-delay: 0.1s;
}

/* --- FIM: Animação Ondas Rádio --- */

/* ===== INÍCIO: NOVOS ESTILOS PARA O QR CODE PIX ===== */

.method-card .pix-qrcode {
  width: 180px; /* Tamanho fixo para o QR Code */
  height: 180px;
  margin: 0 auto 20px auto; /* Centraliza e adiciona espaço abaixo */
  padding: 10px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.method-card .pix-qrcode img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px; /* Borda leve na imagem interna */
}

.method-card .pix-info {
  text-align: center; /* Centraliza a chave e o botão */
}

.method-card .pix-key {
  text-align: center; /* Garante que o texto da chave esteja centralizado */
  margin-top: 5px; /* Ajuste de espaço */
}

@media (max-width: 768px) {
  .method-card {
    min-height: auto;
  }

  .method-card-header {
    min-height: 0;
    margin-bottom: 22px;
  }
}
/* ===== FIM: NOVOS ESTILOS PARA O QR CODE PIX ===== */

/* --- INÍCIO: Tabela de Missionários (NOVO) --- */
.missions-table-section {
    padding: 80px 0;
    background-color: var(--light-bg); /* Fundo cinza claro */
}

.missions-table-container {
    max-width: 800px; /* Largura máxima para a tabela */
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden; /* Para o radius funcionar no <table> */
}

.missions-table {
    width: 100%;
    border-collapse: collapse; /* Remove espaço entre células */
}

.missions-table th,
.missions-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.missions-table th {
    background-color: var(--lighter-bg); /* Um cinza bem leve no cabeçalho */
    font-size: 1.1rem;
    color: var(--primary-color);
}

.missions-table td {
    color: var(--text-light);
}

/* Alinha a coluna de número à direita */
.missions-table th:last-child,
.missions-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

.missions-table tr:last-child td {
     border-bottom: none; /* Remove a borda do último item */
}

.missions-table-footer {
    padding: 20px;
    background-color: var(--lighter-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.missions-table-footer strong {
    color: var(--text-dark);
}
/* --- FIM: Tabela de Missionários (NOVO) --- */

/* --- INÍCIO: Estilos do Submenu de 2º Nível (NOVO) --- */

/* O <li> que contém o submenu "Departamentos" */
.dropdown-submenu {
  position: relative;
}

/* O link "Departamentos" (nível 2) */
.dropdown-submenu > .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Aplica o mesmo estilo de um item de dropdown normal */
    padding: 12px 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s;
}

/* Adiciona a seta para a direita (desktop) */
.dropdown-submenu > .nav-link::after {
    content: '\f054'; /* Seta para a direita */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    transition: none; /* Remove a transição de giro */
    transform: none;  /* Remove a transição de giro */
}

/* Hover no link "Departamentos" (desktop) */
.dropdown-submenu:hover > .nav-link {
    background-color: var(--light-bg);
    color: var(--gold-color);
}

/* O submenu aninhado (nível 3) - Posição Desktop */
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -3px; /* Ajuste fino para alinhar com a borda */
}

/* --- FIM: Estilos do Submenu de 2º Nível --- */


/* --- AJUSTE: Responsividade Mobile (Submenu 2º Nível) --- */

@media (max-width: 968px) {
    /* A seta no link "Departamentos" deve ser para baixo (mobile) */
    .dropdown-submenu > .nav-link::after {
        content: '\f078'; /* Seta para baixo */
        /* A rotação já é aplicada pelo JS (pois tem a classe .nav-item-dropdown) */
    }

    /* O submenu (nível 3) no mobile */
    .dropdown-submenu .dropdown-menu {
        padding-left: 30px; /* Aumenta a indentação */
    }
    
    /* Links do 3º nível (Jovens, Infantil...) */
    .dropdown-submenu .dropdown-menu a {
        font-size: 0.9rem; /* Fonte um pouco menor */
        color: var(--text-light); /* Cor mais suave */
    }
}

/* ===== Camada final de layout publico ===== */
html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #262a66;
  --secondary-color: #15183f;
  --accent-color: #3340a0;
  --gold-color: #c9961a;
  --white: #ffffff;
  --light-bg: #f5f7fb;
  --lighter-bg: #fbfcff;
  --text-dark: #172033;
  --text-light: #64748b;
  --border-color: #e5e7eb;
  --site-body-bg-start: #ffffff;
  --site-body-bg-mid: #f6f7fb;
  --site-body-bg-end: #ffffff;
  --site-body-text: #1e293b;
  --text-on-dark: #ffffff;
  --header-bg-color: #ffffff;
  --logo-main-color: #172033;
  --menu-link-color: #25305f;
  --menu-link-active-color: #9a6d08;
  --mobile-menu-bg-color: #ffffff;
  --button-primary-start: #d3a12a;
  --button-primary-end: #b77d11;
  --button-primary-hover-start: #e3b13a;
  --button-primary-hover-end: #a66f0c;
  --dark-section-bg: #172033;
  --dark-section-alt-bg: #111827;
  --footer-bg-start: #111827;
  --footer-bg-mid: #172033;
  --footer-bg-end: #262a66;
  --footer-heading-color: #c9961a;
  --footer-text-color: #ffffff;
  --footer-link-color: #ffffff;
  --footer-link-hover-color: #f2a900;
  --footer-link-hover-light-color: #ffbe26;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
}

body.site-body {
  background: linear-gradient(180deg, var(--site-body-bg-start) 0%, var(--site-body-bg-mid) 46%, var(--site-body-bg-end) 100%);
  color: var(--site-body-text);
}

body.site-body.menu-open {
  overflow: hidden;
}

.container {
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

.header {
  background: color-mix(in srgb, var(--header-bg-color) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold-color) 28%, transparent);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  padding: 0;
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.header.is-scrolled {
  background: color-mix(in srgb, var(--header-bg-color) 96%, transparent);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.header-content {
  gap: 28px;
  min-height: 86px;
}

.logo {
  gap: 12px;
  min-width: 0;
}

.logo img {
  border-radius: 8px;
  height: 58px;
  object-fit: contain;
}

.logo-text .main {
  color: var(--logo-main-color);
  font-size: clamp(1rem, 1.2vw, 1.24rem);
  letter-spacing: 0;
}

.logo-text .sub {
  color: var(--gold-color);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav {
  align-items: center;
  gap: 0.45rem;
}

.nav-link {
  border: 0;
  border-radius: 8px;
  color: var(--menu-link-color);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 12px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: color-mix(in srgb, var(--gold-color) 10%, transparent);
  color: var(--menu-link-active-color);
}

.dropdown-menu {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  border-top: 3px solid var(--gold-color);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  min-width: 240px;
  padding: 8px;
}

.dropdown-menu a {
  border-radius: 6px;
  padding: 10px 12px;
}

.mobile-menu-btn {
  align-items: center;
  background: var(--light-bg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.hero-carousel {
  background: var(--dark-section-alt-bg);
  height: clamp(520px, 72vh, 720px);
}

.carousel-slide::after {
  background:
    linear-gradient(90deg, rgba(10, 14, 38, 0.78) 0%, rgba(10, 14, 38, 0.42) 48%, rgba(10, 14, 38, 0.18) 100%),
    linear-gradient(180deg, rgba(10, 14, 38, 0.2) 0%, rgba(10, 14, 38, 0.55) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.carousel-content {
  left: 50%;
  max-width: 980px;
  text-align: left;
}

.carousel-content h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 18px;
  max-width: 900px;
}

.carousel-content p {
  color: color-mix(in srgb, var(--text-on-dark) 90%, transparent);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
  max-width: 720px;
}

.carousel-btn,
.news-carousel-btn,
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  padding: 0;
  width: 48px;
}

.carousel-btn {
  background: color-mix(in srgb, var(--text-on-dark) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 24%, transparent);
  backdrop-filter: blur(10px);
}

.indicator {
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 55%, transparent);
  border-radius: 999px;
  height: 9px;
  width: 30px;
}

.btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--button-primary-start) 0%, var(--button-primary-end) 100%);
  box-shadow: 0 12px 26px rgba(183, 125, 17, 0.22);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--button-primary-hover-start) 0%, var(--button-primary-hover-end) 100%);
}

.btn-secondary {
  background: var(--primary-color);
  box-shadow: 0 12px 26px rgba(38, 42, 102, 0.2);
}

.about-preview,
.live-worship-section,
.banners-section,
.news-section,
.web-radio-section,
.missions-cta-section,
.about-section,
.values-section,
.offering-section,
.testimonials-section,
.media-section,
.contact-section,
.missions-table-section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section-label {
  background: color-mix(in srgb, var(--gold-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-color) 18%, transparent);
  border-radius: 999px;
  color: var(--menu-link-active-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 6px 12px;
} 

.section-header {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-header h2,
.about-preview-text h2,
.about-text h2,
.offering-intro h2,
.offering-methods h2,
.offering-purpose h2,
.contact-info h2,
.map-container h2,
.share-testimony h2,
.missions-cta-content h2 {
  color: var(--text-dark);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.section-header p,
.section-intro p,
.about-preview-text p,
.about-text p,
.intro-text,
.missions-cta-text,
.continuation-text-body p {
  color: var(--text-light);
  line-height: 1.82;
}

.about-preview-content,
.about-content,
.live-worship-content,
.contact-grid {
  gap: clamp(36px, 6vw, 72px);
}

.about-preview-image img,
.about-image img,
.live-worship-banner,
.banner-card,
.news-card,
.value-card,
.method-card,
.testimonial-card,
.contact-form-container,
.map-placeholder,
.missions-table-container,
.bible-verse,
.share-testimony {
  border-radius: 8px;
}

.about-preview-image img,
.about-image img,
.banner-card,
.news-card,
.value-card,
.method-card,
.testimonial-card,
.contact-form-container,
.map-placeholder,
.missions-table-container {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.about-preview-image,
.about-image {
  position: relative;
}

.about-preview-image::before,
.about-image::before {
  background: var(--gold-color);
  border-radius: 8px;
  content: "";
  inset: 18px -18px -18px 18px;
  opacity: 0.14;
  position: absolute;
  z-index: 0;
}

.about-preview-image img,
.about-image img {
  position: relative;
  z-index: 1;
}

.stats-section {
  background: var(--dark-section-bg);
  color: var(--text-on-dark);
  position: relative;
}

.stats-grid {
  gap: 20px;
}

.stat-card {
  background: color-mix(in srgb, var(--text-on-dark) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 12%, transparent);
  border-radius: 8px;
  padding: 28px;
}

.stat-number {
  color: var(--text-on-dark);
  font-size: clamp(2.35rem, 4vw, 3.4rem);
}

.stat-label {
  color: color-mix(in srgb, var(--text-on-dark) 72%, transparent);
  font-size: 1rem;
}

.live-worship-section {
  background: linear-gradient(135deg, var(--dark-section-bg) 0%, var(--primary-color) 58%, var(--dark-section-alt-bg) 100%);
}

.live-worship-text h2,
.web-radio-text h2 {
  font-weight: 800;
  letter-spacing: 0;
}

.live-worship-banner {
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 14%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.banners-section,
.web-radio-section,
.contact-section,
.offering-section,
.media-section,
.testimonials-section {
  background: var(--white);
}

.news-section,
.values-section,
.missions-table-section {
  background: var(--light-bg);
}

.banners-grid,
.values-grid,
.methods-grid,
.purpose-grid,
.testimonials-grid,
.gallery-grid,
.videos-grid {
  gap: 24px;
}

.banner-card:hover,
.news-card:hover,
.value-card:hover,
.method-card:hover,
.testimonial-card:hover,
.video-card:hover {
  transform: translateY(-6px);
}

.value-card,
.method-card,
.testimonial-card,
.news-card,
.video-card {
  background: var(--white);
}

.value-card,
.method-card {
  padding: 32px 26px;
}

.value-card i,
.method-card i,
.purpose-item i,
.contact-item i {
  color: var(--gold-color);
}

.web-radio-content,
.missions-cta-content {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.web-radio-content {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 12%, transparent);
}

.missions-cta-content {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 96%, transparent) 0%, color-mix(in srgb, var(--dark-section-bg) 96%, transparent) 100%);
  color: var(--text-on-dark);
  padding: clamp(38px, 6vw, 64px);
  text-align: center;
}

.missions-cta-content h2 {
  color: var(--text-on-dark);
  margin-bottom: 18px;
}

.missions-cta-text {
  color: color-mix(in srgb, var(--text-on-dark) 82%, transparent);
  font-size: 1.06rem;
  margin: 0 auto 28px;
  max-width: 760px;
}

.page-header {
  background: linear-gradient(135deg, var(--dark-section-bg) 0%, var(--primary-color) 55%, var(--dark-section-alt-bg) 100%);
  padding: clamp(70px, 11vw, 118px) 0;
  position: relative;
  text-align: left;
}

.page-header::after {
  background: var(--gold-color);
  bottom: 0;
  content: "";
  height: 4px;
  left: 24px;
  max-width: 1180px;
  position: absolute;
  right: 24px;
}

.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.page-header p {
  color: color-mix(in srgb, var(--text-on-dark) 78%, transparent);
  max-width: 760px;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.filter-group input {
  border-radius: 8px;
  min-height: 46px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.filter-group input:focus {
  border-color: var(--gold-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-color) 12%, transparent);
}

.footer {
  background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-mid) 52%, var(--footer-bg-end) 100%);
  padding-top: 72px;
}

.footer-content {
  gap: 48px;
}

.footer-section h3 {
  font-size: 1.12rem;
  font-weight: 800;
}

.footer-contact li,
.footer-section p {
  color: color-mix(in srgb, var(--footer-text-color) 78%, transparent);
}

.footer-links a {
  color: color-mix(in srgb, var(--footer-link-color) 78%, transparent);
}

.social-links a,
.social-links-large a {
  border-radius: 8px;
}

.radio-player-bar {
  background: color-mix(in srgb, var(--dark-section-bg) 97%, transparent);
  backdrop-filter: blur(14px);
}

.video-lightbox-content iframe {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  width: 100%;
}

@media (max-width: 1100px) {
  .nav {
    gap: 0.15rem;
  }

  .nav-link {
    font-size: 0.86rem;
    padding-left: 9px;
    padding-right: 9px;
  }
}

@media (max-width: 968px) {
  .header-content {
    min-height: 78px;
  }

  .nav {
    background: color-mix(in srgb, var(--mobile-menu-bg-color) 98%, transparent);
    height: calc(100dvh - 78px);
    padding: 24px;
    top: 78px;
  }

  .nav-link {
    font-size: 1rem;
    justify-content: space-between;
    padding: 13px 12px;
    width: 100%;
  }

  .dropdown-menu {
    border: 0;
    box-shadow: none;
    padding: 2px 0 2px 16px;
  }

  .about-preview-image::before,
  .about-image::before {
    inset: 14px -10px -10px 14px;
  }

  .radio-player-bar {
    position: fixed;
  }

  .news-list-grid,
  .news-list-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .logo-text .main {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-carousel {
    height: 520px;
  }

  .news-list-section,
  .news-detail-section {
    padding: 56px 0;
  }

  .news-list-grid,
  .news-list-grid.compact {
    grid-template-columns: 1fr;
  }

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

  .news-list-image {
    height: 210px;
  }

  .carousel-content {
    top: 54%;
    width: calc(100% - 36px);
  }

  .carousel-btn {
    bottom: 24px;
    top: auto;
    transform: none;
  }

  .carousel-btn.prev {
    left: 18px;
  }

  .carousel-btn.next {
    left: 74px;
    right: auto;
  }

  .carousel-indicators {
    bottom: 42px;
    left: auto;
    right: 18px;
    transform: none;
  }

  .contact-form-container,
  .bible-verse,
  .share-testimony {
    padding: 26px 20px;
  }
}

/* ===== Refinamentos mobile do site publico ===== */
@media (max-width: 968px) {
  .header {
    z-index: 1100;
  }

  .header-content {
    gap: 14px;
    padding-right: 58px;
    position: relative;
  }

  .logo {
    flex: 1 1 auto;
    max-width: 100%;
    overflow: hidden;
  }

  .mobile-menu-btn {
    align-items: center;
    background: var(--primary-color);
    color: var(--text-on-dark);
    display: inline-flex !important;
    flex: 0 0 44px;
    font-size: 1.2rem;
    margin-left: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus {
    background: var(--secondary-color);
    color: var(--text-on-dark);
  }

  .nav {
    align-items: stretch;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    gap: 0;
    left: 0;
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 18px max(28px, env(safe-area-inset-bottom));
    transform: translateX(-100%);
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    visibility: hidden;
    z-index: 1090;
  }

  .nav > .nav-link,
  .nav > .nav-item-dropdown {
    width: 100%;
  }

  .nav-item-dropdown {
    position: static;
  }

  .nav.active {
    left: 0;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }

  .nav-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 0;
    box-shadow: none;
    min-height: 52px;
    padding: 14px 6px;
  }

  .nav-link:hover,
  .nav-link.active,
  .nav-item-dropdown.active-dropdown > .nav-link {
    background: transparent;
    border-bottom-color: color-mix(in srgb, var(--gold-color) 34%, rgba(15, 23, 42, 0.09));
    box-shadow: inset 3px 0 0 var(--gold-color);
    color: var(--menu-link-active-color);
  }

  .dropdown-menu {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin: 0;
    padding: 2px 0 8px;
  }

  .dropdown-menu a,
  .dropdown-submenu > .nav-link {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 42px;
    padding: 10px 6px 10px 22px;
  }

  .dropdown-submenu .dropdown-menu {
    border-bottom: 0;
    padding: 0 0 6px 14px;
  }

  .hero-carousel {
    height: min(520px, calc(100svh - 78px));
    min-height: 380px;
  }

  .carousel-slide img {
    object-position: center;
  }

  .carousel-slide::after {
    background:
      linear-gradient(180deg, rgba(10, 14, 38, 0.28) 0%, rgba(10, 14, 38, 0.46) 38%, rgba(10, 14, 38, 0.78) 100%),
      linear-gradient(90deg, rgba(10, 14, 38, 0.5) 0%, rgba(10, 14, 38, 0.22) 100%);
  }

  .carousel-content {
    bottom: 82px;
    left: 24px;
    max-width: none;
    top: auto;
    transform: none;
    width: calc(100% - 48px);
  }

  .carousel-content h1 {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .carousel-content p {
    font-size: clamp(0.92rem, 3.2vw, 1.08rem);
    line-height: 1.55;
    margin-bottom: 0;
  }

  .carousel-btn {
    bottom: 24px;
    height: 44px;
    top: auto;
    transform: none;
    width: 44px;
  }

  .carousel-btn.prev {
    left: 24px;
  }

  .carousel-btn.next {
    left: 78px;
    right: auto;
  }

  .carousel-indicators {
    bottom: 40px;
    left: auto;
    right: 24px;
    transform: none;
  }

  .about-preview,
  .live-worship-section,
  .banners-section,
  .news-section,
  .web-radio-section,
  .missions-cta-section,
  .about-section,
  .values-section,
  .offering-section,
  .testimonials-section,
  .media-section,
  .contact-section,
  .missions-table-section {
    padding: 58px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .about-preview-text,
  .about-text,
  .contact-info,
  .live-worship-text {
    text-align: left;
  }

  .about-preview-content,
  .about-content,
  .live-worship-content,
  .contact-grid {
    gap: 30px;
  }

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

  .stat-card {
    padding: 22px 14px;
  }

  .banners-grid {
    gap: 18px;
  }

  .news-carousel-wrapper {
    overflow: visible;
    padding: 0;
  }

  .news-carousel-container {
    gap: 18px;
    overflow: hidden;
    touch-action: pan-y;
  }

  .news-card {
    border-radius: 8px;
  }

  .news-card img {
    height: 230px;
  }

  .news-content {
    padding: 22px;
  }

  .news-carousel-btn {
    background: var(--primary-color);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    height: 42px;
    top: 115px;
    width: 42px;
  }

  .news-prev {
    left: -6px;
  }

  .news-next {
    right: -6px;
  }

  .web-radio-content {
    align-items: center;
    padding: 34px 24px;
  }

  .footer {
    padding-top: 52px;
  }

  .footer-content {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .stats-grid,
  .banners-grid,
  .testimonials-grid,
  .gallery-grid,
  .videos-grid,
  .values-grid,
  .directors-grid,
  .methods-grid,
  .purpose-grid,
  .congregation-social-directory {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    gap: 14px;
  }

  .stat-card {
    display: grid;
    gap: 4px 16px;
    grid-template-columns: 48px 1fr;
    padding: 20px;
    text-align: left;
  }

  .stat-card i {
    align-self: center;
    font-size: 2rem;
    grid-row: span 2;
    margin: 0;
  }

  .stat-number {
    font-size: 2.1rem;
    line-height: 1;
  }

  .stat-label {
    font-size: 0.96rem;
  }

  .news-list-card,
  .value-card,
  .method-card,
  .testimonial-card,
  .contact-form-container,
  .empty-state {
    border-radius: 8px;
  }

  .news-list-content,
  .value-card,
  .method-card,
  .testimonial-card {
    padding: 22px;
  }

  .filter-container {
    gap: 16px;
  }

  .filter-group {
    min-width: 100%;
  }

  .media-tabs {
    gap: 10px;
  }

  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 13px 14px;
  }

  .missions-table-container {
    overflow-x: auto;
  }

  .missions-table {
    min-width: 520px;
  }
}

@media (max-width: 576px) {
  .header-content {
    min-height: 72px;
  }

  .logo img {
    height: 46px;
  }

  .logo-text .main {
    max-width: 136px;
  }

  .logo-text .sub {
    max-width: 136px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    height: calc(100dvh - 72px);
    padding: 16px 14px max(24px, env(safe-area-inset-bottom));
    top: 72px;
  }

  .hero-carousel {
    height: min(430px, calc(100svh - 72px));
    min-height: 340px;
  }

  .carousel-content {
    bottom: 76px;
    left: 18px;
    width: calc(100% - 36px);
  }

  .carousel-content h1 {
    font-size: clamp(1.45rem, 7.2vw, 2rem);
  }

  .carousel-content p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .carousel-btn.prev {
    left: 18px;
  }

  .carousel-btn.next {
    left: 70px;
  }

  .carousel-indicators {
    bottom: 34px;
    right: 18px;
  }

  .indicator {
    height: 8px;
    width: 24px;
  }

  .section-header h2,
  .about-preview-text h2,
  .about-text h2,
  .offering-intro h2,
  .offering-methods h2,
  .offering-purpose h2,
  .contact-info h2,
  .map-container h2,
  .share-testimony h2,
  .missions-cta-content h2 {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .page-header {
    padding: 52px 0;
  }

  .page-header h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .news-card img {
    height: 205px;
  }

  .news-content h3,
  .news-list-content h2 {
    font-size: 1.16rem;
  }

  .news-carousel-btn {
    top: 102px;
  }

  .news-button-container {
    margin-top: 34px;
  }

  .web-radio-content {
    padding: 28px 20px;
  }

  .web-radio-button,
  .web-radio-button .btn {
    width: 100%;
  }

  .radio-player-bar {
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  }

  .radio-player-content {
    padding: 0 52px 0 16px;
  }

  .radio-logo-player img {
    height: 38px;
    width: 38px;
  }

  .radio-current-song {
    max-width: min(240px, 72vw);
  }

  .radio-close-btn {
    right: 4px;
    top: 16px;
    transform: none;
  }

  .footer .logo-text .main,
  .footer .logo-text .sub {
    max-width: none;
    white-space: normal;
  }
}

/* ===== Home modernizada ===== */
.home-modern {
  background: var(--white);
  overflow: visible;
}

.home-quick-access {
  background: var(--white);
  padding: 34px 0 0;
  position: relative;
  z-index: 8;
}

.home-quick-access.is-after-carousel {
  background: linear-gradient(180deg, transparent 0, transparent 18px, var(--white) 18px, var(--white) 100%);
  margin-top: -18px;
  padding-top: 0;
}

.quick-access-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.quick-access-card {
  align-items: center;
  background: color-mix(in srgb, var(--white) 96%, transparent);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  color: var(--text-dark);
  display: grid;
  flex: 0 1 272px;
  gap: 14px;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 126px;
  padding: 18px;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.quick-access-card:hover {
  border-color: color-mix(in srgb, var(--gold-color) 42%, rgba(15, 23, 42, 0.09));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  transform: translateY(-4px);
}

.quick-access-live {
  background: linear-gradient(135deg, var(--dark-section-alt-bg) 0%, var(--primary-color) 68%, #8c1f2a 100%);
  border-color: color-mix(in srgb, var(--text-on-dark) 18%, transparent);
  color: var(--text-on-dark);
}

.quick-access-icon,
.quick-access-thumb {
  align-items: center;
  background: var(--light-bg);
  border-radius: 8px;
  display: flex;
  height: 56px;
  justify-content: center;
  overflow: hidden;
  width: 56px;
}

.quick-access-icon {
  color: var(--gold-color);
  font-size: 1.35rem;
}

.quick-access-live .quick-access-icon {
  background: color-mix(in srgb, var(--gold-color) 18%, transparent);
  color: var(--footer-link-hover-light-color);
}

.quick-access-thumb img {
  border-radius: 6px;
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.quick-access-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.quick-access-copy span {
  color: var(--menu-link-active-color);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-access-live .quick-access-copy span {
  color: var(--footer-link-hover-light-color);
}

.quick-access-copy strong {
  color: inherit;
  font-size: 1rem;
  line-height: 1.2;
}

.quick-access-copy small {
  color: color-mix(in srgb, var(--text-light) 86%, transparent);
  font-size: 0.88rem;
  line-height: 1.35;
}

.quick-access-live .quick-access-copy small {
  color: color-mix(in srgb, var(--text-on-dark) 76%, transparent);
}

.home-modern .home-about-section {
  background: linear-gradient(180deg, var(--white) 0%, #f5f7fb 100%);
  color: var(--text-dark);
  padding: clamp(72px, 8vw, 104px) 0;
}

.home-modern .home-about-section.stats-section {
  background: linear-gradient(180deg, var(--white) 0%, #f5f7fb 100%);
  color: var(--text-dark);
}

.home-modern .about-preview-content {
  align-items: center;
  display: grid;
  gap: clamp(36px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
}

.home-modern .about-preview-text {
  max-width: 640px;
  padding-right: 0;
}

.home-modern .about-preview-text .rich-text {
  margin-bottom: 26px;
}

.home-modern .about-preview-text .btn {
  margin-top: 4px;
}

.home-about-visual {
  position: relative;
}

.home-modern .about-preview-image::before {
  background: var(--gold-color);
  border-radius: 8px;
  bottom: -18px;
  content: "";
  height: 58%;
  left: auto;
  opacity: 0.16;
  position: absolute;
  right: -18px;
  top: auto;
  width: 68%;
  z-index: 0;
}

.home-modern .about-preview-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-stats-grid {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.home-stats-grid .stat-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  padding: 18px;
  text-align: left;
}

.home-stats-grid .stat-card i {
  align-items: center;
  background: color-mix(in srgb, var(--gold-color) 12%, transparent);
  border-radius: 8px;
  color: var(--gold-color);
  display: inline-flex;
  font-size: 1.05rem;
  height: 36px;
  justify-content: center;
  margin-bottom: 14px;
  width: 36px;
}

.home-stats-grid .stat-number {
  color: var(--primary-color);
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1;
  margin-bottom: 8px;
}

.home-stats-grid .stat-label {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.35;
}

.home-modern .live-worship-section {
  background: linear-gradient(135deg, var(--dark-section-alt-bg) 0%, var(--dark-section-bg) 48%, var(--primary-color) 100%);
  overflow: hidden;
  position: relative;
}

.home-modern .live-worship-section::before {
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--gold-color) 72%, transparent) 50%, transparent 100%);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.home-modern .live-worship-content {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
}

.home-modern .live-worship-text {
  max-width: 560px;
}

.home-modern .live-worship-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.home-modern .live-worship-text .btn-primary {
  background: var(--gold-color);
  box-shadow: 0 16px 34px rgba(242, 169, 0, 0.2);
  color: var(--dark-section-alt-bg);
}

.home-modern .live-worship-banner {
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 14%, transparent);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.32);
}

.home-modern .live-worship-banner img {
  height: auto;
  object-fit: contain;
}

.home-news-section {
  background: var(--white);
}

.home-news-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  text-align: left;
}

.home-news-section .section-header {
  margin-bottom: clamp(30px, 4vw, 44px);
}

.home-news-section .section-header h2 {
  margin-top: 8px;
}

.home-news-header .btn {
  flex: 0 0 auto;
}

.home-news-section .news-carousel-wrapper {
  padding: 0 54px;
}

.home-news-section .news-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.home-news-section .news-card img {
  height: 232px;
}

.home-news-section .news-content {
  padding: 24px;
}

.home-news-section .news-button-container {
  display: none;
}

.home-modern .missions-cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-section-bg) 56%, var(--dark-section-alt-bg) 100%);
  color: var(--text-on-dark);
  padding: clamp(72px, 9vw, 112px) 0;
}

.home-modern .missions-cta-content {
  background: transparent;
  border-radius: 0;
  color: var(--text-on-dark);
  margin: 0 auto;
  max-width: 880px;
  overflow: visible;
  padding: 0;
}

.home-modern .missions-cta-content h2 {
  color: var(--text-on-dark);
  font-size: clamp(2.05rem, 4vw, 3rem);
}

.home-modern .missions-cta-text {
  color: color-mix(in srgb, var(--text-on-dark) 82%, transparent);
}

.home-modern .missions-cta-content .btn-primary {
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  color: var(--primary-color);
}

@media (max-width: 1100px) {
  .home-modern .about-preview-content,
  .home-modern .live-worship-content {
    grid-template-columns: 1fr;
  }

  .home-modern .about-preview-text,
  .home-modern .live-worship-text {
    max-width: 760px;
  }
}

@media (max-width: 968px) {
  .home-quick-access.is-after-carousel {
    background: linear-gradient(180deg, transparent 0, transparent 12px, var(--white) 12px, var(--white) 100%);
    margin-top: -12px;
  }

  .quick-access-card {
    min-height: 112px;
  }

  .home-modern .home-about-section {
    padding: 58px 0;
  }

  .home-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-modern .live-worship-banner {
    max-width: 760px;
  }

  .home-news-header {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .home-quick-access {
    padding-top: 24px;
  }

  .home-quick-access.is-after-carousel {
    background: var(--white);
    margin-top: 0;
    padding-top: 22px;
  }

  .quick-access-grid {
    align-items: stretch;
  }

  .quick-access-card {
    flex-basis: 100%;
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
  }

  .quick-access-icon,
  .quick-access-thumb {
    height: 52px;
    width: 52px;
  }

  .home-stats-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .home-stats-grid .stat-card {
    display: grid;
    gap: 4px 14px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 18px;
  }

  .home-stats-grid .stat-card i {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .home-stats-grid .stat-number {
    font-size: 2.1rem;
  }

  .home-news-header {
    display: block;
  }

  .home-news-header > .btn {
    display: none;
  }

  .home-news-section .news-button-container {
    display: block;
  }

  .home-news-section .news-carousel-wrapper {
    padding: 0;
  }

  .home-news-section .news-carousel-btn {
    top: 102px;
  }

  .home-news-section .news-prev {
    left: -4px;
  }

  .home-news-section .news-next {
    right: -4px;
  }

  .home-modern .missions-cta-content {
    text-align: left;
  }

  .home-modern .missions-cta-content .btn-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
