/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* Body */
body {
    background-color: #f4f6fb;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(90deg, #3a0ca3, #4361ee);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    width: 90%;
    margin: 0 auto;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ffbe0b;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10%;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    flex-wrap: wrap;
}

.hero-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-hero {
    background-color: #ffbe0b;
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.btn-hero:hover {
    background-color: #ff9f1c;
    transform: scale(1.08);
}

.hero-img img {
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Cursos Section */
.courses {
    padding: 80px 10%;
    text-align: center;
}

.courses h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #3a0ca3;
    font-weight: 700;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.course-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.course-card img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.course-card:hover img {
    transform: scale(1.1);
}

.course-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #222;
}

.course-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.course-card a {
    display: inline-block;
    padding: 10px 18px;
    background: #007bff;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.course-card a:hover {
    background: #0056b3;
}

/* Footer */
footer {
    background: #3a0ca3;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsivo */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 150px 5%;
    }

    .courses-container {
        grid-template-columns: 1fr;
    }
}

