/* ==================================================
   KEMEI HERO
   ================================================== */

.kp-hero {
    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    padding: 0 !important;

    overflow: hidden;

    background: #08001a;

    line-height: 0;
}


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

.kp-hero-slider {
    position: relative;

    width: 100%;
    height: auto;

    aspect-ratio: 1920 / 787;

    overflow: hidden;
}


.kp-hero-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

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

    opacity: 0;
    visibility: hidden;

    z-index: 1;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}


.kp-hero-slide.active {
    opacity: 1;

    visibility: visible;

    z-index: 2;
}


.kp-hero-slide img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

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

    border: 0 !important;

    object-fit: cover;

    object-position: center center;
}


/* ==================================================
   VIDEO HERO
   ================================================== */

.kp-hero-video {
    position: relative;

    width: 100%;
    max-width: 100%;

    height: auto;

    aspect-ratio: 1920 / 787;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #08001a;
}


.kp-hero-video-element {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

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

    border: 0 !important;

    object-fit: cover;

    object-position: center center;
}


/* ==================================================
   VIDEO OVERLAY
   ================================================== */

.kp-hero-video-overlay {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 5;

    display: flex;

    align-items: center;

    pointer-events: none;
}


.kp-hero-video-content {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 55px;

    direction: rtl;

    text-align: right;

    line-height: normal;

    pointer-events: none;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


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

.kp-hero-video-content h1 {
    margin: 0 0 22px;

    color: #fff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(30px, 3.5vw, 52px);

    font-weight: 800;

    line-height: 1.2;

    text-align: right;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, .45);
}


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

.kp-hero-video-content p {
    margin: 0 0 28px;

    color: #fff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(15px, 1.5vw, 21px);

    font-weight: 400;

    line-height: 1.8;

    text-align: right;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, .45);
}


/* ==================================================
   VIDEO BUTTON
   ================================================== */

.kp-hero-video-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 12px 28px;

    border-radius: 30px;

    background: #0052d9;

    color: #fff !important;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15px;

    font-weight: 800;

    line-height: 1;

    text-decoration: none !important;

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

    pointer-events: auto;

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


.kp-hero-video-button:hover {
    background: #003fa8;

    color: #fff !important;

    transform: translateY(-2px);
}


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

.kp-hero-arrow {
    position: absolute !important;

    top: 50% !important;

    z-index: 10;

    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: rgba(255, 255, 255, .92) !important;

    color: #071b3a !important;

    font-size: 27px !important;

    line-height: 1 !important;

    cursor: pointer;

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

    transform: translateY(-50%) !important;

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


.kp-hero-arrow:hover {
    background: #0066cc !important;

    color: #fff !important;
}


/* ==================================================
   RTL ARROW POSITION
   ================================================== */

.kp-hero-prev {
    right: 20px !important;

    left: auto !important;
}


.kp-hero-next {
    left: 20px !important;

    right: auto !important;
}


/* ==================================================
   HERO DOTS
   ================================================== */

.kp-hero-dots {
    position: absolute;

    left: 50%;
    bottom: 18px;

    z-index: 10;

    display: flex !important;

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

    gap: 8px;

    width: auto;
    height: auto;

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

    transform: translateX(-50%);
}


.kp-hero-dots button {
    display: block !important;

    width: 8px !important;
    height: 8px !important;

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

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

    border: 0 !important;
    border-radius: 50% !important;

    background: rgba(255, 255, 255, .65) !important;

    box-shadow: none !important;

    cursor: pointer;
}


.kp-hero-dots button.active {
    width: 24px !important;
    min-width: 24px !important;

    height: 8px !important;

    border-radius: 10px !important;

    background: #fff !important;
}


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

@media (max-width: 767px) {

    .kp-hero-dots {
        bottom: 10px;
        gap: 6px;
    }


    .kp-hero-dots button {
        width: 7px !important;
        height: 7px !important;

        min-width: 7px !important;
        min-height: 7px !important;
    }


    .kp-hero-dots button.active {
        width: 20px !important;
        min-width: 20px !important;

        height: 7px !important;
    }

}


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

@media (max-width: 991px) {

    .kp-hero-arrow {
        width: 40px !important;
        height: 40px !important;

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

        font-size: 24px !important;
    }


    .kp-hero-prev {
        right: 12px !important;
    }


    .kp-hero-next {
        left: 12px !important;
    }


    .kp-hero-video-content {
        padding: 0 40px;

        align-items: flex-start;

        text-align: right;
    }


    .kp-hero-video-content h1 {
        font-size: 36px;

        text-align: right;
    }


    .kp-hero-video-content p {
        font-size: 16px;

        line-height: 1.7;

        text-align: right;
    }

}


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

@media (max-width: 767px) {

    /*
     * Increase hero height on mobile
     * so the overlay content is not cropped.
     */

    .kp-hero-slider,
    .kp-hero-video {
        width: 100%;

        height: auto;

        aspect-ratio: 16 / 9;

        overflow: hidden;
    }


    .kp-hero-video-element {
        display: block !important;

        width: 100% !important;
        height: 100% !important;

        min-width: 0 !important;
        min-height: 0 !important;

        object-fit: cover !important;
        object-position: center center !important;
    }


    .kp-hero-video-content {
        width: 100%;

        padding: 0 22px;

        align-items: flex-start;

        text-align: right;
    }


    .kp-hero-video-content h1 {
        margin: 0 0 12px;

        font-size: 25px;

        line-height: 1.25;

        text-align: right;
    }


    .kp-hero-video-content p {
        margin: 0 0 18px;

        font-size: 13px;

        line-height: 1.6;

        text-align: right;
    }


    .kp-hero-video-button {
        min-height: 42px;

        padding: 10px 22px;

        font-size: 12px;
    }


    .kp-hero-arrow {
        width: 34px !important;
        height: 34px !important;

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

        font-size: 21px !important;
    }


    .kp-hero-prev {
        right: 8px !important;
    }


    .kp-hero-next {
        left: 8px !important;
    }


    .kp-hero-dots {
        bottom: 10px;

        gap: 6px;
    }


    .kp-hero-dots button {
        width: 7px;
        height: 7px;
    }


    .kp-hero-dots button.active {
        width: 20px;
    }

}