/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #000080;
    --accent-color: #f39c12; /* Alterado para o Mostarda/Ouro oficial da igreja */
    --accent-hover: #f39c12; /* Mostarda vivo ao passar o mouse */
    --bg-light: #f8f9fa;
    --text-dark: #2d3436;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

hr {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

/* ==========================================================================
   2. CABEÇALHO E MENU (HEADER) - CORRIGIDO PARA AZUL ESCURO E MOSTARDA
   ========================================================================== */
header {
    background-color: #0f2043; /* O mesmo azul-marinho profundo do topo antigo */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px !important;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo-img {
    height: 100px;
    width: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff; /* Texto "Quadrangular" agora em branco para dar contraste */
}

.logo span {
    color: #f39c12; /* O número 763 alterado para mostarda vivo */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff; /* Links do menu em branco para leitura no fundo escuro */
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f39c12; /* Cor de destaque ao passar o mouse alterada para mostarda */
}

.nav-admin-btn {
    background: var(--accent-color);
    color: #0f2043 !important; /* Texto escuro para excelente leitura sobre o fundo ouro */
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.nav-admin-btn:hover {
    background: var(--accent-hover);
    color: #0f2043 !important;
}

/* ==========================================================================
   3. SEÇÃO INÍCIO (HERO & PILARES & CULTOS)
   ========================================================================== */
.hero {
    text-align: center;
    /* Mescla o tom azul-marinho profundo com a imagem de fundo sutil */
    background: linear-gradient(135deg, rgba(13, 35, 58, 0.85), rgba(13, 35, 58, 0.85)), url('https://images.unsplash.com/photo-1438032005730-c779502df39b?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 20px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 25px;
    /* Adicione estas linhas para ajustar o banner: */
    margin-left: 40px;  /* Espaço na esquerda */
    margin-right: 40px; /* Espaço na direita */
/*    border-radius: 20px; /* Arredonda as pontas para ficar moderno */
}

.hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
}

.hero blockquote { 
    font-style: italic; 
    font-size: 1.2rem; 
    opacity: 0.9; 
    margin-bottom: 15px; 
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pilar {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.pilar .icon { font-size: 2.5rem; margin-bottom: 10px; }

.cultos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.cultos-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.cultos-card h3 { color: var(--secondary-color); margin-bottom: 15px; border-bottom: 2px solid var(ligt); padding-bottom: 8px;}
.cultos-card ul { list-style: none; }
.cultos-card li { margin-bottom: 12px; }

.cultos-card.especial {
    border-left: 4px solid var(--accent-color);
}

/* Linha lateral azul para os Cultos Semanais */
.cultos-card {
    border-left: 4px solid var(--secondary-color);
}

/* ==========================================================================
   4. DEVOCIONAL DIÁRIO
   ========================================================================== */
.devocional-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.versiculo-card {
    background: linear-gradient(135deg, #d4a373, #0f2043); /* Atualizado com o gradiente da nova paleta */
    color: white;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-dia {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.25);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.versiculo-texto { font-size: 1.4rem; font-style: italic; font-weight: 500; margin-bottom: 10px; line-height: 1.4;}
.versiculo-referencia { font-weight: 600; text-align: right;}

.devocional-conteudo h3 { color: var(--primary-color); margin-bottom: 15px;}
.devocional-conteudo p { margin-bottom: 15px; color: #555;}
.devocional-acao { background: var(--bg-light); padding: 15px; border-radius: 6px; border-left: 3px solid var(--accent-color);}

/* ==========================================================================
   5. ESCOLA BÍBLICA DOMINICAL (EBD)
   ========================================================================== */
/* 3. ESCOLA BÍBLICA */
        .ebd-info {
            text-align: center;
            background: var(--primary-color);
            color: white;
            padding: 15px;
            border-radius: 8px;
            font-size: 1.2rem;
            margin-bottom: 25px;
        }

        .table-responsive {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

        th, td {
            padding: 15px;
            text-align: left;
        }

        th {
            background-color: var(--primary-color);
            color: white;
        }

        tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        .aviso-ebd {
            margin-top: 20px;
            background: #fff3cd;
            color: #856404;
            padding: 15px;
            border-radius: 5px;
            border-left: 4px solid #ffc107;
        }


/* ==========================================================================
   6. PLAYER DA RÁDIO (VISUAL COZY GLASS & ANIMATED RAIN)
   ========================================================================== */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.radio-box {
    background: #1e1e24;
    color: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.rain-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 55%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.4;
}

.drop {
    position: absolute;
    background: linear-gradient(transparent, rgba(255,255,255,0.6));
    width: 1px;
    height: 25px;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(200px); }
}

.admin-entry-btn {
    position: absolute; top: 15px; right: 15px;
    background: none; border: none; cursor: pointer; font-size: 1.2rem; z-index: 10; opacity: 0.5; transition: opacity 0.3s;
}
.admin-entry-btn:hover { opacity: 1; }

.status-badge {
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: white;
    transition: background 0.4s;
}

.sine-wave-container {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 4px; height: 40px; margin: 25px 0; z-index: 2; position: relative;
}

.wave-bar {
    width: 3px; height: 5px; background-color: var(--accent-color); border-radius: 3px;
    transition: height 0.3s;
}

.sine-wave-container.playing .wave-bar {
    animation: pulse wave-duration ease-in-out infinite alternate;
}

.sine-wave-container.playing .wave-bar:nth-child(even) { background-color: #f1c40f; } /* Cor secundária da onda em mostarda */

@keyframes pulse {
    0% { height: 5px; }
    100% { height: 40px; }
}

.media-bottom-controls {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px; border-radius: 12px;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px;
    margin-top: 25px; z-index: 5; position: relative;
}

.btn-control {
    background: none; border: none; font-size: 1.4rem; cursor: pointer; transition: transform 0.2s;
}
.btn-control:hover { transform: scale(1.15); }

.progress-container { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.progress-slider { width: 100%; accent-color: var(--accent-color); cursor: pointer; }
.time-display { display: flex; justify-content: space-between; font-size: 0.75rem; color: #bbb; }

.volume-vertical-wrapper { position: relative; display: inline-block; }
.volume-icon-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; }

.volume-popup {
    position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%);
    background: #1e1e24; padding: 12px 8px; border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); display: none; z-index: 15;
}

.volume-vertical-wrapper:hover .volume-popup { display: block; }
.volume-slider-vertical { writing-mode: vertical-lr; direction: rtl; vertical-align: middle; accent-color: var(--accent-color); height: 80px; width: 15px; cursor: pointer;}

.video-archive {
    background: white; padding: 25px; border-radius: 16px; box-shadow: var(--card-shadow);
    display: flex; flex-direction: column; gap: 15px;
}
.video-archive h3 { color: var(--primary-color); margin-bottom: 5px; border-bottom: 2px solid var(--bg-light); padding-bottom: 8px;}
.video-item { padding: 12px; background: var(--bg-light); border-radius: 6px; font-weight: 500;}
.video-item a { text-decoration: none; color: #3498db; display: block;}

/* ==========================================================================
   7. LOJA VIRTUAL
   ========================================================================== */
.loja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.produto-card {
    background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow);
    display: flex; flex-direction: column; transition: transform 0.3s;
}
.produto-card:hover { transform: translateY(-5px); }

.produto-imagem {
    height: 200px; background-color: #dfe6e9; display: flex; align-items: center; justify-content: center;
}
.placeholder-img { font-size: 4rem; }

.produto-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.produto-info h3 { color: var(--primary-color); margin-bottom: 8px; font-size: 1.2rem;}
.produto-info .produto-descricao { font-size: 0.9rem; color: #666; margin-bottom: 15px; flex: 1;}

.produto-preco-linha { margin-bottom: 15px; }
.produto-preco-linha .preco { font-size: 1.4rem; font-weight: 700; color: var(--primary-color); }

.btn-comprar {
    display: block; text-align: center; background: #2ecc71; color: white; text-decoration: none;
    padding: 12px; border-radius: 6px; font-weight: 600; transition: background 0.3s;
}
.btn-comprar:hover { background: #27ae60; }

/* ==========================================================================
   8. RODAPÉ EM 3 COLUNAS E REDES SOCIAIS (RESTAURADO COM A COR MOSTARDA)
   ========================================================================== */
footer {
    background-color: #0f2043; /* Azul-marinho profundo */
    color: #ffffff;
    padding: 30px 20px 5px 20px;
    margin-top: 60px;
    border-top: 4px solid #f39c12; /* Linha de detalhe alterada para tom ouro/mostarda */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Colunas iguais */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-col h3 {
    color: #f39c12; /* Títulos "IEQ 763", "INFORMAÇÕES" e "SIGA-NOS" agora em Mostarda */
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Coluna Esquerda */
.footer-msg {
    font-size: 0.95rem;
    line-height: 0.8;
    opacity: 0.85;
    margin-bottom: 20px;
}
.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Coluna Central */
.footer-endereco {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
}
.footer-documentos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-documentos a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s, padding-left 0.3s;
}
.footer-documentos a:hover {
    opacity: 1;
    color: #f39c12; /* Efeito hover nos links alterado para mostarda */
    padding-left: 5px;
}

/* Coluna Direita - Redes Sociais */
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}
.social-links a:hover {
    background-color: #f1c40f; /* Fundo do círculo das redes fica mostarda no hover */
    transform: translateY(-3px);
}
.icon-svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: fill 0.3s;
}
.social-links a:hover .icon-svg {
    fill: #0f2043; /* O desenho interno do ícone ganha contraste em azul-marinho ao passar o mouse */
}

/* ==========================================================================
   ÍCONE FLUTUANTE DO WHATSAPP (LOGOTIPO OFICIAL)
   ========================================================================== */
.whatsapp-flutuante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366; /* Verde oficial do WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.wp-icon-svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}

/* RESPONSIVIDADE - FAZ COLAPSAR NO CELULAR */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-documentos {
        align-items: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   9. MODAL SISTEMA ADMIN (FUNDO AZUL MARINHO DA IGREJA)
   ========================================================================== */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Escurece o fundo do site ao abrir */
    backdrop-filter: blur(5px);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 2000; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s ease;
}

.modal-overlay.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.modal-box {
    background: #0f2043; /* O azul-marinho oficial do topo/rodapé */
    padding: 35px; 
    border-radius: 16px; 
    width: 100%; 
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); 
    transform: scale(0.9); 
    transition: transform 0.3s ease;
    border: 2px solid #d4a373; /* Borda elegante em mostarda/ouro */
}

.modal-overlay.active .modal-box { 
    transform: scale(1); 
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px;
}

.modal-header h3 { 
    color: #ffffff; /* Título em Branco */
    font-size: 1.4rem;
    font-weight: 600;
}

.close-modal-btn { 
    background: none; 
    border: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: #d4a373; /* Botão X em mostarda */
    transition: color 0.3s;
}

.close-modal-btn:hover { 
    color: #ffffff; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500;
    color: #f1c40f; /* Nomes "Usuário:" e "Senha:" em mostarda vivo */
}

.form-group input { 
    width: 100%; 
    padding: 12px; 
    background-color: rgba(255, 255, 255, 0.9); /* Caixas brancas limpas para digitação */
    border: 2px solid transparent; 
    border-radius: 8px; 
    font-size: 1rem;
    color: #2d3436;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #f1c40f; /* Caixa ganha borda mostarda ao clicar para digitar */
}

.btn-submit-admin {
    width: 100%; 
    background: #d4a373; /* Botão Ouro */
    color: #0f2043; /* Texto em azul escuro para leitura */
    border: none; 
    padding: 14px;
    border-radius: 8px; 
    font-size: 1.05rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-submit-admin:hover { 
    background: #f1c40f; /* Brilha em mostarda vivo no hover */
    transform: translateY(-2px);
}

.btn-submit-admin:active {
    transform: translateY(0);
}

.modal-error { 
    color: #ff7675; 
    font-size: 0.95rem; 
    margin-bottom: 15px; 
    text-align: center; 
    font-weight: 600;
}

/* ==========================================================================
   10. RESPONSIVIDADE (CELULARES E TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 0.95rem; }
    .container { padding: 25px 15px; }
    .hero h1 { font-size: 1.8rem; }
    .sine-wave-container.playing .wave-bar { animation-duration: 0.5s; }
}

/* Ajuste para que o menu fixo não corte o conteúdo ao clicar nos links */
html {
    scroll-padding-top: 80px; /* Ajuste esse valor conforme a altura real do seu menu */
}

/* Cor inicial de todos os links no rodapé */
.footer-documentos a {
    color: #ffffff !important;        /* Branco */
    text-decoration: none;            /* Remove o sublinhado se houver */
    transition: color 0.3s ease;      /* Cria um efeito suave na troca de cor */
}

/* Cor ao passar o mouse (Hover) em qualquer link do rodapé */
.footer-documentos a:hover {
    color: #f1c40f !important;        /* O tom de Mostarda/Ouro da sua igreja */
}

/* --- Ajustes do Rodapé (Ícones e Links) --- */

.footer-documentos a {
    display: flex;             /* Alinha ícone e texto na mesma linha */
    align-items: center;       /* Centraliza verticalmente */
    color: #ffffff !important; /* Cor branca inicial */
    text-decoration: none;     /* Remove o sublinhado */
    margin-bottom: 8px;       /* Espaço entre as redes sociais */
    transition: color 0.3s ease; /* Efeito suave na mudança de cor */
}

.footer-documentos a:hover {
    color: #f1c40f !important; /* Muda para Mostarda ao passar o mouse */
}

.footer-documentos a i {
    margin-right: 12px;        /* Espaço entre o ícone e o nome */
    width: 20px;               /* Largura fixa para os ícones ficarem alinhados */
    text-align: center;        /* Garante que o ícone fique centralizado no seu espaço */
}

/* --- ESTILOS DO RODAPÉ --- */
footer {
    background-color: #0f2043;
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid #d4a373;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-msg {
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Links das Redes Sociais */
.footer-documentos a {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-documentos a:hover {
    color: #f1c40f !important;
}

.footer-documentos a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
}

/* Linha vertical azul nos cards de culto */
.card-cultos {
    border-left: 6px solid #ffffff !important;
}

@media (max-width: 600px) {
    /* 1. Ajuste geral de margens e padding */
    .container {
        padding: 15px 10px !important;
    }

    /* 2. Centralizar e organizar os Pilares */
    .pilares-grid {
        grid-template-columns: 1fr !important; /* Uma coluna só */
    }

    /* 3. Ajustar os Cards de Cultos */
    .cultos-container {
        grid-template-columns: 1fr !important;
    }
    
    /* 4. Ajustar o texto dentro dos cards para não ficar 'apertado' */
    .card-cultos, .cultos-card {
        padding: 15px !important;
    }

    /* 5. Ajustar o menu (Header) */
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    .nav-links {
        gap: 10px;
        font-size: 0.8rem;
    }
}

/* --- APENAS AJUSTES DE RESPONSIVIDADE --- */
@media screen and (max-width: 768px) {
    /* Impede que o conteúdo ultrapasse a largura da tela do celular */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Força containers a ocuparem quase toda a largura, sem sobrar espaço */
    .container, .footer-grid, .cultos-container, .pilares-grid {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        display: block !important; /* Quebra as colunas para uma só */
    }

    /* Garante que os cards não fiquem estreitos */
    .cultos-card, .pilar, .produto-card {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* Ajusta o menu para não quebrar o layout */
    .navbar {
        flex-direction: column !important;
        padding: 10px !important;
    }
    
    .nav-links {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 10px;
    }
}

/* ==========================================================================
   AJUSTES EXCLUSIVOS DE RESPONSIVIDADE (ADICIONAR NO FIM DO ARQUIVO)
   Esta seção não altera as cores ou estilos que você criou, apenas
   corrige o layout para não ficar 'apertado' no celular.
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 1. Impede que o conteúdo 'vaze' para as laterais */
    body, html {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* 2. Força os containers e containers de Grid a ocuparem 95% da tela centralizados */
    .container, .pilares-grid, .cultos-container, .ebd-grid, .loja-grid, .footer-grid {
        display: block !important; /* Desativa o grid no celular para empilhar */
        width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 3. Garante que cada item ocupe a largura total e não fique espremido */
    .pilar, .cultos-card, .ebd-card, .produto-card, .footer-col {
        width: 100% !important;
        margin-bottom: 20px !important;
        float: none !important; /* Remove floats antigos */
    }

    /* 4. Ajuste do menu (Header) para não quebrar */
    .navbar {
        flex-direction: column !important;
        gap: 10px;
    }
    .logo-container {
        gap: 10px;
    }
    .nav-links {
        flex-direction: column !important;
        gap: 10px;
        text-align: center;
    }

    /* 5. Ajuste sutil do banner Hero para celular */
    .hero {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        padding: 60px 15px !important;
    }
}

/* --- CORREÇÕES DE ESPAÇAMENTO E RESPONSIVIDADE (MOBILE) --- */

/* 1. Melhora o espaçamento de leitura */
body {
    line-height: 1.6 !important; /* Aumenta o espaço entre as linhas */
}

/* 2. Ajustes específicos para celular (telas até 768px) */
@media screen and (max-width: 768px) {
    
    /* Corrige o Header: permite que o botão Entrar caia para a linha de baixo se necessário */
    .navbar {
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    /* Ajusta o texto da Hero: melhora a margem interna para não ficar colado nas bordas */
    .hero {
        padding: 40px 15px !important;
        margin: 10px !important;
    }

    .hero h1, .hero blockquote {
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
}