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

.kkm-services-page-hero {
    --kkm-services-page-hero-container-width: 1400px;
    --kkm-services-page-hero-image-width: 56%;
    --kkm-services-page-hero-mobile-image-height: 390px;
    --kkm-services-page-hero-dot-color: rgba(8,45,99,0.045);
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 86px 20px 78px;
    display: flex;
    align-items: center;
    background-color: #f8fbff;
    background-image: radial-gradient(var(--kkm-services-page-hero-dot-color) 1px, transparent 1px);
    background-size: 7px 7px;
    font-family: "Inter", Arial, sans-serif;
    isolation: isolate;
}

.kkm-services-page-hero::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 72%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.95) 42%, rgba(255,255,255,0.70) 63%, rgba(255,255,255,0) 100%);
}

.kkm-services-page-hero::after {
    content: "";
    position: absolute;
    top: -8%;
    bottom: -10%;
    left: 47%;
    width: 18%;
    z-index: 3;
    pointer-events: none;
    background: rgba(255,255,255,0.62);
    transform: skewX(-24deg);
    transform-origin: center;
}

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

.kkm-services-page-hero__content {
    width: 100%;
    max-width: 660px;
    position: relative;
    z-index: 5;
}

.kkm-services-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 17px;
    color: #ff6a00;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.kkm-services-page-hero__eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 34px;
    height: 2px;
    background: #ff6a00;
}

.kkm-services-page-hero__title {
    margin: 0 0 28px;
    color: #0d3474;
    font-family: "Poppins", Arial, sans-serif;
    font-size: clamp(40px, 3.55vw, 60px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.kkm-services-page-hero__title-line {
    display: block;
}

.kkm-services-page-hero__highlight {
    color: #ff6a00;
}

.kkm-services-page-hero__description {
    width: 100%;
    max-width: 675px;
    margin: 0;
    color: #1f2937;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

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

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

.kkm-services-page-hero__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--kkm-services-page-hero-image-width);
    z-index: 1;
    overflow: hidden;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    background: #dce7f6;
}

.kkm-services-page-hero__visual::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.04) 32%, rgba(255,255,255,0) 100%);
    opacity: 0.1;
    pointer-events: none;
}

.kkm-services-page-hero__visual-image {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% center;
}

.kkm-services-page-hero__powerlines {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 46%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    opacity: 0.13;
    pointer-events: none;
}

.kkm-services-page-hero__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 660px;
    margin-top: 32px;
}

.kkm-services-page-hero__feature {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 12px 13px;
    background: #ffffff;
    border: 1px solid #e6edf6;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(8,45,99,0.10);
}

.kkm-services-page-hero__feature-icon {
    width: 34px;
    height: 34px;
    border: 1.5px solid #0d3474;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d3474;
    background: rgba(255,255,255,0.95);
}

.kkm-services-page-hero__feature-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.kkm-services-page-hero__feature-icon i {
    font-size: 17px;
}

.kkm-services-page-hero__feature-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kkm-services-page-hero__feature-title,
.kkm-services-page-hero__feature-subtitle {
    display: block;
    color: #0b2f68;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.12;
}

/* Keep this widget full-width while inner content matches header width */
.elementor-widget-kkm_2026_services_page_hero,
.elementor-widget-kkm_2026_services_page_hero .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    overflow: visible;
}

body:not(.elementor-editor-active) .elementor-widget-kkm_2026_services_page_hero {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

@media (min-width: 768px) {
    .kkm-services-page-hero__container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 1200px) {
    .kkm-services-page-hero {
        --kkm-services-page-hero-image-width: 54%;
    }

    .kkm-services-page-hero__content {
        max-width: 600px;
    }

    .kkm-services-page-hero__title {
        font-size: clamp(38px, 4vw, 52px);
    }

    .kkm-services-page-hero__features {
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 1024px) {
    .kkm-services-page-hero {
        min-height: auto;
        padding: 68px 20px;
        display: block;
    }

    .kkm-services-page-hero::before {
        width: 100%;
        background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.86) 52%, rgba(255,255,255,0.64) 100%);
    }

    .kkm-services-page-hero::after {
        display: none;
    }

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

    .kkm-services-page-hero__content {
        max-width: 100%;
    }

    .kkm-services-page-hero__visual {
        position: relative;
        inset: auto;
        width: 100%;
        height: var(--kkm-services-page-hero-mobile-image-height);
        margin: 38px auto 0;
        z-index: 4;
        clip-path: none !important;
        border-radius: 26px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    }

    .kkm-services-page-hero__features {
        width: 100%;
        max-width: 100%;
    }

    .kkm-services-page-hero__powerlines {
        width: 70%;
        height: 34%;
        opacity: 0.09;
    }
}

@media (max-width: 767px) {
    .kkm-services-page-hero {
        padding: 52px 16px;
    }

    .kkm-services-page-hero__eyebrow {
        gap: 10px;
        font-size: 13px;
        margin-bottom: 14px;
    }

    .kkm-services-page-hero__eyebrow::before {
        width: 26px;
    }

    .kkm-services-page-hero__title {
        margin-bottom: 22px;
        font-size: clamp(32px, 10vw, 42px);
        line-height: 1.15;
        letter-spacing: -0.035em;
    }

    .kkm-services-page-hero__description {
        font-size: 15px;
        line-height: 1.65;
    }

    .kkm-services-page-hero__features {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .kkm-services-page-hero__feature {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        min-height: 68px;
        padding: 12px 14px;
    }

    .kkm-services-page-hero__feature-icon {
        width: 34px;
        height: 34px;
    }

    .kkm-services-page-hero__feature-title,
    .kkm-services-page-hero__feature-subtitle {
        font-size: 14px;
    }

    .kkm-services-page-hero__visual {
        height: min(var(--kkm-services-page-hero-mobile-image-height), 300px);
        margin-top: 30px;
        border-radius: 18px;
    }
}


/* Services hero compact-card correction */
.kkm-services-page-hero .kkm-services-page-hero__features {
    max-width: 660px;
}
.kkm-services-page-hero .kkm-services-page-hero__feature {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    min-height: 70px;
    padding: 12px 13px;
}
.kkm-services-page-hero .kkm-services-page-hero__feature-icon {
    width: 34px;
    height: 34px;
}
.kkm-services-page-hero .kkm-services-page-hero__feature-icon svg {
    width: 17px;
    height: 17px;
}
.kkm-services-page-hero .kkm-services-page-hero__feature-icon i {
    font-size: 17px;
}
.kkm-services-page-hero .kkm-services-page-hero__feature-title,
.kkm-services-page-hero .kkm-services-page-hero__feature-subtitle {
    font-size: 14px;
    line-height: 1.12;
}
@media (max-width: 1024px) {
    .kkm-services-page-hero .kkm-services-page-hero__features {
        max-width: 100%;
    }
}


/* KKM v9.0.33 mobile hero spacing patch: reduces extra space around text and image. */
@media (max-width: 767px) {
    .kkm-services-page-hero {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    .kkm-services-page-hero__visual {
        margin-top: 18px !important;
    }
}


/* KKM v9.0.34 mobile full-width breakout safety fix */
@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body:not(.elementor-editor-active) .elementor-widget-kkm_2026_services_page_hero {
        width: auto !important;
        max-width: none !important;
        left: auto !important;
        right: auto !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        overflow-x: clip !important;
    }
}

/* KKM v9.0.40 mobile hero image swap */
@media (max-width: 767px) {
    .kkm-services-page-hero--has-mobile-image .kkm-services-page-hero__visual-image {
        background-image: var(--kkm-services-page-hero-mobile-bg) !important;
    }
}
