aside {
    position: sticky;
    top: 0;
    display: grid;
    grid-area: blog;
    width: 100%;
    height: 100vh;
    color: var(--text-color);
    background: var(--primary-color);
    animation: showUp 3s linear forwards;
}

aside h2 {
    margin-left: 4rem;
    margin-top: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--text-color);
    width: 40%;
    height: fit-content;
    position: relative;
}

aside .underline {
    width: 70px;
    height: 6px;
    background: var(--accent-color);
    position: absolute;
    top: 51px;
    z-index: 2;
}

aside .blogCardContainer {
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: left;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    margin-top: 2rem;
    margin-left: 3rem;
}

aside .card {
    font-weight: bold;
    z-index: 10;
    width: fit-content;
    height: fit-content;
    padding: 1rem 1.5rem;
    background: var(--hover-color);
    box-shadow: var(--box-shadow);
    color: #eee;
    font-weight: 500;
    border-radius: 1rem;
    transition: .5s;
    text-decoration: none;
}

aside .card:has(a:hover) {
    backdrop-filter: none;
}

aside .card:active {
    scale: .8;
}

aside .card a {
    color: #eee;
    text-decoration: none;
}

aside .card a:visited {
    color: lightgreen;
}

aside .card a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

aside .card a p {
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
}

aside .pagination {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 20%;
    translate: -50% -50%;
}

aside .pagination button {
    margin: .5rem;
    box-shadow: var(--box-shadow);
    height: fit-content;
    z-index: 3;
    padding: 10px 20px;
    border: none;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
}

aside .pagination button:hover {
    color: var(--accent-color);
    background: var(--hover-color);
}

aside .pagination button:active {
    scale: .8;
}

aside .pagination button ion-icon {
    font-size: 1.125rem;
}

aside .pagination button:disabled {
    background: var(--disable);
    color: var(--hover-color);
    cursor: not-allowed;
}

@media screen and (max-width: 700px) {
    aside {
        height: 100vh;
        height: 100dvh;
        animation: none;
        position: relative;
    }

    aside::after {
        bottom: 0;
        background: linear-gradient(to top, var(--primary-color), var(--trans) 10%);
    }

    aside .blogCardContainer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-left: 0;
    }

    aside .card {
        width: 80%;
    }

    aside .card img {
        width: 10%;
    }

    aside .pagination {
        position: absolute;
        z-index: 10;
        left: 50%;
        top: 33%;
        translate: -50% -50%;
    }

    aside .pagination button {
        margin: 1rem;
    }
}

@media screen and (min-width: 920px) {
    aside .blogCardContainer,
    aside h2 {
        margin-left: 4rem;
    }

    aside .card img {
        width: 20%;
    }
}

@media screen and (min-width: 1200px) {
    aside .underline {
        width: 130px;
    }

    aside .blogCardContainer,
    aside h2 {
        margin-left: 8rem;
    }
}