/* Variáveis CSS */
:root {
    --primary: #004d40; /* Verde Escuro */
    --secondary: #00796b; /* Verde Médio */
    --accent: #c99a2e; /* Dourado/Amarelo */
    --background: #f9f9f9;
    --text-dark: #333;
    --text-light: #fff;
    --text-muted: #666;
    --border-color: #ddd;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
}

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

/* Header e Navegação */
header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

#desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

#desktop-nav a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--primary);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.mobile-nav a:hover {
    background-color: var(--secondary);
}

/* Hero Section */
.hero {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #e0b34e;
}

/* Seções Comuns */
section {
    padding: 3rem 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

/* Courses Section */
.courses-section {
    background-color: var(--background);
}

.course-category {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--text-light);
}

.category-header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.category-header:hover {
    background-color: var(--secondary);
}

.category-header h3, .category-header h4 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.chevron {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.chevron.rotated {
    transform: rotate(180deg);
}

.course-list {
    display: none;
    padding: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.course-list.active {
    display: grid;
}

.course-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.course-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.course-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
}

.course-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.course-btn:hover {
    background-color: var(--secondary);
}

/* Postgrad Category Grid */
/* Regras de CSS para a nova estrutura de Pós-Graduação (subcategorias) */
/* A classe .course-category já define o comportamento de bloco e espaçamento */
/* A classe .course-list já define o layout de grid para os course-cards */

/* About Section */
.about-section {
    background-color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

.about-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--background);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-value {
    font-weight: 700;
    color: var(--primary);
}

/* Access Section */
.access-section {
    background-color: var(--secondary);
    color: var(--text-light);
    text-align: center;
}

.access-promo {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.access-promo p {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.promo-highlight {
    display: block;
    font-weight: 700;
    color: var(--accent);
    margin-top: 1rem;
    font-size: 1.25rem;
}

.access-cta-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.access-cta-btn {
    display: inline-block;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: opacity 0.3s;
    width: 100%;
    max-width: 300px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary);
}

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

.partner-card {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.partner-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.partner-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partner-btn {
    display: block;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s;
}

.partner-btn.ava {
    background-color: var(--primary);
    color: var(--text-light);
}

.partner-btn.ava:hover {
    background-color: var(--secondary);
}

.partner-btn.portal {
    background-color: var(--accent);
    color: var(--primary);
}

.partner-btn.portal:hover {
    background-color: #e0b34e;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 2rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section a, .footer-section p {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries */
@media (max-width: 768px) {
    #desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .course-list {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        gap: 1rem;
    }

    .access-cta-grid {
        flex-direction: column;
        align-items: center;
    }

    .access-cta-btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .course-card h4 {
        font-size: 0.9rem;
    }

    .course-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .course-price {
        font-size: 1rem;
    }

    .course-btn {
        width: 100%;
        text-align: center;
    }
}
