body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: sans-serif;
    padding-top: 80px; /* altura do header + espaço */
    padding-bottom: 100px; /* Ajuste conforme a altura do seu footer */
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Z-index para o cabeçalho */
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-header .logo {
    max-height: 50px;
    object-fit: contain;
    cursor: pointer; /* Indica que o logo é clicável */
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: white;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999; /* Z-index para a barra de navegação inferior */
}

.bottom-nav::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 45px;
    background-color: white;
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    z-index: 1001; /* Deve estar acima do bottom-nav, mas abaixo do center-button */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #888;
    z-index: 1002; /* Deve estar acima do before do bottom-nav */
    cursor: pointer; /* Indica que os itens são clicáveis */
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.center-button {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background-color: #b78c55;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 10000; /* Z-index mais alto para o botão central */
    cursor: pointer; /* Indica que o botão é clicável */
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Z-index muito alto para o preloader */
    transition: opacity 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    text-align: center;
}

.church-loader {
    font-size: 40px;
    color: #b78c55;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
    margin-top: 15px;
    color: #b78c55;
    font-size: 16px;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.title {
    font-family: "Oswald", sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: black;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
    position: relative;
}
.title::after {
    content: "";
    display: block;
    width: calc(32% + 100px);
    height: 3px;
    background-color: #5c3317;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
}

.camp-card .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.camp-card .card:hover {
    transform: translateY(-5px);
}

/* Wrapper para manter a proporção 1.54:1 da imagem */
.card-image-wrapper {
    position: relative;
    padding-top: 64.935%; /* 100% / 1.54 */
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.time-info {
    font-size: 0.875rem;
    color: #666;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.event-date, .registration-deadline {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-date i, .registration-deadline i {
    color: #5c3317;
}

.card-title {
    color: #333;
    font-weight: 500;
    margin: 1rem 0;
    font-size: 1.25rem;
    font-family: "Oswald", sans-serif;
}

.card-text {
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: #5c3317;
    border-color: #5c3317;
    padding: 8px 20px;
}

.btn-primary:hover {
    background-color: #4a2912;
    border-color: #4a2912;
}

/* Responsividade */
@media (max-width: 576px) {
    .time-info .d-flex {
        flex-direction: column;
    }

    .event-date, .registration-deadline {
        width: 100%;
    }
}

/* Estilos para o novo menu em grade (cards) */
.floating-grid-menu {
    position: fixed;
    bottom: -600px; /* Escondido por padrão */
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    padding-bottom:90px!important; /* Espaço para o botão central */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas por padrão */
    gap: 10px;
    transition: bottom 0.3s ease-out;
    z-index: 9998; /* Abaixo do botão central e do overlay */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.floating-grid-menu.show-menu {
    bottom: 0px; /* Visível */
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0ad4e;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.grid-item:hover {
    background-color: rgb(92, 44, 12);
    color: white;
}

.grid-item .icon {
    font-size: 24px;
    margin-bottom: 5px;
    color: #333;
}

.grid-item:hover .icon {
    color: white;
}

.grid-item .title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 0px;
    margin-bottom: 0px;
}

.grid-item:hover .title {
    color: white;
}

/* Item vazio para preencher o grid, se necessário */
.empty-grid-item {
    background-color: transparent !important; /* Torna o item vazio transparente */
    box-shadow: none !important; /* Remove qualquer sombra */
    cursor: default !important; /* Remove o cursor de ponteiro */
}

/* Quando o menu está aberto, ajuste o padding-bottom do body */
body.menu-open {
    padding-bottom: calc(70px + 250px); /* Altura do bottom-nav + altura aproximada do menu */
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9997; /* Abaixo do menu flutuante */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.menu-overlay.show-overlay {
    opacity: 1;
    visibility: visible;
}

/* Responsividade para o menu em grade em telas menores */
@media (max-width: 576px) {
    .floating-grid-menu {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em telas menores */
    }
}
