/* Modal popup styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1100;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}
.modal-overlay.closing {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
}
.modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-overlay.closing .modal-content {
    transform: scale(0.9);
}
.modal-close {
    width: max-content;
    position: sticky;
    align-self: flex-end;
    top: 0;
    right: 0;
    background: #cc0000;
    color: white;
    border: none;
    padding: 0 .5rem 0 .5rem;
    line-height: 2.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    float: right;
    border-radius: 0 .5rem 0 .5rem;
}
.modal-close:hover {
    background: #990000;
}

/* Botão de informação com ícone */
.btn-info-icon {
    background: transparent;
    border: none;
    color: #007bff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
    vertical-align: middle;
}

.btn-info-icon:hover {
    color: #0056b3;
}

.btn-info-icon i {
    display: inline-block;
}
.cards-container{
    margin: 2rem 0 4rem 0;
    justify-content: space-around;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: visible;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.cards-container .card{
    width: 400px;
    clip-path: polygon(360px 0, 100% 50px, 100% 100%, 0 100%, 0 0);
    min-height: 450px;
    margin-bottom: 1rem;
}
.cards-container .card:hover{
    transition: all 0.3s ease-in-out;
    transform: scale(1.1);
}
.card-one, .module{
    border: blueviolet solid .2em;
}
.card-two{
    border: greenyellow solid .2em;
}
.card-three{
    border: red solid .2em;
}
.card-ear{
    align-self: flex-end;
    background-color: blueviolet;
    padding-top: 50px;
    width: 10%;
    height: 10%;
    top: 0;
    right: 0;
    border-bottom-left-radius: 5px;
}
.card-one .card-ear, .module .card-ear{
    background-color: blueviolet;
}
.card-two .card-ear{
    background-color: greenyellow;
}
.card-three .card-ear{
    background-color: red;
}
.card div > .card-header {
    justify-items: center;
}
.accordeon-container button{
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    color: darkslategray;
    cursor: pointer;
    align-items: center;
}
.accordeon-container button:hover{
    text-decoration: solid;
}
.accordeon-container button:focus{
    text-decoration: solid;
}
@media (max-width: 1000px) {
    .cards-container{
        justify-content: space-between;
        gap: 2rem;
    }
    .cards-container .card{
        width: 300px;
        clip-path: polygon(260px 0, 100% 50px, 100% 100%, 0 100%, 0 0);
    }
    .card-ear{
        width: 13%;
    }
}
@media (max-width: 360px) {
    .cards-container .card{
        width: 250px;
        clip-path: polygon(216px 0, 100% 50px, 100% 100%, 0 100%, 0 0);
    }
    .card-ear{
        width: 13%;
    }
}