.kkm-hero,
.kkm-hero * {
    box-sizing: border-box;
}

.kkm-hero {
    --kkm-hero-container-width: 1400px;
    --kkm-hero-content-top-padding: 84px;
    --kkm-hero-content-bottom-padding: 70px;
    --kkm-hero-manual-min-height: 0px;
    --kkm-hero-left-fade: #ffffff;
    --kkm-hero-overlay-width: 61%;
    --kkm-hero-overlay-solid-end: 76%;
    --kkm-hero-overlay-opacity: 0.98;
    --kkm-hero-fade-duration: 1200ms;
    position: relative;
    width: 100%;
    min-height: var(--kkm-hero-manual-min-height);
    padding: 0 20px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    background: #f7f9fc;
    font-family: "Inter", Arial, sans-serif;
    isolation: isolate;
}

/* Full-width background slider. Only the images change; all content remains fixed. */
.kkm-hero__slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #dce7f6;
    pointer-events: none;
}

.kkm-hero__slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--kkm-hero-fade-duration) ease-in-out,
        visibility 0s linear var(--kkm-hero-fade-duration);
    will-change: opacity;
}

.kkm-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition:
        opacity var(--kkm-hero-fade-duration) ease-in-out,
        visibility 0s linear 0s;
}

.kkm-hero__slide-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    pointer-events: none;
}

/* White readability overlay is deliberately limited to the text side.
   The remainder of the banner stays clear and fully visible. */
.kkm-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--kkm-hero-overlay-width);
    z-index: 2;
    pointer-events: none;
    opacity: var(--kkm-hero-overlay-opacity);
    background: linear-gradient(
        90deg,
        var(--kkm-hero-left-fade) 0%,
        var(--kkm-hero-left-fade) var(--kkm-hero-overlay-solid-end),
        transparent 100%
    );
}

.kkm-hero__container {
    width: 100%;
    max-width: var(--kkm-hero-container-width);
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.kkm-hero__content {
    width: 100%;
    max-width: 680px;
    position: relative;
    z-index: 5;
    padding-top: var(--kkm-hero-content-top-padding);
    padding-bottom: var(--kkm-hero-content-bottom-padding);
}

.kkm-hero__heading {
    margin: 0 0 26px;
    color: #082d63;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -1.2px;
}

.kkm-hero__heading-main,
.kkm-hero__heading-highlight {
    display: block;
}

.kkm-hero__heading-main {
    color: #082d63;
}

.kkm-hero__heading-highlight {
    color: #ff6b00;
}

.kkm-hero__description {
    width: 100%;
    max-width: 640px;
    margin: 0 0 28px;
    color: #182336;
    font-family: "Inter", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
}

.kkm-hero__description p {
    margin: 0 0 14px;
}

.kkm-hero__description p:last-child {
    margin-bottom: 0;
}

.kkm-hero__buttons {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.kkm-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 224px;
    padding: 18px 30px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kkm-hero__button--primary {
    background: #082d63;
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(8, 45, 99, 0.18);
}

.kkm-hero__button--primary:hover,
.kkm-hero__button--primary:focus {
    background: #061f45;
    color: #ffffff;
    transform: translateY(-2px);
}

.kkm-hero__button--secondary {
    color: #082d63;
    background: rgba(255, 255, 255, 0.72);
    border-color: #082d63;
    backdrop-filter: blur(2px);
}

.kkm-hero__button--secondary:hover,
.kkm-hero__button--secondary:focus {
    color: #ffffff;
    background: #082d63;
    transform: translateY(-2px);
}

.kkm-hero__button-icon,
.kkm-hero__button-icon svg {
    width: 14px;
    height: 14px;
    display: inline-flex;
    fill: currentColor;
}

.elementor-widget-kkm_2026_hero,
.elementor-widget-kkm_2026_hero .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    overflow: visible;
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .kkm-hero__content {
        max-width: 620px;
    }
}

/* Tablet: keep every line of copy on a genuinely white reading area while
   preserving a clear portion of the banner on the right. The overlay width is
   capped in pixels, so it does not swallow the image on wider tablets. */
@media (min-width: 768px) and (max-width: 1024px) {
    .kkm-hero {
        padding-left: 20px;
        padding-right: 20px;
        background: var(--kkm-hero-left-fade, #ffffff);
    }

    .kkm-hero::before {
        display: block;
        width: min(96%, 720px);
        opacity: 1;
        background: linear-gradient(
            90deg,
            var(--kkm-hero-left-fade) 0%,
            var(--kkm-hero-left-fade) 91%,
            transparent 100%
        );
    }

    .kkm-hero__container {
        max-width: min(var(--kkm-hero-container-width), 100%);
    }

    .kkm-hero__content {
        /* 600px keeps the description and both CTAs inside the solid white
           portion at 768-1024px, without changing the desktop layout. */
        width: min(100%, 600px);
        padding-top: var(--kkm-hero-content-top-padding);
        padding-bottom: var(--kkm-hero-content-bottom-padding);
    }

    .kkm-hero__heading {
        font-size: 44px;
        line-height: 1.15;
    }

    .kkm-hero__description {
        max-width: 100%;
        font-size: 16px;
    }
}

/* Mobile is intentionally image-free. This also keeps the text area completely
   clean and removes the tablet/desktop gradient so there is no pale-blue tail. */
@media (max-width: 767px) {
    .kkm-hero {
        --kkm-hero-overlay-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        background: var(--kkm-hero-left-fade, #ffffff) !important;
    }

    .kkm-hero__slider {
        display: none !important;
    }

    .kkm-hero::before {
        display: none !important;
        content: none;
    }

    .kkm-hero__container {
        width: 100%;
        max-width: 100%;
    }

    .kkm-hero__content {
        width: 100%;
        max-width: 100% !important;
    }

    .kkm-hero__heading {
        margin-bottom: 18px;
        font-size: 36px;
        line-height: 1.16;
        letter-spacing: -0.03em;
    }

    .kkm-hero__description {
        width: 100%;
        max-width: 100%;
        font-size: 15px;
    }

    .kkm-hero__buttons {
        gap: 14px;
    }

    .kkm-hero__button {
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kkm-hero__slide {
        transition: none !important;
    }
}
