/* Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modulos-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

/* Cabeçalho */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #333;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #0056b3, #9e0059);
    bottom: -10px;
    left: 25%;
}

/* Grid de Módulos */
.modulos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    flex-grow: 1;
}

.modulo-card {
    width: 250px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modulo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.modulo-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4E86D4 0%, #FF6A6A 50%, #4B3FC5 100%); /* Updated gradient */
    border-radius: 20px;
    transform: rotate(45deg);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-overlay::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: #4E86D4; /* Updated color */
    border-radius: 15px;
    z-index: 1;
}

.icon-overlay::after {
    content: "";
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: #FF6A6A; /* Updated color */
    border-radius: 15px;
    z-index: 1;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.modulo-icon i {
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    transform: rotate(-45deg);
}

.modulo-card h2 {
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.em-desenvolvimento {
    background-color: #f0ad4e;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 10px;
    position: absolute;
    bottom: 5px; /* Adjusted bottom position */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Rodapé */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .modulos-container {
        padding: 30px 15px;
        width: 95%;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .modulo-card {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .modulos-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .modulo-card {
        width: 90%;
        max-width: 250px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}