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

:root {
    --primary-color: #A7C7E7;      /* Pastel Blue */
    --secondary-color: #F8E8EE;    /* Light Pink */
    --text-dark: #2C3E50;
    --text-light: #6B7280;
    --background-warm: #F0F8FF;    /* Alice Blue */
    --white: #FFFFFF;
    --gradient-vibrant: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    --shadow-soft: 0 8px 32px rgba(167, 199, 231, 0.15);
    --shadow-hover: 0 12px 40px rgba(76, 175, 80, 0.25);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-warm);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: center; /* Centraliza o logo */
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sections */
.courses {
    padding: 100px 0;
    padding-top: 100px; /* Adiciona espaço para o header fixo não sobrepor o conteúdo */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
	line-height: 1.3;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-image {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
}
        
.course-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.course-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-category {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.course-link {
    background: var(--gradient-vibrant);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.course-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p, .footer-section a {
    color: #B0B7C3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    color: #B0B7C3;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-vibrant);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container { 
        padding: 0 15px; 
    }

    .section-header h1 { 
        font-size: 2.1rem; /* Melhoria de fonte para mobile */
        line-height: 1.4;  /* Melhoria de entrelinha para mobile */
    }

    .section-header p {
        font-size: 1rem;   /* Melhoria de fonte para mobile */
        line-height: 1.8;  /* Melhoria de entrelinha para mobile */
    }

    .course-title {
        font-size: 1.5rem; /* Ajuste no título do card */
    }

    .course-description {
        font-size: 0.95rem; /* Ajuste na descrição do card */
        line-height: 1.8;   /* Melhoria de entrelinha para mobile */
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}