/* =========================================
   KEMEI
   DEVICE GUIDE
========================================= */

.kp-device-guide {
    width: 100%;

    padding: 30px 0;

    background: #fff;
}


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

.kp-device-guide .kp-section-heading {
    text-align: center;

    margin: 0 auto 30px;

    padding: 0 20px;
}


.kp-device-guide .kp-section-heading h2 {
    margin: 0;

    color: #071b3a;

    font-size: 32px;

    line-height: 1.35;

    font-weight: 700;
}


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

.kp-device-guide-slider {
    position: relative;

    width: 100%;

    padding: 0 22px;
}


/* =========================================
   TRACK
========================================= */

.kp-device-guide-grid {
    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-device-guide-grid::-webkit-scrollbar {
    display: none;
}


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

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

    min-width: 0;

    min-height: 250px;

    display: flex;

    align-items: flex-end;

    padding: 28px;

    overflow: hidden;

    position: relative;

    background: #f7f7f7;

    border: 1px solid #eee;

    border-radius: 12px;

    text-decoration: none;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, .04);

    scroll-snap-align: start;

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


.kp-device-guide-card::before {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    top: -55px;
    left: -55px;

    border-radius: 50%;

    background: rgba(0, 102, 204, .07);

    transition:
        transform .3s ease,
        background .3s ease;
}


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

    border-color:
        rgba(0, 102, 204, .18);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, .08);
}


.kp-device-guide-card:hover::before {
    transform: scale(1.25);

    background:
        rgba(0, 102, 204, .10);
}


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

.kp-device-guide-content {
    position: static;

    z-index: 2;

    width: 100%;
}


/* =========================================
   NUMBER
   TOP RIGHT OF CARD
========================================= */

.kp-device-guide-content > span {
    position: absolute;

    top: 28px;

    right: 28px;

    margin: 0;

    color: #0066cc;

    font-size: 13px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1px;

    z-index: 3;
}


/* =========================================
   TITLE
========================================= */

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

    color: #071b3a;

    font-size: 24px;

    line-height: 1.3;

    font-weight: 700;
}


/* =========================================
   DESCRIPTION
========================================= */

.kp-device-guide-content p {
    max-width: 260px;

    margin: 0 0 20px;

    color: #666;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================
   LINK
========================================= */

.kp-device-guide-content strong {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #0066cc;

    font-size: 13px;

    font-weight: 700;

    transition:
        gap .2s ease,
        color .2s ease;
}


.kp-device-guide-card:hover
.kp-device-guide-content strong {
    gap: 13px;

    color: #0052a3;
}


/* =========================================
   ARROWS
   SAME DIRECTION AS CATEGORIES
========================================= */

.kp-device-guide-prev,
.kp-device-guide-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: none !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;
}


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

    color: #fff !important;
}


/* =========================================
   RIGHT = PREVIOUS
========================================= */

.kp-device-guide-prev {
    right: 0 !important;

    left: auto !important;
}


/* =========================================
   LEFT = NEXT
========================================= */

.kp-device-guide-next {
    left: 0 !important;

    right: auto !important;
}


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

@media (max-width: 991px) {

    .kp-device-guide {
        padding: 30px 0;
    }


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


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


    .kp-device-guide-slider {
        padding: 0 22px;
    }


    .kp-device-guide-grid {
        gap: 16px;
    }


    .kp-device-guide-card {
        flex-basis: calc(
            (100% - 16px) / 2
        );

        min-height: 230px;

        padding: 24px;
    }

}


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

@media (max-width: 767px) {

    .kp-device-guide {
        padding: 22px 0;
    }


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

        padding: 0 15px;
    }


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


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

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


    .kp-device-guide-grid {
        gap: 12px;

        width: 100%;

        padding: 0;

        overflow-x: auto;

        overflow-y: hidden;

        scroll-behavior: smooth;

        scroll-snap-type: x mandatory;

        scrollbar-width: none;

        direction: rtl;
    }


    .kp-device-guide-grid::-webkit-scrollbar {
        display: none;
    }


    /* =====================================
       EXACTLY 2 CARDS
    ====================================== */

    .kp-device-guide-card {

        flex: 0 0 calc(
            (100% - 12px) / 2
        ) !important;

        width: calc(
            (100% - 12px) / 2
        ) !important;

        min-width: calc(
            (100% - 12px) / 2
        ) !important;

        max-width: calc(
            (100% - 12px) / 2
        ) !important;

        min-height: 210px;

        padding: 20px;

        box-sizing: border-box;

        scroll-snap-align: start;

        transform: none;
    }


    .kp-device-guide-card:hover {
        transform: none;
    }


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

    .kp-device-guide-content > span {
        top: 18px;

        right: 18px;

        font-size: 11px;
    }


    .kp-device-guide-content h3 {
        font-size: 20px;

        line-height: 1.35;
    }


    .kp-device-guide-content p {
        max-width: none;

        margin-bottom: 16px;

        font-size: 12px;

        line-height: 1.65;
    }


    .kp-device-guide-content strong {
        font-size: 12px;
    }


    /* =====================================
       MOBILE ARROWS
       SAME AS CATEGORIES
    ====================================== */

    .kp-device-guide-prev,
    .kp-device-guide-next {

        display: flex !important;

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

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

        font-size: 23px !important;
    }


    /* =====================================
       RIGHT = PREVIOUS
    ====================================== */

    .kp-device-guide-prev {
        right: 0 !important;

        left: auto !important;
    }


    /* =====================================
       LEFT = NEXT
    ====================================== */

    .kp-device-guide-next {
        left: 0 !important;

        right: auto !important;
    }

}