/* Reset geral */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Página Learn */

body.learn-page {
    background: #f4f5f1;
    color: #1f2933;
    font-family: Arial, Helvetica, sans-serif;
}


/* Conteúdo principal */

.learn-main {
    width: min(1050px, 92%);
    margin: 40px auto 90px;
}


/* Secção inicial */

.learn-hero {
    max-width: 760px;
    margin-bottom: 50px;
}

.page-label,
.section-label {
    color: #2fae59;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.learn-hero h1 {
    color: #0b3d2e;
    font-size: 54px;
    line-height: 1.05;
    margin-bottom: 22px;
}

.hero-text {
    color: #5b6b61;
    line-height: 1.9;
    font-size: 17px;
}


/* Imagem principal */

.hero-image {
    margin-bottom: 90px;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}


/* Secções informativas */

.learn-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 90px;
}


/* Inverte a ordem da imagem e do texto */

.reverse .section-image {
    order: 2;
}

.reverse .section-content {
    order: 1;
}


/* Imagens das secções */

.section-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
}


/* Conteúdo das secções */

.section-content h2 {
    color: #0b3d2e;
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.section-content p {
    color: #4f5f56;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 18px;
}


/* Secção final */

.learn-ending {
    border-top: 1px solid #dce4dc;
    padding-top: 60px;
    text-align: center;
}

.learn-ending h2 {
    color: #0b3d2e;
    font-size: 38px;
    margin-bottom: 18px;
}

.learn-ending p {
    color: #5b6b61;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
}


/* Ajustes para dispositivos móveis */

@media (max-width: 900px) {

    .learn-hero h1 {
        font-size: 40px;
    }

    .learn-section {
        grid-template-columns: 1fr;
    }

    .section-content h2,
    .learn-ending h2 {
        font-size: 30px;
    }

    .hero-image img,
    .section-image img {
        height: 260px;
    }

}