/* =========================
   CONFIGURAÇÕES GERAIS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #006633;
    --secondary: #d00000;
    --background: #f7f8fa;
    --text: #222222;
    --card: #ffffff;
}


/* =========================
   TEMAS
========================= */

/* Português */
body[data-theme="pt"] {
    --primary: #006633;
    --secondary: #d00000;
}

/* English */
body[data-theme="en"] {
    --primary: #2455a4;
    --secondary: #d62828;
}

/* 中文 */
body[data-theme="zh"] {
    --primary: #d62828;
    --secondary: #f2c94c;
}


/* =========================
   BODY
========================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}


/* =========================
   HEADER
========================= */
.hero {
    background-color: #d00000;

    min-height: 500px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 6%;

    background-color: white;

    border-bottom: 3px solid var(--primary);
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
}


/* =========================
   NAVEGAÇÃO
========================= */

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;

    transition: 0.3s;
}

.nav a:hover {
    color: var(--secondary);
}


/* =========================
   SELETOR DE IDIOMA
========================= */

#language {
    padding: 8px 12px;

    border: 2px solid var(--primary);
    border-radius: 8px;

    background-color: white;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

     background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.65),
            rgba(255, 255, 255, 0.65)
        ),
        url("../images/fundo.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 750px;
}

.welcome {
    color: var(--secondary);

    font-size: 18px;
    font-weight: bold;

    margin-bottom: 15px;
}

.hero h2 {
    font-size: 52px;

    color: var(--primary);

    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;

    margin-bottom: 30px;
}


/* =========================
   BOTÃO
========================= */

.button {
    display: inline-block;

    padding: 14px 30px;

    background-color: var(--primary);
    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-weight: bold;

    transition: 0.3s;
}

.button:hover {
    background-color: var(--secondary);

    transform: translateY(-2px);
}


/* =========================
   FEATURES
========================= */

.features {
    padding: 70px 6%;

    text-align: center;
}

.features > h2 {
    font-size: 32px;

    color: var(--primary);

    margin-bottom: 40px;
}

.cards {
    display: flex;

    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;
}


/* =========================
   CARDS
========================= */

.card {
    width: 240px;

    padding: 30px 25px;

    background-color: var(--card);

    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 40px;

    margin-bottom: 15px;
}

.card h3 {
    color: var(--primary);

    margin-bottom: 10px;
}

.card p {
    color: #555555;
}


/* =========================
   FOOTER
========================= */

.footer {
    text-align: center;

    padding: 30px;

    background-color: white;

    border-top: 3px solid var(--secondary);
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 800px) {

    .header {
        flex-direction: column;

        gap: 15px;
    }

    .nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;
    }

    .hero h2 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }
}
/* =========================
   PÁGINA DE LOGIN
========================= */

.login-section {
    min-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;
}

.login-card {
    width: 100%;
    max-width: 450px;

    padding: 40px;

    background-color: white;

    border-radius: 15px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.10);

    text-align: left;
}

.login-card h2 {
    text-align: center;

    color: var(--primary);

    margin-bottom: 15px;
}

.login-card > p {
    text-align: center;

    margin-bottom: 25px;
}

.login-card form {
    display: flex;
    flex-direction: column;
}

.login-card label {
    font-weight: bold;

    margin-bottom: 6px;
}

.login-card input {
    width: 100%;

    padding: 12px;

    border: 1px solid #cccccc;

    border-radius: 8px;

    font-size: 16px;

    margin-bottom: 15px;
}

.login-card form .button {
    width: 100%;

    text-align: center;

    border: none;
}

.login-register {
    text-align: center;

    margin-top: 25px;
}
/* Foto dos membros */

.member-photo {
    margin: 30px auto;
    text-align: center;
}

.member-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary);
}
/* =========================
   PÁGINA DOS MEMBROS
========================= */

.member-profile {
    padding: 60px 20px;
    text-align: center;
}

.member-profile-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* FOTO */

.member-photo {
    margin: 0 auto 20px auto;
    text-align: center;
}

.member-photo img {
    width: 180px;
    height: 180px;

    object-fit: cover;

    border-radius: 50%;
    border: 5px solid var(--primary);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* NOME */

.member-name {
    font-size: 46px;
    color: var(--primary);

    margin-bottom: 8px;

    text-align: center;
}

.member-role {
    font-size: 19px;
    color: #555555;

    margin-bottom: 35px;

    text-align: center;
}


/* INFORMAÇÕES */

.member-info {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: stretch;

    gap: 20px;
    flex-wrap: wrap;

    margin-bottom: 40px;
}

.info-item {
    width: 240px;
    min-height: 100px;

    padding: 20px;

    background-color: white;

    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.info-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.info-item strong {
    color: var(--primary);
}

.info-item p {
    color: #555555;
    margin-top: 3px;
}


/* BIOGRAFIA */

.member-bio {
    width: 100%;
    max-width: 850px;

    background-color: white;

    padding: 40px;

    border-radius: 15px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.member-bio h3 {
    color: var(--primary);

    font-size: 28px;

    margin-bottom: 25px;

    text-align: center;
}

.member-bio p {
    font-size: 17px;

    line-height: 1.9;

    color: #333333;

    margin-bottom: 20px;

    text-align: center;
}


/* BOTÃO VOLTAR */

.member-back {
    margin-top: 30px;
    text-align: center;
}


/* CELULAR */

@media (max-width: 600px) {

    .member-profile {
        padding: 45px 15px;
    }

    .member-name {
        font-size: 36px;
    }

    .member-role {
        font-size: 17px;
    }

    .member-photo img {
        width: 150px;
        height: 150px;
    }

    .member-info {
        flex-direction: column;
        align-items: center;
    }

    .info-item {
        width: 100%;
        max-width: 350px;
    }

    .member-bio {
        padding: 25px 20px;
    }

    .member-bio p {
        font-size: 16px;
        text-align: center;
    }
}
/* =========================
   PÁGINA A1 - CURSO
========================= */

.lesson-block {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 25px 80px;
}

/* =========================
   INTRODUÇÃO DA LIÇÃO
========================= */

.lesson-introduction {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.lesson-introduction .welcome {
    margin-bottom: 10px;
}

.lesson-introduction h2 {
    color: var(--primary);
    font-size: 38px;
    margin-bottom: 15px;
}

.lesson-introduction p:last-child {
    max-width: 750px;
    margin: 0 auto;
    font-size: 17px;
    color: #555555;
}


/* =========================
   CADA SEÇÃO
========================= */

.lesson-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 45px;
    padding: 35px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.lesson-section > h3 {
    text-align: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 10px;
}

.section-description {
    text-align: center;
    color: #666666;
    margin: 0 auto 25px;
    max-width: 750px;
}


/* =========================
   TABELA DE VOCABULÁRIO
========================= */

.table-container {
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
}

.vocabulary-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    margin: 0 auto;
}

.vocabulary-table th,
.vocabulary-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e5e5;
}

.vocabulary-table th {
    background-color: var(--primary);
    color: white;
    font-size: 16px;
}

.vocabulary-table td {
    color: #333333;
    font-size: 16px;
}

.vocabulary-table tbody tr:nth-child(even) {
    background-color: #f7f8fa;
}

.vocabulary-table tbody tr:hover {
    background-color: #f0f2f4;
}

.vocabulary-table td:first-child {
    font-weight: bold;
    color: var(--primary);
}


/* =========================
   EXPRESSÕES
========================= */

.expression-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 25px auto 0;
}

.expression-grid .info-item {
    width: 100%;
    min-height: 130px;
    margin: 0;
}


/* =========================
   TEXTO DE LEITURA
========================= */

.reading-text {
    width: 100%;
    max-width: 800px;
    margin: 25px auto 0;
    padding: 30px 35px;
    background-color: #f7f8fa;
    border-left: 5px solid var(--primary);
    border-radius: 10px;
    text-align: left;
}

.reading-text h4 {
    text-align: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.reading-text p {
    font-size: 17px;
    line-height: 1.9;
    color: #333333;
    margin-bottom: 18px;
}

.reading-text p:last-child {
    text-align: center;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0;
}


/* =========================
   PERGUNTAS
========================= */

.questions {
    width: 100%;
    max-width: 800px;
    margin: 25px auto 0;
}

.question {
    width: 100%;
    margin-bottom: 20px;
    padding: 22px 25px;
    background-color: #f7f8fa;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.question p {
    margin-bottom: 12px;
    color: #333333;
}

.question label {
    display: block;
    padding: 8px 10px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 6px;
}

.question label:hover {
    background-color: #eeeeee;
}

.question input {
    margin-right: 8px;
}


/* =========================
   EXERCÍCIO
========================= */

.practice-box {
    width: 100%;
    max-width: 800px;
    margin: 25px auto 0;
    padding: 25px 35px;
    background-color: #f7f8fa;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.practice-box p {
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid #dddddd;
    font-size: 17px;
}

.practice-box p:last-child {
    border-bottom: none;
}


/* =========================
   RESUMO
========================= */

.summary-grid {
    width: 100%;
    max-width: 850px;
    margin: 25px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.summary-grid .info-item {
    width: 100%;
    min-height: 140px;
    margin: 0;
}


/* =========================
   BOTÃO FINAL
========================= */

.member-back {
    margin: 35px auto 0;
    text-align: center;
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 700px) {

    .lesson-block {
        padding: 40px 15px 60px;
    }

    .lesson-section {
        padding: 25px 18px;
        margin-bottom: 30px;
    }

    .lesson-introduction h2 {
        font-size: 32px;
    }

    .vocabulary-table {
        min-width: 650px;
    }

    .expression-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .reading-text {
        padding: 25px 20px;
    }

    .reading-text p {
        font-size: 16px;
    }

    .question {
        padding: 18px;
    }
}
