/* Layout Geral da Página Inicial */
.main-content-home {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* --- CARROSSEL / BANNER --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-color: #f4f6f8;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: block; /* Alterado de flex para block para evitar alinhamento lado a lado */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* Mantém a altura do container proporcional */
    z-index: 2;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Botões de Navegação (Setas) */
/* Força os botões a ficarem visíveis e acima da imagem */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 86, 179, 0.85);
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 20; /* Z-index alto para ficar sobre a imagem */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background-color: #003d82;
    transform: translateY(-50%) scale(1.1);
}

.btn-prev { left: 20px; }
.btn-next { right: 20px; }

/* Indicadores (Pontos) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #0056b3;
}

/* --- SEÇÃO DE CARDS NAVEGÁVEIS --- */
.nav-cards-container {
    background-color: #f7fafc;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    width: 100%;
}

.nav-card {
    background-color: #dbead5;
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #2d4a27;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #cfebd2;
}

.nav-card .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-card .icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-card span {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .nav-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .nav-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .btn-prev { left: 10px; }
    .btn-next { right: 10px; }
}