/* ==========================================================================
   PÁGINA DE CONFISSÕES - MISSA EM TERESINA
   ========================================================================== */

/* 1. Hero Section
   -------------------------------------------------------------------------- */
.church-hero {
    background: linear-gradient(135deg, #0D1B2A 0%, #1E3A5F 100%);
    padding: 4rem 0;
    color: #FFFFFF;
    text-align: center;
    border-bottom: 4px solid #D4A72C;
}

.church-category {
    display: inline-block;
    background: rgba(212, 167, 44, 0.2);
    color: #D4A72C;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid #D4A72C;
}

.church-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.church-location-brief p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Formulário de Busca
   -------------------------------------------------------------------------- */
.search-form {
    display: flex;
    gap: 10px;
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: -2rem; /* Efeito de sobreposição no Hero */
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        margin-top: 1rem;
    }
}

.form-control {
    border: 2px solid #F4F1E8;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #4D7FB8;
    box-shadow: none;
    outline: none;
}

/* 3. Grid de Igrejas
   -------------------------------------------------------------------------- */
.church-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 4. Estilização do Card (Com Flexbox para alinhamento do footer)
   -------------------------------------------------------------------------- */
.church-app-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Essencial para o footer no fundo */
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F4F1E8;
}

.church-app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Container da Imagem */
.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F4F1E8;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.church-app-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E9ECEF;
}

/* Corpo do Card */
.card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Faz o corpo ocupar o espaço disponível */
    display: flex;
    flex-direction: column;
}

.card-neighborhood {
    color: #4D7FB8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.card-title a {
    color: #0D1B2A;
}

.card-title a:hover {
    color: #4D7FB8;
}

/* Seção de Horários de Confissão */
.confession-times {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #F4F1E8;
}

.confession-times strong {
    color: #0D1B2A;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #F4F1E8;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row span {
    font-size: 0.85rem;
    color: #2D3748;
    line-height: 1.4;
}

.schedule-row strong {
    font-size: 0.85rem;
    color: #0D1B2A;
    background: #F4F1E8;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 10px;
}

.schedule-row small {
    color: #C0392B; /* Vermelho sóbrio para alertas de agendamento */
    font-weight: 600;
}

/* 5. Footer do Card e Botões
   -------------------------------------------------------------------------- */
.card-footer {
    padding: 1.5rem;
    background: #FAFAFA;
    border-top: 1px solid #F4F1E8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.full-width {
    width: 100%;
}

.btn-primary {
    background: #D4A72C;
    color: #0D1B2A;
    border: none;
}

.btn-primary:hover {
    background: #B8860B;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #1E3A5F;
    color: #1E3A5F;
}

.btn-outline-primary:hover {
    background: #1E3A5F;
    color: #FFFFFF;
}

/* Botão Dourado (Como Chegar) */
.btn-gold {
    background: #D4A72C;
    color: #0D1B2A;
    border: none;
    box-shadow: 0 4px 10px rgba(212, 167, 44, 0.3);
}

.btn-gold:hover {
    background: #E5C05B;
    box-shadow: 0 6px 15px rgba(212, 167, 44, 0.4);
    transform: translateY(-2px);
}

/* 6. Paginação e Estados Vazios
   -------------------------------------------------------------------------- */

/* PAGINAÇÃO */
.pagination-section {
    padding-bottom: 80px;
}

.pagination-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.page-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    background-color: var(--white);
    color: var(--text-main);
}

.page-btn:hover:not(.disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-light);
}

.page-numbers {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 7. Utilitários
   -------------------------------------------------------------------------- */
.section-padding {
    padding: 60px 0;
}

.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-5 { margin-top: 3rem; }
.text-muted { color: #6B7280 !important; }
.small { font-size: 0.8rem; }