/* Page Header */
.page-header {
    position: relative;
    display: flex;
    align-items: center;      /* centraliza o conteúdo verticalmente */
    justify-content: center;  /* centraliza horizontalmente */
    text-align: center;
    color: var(--white);

    min-height: 421px;        /* altura do header – ajuste se quiser mais alto */

    /* imagem de fundo cobrindo tudo */
    background-image: url("/Assets/Igreja-Sede.png");
    background-size: cover;        /* cobre toda a área sem bordas */
    background-position: center;   /* centraliza o enquadramento */
    background-repeat: no-repeat;
    overflow: hidden;
}

/* overlay / sombra interna */
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.65) 100%);
    box-shadow: inset 0 0 120px rgba(0,0,0,0.85);
    z-index: 0;
}

/* conteúdo acima do overlay */
.page-header .container {
    position: relative;
    z-index: 1;
    padding: 3rem 1rem;  /* espaçamento interno; pode reduzir/aumentar */
}

.page-header h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.page-header p {
    font-weight: 500;
    font-size: 1.4rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 0;
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-green), var(--dark-green));
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }
.timeline-item:nth-child(10) { animation-delay: 1.0s; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-green);
    z-index: 1;
}

.timeline-content,
.timeline-image {
    width: 45%;
}

.timeline-item.left {
    flex-direction: row;
}

.timeline-item.right {
    flex-direction: row;
}

.timeline-content {
    background: var(--primary-green);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Quando usa class="left" (flex-direction: row) 
   → conteúdo vem PRIMEIRO no HTML → fica à ESQUERDA → seta aponta → */
.timeline-item.left .timeline-content::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 30px;
    width: 0;
    height: 0;
    border-left: 20px solid var(--primary-green);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* Quando usa class="right" (flex-direction: row-reverse)
   → imagem vem PRIMEIRO no HTML, mas row-reverse joga ela pra ESQUERDA
   → conteúdo fica à DIREITA visualmente → seta aponta ← */
.timeline-item.right .timeline-content::before {
    content: '';
    position: absolute;
    left: -20px;   /* seta à esquerda do conteúdo */
    top: 30px;
    width: 0;
    height: 0;
    border-right: 20px solid var(--primary-green);  /* aponta ← */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-year {
    display: inline-block;
    background: var(--dark-green);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-text {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
}

.timeline-text p {
    color: var(--gray);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.timeline-text p:last-child {
    margin-bottom: 0;
}

.timeline-text strong {
    color: var(--dark-green);
}

.timeline-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.timeline-image img {
    width: 100%;
    height: 300px;          /* continua valendo para fotos normais */
    object-fit: cover;
    transition: var(--transition);
}

.timeline-image--doc {
    overflow: visible;          /* deixa a altura crescer livremente */
    max-height: none; 
}

.timeline-image--doc img {
    width: auto;                /* usa a largura natural da imagem */
    max-width: 100%;            /* mas não passa da coluna */
    height: auto;               /* altura proporcional, 100% do original */
    object-fit: contain;        /* não corta nada */
    display: block;
    
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.05);
}

/* Pentecostal Section */
.pentecostal-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--very-light-green) 0%, var(--light-green) 100%);
}

.pentecostal-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.pentecostal-content h2 {
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.pentecostal-content .lead {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 3rem;
    font-style: italic;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.belief-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-align: center;
}

.belief-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.belief-item i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.belief-item p {
    color: var(--gray);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 60px;
    }

    .timeline-item::before {
        left: 30px;
    }

    .timeline-content,
    .timeline-image {
        width: 100%;
    }

    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        display: none;
    }

    .timeline-image {
        margin-top: 1rem;
    }

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