    /* Container da visualização da formação */
    .formation-view {
        max-width: 1400px;
        margin: 0 auto;
        padding: 80px 20px 40px;
    }

    /* Header da formação */
    .formation-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .formation-header h1 {
        font-size: 2.5rem;
        color: #2c3e50;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .formation-meta {
        display: flex;
        gap: 30px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #666;
        font-size: 1rem;
    }

    .meta-item i {
        color: #3498db;
        font-size: 1.2rem;
    }

    /* Galeria de imagens da formação */
    .formation-gallery {
        margin-top: 60px;
    }

    .gallery-title {
        text-align: center;
        font-size: 2rem;
        color: #2c3e50;
        margin-bottom: 40px;
        font-weight: 600;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
        margin-bottom: 60px;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        background: #fff;
    }

    .gallery-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    }

    .gallery-item-image {
        width: 100%;
        height: 250px;
        overflow: hidden;
    }

    .gallery-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover .gallery-item-image img {
        transform: scale(1.1);
    }

    /* Descrição da formação */
    .formation-description {
        max-width: 900px;
        margin: 60px auto;
        padding: 40px;
        background: #f8f9fa;
        border-radius: 12px;
        line-height: 1.8;
        color: #555;
    }

    .formation-description h3 {
        color: #2c3e50;
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    /* Botão voltar */

    .back-button {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 30px;
        background: #3498db;
        color: white;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: background 0.3s ease;
        margin: 40px auto;
        /* Centraliza horizontalmente */
    }

    .back-button:hover {
        background: #2980b9;
    }

    .back-button i {
        font-size: 1.2rem;
    }

    .container-botao {
        text-align: center;
        /* Garante que o botão fique no centro */
    }


    /* Modal para visualização ampliada */
    .image-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        align-items: center;
        justify-content: center;
    }

    .image-modal.active {
        display: flex;
    }

    .modal-content-wrapper {
        position: relative;
        max-width: 90%;
        max-height: 90%;
    }

    .modal-image {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 8px;
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    }

    .modal-close {
        position: absolute;
        top: -40px;
        right: 0;
        color: white;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .modal-close:hover {
        transform: scale(1.2);
    }

    .modal-navigation {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 50px;
        cursor: pointer;
        padding: 20px;
        user-select: none;
        transition: transform 0.2s ease;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-navigation:hover {
        transform: translateY(-50%) scale(1.2);
        background: rgba(0, 0, 0, 0.5);
    }

    .modal-prev {
        left: 20px;
    }

    .modal-next {
        right: 20px;
    }

    .modal-counter {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px 20px;
        border-radius: 20px;
    }

    /* Mensagem quando não há imagens */
    .no-images {
        text-align: center;
        padding: 60px 20px;
        color: #999;
        font-size: 1.2rem;
    }

    /* Responsividade */
    @media (max-width: 768px) {
        .formation-view {
            padding: 60px 15px 30px;
        }

        .formation-header h1 {
            font-size: 1.8rem;
        }

        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .gallery-item-image {
            height: 200px;
        }

        .formation-meta {
            gap: 15px;
        }

        .gallery-title {
            font-size: 1.5rem;
        }

        .modal-navigation {
            font-size: 35px;
            padding: 10px;
            width: 50px;
            height: 50px;
        }

        .modal-prev {
            left: 10px;
        }

        .modal-next {
            right: 10px;
        }
    }

    @media (max-width: 480px) {
        .gallery-grid {
            grid-template-columns: 1fr;
        }

        .formation-header h1 {
            font-size: 1.5rem;
        }

        .formation-description {
            padding: 25px;
        }

        .modal-navigation {
            font-size: 30px;
            width: 45px;
            height: 45px;
        }
    }
