.main-page {
    padding-left: 10vw;
    padding-right: 10vw;
    padding-bottom: 5rem;
    padding-top: 2.5rem;
}

.main-text {
    font-size: calc(1rem + 1.5vw) !important;
    text-align: center;
    font-weight: 700;
}

.articles-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
    width: 80vw;
}

.article {
    width: 80vw;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: calc(.75rem + .5vw);
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color .5s;
}

.article:hover {
    background-color: rgba(0, 0, 0, .035);
}

.article-title {
    width: 100%;
    padding: 2rem;
    text-align: center;
    background-size: cover;
    color: white;
    font-size: calc(1.5rem + 1.5vw) !important;
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    list-style: none;
}

.category-label, .category-item {
    padding: .25rem .75rem;
    border-radius: 1rem;
    color: var(--primary-color);
    font-size: calc(.5rem + .5vw);
    font-weight: 700;
    transition: background-color .5s;
    text-decoration: none;
    border: solid 2px var(--primary-color);
    & a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 700;
    }
}

.category-item:hover {
    opacity: .8;
}

.article-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}

.categories-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.categories-title {
    font-size: calc(1.15rem + 1.15vw) !important;
}

.categories-icon {
    width: calc(1.15rem + 1.15vw) !important;
    height: auto;
    transition: transform .25s;
}

.categories-list {
    margin-top: 0;
}

.article-date {
    margin: 0;
}

.article-meta-categories {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.sticky-post-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    transition: scale .5s ease-in-out, box-shadow .5s ease-in-out;
    border-radius: 1.5rem;
    overflow: hidden;
}

.sticky-post-thumbnail-container {
    width: min(40vw, 100%);
    min-width: 400px;
    aspect-ratio: 10 / 7;
    overflow: hidden; 
}

.sticky-post-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sticky-post-link {
    text-decoration: none;
    display: block;
    margin-top: 2rem !important;
}

.sticky-post-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    width: 100%;
    width: min(40vw, 100%);

    & p {
        margin: 0;
        font-size: calc(.5rem + .5vw);
    }
}

.sticky-post-meta {
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: .5rem;

} 

.sticky-post-container:hover {
    scale: 1.025;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
}

.post-title {
    margin-top: .5rem;
    font-size: calc(1.35rem + 1.35vw) !important;
    line-height: 1 !important;
    font-weight: 700;
}

.main-page-post-title {
    margin-top: .5rem;
    font-size: calc(1rem + 1.15vw) !important;
    line-height: 1 !important;
    font-weight: 700;
}

.main-page-post-thumbnail-container {
    width: min(25vw, 100%);
    min-width: 200px;
    aspect-ratio: 10 / 7;
    overflow: hidden; 
}

.main-page-post-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.main-page-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;

    & p {
        margin: 0;
        font-size: calc(.5rem + .5vw);
        text-align: center;
    }

    & h2 {
        margin: 0;
        text-align: center;
    }
}

.category-posts {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: 3vw;
    padding: 0;
    padding-right: 5vw;
    padding-top: 2rem;
}

.main-page-post {
    width: 22.5vw;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: scale .5s ease-in-out, box-shadow .5s ease-in-out;
    border-radius: 1.5rem;
    overflow: hidden;
}

.main-page-post:hover {
    scale: 1.025;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
}

.main-page-post-link {
    text-decoration: none;
}

.category-container {
    padding-top: 3rem;
}

.main-page-post-excerpt {
    text-align: left !important;
}

/**************************
* Category choice
**************************/

.choice-category-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: calc(.5rem + .5vw);
    font-size: calc(.5rem + .5vw) !important;
    & > a, & > p {
        opacity: .66;
        text-decoration: none;
    }

    & > p {
        opacity: .66;
    }

    & p {
        margin: 0;
    }
}

.choice-category-content {
    position: relative;
}

.choice-category-content:hover {
    & .choice-category-list {
        display: flex;
    }
}

.choice-category-list {
    box-sizing: border-box;
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 10;

    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
    list-style: none;
    padding: .5rem 1rem;
    min-width: 100%;

    flex-direction: column;
    gap: .75rem;

    & li {
        width: 100%;
    }

    & li > a {
        display: block;
        padding: 0;
        font-size: calc(.5rem + .5vw);
        text-decoration: none;
        width: 100%;
        line-height: calc(.55rem + .5vw);
    }

    & li > a:hover {
        opacity: .8;
    }
}


/**************************
* Media queries
**************************/

@media screen and (max-width: 850px) {
    .main-page-post-thumbnail-container {
        width: 100%;
    }

    .category-posts {
        row-gap: 2rem;
    }

    .main-page-post {
        width: 100%;
    }

    .sticky-post-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        .sticky-post-thumbnail-container {
            width: 100%;
            aspect-ratio: 16 / 9;
        }

        .sticky-post-content {
            width: 100%;
        }
    }
}
