/* =========================================
   ACE BLOG BROWSE
========================================= */

.ace-blog-browse {
    width: 100%;

    background: #fff;

    border-top: 1px solid #e8ebe8;
    border-bottom: 1px solid #e8ebe8;

    position: relative;
    z-index: 50;
}


/* =========================================
   INNER
========================================= */

.ace-browse-inner {
    width: 100%;
    max-width: 1400px;

    min-height: 64px;

    margin: 0 auto;
    padding: 8px 24px;

    display: flex;
    align-items: center;

    position: relative;
}


/* =========================================
   LABEL
========================================= */

.ace-browse-label {
    flex: 0 0 auto;

    margin-right: 18px;

    color: #7d847f;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================
   CATEGORY SCROLLER
========================================= */

.ace-browse-scroll {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    overflow-x: auto;

    scrollbar-width: none;

    scroll-behavior: smooth;

    padding: 3px 0;
}

.ace-browse-scroll::-webkit-scrollbar {
    display: none;
}


/* =========================================
   CATEGORY PILLS
========================================= */

.ace-browse-pill {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 0 14px;

    border: 1px solid #dfe4df;
    border-radius: 999px;

    background: #fff;

    color: #151715;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


/* Hover */

.ace-browse-pill:hover {
    border-color: #bfc9bf;

    background: #f5f8f5;

    color: #111;

    text-decoration: none;

    transform: translateY(-1px);
}


/* Active */

.ace-browse-pill.is-active {
    border-color: #111;

    background: #111;

    color: #fff;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, .12);
}

.ace-browse-pill.is-active:hover {
    background: #111;

    color: #fff;

    transform: translateY(-1px);
}


/* =========================================
   SCROLL ARROWS
========================================= */

.ace-browse-arrow {
    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    margin-left: 5px;

    border: 1px solid #e1e5e1;
    border-radius: 50%;

    background: #fff;

    color: #222;

    font-size: 13px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.ace-browse-arrow:hover {
    border-color: #111;

    background: #111;

    color: #fff;

    transform: translateY(-1px);
}


/* =========================================
   FADE EFFECT
========================================= */

.ace-browse-inner::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 55px;
    height: 100%;

    pointer-events: none;

    background: linear-gradient(
        to right,
        rgba(255,255,255,0),
        rgba(255,255,255,1)
    );
}


/* =========================================
   LARGE SCREENS
========================================= */

@media (min-width: 1200px) {

    .ace-browse-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .ace-browse-inner {
        min-height: 58px;

        padding: 7px 18px;
    }

    .ace-browse-label {
        margin-right: 12px;
    }

    .ace-browse-pill {
        min-height: 34px;

        padding: 0 13px;

        font-size: 10px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {

    .ace-blog-browse {
        border-top: 1px solid #edf0ed;
    }

    .ace-browse-inner {

        min-height: 57px;

        padding: 7px 12px;
    }

    .ace-browse-label {

        margin-right: 10px;

        font-size: 8px;

        letter-spacing: 1.2px;
    }

    .ace-browse-scroll {

        gap: 6px;

        /*
         * Allows the user to swipe
         * through categories.
         */
        -webkit-overflow-scrolling: touch;
    }

    .ace-browse-pill {

        min-height: 34px;

        padding: 0 12px;

        font-size: 10px;
    }

    /*
     * On mobile the arrows aren't necessary.
     * Finger swiping is better.
     */
    .ace-browse-arrow {
        display: none;
    }

    /*
     * Remove fade on mobile because
     * it can cover the final pill.
     */
    .ace-browse-inner::after {
        display: none;
    }

}