/*     
 Theme Name: Lucitec
 Author Name:Lucineia Chagas
 */


/* ==========================================================
   HERO DO CURSO
========================================================== */

.course-hero{
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
}

.course-hero-content{
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}

.course-hero-text p{
    margin-top: 20px;
    line-height: 1.8;
    text-align: justify;
}

.course-hero-image{
    display: flex;
    justify-content: center;
}

.course-hero-image img{
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}


/* ==========================================================
   CONTEÚDO DO CURSO
========================================================== */

.course-content{
    padding: 80px 0;
    background: var(--white);
}

.course-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: start;
}


/* ==========================================================
   VÍDEO
========================================================== */

.course-video{

    max-width:1000px;

    margin:0 auto;

}

.course-video video{

    width:100%;
    max-width:520px;
    height:auto;

    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-md);

}


/* ==========================================================
   SOBRE O CURSO
========================================================== */

.course-about{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.course-about .section-title{
    margin: 18px 0;
}

.course-about p{
    margin-bottom: 18px;
    line-height: 1.8;
    text-align: justify;
}


/* ==========================================================
   MÓDULOS
========================================================== */

.course-modules{
    grid-column: 1 / -1;
    margin-top: 10px;
}

.course-modules .section-title{
    margin: 18px 0 35px;
}


/* ==========================================================
   GRID DOS MÓDULOS
========================================================== */

.modules-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
}


/* ==========================================================
   CARD DOS MÓDULOS
========================================================== */

.module-card{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: .3s ease;
}

.module-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.module-card h3{
    color: var(--primary);
    margin-bottom: 22px;
    font-size: 1.2rem;
}

.module-card ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

.module-card li{
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.module-card li::before{
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}


/* ==========================================================
   AUTORA DO CURSO
========================================================== */

.course-author{
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}

.course-author-content{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: center;
}

.course-author-image{
    display: flex;
    justify-content: center;
}

.course-author-image img{
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.course-author-text .section-title{
    margin: 18px 0 25px;
}

.course-author-text p{
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}


/* ==========================================================
   FAQ
========================================================== */

.course-faq{
    padding: var(--space-xl) 0;
    background: var(--white);
}

.course-faq-header{
    text-align: center;
    margin-bottom: 45px;
}

.course-faq-header .section-title{
    margin-top: 18px;
}

.faq-list{
    max-width: 850px;
    margin: auto;
}

.faq-item{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: .3s;
}

.faq-item:hover{
    box-shadow: var(--shadow-md);
}

.faq-item summary{
    padding: 22px 28px;
    padding-right: 60px;
    cursor: pointer;
    font-weight: 700;
    color: var(--title);
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker{
    display: none;
}

.faq-item summary::after{
    content: "+";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item[open] summary{
    background: var(--primary-light);
}

.faq-item[open] summary::after{
    content: "−";
}

.faq-item p{
    padding: 0 28px 25px;
    line-height: 1.8;
}


/* ==========================================================
   CTA
========================================================== */

.course-cta{
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);
}

.course-cta-content{
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.course-cta .section-badge{
    background: rgba(255,255,255,.18);
    color: var(--white);
    border: none;
}

.course-cta .section-title{
    color: var(--white);
    margin: 20px 0;
}

.course-cta p{
    max-width: 650px;
    margin: 0 auto 35px;
    color: rgba(255,255,255,.9);
    line-height: 1.8;
}

.course-cta-buttons{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.course-cta .btn-primary{
    background: var(--white);
    color: var(--primary);
}

.course-cta .btn-primary:hover{
    background: #f5f5f5;
}

.course-cta .btn-secondary{
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.course-cta .btn-secondary:hover{
    background: var(--white);
    color: var(--primary);
}


/* ==========================================================
   RESPONSIVIDADE
========================================================== */

@media (max-width: 991px){

    .course-hero-content,
    .course-grid,
    .course-author-content{
        grid-template-columns: 1fr;
    }

    .course-hero-content,
    .course-grid,
    .course-author-content{
        gap: 40px;
    }

    .course-video{
        order: 1;
    }

    .course-about{
        order: 2;
    }

    .course-modules{
        order: 3;
        grid-column: auto;
    }

    .modules-grid{
        grid-template-columns: 1fr;
    }

    .course-about,
    .module-card{
        padding: 30px;
    }

    .course-author-content{
        text-align: center;
    }

    .course-author-text p{
        text-align: left;
    }
}

@media (max-width: 768px){

    .course-content,
    .course-author,
    .course-faq,
    .course-cta{
        padding: 70px 0;
    }

    .course-about{
        padding: 25px;
    }

    .module-card{
        padding: 25px;
    }

    .faq-item summary{
        padding: 20px;
        padding-right: 55px;
    }

    .faq-item p{
        padding: 0 20px 20px;
    }

    .course-cta-buttons{
        flex-direction: column;
        align-items: center;
    }

    .course-cta-buttons .btn-primary,
    .course-cta-buttons .btn-secondary{
        width: 100%;
        max-width: 320px;
    }
}