* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3498db 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.logo-femaf {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link:hover .logo-femaf {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

header h1 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

header h1 a:hover {
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.curso-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.curso-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.curso-card .curso-conteudo {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.curso-card h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.curso-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.curso-card .curso-info {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.curso-card .curso-info strong {
    color: #2c3e50;
}

.curso-card .btn-acessar {
    display: block;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3498db 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: auto;
    margin-bottom: 0;
    font-weight: bold;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.curso-card .btn-acessar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 60, 114, 0.3);
}

.mensagem-vazia {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-size: 1.1rem;
}

.curso-detalhes {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.curso-detalhes img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.curso-detalhes h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.curso-detalhes .curso-info {
    margin-bottom: 1rem;
    color: #666;
}

.curso-detalhes .curso-info strong {
    color: #2c3e50;
}

.curso-detalhes .curso-descricao {
    margin-top: 1.5rem;
    line-height: 1.8;
}

.curso-detalhes h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.curso-detalhes .ementa-lista {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    line-height: 1.8;
}

.curso-detalhes .ementa-lista li {
    margin-bottom: 0.5rem;
}

.curso-botoes {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.curso-detalhes .btn-matricula {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.curso-detalhes .btn-matricula:hover {
    background-color: #229954;
}

.curso-detalhes .btn-voltar {
    display: inline-block;
    background-color: #95a5a6;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.curso-detalhes .btn-voltar:hover {
    background-color: #7f8c8d;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

/* Responsividade - Tablets */
@media (max-width: 992px) {
    .cursos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Responsividade - Mobile */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .logo-femaf {
        height: 50px;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    main {
        padding: 0 0.5rem;
    }
    
    .curso-card-content {
        padding: 1rem;
    }
    
    .curso-detalhes {
        padding: 1rem;
    }
    
    .curso-detalhes h2 {
        font-size: 1.5rem;
    }
    
    .curso-botoes {
        flex-direction: column;
    }
    
    .curso-detalhes .btn-matricula,
    .curso-detalhes .btn-voltar {
        width: 100%;
        text-align: center;
    }
}

/* Responsividade - Mobile pequeno */
@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logo-femaf {
        height: 45px;
    }
    
    header h1 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .curso-card h2 {
        font-size: 1.1rem;
    }
}

