/* --- FONTES E RESET GLOBAL --- */
@font-face {
    font-family: 'Nova Klasse';
    src: url('/fonts/NovaKlasse-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Avenir';
    src: url('/fonts/Avenir-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-background: #FFFFFF;
    --color-background-accent: #F4F0FF; /* Roxo claro */
    --color-background-accent-2: #F2FFE3; /* Verde claro */
    --color-text: #000000;
    --color-primary: #AFFF68; /* Verde limão */
    --font-headings: 'Nova Klasse', 'Arial Black', sans-serif;
    --font-body: 'Avenir', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4, .logo {
    font-family: var(--font-headings);
    font-weight: 700;
}

p { color: #555; }

.subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* --- BOTÕES --- */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    width: 100%;
    font-family: var(--font-headings);
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-content .btn-primary {
    width: auto; /* Botão do topo não precisa ser 100% */
}

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

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
    width: auto; /* Botões outline não precisam ser 100% */
}

.btn-primary:hover, .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- HEADER --- */
.main-header {
    padding: 1.5rem 0;
    border-bottom: 2px solid #eee;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; text-decoration: none; color: var(--color-text); }
.main-nav { display: flex; gap: 2.5rem; }
.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero-section { padding: 6rem 0; text-align: center; }
.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    max-width: 800px;
    margin: 0 auto;
}
.highlight-green {
    background-color: var(--color-primary);
    padding: 0 0.5rem;
}
.hero-content .subtitle { margin-bottom: 2.5rem; }

/* Carrossel de Cursos */
.courses-carousel {
    margin-top: 4rem;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.carousel-track {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}
.course-thumb {
    width: 250px;
    height: 300px;
    margin: 0 1rem;
    border-radius: 12px;
    border: 2px solid #eee;
    overflow: hidden;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- NOVA SEÇÃO DE CATEGORIAS --- */
.section-categories {
    padding: 6rem 0;
    background-color: var(--color-background-accent-2); /* Fundo verde claro */
}
.title-cluster { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-background);
    border: 2px solid var(--color-text);
    border-radius: 30px;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.section-categories .section-title { font-size: 3rem; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.category-card {
    background-color: var(--color-background);
    border: 2px solid var(--color-text);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}
.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.category-card p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 250px; /* Para manter o texto mais contido */
}


/* --- FEATURED COURSE SECTION --- */
.section-featured-course { padding: 6rem 0; }
.stroked-title {
    font-family: var(--font-headings);
    font-size: clamp(3rem, 10vw, 8rem);
    text-align: center;
    -webkit-text-stroke: 2px var(--color-text);
    color: transparent;
    margin-bottom: 2rem;
}
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.featured-image img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--color-text);
}
.info-label {
    font-family: var(--font-headings);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: #888;
}
.featured-info h3 { font-size: 2.5rem; margin: 0.5rem 0 1rem; }
.featured-info p { max-width: 450px; margin-bottom: 2rem; }
.course-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}
.course-stats span { font-family: var(--font-body); font-weight: 500; }
.course-stats span strong { font-family: var(--font-headings); }

/* --- ABOUT SECTION --- */
.section-about { padding: 6rem 0; background-color: var(--color-background-accent); }
/* .title-cluster movido para global para .section-categories usar também */
.section-about .section-title { font-size: 3rem; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.about-card {
    background-color: var(--color-background);
    padding: 2.5rem;
    border: 2px solid var(--color-text);
    border-radius: 12px;
}
.card-number {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1rem;
}
.about-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.centered-cta { text-align: center; margin-top: 4rem; }

/* --- PROFESSORS SECTION --- */
.section-professors { padding: 8rem 0; }
.professors-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 5rem;
    align-items: center;
}
.professors-bio .section-title, .professors-bio p, .professors-bio .btn-outline {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.professors-bio .section-title { font-size: 2.5rem; }

.professors-list { border: 2px solid #eee; border-radius: 12px; padding: 1rem; }
.professor-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
}
.professor-item.active, .professor-item:hover {
    background-color: #f9f9f9;
}
.professor-item img { width: 64px; height: 64px; border-radius: 50%; }
.professor-item h4 { font-size: 1.1rem; }
.professor-item p { margin: 0; }

/* --- PRICING SECTION --- */
.section-pricing {
    padding: 6rem 0;
    background-color: var(--color-background-accent-2);
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch; /* Faz os cards terem a mesma altura */
    max-width: 800px;
    margin: 3rem auto 0;
}
.pricing-card {
    background-color: var(--color-background);
    border: 2px solid var(--color-text);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}
.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    border: 2px solid var(--color-text);
    color: var(--color-text);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-family: var(--font-headings);
    font-size: 0.8rem;
    text-transform: uppercase;
}
.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}
.pricing-header h3 { font-size: 1.5rem; }
.pricing-header p { font-size: 1rem; margin-top: 0.5rem; }
.price {
    text-align: center;
    margin: 2rem 0;
}
.price strong {
    font-size: 3.5rem;
    line-height: 1;
}

.price .price-alternative {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    margin-top: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: #555;
    margin-left: 0.25rem;
}
.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1; 
}
.features-list li {
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.features-list li strong { font-family: var(--font-body); font-weight: 700; }


/* --- FAQ SECTION --- */
.section-faq {
    padding: 6rem 0;
    background-color: var(--color-background-accent); /* Roxo claro */
    border-top: 2px solid #eee;
}
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}
.faq-item {
    background-color: var(--color-background);
    border: 2px solid var(--color-text);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden; /* Essencial para a animação */
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1.5rem;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
}
.faq-icon {
    flex-shrink: 0; /* Impede que o ícone seja esmagado */
    margin-left: 1rem;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0; /* Começa fechado */
    transition: max-height 0.4s ease-in-out;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Estado Ativo (quando clicado) */
.faq-item.active .faq-answer {
    max-height: 200px; /* Altura suficiente para o conteúdo */
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* --- FOOTER --- */
.main-footer {
    padding: 5rem 0 2rem;
    border-top: 2px solid #eee;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}
.footer-brand p { max-width: 250px; margin-top: 1rem; }
.footer-links { display: flex; gap: 4rem; }
.footer-links h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.footer-links a {
    display: block;
    text-decoration: none;
    color: #555;
    margin-bottom: 0.75rem;
}
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}
.footer-bottom p { font-size: 0.9rem; color: #888; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .featured-grid, .professors-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
     .professors-bio .section-title, .professors-bio p { text-align: center; }
    .about-grid { grid-template-columns: 1fr; }
    .professors-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        border: none;
    }
    .professor-item { flex-shrink: 0; }
}

@media (max-width: 768px) {
    .main-nav, .header-container .btn-outline { display: none; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .pricing-grid, .categories-grid { grid-template-columns: 1fr; }
}
