
*{
    margin: 0;
    padding: 0;

}

/* PARA A MODAL DE LEGISLAÇOES E REGULAMENTOS */
 
/* --- Legislação card --- */
.legislacoes {
    align-items: center;
    max-width: 980px; 
    margin: 24px auto;
    padding: 0 16px;
}

.legislacao {
    text-align: left;
    justify-content: center;
    width: 95%;
    background: #fff;
    color: #000;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    line-height: 1.5;
}

.legislacao h2 {
    margin-top: 0;
    color: #0b4f6c;
}

.legislacao h3 {
    margin-bottom: .25rem;
    color: #0b6f4c;
}

.legislacao ul {
    margin: .5rem 0 1rem 1.1rem;
    align-items: left;
}

.legislacao .legis-actions {
    margin-top: 12px;
}
 
/* botão */
.btn-view-docs {
    background: #0d6efd;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-view-docs:hover {
    opacity: .95;
}

/* --- Modal básico e acessível --- */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    /* Usamos flex sempre, controlamos visibilidade com opacity/visibility */
    align-items: center;
    justify-content: center;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.45);
    padding: 20px;

    /* Transição suave ao abrir/fechar */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    color: #000;
}

/* Mostra a modal quando ativa */
.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;

    /* Centralização refinada */
    margin: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.modal-header,
.modal-footer {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.modal-body {
    padding: 16px 18px;
    max-height: 55vh;
    overflow: auto;
}

.modal-close,
.modal-close-btn {
    background: transparent;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    flex-direction: column;
}

.docs-list li:last-child {
    border-bottom: none;
}

.doc-actions {
    margin-top: 6px;
}

.doc-view,
.doc-download {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #fff;
}

.doc-view {
    background: #198754;
}

.doc-download {
    background: #0d6efd;
}

/* responsivo */
@media (max-width: 720px) {
    .modal-dialog {
        max-width: 95%;
    }

    .docs-list li {
        padding: 8px 0;
    }

    .doc-view,
    .doc-download {
        padding: 6px 8px;
        font-size: .9rem;
    }



    /* em telas pequenas mostramos apenas 1 (faz sentido) */
    .carousel-parceiros {
        background: #0b4f6c;
        width: 92%;
        height: 10%;
        margin-bottom: 2%;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-cards {
        gap: 0.5rem;
    }

    .carousel-item.center {
        transform: scale(1.02);
    }
}

 /* Lista de documentos em colunas */
 .docs-list {
     list-style: none;
     padding: 0;
     margin: 0; 
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     /* 2 a 3 colunas automáticas */
     gap: 5px;
     /* espaço entre colunas e linhas */
 }

 .docs-list li {
     border: 1px solid #eee;
     border-radius: 10px;
     padding: 15px;
     background: #fff;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
     transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

 .docs-list li:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
 }

 /* Ícone PDF */
 .pdf {
     font-size: 1.5rem; 
     margin-bottom: 10px;
 }

 /* Botões dentro do card */
 .botoes {
     display: flex;
     justify-content: space-between;
     margin-top: 10px;
 }

 .botoes a {
     flex: 1;
     text-align: center;
     margin: 0 5px;
 }

 /* Responsivo */
 @media (max-width: 640px) {
     .docs-list {
         grid-template-columns: 1fr;
         /* apenas uma coluna no celular */
     }
 }
 
 li .legislacao {
     box-shadow: #000;
     background: #979997da;
     width: 215px;
     min-height: 180px;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
     padding: 16px;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     text-align: center;
     color: #ffffff;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .legislacao:hover {
     transform: translateY(-4px);
     box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
 }

 /* Título de cada PDF (ex: PDF1, PDF2...) */
 .legislacao h4 {
     font-size: 20px;
     font-weight: bold;
     margin: .6rem 0;
     font-size: 1.05rem;
     color: #fff;
 }

 /* Icone */
 li .legislacao .pdf {
     font-size: 50px;
     border-radius: 50%;
 }

 
 .botoes {
     display: flex;
     justify-content: space-between;
     /* um à esquerda e outro à direita */
     align-items: center;
     margin-top: .6rem;
 }

 /* estilo base dos links */
 .botoes a {
     transition: all 0.04s ease;
     text-decoration: none;
     font-weight: 600;
     color: #034803;
     background: rgb(239, 239, 239);
     padding: .4rem .8rem;
     padding-right: 5px;
     border-radius: 6px;
     display: inline-flex;
     align-items: center;
     gap: .3rem;
 }

 .botoes a:hover {
     transform: scale(1.05);
     transform: 0.05s;
     background: #fcfffbde;
 }

 /* ícone */

  .botoes i {
     color: #050d2d !important;
     font-size: 0.9rem !important;
 }

 /* ======== LINKS DE AÇÃO ======== */

 /* ======== RESPONSIVIDADE ======== */
 @media (max-width: 700px) {
     .legislacoes {
         flex-direction: column;
         align-items: center;
     }

     .legislacao {
         width: 90%;
     }
 }
 /* ------------------ */
 .legislacoes {
     max-width: 97%;
     margin: 24px auto;
     padding: 0 16px;
 }

 .legislacao {
     background: #fff;
     /* usar max-width em vez de width fixa para melhor responsividade */
     max-width: 95%;
     border-radius: 10px;
     padding: 18px;
     margin: 20px auto;
     box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
     line-height: 1.5;
 }

 .legislacao h2 {
     margin-top: 0;
     color: #0b4f6c;
 }

 .legislacao h3 {
     margin-bottom: .25rem;
     color: #0b6f4c;
 }

 .legislacao ul {
     margin: .5rem 0 1rem 1.1rem;
 }

 /* Parent container for actions: torna-se flex para alinhar os botões à direita */
 .legislacao .legis-actions {
     margin-top: 12px;
     display: flex;
     justify-content: flex-end;
     /* empurra conteúdo do pai para a direita */
     align-items: center;
     gap: 8px;
 }

 /* botão - estilo visual; já não é flex */
 .btn-view-docs {
     display: inline-block;
     background: #1cb824;
     color: #fff;
     border: 0;
     padding: 8px 14px;
     border-radius: 6px;
     cursor: pointer;
     font-weight: 600;
     text-decoration: none;
     text-align: center;
 }

 /* pequeno hover */
 .btn-view-docs:hover {
     opacity: .95;
 }
 
/* Sobre o colegio */

 .sobre {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(270px, 3fr));
     /* várias colunas automáticas */
     gap: 2rem; 
     width: 90%;
     margin: 2% auto; 
     background: #f3f3f37e;
     border-radius: 20px;
     padding: 20px;
 }

.titulo { 
    text-align: center; 
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 20px;
}
 .cards {
     background-color: rgba(110, 112, 110, 0.888);
     padding: 15px;
     border-radius: 10px; 
     /* border-left: 10px #000000b9 solid; */
     font-weight: 500; 
     transition: all 0.8s ease;
 }

.cards:hover{
    transform: scale(1.03);
    transition: 0.5s; 
    box-shadow: 10px 15px 15px rgba(113, 111, 111, 0.573);
}
.cards p {
    padding: 1.5%;
    color: rgb(255, 255, 255); 
    font-size: 18px;
    font-weight: 450;
    line-height: 1.5;
}

.cards h2{
    background-color: rgb(255, 255, 255);
    font-weight: 800;
    color:#101010;
    padding: 1%;
    width: inherit;
    margin-top: none;
    padding-left: 10px;
    border-radius: 12px;
    border-bottom: 2px solid #524e4e;
    z-index: 1;
    box-shadow: 10px 5px 10px rgba(39, 38, 38, 0.573);
}

/* NOSSOS PARCEIROS */

.carousel-parceiros {
    width: 100%;
    max-height: 600px;
    max-width: 1100px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding: 10px 0;
}

.carousel-cards { 
    display: flex;
    gap: 1rem;
    transition: transform 600ms ease;
    will-change: transform;
    align-items: center;
}

/* Cada item: ocupa 1/3 do viewport visível */
.carousel-item {
    flex: 0 0 calc((100% - 2rem) / 3);
    /* -2rem por causa dos gaps (ajusta se mudar gap) */
    box-sizing: border-box;
    text-align: center;
    min-height: 200px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    transition: transform 400ms ease, box-shadow 400ms ease, opacity 400ms ease;
    opacity: 0.9;
}

/* imagem dentro do item */
.carousel-item img {
    max-width: 120%;
    max-height: 130px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px auto;
}

/* h3 */
.carousel-item h3 {
    margin: 5px;
    font-size: 0.95rem;
    color: #123;
}

/* destaque do centro */
.carousel-item.center {
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* leve recuo nos lados para destacar centro visualmente */
.carousel-item.left,
.carousel-item.right {
    transform: scale(0.97);
    z-index: 1;
    opacity: 0.95;
}

/* responsividade */
@media (max-width: 900px) {
    .carousel-item img {
        max-height: 140px;
    }

    .carousel-item {
        flex: 0 0 calc((100% - 1rem) / 3);
    }
}

@media (max-width: 600px) {

    /* em telas pequenas mostramos apenas 1 (faz sentido) */
    .carousel-parceiros{
        width: 92%;
        height: 10%;
    }
    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-cards {
        gap: 0.5rem;
    }

    .carousel-item.center {
        transform: scale(1.02);
    }
}


/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- MODAL CENTRALIZADA --- */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

/* Conteúdo da modal */
.modal-dialog {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
.modal-header {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #0b4f6c;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e9ecef;
    color: #333;
}

/* Body */
.modal-body {
    padding: 20px;
    color: #444;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Lista de documentos */
.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.docs-list li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.docs-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.pdf {
    font-size: 2rem;
    color: #d32f2f;
    margin-bottom: 10px;
    align-self: center;
}

.docs-list li strong {
    font-size: 1.05rem;
    color: #222;
    margin-bottom: 12px;
    display: block;
}

.doc-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.doc-view,
.doc-download {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.doc-view {
    background: #198754;
    color: white;
}

.doc-view:hover {
    background: #157347;
}

.doc-download {
    background: #0d6efd;
    color: white;
}

.doc-download:hover {
    background: #0b5ed7;
}

/* Footer */
.modal-footer {
    padding: 14px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

.modal-close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #5a6268;
}

/* Responsivo */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 92%;
        margin: 0;
    }

    .docs-list {
        grid-template-columns: 1fr;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 16px;
    }

    .doc-actions {
        flex-direction: column;
    }

    .doc-view,
    .doc-download {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .modal-header,
    .modal-footer {
        padding: 12px 16px;
    }

    .modal-body {
        padding: 14px;
    }
}