@font-face {
    font-family: "Poppins";
    font-style: normal;
    src: url("../fonts/poppins-variable.woff2") format("woff2");
    font-display: swap;
}

.articleArchive {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .categoryFilter {
        display: flex;
        justify-content: center;
        align-items: center;

        @media (width >=768px) {
            justify-content: flex-end;
        }

        select {
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: 1px solid #e0e0e0;
            background: #fff;
            color: var(--e-global-color-text);
            font-size: 0.875rem;
        }
    }

    .articleItems {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        padding: 1rem 0;

        @media (min-width: 768px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (min-width: 1024px) {
            grid-template-columns: repeat(3, 1fr);
        }

        .articleItem {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            background: #fff;
            border-radius: 0.5rem;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            font-family: "Poppins", ui-sans-serif;
            font-weight: 300;
            transition: transform 0.25s ease;

            &:hover {
                transform: translateY(-5px);
            }
        }

        .articleImage {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: auto;
            aspect-ratio: 16/9;
            overflow: hidden;
            border-radius: 0.5rem;

            img {
                object-fit: cover;
                width: 100%;
                height: 100%;
            }
        }

        .articleContent {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding: 0.875rem;

            @media (width >=768px) {
                padding: 1.25rem;
            }
        }

        .articleTitle {
            font-size: 1rem;
            font-weight: 300;
            color: var(--e-global-color-secondary);
            padding: 0;
            margin: 0;
            text-align: left;

            @media (width >=768px) {
                font-size: 1.25rem;
            }
        }

        .articleHeader {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            text-align: center;
        }

        .articleExcerpt {
            font-size: 0.875rem;
        }

    }
}

.articleMetaItems {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 0.5rem;

    .articleMeta {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.75rem;
        color: var(--e-global-color-text);

        .icon {
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
}

.articleCategory {
    padding: 0.33rem 0.5rem;
    background: var(--e-global-color-text);
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.25;
    width: fit-content;

    @media (width >=768px) {
        padding: 0.33rem 0.66rem;
    }
}

.articleSingle {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .articleHeader {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 70ch;
        margin: 0 auto;
        text-wrap: balance;
        padding: 0 1.5rem;

        h1 {
            @media (width < 768px) {
                font-size: 1.5rem;
            }
        }
    }

    .featuredImage {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        width: 100%;
        height: auto;
        max-width: 90%;
        aspect-ratio: 16/9;
        margin: 0 auto;
        border-radius: 0.5rem;

        @media (width >=768px) {
            max-height: 30rem;
            aspect-ratio: unset;
        }

        img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
    }

    .articleContent {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 0;
        margin: 0 auto;
        max-width: 90%;

        @media (width >=768px) {
            max-width: 50rem;
        }
    }

    .postNavigation {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        gap: 1rem;
        padding: 1rem 0;
        background: #fff;
        font-size: 0.875rem;
        font-weight: 300;
        color: var(--e-global-color-text);

        @media (width >=768px) {
            max-width: 50rem;
            flex-flow: row nowrap;
            justify-content: space-between;
        }

        a {
            color: inherit;
            transition: color 0.25s ease;

            &:hover {
                color: var(--e-global-color-secondary);
            }
        }
    }
}