/* Importação de fonte moderna (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variáveis de Cores (Paleta Moderna para Associações) */
:root {
    --bs-primary: #01d480; /* Azul Forte */
    --bs-primary-rgb: 0, 86, 179;
    --bs-dark: #1f2937; /* Cinza Escuro Moderno */
}

body {
    font-family: 'Inter', sans-serif;
    color: #01d480;
    background-color: #fcfcfc;
}

/* Navbar e Top Bar */
.top-bar {
    font-size: 0.85rem;
}

.top-bar .social-icons a:hover {
    color: #cbd5e1 !important;
    transition: color 0.3s ease;
}

.navbar .nav-link {
    color: #005c37;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--bs-primary) !important;
}

/* Efeitos de Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Cabeçalho de Páginas Internas */
.page-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #01d480 100%);
}

/* Ajustes de tipografia do conteúdo interno */
.content-area p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Links do Rodapé */
.hover-white:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   Ajustes Específicos para o Novo Slider Rotativo
   ========================================================================== */

/* Define a altura do slider e garante que o texto fique centralizado */
#heroCarousel .carousel-item {
    height: 70vh; /* 70% da altura da tela */
    min-height: 400px; /* Altura mínima para telas pequenas */
    background-color: #000; /* Fundo preto caso a imagem falhe */
}

/* Configura a div que segura a imagem de fundo */
.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover; /* Preenche todo o espaço sem distorcer */
    background-position: center; /* Centraliza a imagem */
    background-repeat: no-repeat;
    position: relative;
}

/* Adiciona uma camada escura sobre a imagem para dar contraste ao texto branco */
.slide-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Preto com 50% de transparência */
}

/* Centraliza o texto (caption) verticalmente no slide */
.carousel-caption {
    bottom: 50%; /* Coloca a base na metade da altura */
    transform: translateY(50%); /* Ajuste fino para centralizar o bloco inteiro */
    z-index: 2; /* Garante que o texto fique acima da camada escura */
}

/* Estilo do Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* Tooltip (Texto que aparece ao passar o mouse) */
.whatsapp-float .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    right: 125%; /* Aparece à esquerda do botão */
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Ajuste para telas pequenas (mobile) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    .whatsapp-float .tooltip-text {
        display: none; /* Esconde o texto no celular para não atrapalhar */
    }
}

/* ==========================================================================
   Estilos da Galeria da Equipe (Filtrável)
   ========================================================================== */

/* Estilo das fotos dos membros */
.member-thumb img {
    width: 150px; /* Tamanho fixo para as fotos redondas */
    height: 150px;
    object-fit: cover; /* Garante que a foto preencha o círculo sem distorcer */
    border: 5px solid #fff; /* Borda branca estilosa */
    transition: transform 0.3s ease;
}

.team-member-card:hover .member-thumb img {
    transform: scale(1.05); /* Efeito de zoom leve ao passar o mouse */
    border-color: var(--bs-primary); /* Borda muda para a cor principal */
}

/* Lógica de Filtragem (Animação) */
.filter-item {
    transition: all 0.5s ease; /* Animação suave de entrada/saída */
}

/* Classe utilitária para esconder itens filtrados */
.filter-item.hide {
    opacity: 0;
    transform: scale(0.8);
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    pointer-events: none; /* Impede clicar no item escondido */
    position: absolute; /* Remove do fluxo para não ocupar espaço */
}

/* Ajuste de espaçamento para os botões de filtro no mobile */
@media (max-width: 576px) {
    .filter-button-group {
        gap: 10px;
    }
    .member-thumb img {
        width: 120px;
        height: 120px;
    }
}

/* Estilos para a seção Público-Alvo */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

/* Cores customizadas para os fundos dos Badges (Bootstrap 5 utilities) */
.bg-info-subtle { background-color: #01d480; }
.bg-primary-subtle { background-color: #01d480; }
.bg-success-subtle { background-color: #01d480; }
.bg-secondary-subtle { background-color: #01d480; }
.bg-warning-subtle { background-color: #01d480; }

/* Ajuste de ícones */
.fa-3x {
    margin-bottom: 10px;
}

/* Estilização da Seção Impacto */
.custom-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Caixa do Ícone */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Estilo das listas de benefícios */
.list-unstyled li i {
    font-size: 0.9rem;
}

/* Espaçamento extra para o subtítulo do cabeçalho */
.tracking-wider {
    letter-spacing: 2px;
}

/* --- Estilos Fundo AUDAV (Glassmorphism) --- */

.fundo-card {
    background: rgba(255, 255, 255, 0.05); /* Fundo branco bem transparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fundo-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-15px); /* Sobe o card ao passar o mouse */
    border-color: #01d480; /* Cor de destaque (Info do Bootstrap) */
}

/* Ícone circular dentro do card */
.fundo-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(13, 202, 240, 0.1); /* Fundo ciano transparente */
    color: #01d480;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.fundo-card:hover .fundo-icon-circle {
    background: #01d480;
    color: #fff;
    box-shadow: 0 0 20px rgba(13, 240, 89, 0.5);
}

/* Card em destaque (Opcional: o do meio já começa diferente) */
.active-fundo {
    border-color: rgba(13, 240, 70, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsividade para os cards de 5 colunas */
@media (max-width: 992px) {
    .fundo-card {
        margin-bottom: 15px;
    }
}

/* --- Estilos Fontes de Captação --- */

.captacao-card {
    transition: all 0.3s ease;
}

.captacao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
}

/* Container da imagem para controle do zoom */
.captacao-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.captacao-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.captacao-card:hover .captacao-img-wrapper img {
    transform: scale(1.1); /* Zoom na imagem */
}

/* Ajuste fino nos títulos dos cards */
.captacao-card h5 {
    color: var(--bs-primary);
    font-size: 1.15rem;
}

/* --- Estilos Transparência --- */

.transparency-card {
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.transparency-card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.2);
    transform: translateY(-5px);
}

/* Destaque para o card central (Portal) */
.highlighted-card {
    background: linear-gradient(145deg, #ffffff, #f8faf9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

/* Ícone com fundo sutil */
.transparency-icon {
    width: 65px;
    height: 65px;
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste de badges */
.badge.bg-light {
    padding: 8px 12px;
    font-weight: 500;
}

/* --- Estilos Junte-se a Nós --- */

.icon-circle-white {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-doacao {
    border-radius: 30px;
    transform: perspective(1000px) rotateY(-5deg); /* Efeito 3D sutil */
    transition: all 0.5s ease;
}

.card-doacao:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.border-dashed {
    border-style: dashed !important;
}

.pix-area {
    background-color: rgba(var(--bs-primary-rgb), 0.03);
}

/* --- Estilos Timeline de Campanhas --- */

.timeline-line {
    width: 4px; /* Largura da linha central */
    z-index: 1;
}

/* Container do ponto central */
.timeline-point-container {
    z-index: 2; /* Garante que fique acima da linha */
}

/* O ponto circular */
.timeline-point {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    position: sticky; /* Efeito visual legal no scroll */
    top: 150px;
    transition: transform 0.3s ease;
}

.timeline-point i {
    transition: transform 0.5s ease;
}

.timeline-item:hover .timeline-point {
    transform: scale(1.1);
}

.timeline-item:hover .timeline-point i {
    transform: rotateY(180deg); /* Ícone gira no hover */
}

/* Etiqueta de Data */
.timeline-date {
    top: -15px;
    left: 20px;
    font-size: 0.75rem;
    padding: 6px 15px;
}

/* Ajustes de Alinhamento para a Esquerda (No desktop) */
.text-lg-end .timeline-date {
    left: auto;
    right: 20px;
}

/* Efeito de hover no card da campanha */
.timeline-content .bg-white {
    transition: all 0.3s ease;
}

.timeline-content .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Responsividade (Mobile) */
@media (max-width: 991.98px) {
    .timeline-line {
        left: 30px !important; /* Move a linha para a esquerda */
        transform: none !important;
    }
    
    .timeline-point-container {
        justify-content: flex-start !important;
        padding-left: 0 !important;
        width: 60px;
        flex: 0 0 60px;
    }
    
    .timeline-content {
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
        flex: 1;
    }
    
    .timeline-date {
        left: 20px !important;
        right: auto !important;
    }
    
    /* Reordena itens para ficarem todos alinhados à esquerda */
    .timeline-item {
        justify-content: flex-start !important;
        flex-wrap: nowrap;
    }
}

/* --- Estilos da Página Sobre --- */

.about-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1529070532901-ba8c300c841c?q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito Parallax */
}

.essence-card {
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.essence-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.essence-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Accordion Customizado */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
}

.accordion-item:last-child {
    border-bottom: none;
}

/* --- Botão de Doação no Menu --- */
.btn-doar-nav {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    /* Animação suave para chamar atenção sem ser irritante */
    animation: pulse-red 3s infinite;
}

.btn-doar-nav:hover {
    transform: scale(1.05);
    background-color: #fff !important;
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary);
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3) !important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

/* Ajuste para o menu mobile */
@media (max-width: 991px) {
    .btn-doar-nav {
        width: 100%; /* No celular o botão fica largo */
        padding: 12px;
    }
}