/* =========================================
   KEMEI
   CATEGORIES SLIDER
========================================= */

.kp-categories {
    width: 100%;

    padding: 30px 0;

    background: #f7f7f7;
}


/* =========================================
   SECTION HEADING
========================================= */

.kp-categories .kp-section-heading {
    text-align: center;

    margin: 0 auto 30px;

    padding: 0 20px;
}


.kp-categories .kp-section-heading h2 {
    margin: 0;

    color: #071b3a;

    font-size: 32px;
    line-height: 1.35;
    font-weight: 700;
}


/* =========================================
   SLIDER
========================================= */

.kp-category-slider {
    position: relative;

    width: 100%;

    padding: 0 22px;
}


.kp-category-track {
    display: flex;

    gap: 20px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    direction: rtl;
}

.kp-category-track::-webkit-scrollbar {
    display: none;
}


/* =========================================
   CARD
========================================= */

.kp-category-card {
    flex: 0 0 calc(
        (100% - 60px) / 4
    );

    min-width: 0;

    overflow: hidden;

    background: #fff;

    border-radius: 10px;

    text-decoration: none;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);

    scroll-snap-align: start;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.kp-category-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}


/* =========================================
   IMAGE
========================================= */

.kp-category-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f1f1f1;
}


.kp-category-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}


.kp-category-card:hover
.kp-category-image img {
    transform: scale(1.04);
}


/* =========================================
   CONTENT
========================================= */

.kp-category-content {
    padding: 18px;
}


.kp-category-content h3 {
    margin: 0 0 10px;

    color: #071b3a;

    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}


.kp-category-content span {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #666;

    font-size: 13px;
    font-weight: 600;
}


.kp-category-content b {
    font-size: 17px;

    color: #0066cc;

    transition: transform .2s ease;
}


.kp-category-card:hover
.kp-category-content b {
    transform: translateX(-4px);
}


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

.kp-category-prev,
.kp-category-next {
    position: absolute !important;

    top: 50% !important;

    z-index: 20;

    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    min-height: 44px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    border-radius: 50% !important;

    background: #fff !important;

    color: #071b3a !important;

    font-size: 27px !important;

    line-height: 1 !important;

    cursor: pointer;

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

    transform: translateY(-50%) !important;

    transition:
        background .2s ease,
        color .2s ease,
        opacity .2s ease;
}


/* =========================================
   RIGHT ARROW
========================================= */

.kp-category-prev {
    right: 0 !important;

    left: auto !important;
}


/* =========================================
   LEFT ARROW
========================================= */

.kp-category-next {
    left: 0 !important;

    right: auto !important;
}


.kp-category-prev:hover,
.kp-category-next:hover {
    background: #0066cc !important;

    color: #fff !important;
}


.kp-category-prev:disabled,
.kp-category-next:disabled {
    opacity: .35;

    cursor: default;
}


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

@media (max-width: 991px) {

    .kp-categories {
        padding: 30px 0;
    }


    .kp-categories .kp-section-heading {
        margin-bottom: 28px;
    }


    .kp-categories .kp-section-heading h2 {
        font-size: 28px;
    }


    .kp-category-track {
        gap: 16px;
    }


    .kp-category-card {
        flex-basis: calc(
            (100% - 32px) / 3
        );
    }

}


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

@media (max-width: 767px) {

    .kp-categories {
        padding: 22px 0;
    }


    .kp-categories .kp-section-heading {
        margin-bottom: 24px;

        padding: 0 15px;
    }


    .kp-categories .kp-section-heading h2 {
        font-size: 24px;
    }


    .kp-category-slider {
        padding: 0 18px;
    }


    .kp-category-track {
        gap: 12px;
    }


    .kp-category-card {
        flex-basis: calc(
            (100% - 12px) / 2
        );
    }


    .kp-category-content {
        padding: 14px;
    }


    .kp-category-content h3 {
        font-size: 15px;
    }


    .kp-category-content span {
        font-size: 12px;
    }


    .kp-category-prev,
    .kp-category-next {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;

        font-size: 23px !important;
    }


    .kp-category-prev {
        right: 0 !important;

        left: auto !important;
    }


    .kp-category-next {
        left: 0 !important;

        right: auto !important;
    }

}