@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef2f5; /* Um fundo mais claro */
    color: #333;
    line-height: 1.6;
    min-height: 100vh; /* Define a altura mínima do corpo como 100% da altura da tela */
    display: flex;
    flex-direction: column;

}
main {
    flex-grow: 1; /* Faz o conteúdo principal crescer e ocupar o espaço disponível, empurrando o rodapé para baixo */
}
header {
    background-color: #2c3e50; /* Gradiente azul */
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.course-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 2rem; /* Mais espaçamento */
    gap: 30px; /* Mais espaço entre os cards */
    min-height: 60vh; /* Garante altura mínima para ver a msg de loading */
}

.loading-message {
    font-size: 1.5rem;
    color: #666;
    text-align: center;
    width: 100%;
    padding: 50px 0;
}

.course-card {
    background-color: white;
    border-radius: 12px; /* Cantos mais arredondados */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Sombra mais suave */
    width: 320px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border: 1px solid #e0e0e0; /* Borda sutil */
}

.course-card:hover {
    transform: translateY(-8px); /* Efeito de levantar mais acentuado */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* Sombra mais intensa no hover */
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.course-card h2 {
    font-size: 1.6rem; /* Título um pouco maior */
    margin: 1rem 1rem 0.5rem;
    color: #007bff; /* Azul vibrante */
    font-weight: 600;
}

.course-card p {
    font-size: 1rem; /* Texto um pouco maior */
    margin: 0 1.2rem 1rem;
    flex-grow: 1;
    color: #555;
}

.course-card .price {
    font-size: 2.2rem; /* Preço maior e mais destacado */
    font-weight: 700;
    color: #28a745; /* Verde para preços */
    margin-bottom: 1.5rem;
    display: block;
}

.payment-button {
    background-color: #28a745;
    color: white;
    padding: 1rem 2rem; /* Botão maior */
    border: none;
    border-radius: 8px; /* Cantos mais arredondados */
    cursor: pointer;
    font-size: 1.2rem; /* Texto do botão maior */
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin: 1rem;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3); /* Sombra para o botão */
}

.payment-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.payment-button:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #2c3e50; /* Azul escuro no rodapé */
    color: white;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    header p {
        font-size: 1rem;
    }
    .course-container {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }
    .course-card {
        width: 95%; /* Ocupa mais largura em telas pequenas */
        max-width: 350px;
    }
    .payment-button {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}
.course-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
}