/* Variáveis CSS */
:root {
    --primary: #5a3804;
    --primary-dark: #cc813a;
    --secondary: #ff6b6b;
    --accent: #4fd1c5;
    --dark: #2d3748;
    --darker: #1a202c;
    --light: #f7fafc;
    --lighter: #ffffff;
    --gray: #718096;
    --light-gray: #143055;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 255, 0.2);
}

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

.btn-secondary:hover {
    background-color: #38b2ac;
    color: var(--lighter);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--lighter);
}

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

.btn-light:hover {
    background-color: var(--light-gray);
}

.btn-login {
    padding: 8px 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--lighter);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 80px;
}

.main-nav {
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

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

/* Hero Section */
.hero-section {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark);
}

.highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Stats Section */
.stats-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.stat-icon {
    font-size: 3rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background-color: rgb(155, 88, 12);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(187, 110, 9, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray);
}

.stat-label strong {
    color: var(--lighter);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.about-features i {
    color: var(--success);
    font-size: 1.2rem;
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background-color: var(--lighter);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--lighter);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.course-card.featured {
    border: 2px solid var(--primary);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--lighter);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.course-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.course-meta i {
    margin-right: 5px;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--lighter);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--lighter);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: rgba(203, 213, 216, 0.603);
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.info-card p {
    color: var(--gray);
}

.contact-form {
    flex: 1;
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;                  /* AUMENTADO */
    border: 1px solid var(--light-gray);
    border-radius: 10px;             /* AUMENTADO */
    font-size: 1.1rem;               /* AUMENTADO */
    transition: all 0.3s ease;
}

.form-group input {
    height: 60px;                    /* AUMENTADO */
}

.form-group textarea {
    min-height: 200px;               /* AUMENTADO */
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 107, 255, 0.15);  /* Um leve aumento no foco */
}


/* Footer */
.main-footer {
    background-color: var(--darker);
    color: var(--light);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    margin-bottom: 20px;
}

.footer-logo p {
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--lighter);
}

.footer-links h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--lighter);
        flex-direction: column;
        padding: 30px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .hero-section {
        padding-top: 120px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        display: grid;
        gap: 1rem;
        /* ou o espaçamento que quiser */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .course-card.featured {
        order: -1;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
    }
}

#messageAlert {
    display: none;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Cookie Banner - Estilo Moderno */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    font-family: 'Poppins', sans-serif;
    border-left: 4px solid var(--primary);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }

    to {
        bottom: 20px;
        opacity: 1;
    }
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-consent-accept {
    background: var(--primary);
    color: white;
}

.cookie-consent-accept:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.cookie-consent-reject {
    background: #f5f5f5;
    color: #666;
}

.cookie-consent-reject:hover {
    background: #e0e0e0;
}

@media (max-width: 600px) {
    .cookie-consent {
        width: 95%;
        bottom: 10px;
    }

    .cookie-consent-content {
        flex-direction: column;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-consent-btn {
        flex: 1;
    }
}

/* Adicione isto ao seu arquivo CSS existente */

/* Ajustes específicos para a página de curso em mobile */
@media (max-width: 768px) {
    .course-detail {
        padding-top: 20px;
    }
    
    .course-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .course-level {
        font-size: 1rem;
    }
    
    .course-body {
        flex-direction: column;
        gap: 20px;
    }
    
    .course-image {
        flex: none;
        width: 100%;
        max-height: 250px;
    }
    
    .course-info {
        flex: none;
        width: 100%;
    }
    
    .course-info h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .course-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .course-price span {
        font-size: 1.3rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px;
        font-size: 1.1rem;
    }
    
    .course-sections {
        flex-direction: column;
        gap: 20px;
    }
    
    .course-lessons, 
    .course-materials {
        padding: 20px;
    }
    
    .course-sections h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .lesson-item {
        padding: 12px;
    }
    
    .lesson-item h3 {
        font-size: 1.1rem;
    }
    
    .materials-list li {
        padding: 10px 0;
    }
}

/* Ajustes para telas muito pequenas (até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .course-header h1 {
        font-size: 1.6rem;
    }
    
    .course-info h2 {
        font-size: 1.3rem;
    }
    
    .course-sections h2 {
        font-size: 1.2rem;
    }
    
    .lesson-item h3 {
        font-size: 1rem;
    }
    
    .lesson-item p,
    .materials-list a {
        font-size: 0.9rem;
    }
    
    /* Melhorias de espaçamento */
    .course-header {
        margin-bottom: 20px;
    }
    
    .course-body {
        margin-bottom: 30px;
    }
    
    .course-sections {
        margin-bottom: 30px;
    }
    
    /* Ajuste para o rodapé */
    footer {
        padding: 20px 0;
    }
    
    /* Melhorias na hierarquia visual */
    .course-lessons h2,
    .course-materials h2 {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .course-lessons h2::before,
    .course-materials h2::before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .course-lessons h2::before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%235a3804"><path d="M18 9l-8-4-8 4v6l8 4 8-4v-6zm-8-6.248l6 3v5.248l-6-3-6 3v-5.248l6-3z"/></svg>');
    }
    
    .course-materials h2::before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%235a3804"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5 16H5V5h2v3h10V5h2v14z"/></svg>');
    }
    
    /* Melhorias de toque para elementos interativos */
    .materials-list a {
        padding: 8px 0;
        display: block;
    }
    
    .btn-primary {
        position: relative;
        overflow: hidden;
    }
    
    .btn-primary:active {
        transform: scale(0.98);
    }
    
    .btn-primary::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%, -50%);
        transform-origin: 50% 50%;
    }
    
    .btn-primary:focus:not(:active)::after {
        animation: ripple 0.6s ease-out;
    }
    
    @keyframes ripple {
        0% {
            transform: scale(0, 0);
            opacity: 0.5;
        }
        100% {
            transform: scale(20, 20);
            opacity: 0;
        }
    }
}