@charset "utf-8";

:root {
    --dark_purple: hsl(245, 23%, 21%);
    --medium_purple: hsl(244, 11%, 50%);
    --light_purple: hsl(240, 22%, 90%);
    --red: hsl(0, 57%, 58%);
    --beige: hsl(0, 10%, 90%);
    --button: rgba(133, 133, 168, 95%);
}

.article_section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 10% 2rem 10%;
}

.articles {
    display: flex;
    background-color: var(--medium_purple);
    border-radius: 10px;
}

.article_section_img {
    flex-shrink: 0;
    max-width: 300px;
}

.article_section_img img {
    border-radius: 10px 0 0 10px;
}

.article_section_description {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    padding: 2rem;
}

.article_section_text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article_section_text > hr {
    border-color: #fff;
}

.article_section_text a {
    font-size: 2rem;
    color: #fff;
}

.article_section_text > div {
    color: #fff;
}

.article_section_description > a {
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.article_section_description > a::after {
     content: "";
     display: inline-block;
     width: 12px;
     height: 12px;
     margin-left: 4px;
     background-image: url('/media/icons/chevron_right_white.svg');
     background-size: contain;
     background-repeat: no-repeat;
     background-position: center;
}

.article_section_text a:hover,
.article_section_description a:hover {
    color: var(--beige);
}

@media (max-width: 1100px) {

    .article_section_description {
        padding: 1rem;
    }

    .article_section_text a {
        font-size: 1.6rem;
    }

}

@media (max-width: 900px) {

    .article_section {
        padding: 0 10px 2rem 10px;
        gap: 10px;
    }

    .article_section_img {
        max-width: 100%;
        order: 1;
    }

    .article_section_img img {
        border-radius: 0 0 10px 10px;
    }

    .articles {
        flex-direction: column;
    }

    .article_section_description {
        padding: 1rem 1rem 2rem 1rem;
        order: 0;
    }

    .article_section_text a {
        font-size: 1.6rem;
        line-height: 1.2;
    }

}


/* DESEASES COLORS */

.diseases .articles {
    background-color: var(--red);
}

.diseases .article_section_text > hr {
    border-color: #fff;
}

.diseases .article_section_text a,
.diseases .article_section_text > div,
.diseases .article_section_description > a {
    color: #fff;
}

.diseases .article_section_text a:hover,
.diseases .article_section_description a:hover {
    color: var(--beige);
}