/*
Index
*/
.logo-index img {
    height: 60px;
}
.mobile-logo-top {
    width: 40px;
    margin-bottom: 40px;
}
.hero-index {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../img/index.avif');
    font-size: 1.3rem;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.publicado {
    font-size: 11px;
    color: var(--midia-padrao-4);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0px 7px 0px;
}
.slider {
    width: 100%;
    overflow: hidden;
    /* Esconde o que sai da tela */
    background: var(--midia-padrao-2);
    position: relative;
}
.slide-track {
    display: flex;
    /* O cálculo abaixo garante que o trilho tenha o dobro do tamanho necessário */
    width: calc(250px * 2);
    animation: scroll 30s linear infinite;
    /* Ajuste o tempo para a velocidade desejada */
}
.slide {
    width: 250px;
    /* Largura fixa para cada foto */
    flex-shrink: 0;
    padding: 10px;
}
.slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* O segredo do loop: mover apenas METADE da largura total do trilho */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exatamente a largura da primeira metade (fotos originais) */
        transform: translateX(calc(-250px * 2));
    }
}
/* Pausa a animação quando o usuário passa o mouse */
.slide-track:hover {
    animation-play-state: paused;
}
.history-section {
    padding: 20px 20px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--midia-padrao-2);
    height: auto;
}
.history-card {
    margin-bottom: 30px;
    padding: 40px;
    background-color: var(--midia-padrao-2);
    border-left: 4px solid var(--midia-padrao-1);
    /* Detalhe dourado */
    box-shadow: 0 10px 30px rgba(58, 53, 53, 0.2);
    border-radius: 0 8px 8px 0;
    /* Configuração da Animação de Scroll */
    view-timeline-name: --card-reveal;
    view-timeline-axis: block;
    animation: reveal-linear both;
    animation-timeline: --card-reveal;
    animation-range: entry 10% cover 40%;
    /* Imagem de fundo com um "filtro" escuro por cima */
    background-position: center;
    background-size: 300px;
    background-attachment: scroll;
    background-repeat: no-repeat;
    opacity: 0.5;
}
.year {
    font-weight: bold;
    font-family: 'League Spartan';
    color: var(--midia-padrao-1);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 3px;
}
.history-card h4 {
    font-family: 'League Spartan';
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--midia-padrao-4);
}
.history-card p {
    line-height: 1.4;
    color: var(--midia-padrao-4);
}
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Keyframes para o efeito de surgimento */
@keyframes reveal-linear {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/*
Todas as Páginas
*/
.titulo-descrito-icms {
    font-size: 3.5rem;
    height: 93px;
    font-weight: 700;
}
/*
Geral Sub-Páginas
*/
.logo-sub img {
    height: 50px;
    align-items: center;
}
.hero-sub {
    height: 15vh;
    background-color: var(--midia-padrao-4);
}
.logo-hero-cms {
    margin-top: 7px;
}
/*
Sobre Nós
*/
.titulo-descrito-s {
    font-size: 3.5rem;
    height: 93px;
    font-weight: 700;
}
.oferta-titulo {
    padding-bottom: 10px;
}
.oferta-subnivel {
    padding-left: 20px;
    padding-bottom: 10px;
}
.subnivel15 {
    padding-left: 15px;
}
.aniversariantes {
    font-size: 0.8rem;
}
.agenda-mensal {
    font-size: 0.8rem;
}
.men-versiculo {
    font-size: 0.8rem;
}
.oferta {
    font-size: 0.8rem;
    padding-top: 10px;
}
.escala-presencial {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.escala_pres-titulo {
    text-transform: uppercase;
}
.recados {
    font-size: 0.8rem;
    padding-top: 10px;
    line-height: 1.2;
    text-align: justify;
    hyphens: auto;
}
.recados li {
    padding-left: 2px;
}
.recados ol {
    padding-left: 15px;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}
/* Estilo do Modal Arrastável */
#videoModal {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 90%;
    max-width: 560px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    touch-action: none;
    /* Importante para dispositivos móveis */
}
/* Barra de título para arrastar */
.modal-header {
    background: #222;
    color: white;
    padding: 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.close-btn {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.thumbnail-container {
    cursor: pointer;
    position: relative;
    width: 180px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);*/
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    margin-bottom: 5px;
}
.thumbnail-container:hover {
    transform: scale(1.05);
}

.thumbnail-container img {
    width: 100%;
    display: block;
}
.texto-dons {
    line-height: 1.6;
    hyphens: auto;
    text-align: justify;
    text-justify: inter-word;

}
.select-data {
    position: relative;
    top: 25px;
    /* Distância do topo */
    right: -800px;
    /* Distância da direita */
    text-decoration: none;
    width: 200px;
}
.btn {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.select-sn {
    width: 100%;
    font-family: Montserrat;
    border: 1px solid #d32f2f;
    border-radius: 0.75rem;
    padding: 0.5rem;
    transition: all 0.2s;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.imagem-sobre img {
    width: 50%;
    height: auto;
}
.separa-texto {
            width: 100%;
            display: flex;
            padding: 10px;
            gap: 15px;
            
        }
        .texto-sobre-esq {
            width: 800px;
            padding: 10px;
            
        }
        .imagem-sobre img{
        width: 600px;
        border-radius: 5px;
        }
        .texto-sobre-mvv {
        display:flex;
        }
        
        .texto-sobre-mvv ol{
        padding-left: 40px;
        }
/*
Ministérios
*/
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 50%;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}
.carousel-track:active {
    cursor: grabbing;
}
.slide-mn {
    min-width: 100%;
    height: 400px;
    user-select: none;
}
.slide-mn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Impede que a imagem seja "puxada" sozinha */
}
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.texto-esquerda {
    width: 50%;
    padding: 20px;
}
.ministerio-desk {
    display: block;
}
.ministerio-mob {
    display: none;
}
.separa-section {
    display: flex;
    padding: 10px;
}
.texto-esquerda h2 {
    font-family: 'League Spartan';
    text-transform: uppercase;
}
/*
Contato
*/
.footer-outro {
    width: 100%;
    text-decoration: none;
    font-size: 1.0rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
    text-align: right;
}
.footer-outro a {
    width: 100%;
    text-decoration: none;
    font-size: 1.0rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
    text-align: right;
}
.footer-outro-mobile {
    color: #FFF;
    width: 100%;
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: 500;
    display: inline-block;
    text-align: right;
}
.footer-outro-mobile a {
    color: #FFF;
    width: 100%;
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: 500;
    display: inline-block;
    text-align: right;
    padding-bottom: 10px;
}
.fundao {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(27, 15, 1, 0.56), rgba(131, 74, 36, 0.64)),
        url('../img/fundo_contato.jpg');
    color: #FFF;

    background-size: cover;
}
.fundao-mobile {

    display: none;

}
.contact-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px 20px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 500px;
    border: 1px solid #e1e8ed;
    color: #000;
}
.font-nova {
    font-family: 'League Spartan';
    text-transform: uppercase;
}
input, textarea, select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-family: Montserrat;
}
input:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}


@media (max-width: 768px) {
    /*
Index
*/
    .logo-index img {
        height: 40px;
    }
    .publicado {
        margin: 6px 0px 7px 0px;
        display: flex;
        font-size: 14px;
        align-items: center;
        gap: 5px;
        color: var(--midia-padrao-4);
    }
    .slider {
        width: 100%;
        overflow: hidden;
        /* Esconde o que sai da tela */
        background: var(--midia-padrao-2);
        position: relative;
    }
    .slide-track {
        display: flex;
        /* O cálculo abaixo garante que o trilho tenha o dobro do tamanho necessário */
        width: calc(150px * 2);
        animation: scroll 30s linear infinite;
        /* Ajuste o tempo para a velocidade desejada */
    }
    .slide {
        width: 250px;
        /* Largura fixa para cada foto */
        flex-shrink: 0;
        padding: 10px;
    }
    .slide img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* O segredo do loop: mover apenas METADE da largura total do trilho */
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            /* Move exatamente a largura da primeira metade (fotos originais) */
            transform: translateX(calc(-250px * 2));
        }
    }
    /* Pausa a animação quando o usuário passa o mouse */
    .slide-track:hover {
        animation-play-state: paused;
    }
    .history-section {
        padding: 20px 20px;
        width: 100%;
        margin: 0 auto;
        background-color: var(--midia-padrao-2);

    }
    .history-card {
        margin-bottom: 10px;
        padding: 40px;
        background-color: var(--midia-padrao-2);
        border-left: 4px solid var(--midia-padrao-1);
        /* Detalhe dourado */
        box-shadow: 0 10px 30px rgba(58, 53, 53, 0.05);
        border-radius: 0 8px 8px 0;
        /* Configuração da Animação de Scroll */
        view-timeline-name: --card-reveal;
        view-timeline-axis: block;
        animation: reveal-linear both;
        animation-timeline: --card-reveal;
        animation-range: entry 10% cover 40%;
        /* Imagem de fundo com um "filtro" escuro por cima */
        background-image: url('../img/logo_holiness_1px.png');
        background-position: center;
        background-size: 300px;
        background-attachment: scroll;
        background-repeat: no-repeat;
        opacity: 0.5;
    }
    /*
Todas as Páginas
*/
    .titulo-descrito-icms {
        font-size: 24px;
        font-weight: 800;
        height: 47px;
        align-items: center;
    }
    /*
Geral Sub-Páginas
*/
    .logo-sub img {
        height: 35px;
    }
    .logo-hero-cms {
        margin-top: 15px;
    }
    /*
Sobre Nós
*/
    .titulo-descrito-s {
        font-size: 22px;
        font-weight: 800;
        height: 47px;
        align-items: center;
    }
    #videoModal {
        position: block;
        width: 550px;
        /* Ajuste a largura conforme desejar */
        max-width: 1000px;
        /* Define um limite máximo de largura */
        height: auto;
    }
    #videoModal .modal-content {
        height: 500px;
        /* Ajuste a altura do conteúdo do modal */
    }
    #videoModal iframe {
        width: 100%;
        height: 100%;
        /* Garante que o vídeo preencha o novo tamanho do modal */
    }
    .select-data {
        position: flex;
        top: 5px;
        /* Distância do topo */
        right: -238px;
        /* Distância da direita */
        text-decoration: none;
        width: 115px;
    }
    .separa-texto {
            width: 100%;
            padding: 5px;
            gap: 15px;
            display: inline;
        }

        .texto-sobre-esq {
            width: 100%;
            padding: 5px;
        }
        .imagem-sobre img{
        width: 100%;
        border-radius: 5px;
        }
        .texto-sobre-mvv ol{
        padding-left: 28px;
        }
    /*
Ministérios
*/
    .ministerio-desk {
        display: none;
    }
    .ministerio-mob {
        display: block;
    }
    .separa-section {
        padding: 10px;
    }
    .texto-esquerda {
        width: 100%;
    }
    .carousel-container {
        position: relative;
        width: 90%;
        max-width: 800px;
        margin: auto;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    /* Área das imagens */
    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
        cursor: grab;
    }
    .carousel-track:active {
        cursor: grabbing;
    }
    .slide-mn {
        min-width: 100%;
        height: auto;
        user-select: none;
    }
    .slide-mn img {
        width: 100%;
        height: auto;
        object-fit: cover;
        pointer-events: none;
        /* Impede que a imagem seja "puxada" sozinha */
    }
    /*
Contato
*/
    .section {
        padding-top: 0px;
    }
    .fundao-mobile {
        display: block;
        justify-items: center;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(131, 74, 36, 0.64), rgba(27, 15, 1, 0.56)),
            url('../img/fundo_contato.jpg');
        color: var(--text-light);
        background-position: 50%;
        background-size: cover;
    }

    .fundao {
        display: none;

    }
    .contact-card {
        background: rgba(255, 255, 255, 0.2);
        padding: 10px 20px 20px 20px;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        width: 90%;
        border: 1px solid #e1e8ed;
        color: #000;
    }
}