.cat-bar-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    margin: 100px 0 40px 0;
}

.cat-bar {
    display: flex;
    overflow-x: auto;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 10px;
}

.cat-bar::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    bottom: 0;
}

.scroll-btn.left {
    left: 0;
    background: linear-gradient(to left, transparent, white);
    
}

.scroll-btn.right {
    right: 0;
    background: linear-gradient(to right, transparent, white);
}


.cat-bar .round-btn {
    background-color: #D3F4F8;
    font-size: 14px;
    color: #879FAA;
    white-space: nowrap
}

.cat-bar .round-btn.active {
    background-color: #25C9DE;
    color: white;
}

.scroll-btn {
    transition: opacity 0.3s ease;
}

.scroll-btn[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

/* Blog Grid Section  */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.article-card {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: box-shadow ease-in 0.5s;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 5px;
}

.article-card:hover {
    box-shadow: rgba(100, 100, 111, 0.685) 0px 7px 29px 0px;
}

.post-category {
    position: absolute;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: white;
    z-index: 1;
    top: 20px;
    right: 20px;
    font-size: 14px;
    font-style: italic;
}

.featured-img-cnt {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;

}

.featured-img-cnt img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-title {
    font-size: 21px;
    color: #54595F;
}

.content-cnt {
    padding: 0 20px;
}

.content-cnt p {
    font-size: 14px;
    color: #54595F;
}

time {
    padding: 20px;
    margin-top: auto;
    font-size: 12px;
    border-top: solid #54595f33 0.1px;
}

.pagination {
    padding-top: 100px;
    text-align: center;
}

.pagination > * {
    margin: 0 5px;
}

@media only screen and (max-width: 767px) {
    .post-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* Remediation (WP-06, WP-17, WP-18): archive heading, search + feed, styled pagination, scroll buttons as buttons */
.archive-head {
    margin-top: 100px;
}

.archive-head h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.archive-head p {
    max-width: 760px;
}

.archive-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input[type="search"] {
    min-width: 240px;
    padding: 10px 16px;
    border: 1px solid #879FAA;
    border-radius: 25px;
    font-size: 16px;
    font-family: inherit;
}

.search-form .round-btn {
    font-size: 16px;
    padding: 10px 24px;
}

.archive-head + .cat-bar-wrapper {
    margin-top: 30px;
}

button.scroll-btn {
    font-family: inherit;
    color: #161e35;
}

button.scroll-btn:focus-visible {
    outline: 2px solid #25C9DE;
    outline-offset: -2px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 16px;
    color: #161e35;
}

.pagination .page-numbers.current {
    background: #161e35;
    color: #fff;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
    background: #D3F4F8;
}

.archive-empty {
    padding: 40px 0;
}

@media only screen and (max-width: 767px) {
    .archive-head {
        margin-top: 60px;
    }

    .archive-head h1 {
        font-size: 30px;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="search"] {
        min-width: 0;
        flex: 1;
    }
}
