/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: >0.3%,last 6 version,not dead
*/

.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
}
.sb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}
@media (min-width: 1281px) {
    .columns-3 {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}
.sb-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background-color: #fff;
    padding: var(--spacing);
    border-radius: 1rem;
}
.sb-box h2 {
    line-height: 1;
    margin: -3px 0 5px 0;
}
/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
}
.s-input {
    width: 100%;
    padding-left: 2.1rem;
}
.search-i {
    position: absolute;
    left: 0.5rem;
    top: calc(50%);
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
}
/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--black);
    font-weight: 600;
    background-color: var(--light-gray);
    padding: var(--spacing-sm);
    border-radius: 0.16rem;
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}
.cat-item:hover {
    color: var(--primary);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}
.cat-item svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.2s ease;
}
.cat-item:hover svg {
    margin-right: 0.15rem;
}
/* Small Article Cards */
.sm-art-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sm-art-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--black);
    min-height: 73px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--light-gray);
    padding: var(--spacing-sm);
    border-radius: 0.16rem;
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}
.sm-art-card:hover {
    color: var(--primary);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}
.sm-art-card img {
    display: block;
    aspect-ratio: 1;
    width: auto;
    height: 69px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    border-radius: 0.16rem;
    -webkit-filter: saturate(0.3);
            filter: saturate(0.3);
    transition: all 0.2s ease;
}
.sm-art-card:hover img {
    -webkit-filter: saturate(1);
            filter: saturate(1);
}
@media (min-width: 599px) and (max-width: 1280px) {
    .sm-art-card img {
        display: none;
    }
}
@media (max-width: 389px) {
    .sm-art-card img {
        display: none;
    }
}
/* Article Cards */
.art-card-wrapper {
    scroll-snap-stop: always;
    height: 100%;
    background-color: #fff;
    padding: var(--spacing);
    border-radius: 1rem;
    transition: all 0.2s ease;
}
.art-card-wrapper:hover {
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}
.art-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    color: var(--black);
}
.art-cat-cont {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    position: absolute;
    list-style: none;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    margin: 0;
    padding: 0;
}
.art-cat {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    color: var(--primary);
    line-height: 1;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 0.35rem 0.45rem;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 0.16rem;
}
.art-date {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    color: #fff;
    line-height: 1;
    font-size: 0.72rem;
    padding: 0.35rem 0.45rem;
    background-color: var(--primary);
    border-radius: 0.16rem;
}
.art-card img {
    aspect-ratio: 4/2.5;
    width: 100%;
    border-radius: 0.5rem;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    -webkit-filter: saturate(0.5);
            filter: saturate(0.5);
    transition: all 0.2s ease;
}
.art-card:hover img {
    -webkit-filter: saturate(1);
            filter: saturate(1);
}
.art-card h3 {
    margin: 0;
    line-height: 1.35;
    transition: all 0.2s ease;
}
.art-card:hover h3 {
    color: var(--primary);
}
.art-card p {
    margin: 0.3rem 0 0;
    line-height: 1.35;
}
/* Pagination */
.pagination {
    list-style: none;
    padding: 0;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: flex;
    gap: 0.36rem;
    margin: var(--spacing) auto 0;
}
.page-number {
    display: block;
    height: 1.7rem;
    width: 1.71rem;
    color: var(--black);
    font-size: 0.85rem;
    line-height: 2;
    text-align: center;
    background-color: var(--medium-gray);
    padding-top: 1px;
    border-radius: 0.16rem;
    transition: all 0.2s ease;
}
.page-number:hover {
    color: #ffffff;
    background-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.page-selected {
    color: #ffffff;
    background-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.page-number a {
    color: inherit;
}