@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%);
    --title: hsl(245, 23%, 70%);
}

.article_content {
    display: flex;
    padding: 0 10% 2rem 10%;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.main_photo img {
    border-radius: 4px;
}

.article_body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
    flex: 0 0 auto;
    width: 70%;
}

.preview {
    font-size: 1.1rem;
    font-weight: 600;
}

.other_articles {
    border-radius: 4px;
    background-color: var(--light_purple);
    padding: 2rem;
    flex: 0 0 auto;
    width: 30%;
}

.other_articles_list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.other_articles_link {
    border-bottom: 1px solid hsl(244, 11%, 80%);
    padding: 10px 0;
    font-size: 1.2rem;
    color: var(--medium_purple);
}

.other_articles_link:last-child {
    border: none;
    padding-bottom: 0;
}

.other_articles_link:hover {
    color: var(--dark_purple);
}

.other_articles_title {
    color: var(--medium_purple);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.article_text h4 {
    margin: 8px 0;
}

.article_text p {
    margin-bottom: 10px;
}

.article_text a {
    color: var(--dark_purple);
    text-decoration: underline;
}

.article_text a:hover {
    color: var(--medium_purple);
}

.article_text ul,
.article_text ol {
    margin: 1rem 0;
}

.article_text ul li,
.article_text ol li {
    padding: 0 0 0 1rem;
    position: relative;
    margin-bottom: 10px;
}

.article_text ol {
    counter-reset: list-counter;
}

.article_text ol li {
    padding-left: 1.2rem;
}

.article_text ul > li::before {
    content: '•';
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    color: var(--dark_purple);
    margin-top: 0rem;
}

ol li::before {
  counter-increment: list-counter;
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
}


@media (max-width: 1025px) {

    .article_content {
        padding: 0 10px 2rem 10px;
        flex-direction: column;
        gap: 1rem;
    }

    .article_body,
    .other_articles {
        width: 100%;
    }

}