.kkm-products {
    --kkm-products-container-width: 1400px;
    background: #f3f6fb;
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}

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

.kkm-products__container {
    width: min(100%, var(--kkm-products-container-width));
    margin: 0 auto;
}

.kkm-products__header {
    text-align: center;
    margin-bottom: 42px;
}

.kkm-products__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
    color: #ff6a00;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.kkm-products__eyebrow::before,
.kkm-products__eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #ff6a00;
    display: inline-block;
}

.kkm-products__title {
    max-width: 860px;
    margin: 0 auto 12px;
    color: #0d3474;
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.kkm-products__subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: #253044;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.kkm-products__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.kkm-products__card {
    --kkm-products-accent: #ff6a00;
    --kkm-products-bottom: #0d3474;
    --kkm-products-icon-color: #ff6a00;
    --kkm-products-icon-bg: #ffffff;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, var(--kkm-products-visual-width, 40%));
    align-items: center;
    min-height: 210px;
    padding: 24px 24px 22px 26px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(8, 32, 76, 0.10);
}

.kkm-products__card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--kkm-products-bottom);
}

.kkm-products__content {
    position: relative;
    z-index: 2;
    padding-right: 12px;
}

.kkm-products__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--kkm-products-icon-bg);
    color: var(--kkm-products-icon-color);
    box-shadow: 0 12px 28px rgba(8, 32, 76, 0.10);
    font-size: 26px;
}

.kkm-products__icon svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: currentColor;
}

.kkm-products__card-title {
    margin: 0 0 12px;
    color: #0d3474;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.kkm-products__underline {
    display: block;
    width: 45px;
    height: 3px;
    border-radius: 999px;
    background: var(--kkm-products-accent);
    margin-bottom: 14px;
}

.kkm-products__card-desc {
    color: #253044;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
}

.kkm-products__visual {
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-basis: 44%;
}

.kkm-products__bg-art {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 1;
}

.kkm-products__product-image {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .kkm-products__card {
        grid-template-columns: minmax(0, 1fr) minmax(150px, var(--kkm-products-visual-width, 36%));
    }
}

@media (max-width: 1024px) {
    .kkm-products {
        padding-top: 58px;
        padding-bottom: 62px;
    }

    .kkm-products__title {
        font-size: 34px;
    }

    .kkm-products__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .kkm-products {
        padding: 35px 16px 35px;
    }

    .kkm-products__header {
        margin-bottom: 32px;
    }

    .kkm-products__eyebrow {
        gap: 10px;
        font-size: 12px;
    }

    .kkm-products__eyebrow::before,
    .kkm-products__eyebrow::after {
        width: 22px;
    }

    .kkm-products__title {
        font-size: 28px;
    }

    .kkm-products__subtitle {
        font-size: 14px;
    }

    .kkm-products__card {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: auto;
        padding: 22px 20px 22px;
    }

    .kkm-products__content {
        padding-right: 0;
    }

    .kkm-products__visual {
        min-height: 130px;
        justify-content: center;
    }

    .kkm-products__bg-art {
        background-position: center;
    }

    .kkm-products__product-image {
        max-height: 130px;
    }
}


/* KKM global page width alignment fix */
:root {
    --kkm-global-container-width: 1400px;
}

.kkm-header__container,
.kkm-footer__container,
.kkm-hero__container,
.kkm-about__container,
.kkm-why__container,
.kkm-core-services__container,
.kkm-process__container,
.kkm-products__container,
.kkm-project-exp__container,
.kkm-industries__container,
.kkm-vm__container,
.kkm-final-cta__container,
.kkm-contact__container,
.kkm-webfix__container,
.kkm-partners__container {
    width: min(100%, var(--kkm-global-container-width)) !important;
    max-width: var(--kkm-global-container-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.kkm-process__image-wrap {
    max-width: var(--kkm-global-container-width) !important;
    width: 100% !important;
}

.kkm-industries__cityscape,
.kkm-industries__cityscape-image {
    width: 100% !important;
    max-width: 100% !important;
}


/* KKM final alignment patch: align all section content with header logo/menu edge */
@media (min-width: 768px) {
    .kkm-header__container,
    .kkm-footer__container,
    .kkm-hero__container,
    .kkm-about__container,
    .kkm-why__container,
    .kkm-core-services__container,
    .kkm-process__container,
    .kkm-products__container,
    .kkm-project-exp__container,
    .kkm-industries__container,
    .kkm-vm__container,
    .kkm-final-cta__container,
    .kkm-contact__container,
    .kkm-webfix__container,
    .kkm-partners__container {
        box-sizing: border-box !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Hero overflow/blue stats bar fix */
.kkm-hero__container {
    overflow: visible !important;
}

.kkm-hero__content,
.kkm-hero__features {
    max-width: 640px !important;
}

.kkm-hero__heading {
    max-width: 640px !important;
}

.kkm-hero__stats {
    right: 20px !important;
    bottom: 8px !important;
    width: min(620px, calc(100% - 40px)) !important;
    max-width: min(620px, calc(100% - 40px)) !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    padding: 14px 18px !important;
    overflow: hidden !important;
}

.kkm-hero__stat {
    min-width: 0 !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    padding: 0 12px !important;
}

.kkm-hero__stat-copy {
    min-width: 0 !important;
}

.kkm-hero__stat-title,
.kkm-hero__stat-subtitle {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.kkm-hero__stat-icon {
    width: 30px !important;
    height: 30px !important;
}

@media (max-width: 1200px) {
    .kkm-hero__stats {
        right: 20px !important;
        width: min(560px, calc(100% - 40px)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 10px !important;
    }

    .kkm-hero__stat:nth-child(2)::after {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .kkm-hero__stats {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 34px !important;
    }
}

@media (max-width: 767px) {
    .kkm-hero__stats {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
        gap: 12px !important;
    }

    .kkm-hero__stat {
        padding: 0 !important;
    }
}

/* KKM v9.0.7 full-page same-width alignment patch
   Keeps every KKM widget aligned to the header container width. */
:root {
    --kkm-global-container-width: 1400px;
}

body:not(.elementor-editor-active) .elementor-widget-kkm_2026_header,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_footer,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_hero,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_about,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_about_page_hero,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_about_intro,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_about_why_choose,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_about_final_cta,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_why_choose,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_core_services,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_process,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_products,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_project_experience,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_industries,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_vision_mission,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_final_cta,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_contact,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_website_fix,
body:not(.elementor-editor-active) .elementor-widget-kkm_2026_partners {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.elementor-widget-kkm_2026_header .elementor-widget-container,
.elementor-widget-kkm_2026_footer .elementor-widget-container,
.elementor-widget-kkm_2026_hero .elementor-widget-container,
.elementor-widget-kkm_2026_about .elementor-widget-container,
.elementor-widget-kkm_2026_about_page_hero .elementor-widget-container,
.elementor-widget-kkm_2026_about_intro .elementor-widget-container,
.elementor-widget-kkm_2026_about_why_choose .elementor-widget-container,
.elementor-widget-kkm_2026_about_final_cta .elementor-widget-container,
.elementor-widget-kkm_2026_why_choose .elementor-widget-container,
.elementor-widget-kkm_2026_core_services .elementor-widget-container,
.elementor-widget-kkm_2026_process .elementor-widget-container,
.elementor-widget-kkm_2026_products .elementor-widget-container,
.elementor-widget-kkm_2026_project_experience .elementor-widget-container,
.elementor-widget-kkm_2026_industries .elementor-widget-container,
.elementor-widget-kkm_2026_vision_mission .elementor-widget-container,
.elementor-widget-kkm_2026_final_cta .elementor-widget-container,
.elementor-widget-kkm_2026_contact .elementor-widget-container,
.elementor-widget-kkm_2026_website_fix .elementor-widget-container,
.elementor-widget-kkm_2026_partners .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
}

.kkm-header__container,
.kkm-footer__container,
.kkm-hero__container,
.kkm-about__container,
.kkm-about-page-hero__container,
.kkm-about-intro__container,
.kkm-about-why__container,
.kkm-about-final-cta__container,
.kkm-why__container,
.kkm-core-services__container,
.kkm-process__container,
.kkm-products__container,
.kkm-project-exp__container,
.kkm-industries__container,
.kkm-vm__container,
.kkm-final-cta__container,
.kkm-contact__container,
.kkm-webfix__container,
.kkm-partners__container {
    width: min(100%, var(--kkm-global-container-width)) !important;
    max-width: var(--kkm-global-container-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    .kkm-header__container,
    .kkm-footer__container,
    .kkm-hero__container,
    .kkm-about__container,
    .kkm-about-page-hero__container,
    .kkm-about-intro__container,
    .kkm-about-why__container,
    .kkm-about-final-cta__container,
    .kkm-why__container,
    .kkm-core-services__container,
    .kkm-process__container,
    .kkm-products__container,
    .kkm-project-exp__container,
    .kkm-industries__container,
    .kkm-vm__container,
    .kkm-final-cta__container,
    .kkm-contact__container,
    .kkm-webfix__container,
    .kkm-partners__container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 767px) {
    .kkm-header__container,
    .kkm-footer__container,
    .kkm-hero__container,
    .kkm-about__container,
    .kkm-about-page-hero__container,
    .kkm-about-intro__container,
    .kkm-about-why__container,
    .kkm-about-final-cta__container,
    .kkm-why__container,
    .kkm-core-services__container,
    .kkm-process__container,
    .kkm-products__container,
    .kkm-project-exp__container,
    .kkm-industries__container,
    .kkm-vm__container,
    .kkm-final-cta__container,
    .kkm-contact__container,
    .kkm-webfix__container,
    .kkm-partners__container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Dynamic CPT cards reuse the exact existing product card design. */
.kkm-products__card {
    color: inherit;
    text-decoration: none;
}

/* =============================================================
 * v9.0.84 — KKM Products reference-card responsive refinements
 * Front-end card styling only. Dynamic/query/render logic unchanged.
 * ============================================================= */
.kkm-products__cards {
    align-items: stretch;
}

.kkm-products__card {
    --kkm-products-card-top-space: clamp(58px, 5.1vw, 72px);
    --kkm-products-card-icon-size: 70px;
    position: relative;
    isolation: isolate;
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    aspect-ratio: 1 / 1.12;
    height: var(--kkm-products-card-height-desktop, auto);
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit;
    text-decoration: none;
    transition: transform .28s ease;
}

/* Main large circular/arched white card from the supplied reference. */
.kkm-products__card::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: var(--kkm-products-card-top-space);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background: #ffffff;
    border: 2px solid #e7e9ed;
    border-radius: 50%;
    box-shadow:
        0 15px 34px rgba(12, 36, 76, .10),
        0 2px 7px rgba(12, 36, 76, .06),
        inset 0 0 0 1px rgba(255, 255, 255, .88);
    transition: box-shadow .28s ease, border-color .28s ease;
}

/* Keep the legacy bottom-accent control available, but off by default. */
.kkm-products__card::after {
    z-index: 3;
    left: 28%;
    right: 28%;
    bottom: 4.2%;
    width: auto;
    border-radius: 999px;
}

/* If an editor intentionally hides an icon, collapse the reserved badge space cleanly. */
.kkm-products__card:not(:has(.kkm-products__icon)) .kkm-products__content {
    padding-top: calc(var(--kkm-products-card-top-space) + 54px) !important;
}

.kkm-products__card:hover {
    transform: translateY(-4px);
}

.kkm-products__card:hover::before {
    border-color: #dde2e8;
    box-shadow:
        0 20px 42px rgba(12, 36, 76, .13),
        0 3px 9px rgba(12, 36, 76, .07),
        inset 0 0 0 1px rgba(255, 255, 255, .92);
}

.kkm-products__card:focus-visible {
    outline: 3px solid rgba(255, 106, 0, .32);
    outline-offset: 6px;
}

.kkm-products__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: calc(var(--kkm-products-card-top-space) + clamp(78px, 5.7vw, 90px)) 9.5% 0 !important;
    text-align: center;
}

/* Reference-style overlapping circular icon badge. */
.kkm-products__icon {
    position: absolute;
    z-index: 4;
    top: var(--kkm-products-card-top-space);
    left: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--kkm-products-card-icon-size) !important;
    height: var(--kkm-products-card-icon-size) !important;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    border: 1px solid #eef0f3;
    border-radius: 50% !important;
    background: var(--kkm-products-icon-bg, #ffffff);
    color: var(--kkm-products-icon-color, #ff6a00);
    font-size: 35px !important;
    line-height: 1 !important;
    box-shadow:
        0 14px 28px rgba(8, 32, 76, .15),
        0 2px 6px rgba(8, 32, 76, .06);
}

.kkm-products__icon i {
    font-size: 35px !important;
    line-height: 1 !important;
}

.kkm-products__icon svg {
    width: 35px !important;
    height: 35px !important;
}

.kkm-products__card-title {
    width: 100%;
    max-width: 88%;
    margin: 0 0 16px !important;
    color: #0d3474;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 33px;
    letter-spacing: -0.025em;
    text-align: center;
}

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

.kkm-products__card-desc {
    width: 100%;
    max-width: 82%;
    margin: 0 auto;
    color: #404040;
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}

.kkm-products__visual {
    position: relative;
    z-index: 2;
    right: auto;
    bottom: auto;
    left: auto;
    width: 86%;
    height: auto;
    min-height: 0 !important;
    flex: 1 1 0;
    margin: 18px 7% 5.5%;
    display: flex;
    align-items: flex-end;
    justify-content: center !important;
    overflow: visible;
}

.kkm-products__bg-art {
    inset: 4% 6% 2%;
    background-position: center !important;
    background-size: contain;
}

.kkm-products__product-image {
    position: relative;
    z-index: 2;
    display: block;
    width: var(--kkm-products-visual-width, 76%) !important;
    max-width: 86% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 9px 10px rgba(18, 28, 43, .09));
}

/* v9.0.85: desktop product artwork is exactly 50px larger than the current controlled width. */
@media (min-width: 1025px) {
    .kkm-products__product-image {
        width: calc(var(--kkm-products-visual-width, 76%) + 50px) !important;
        max-width: 100% !important;
    }
}

@media (max-width: 1200px) {
    .kkm-products__card {
        --kkm-products-card-top-space: 62px;
    }

    .kkm-products__content {
        padding-top: calc(var(--kkm-products-card-top-space) + 80px) !important;
    }
}

@media (max-width: 1024px) {
    .kkm-products__card {
        width: 100%;
        max-width: 680px;
        height: var(--kkm-products-card-height-tablet, auto);
        justify-self: center;
    }

    .kkm-products__card-title {
        font-size: 25px;
        line-height: 30px;
    }

    .kkm-products__card-desc {
        font-size: 17px;
    }
}

/* v9.0.86: independent device card-height variables. Desktop/tablet keep
 * their existing automatic ratio until their own control is set. Mobile uses
 * a tighter automatic ratio and removes the old auto bottom margin. */
@media (max-width: 767px) {
    .kkm-products__cards {
        gap: 32px;
    }

    .kkm-products__card {
        --kkm-products-card-top-space: 44px;
        --kkm-products-card-icon-size: 70px;
        aspect-ratio: 1 / 1.08;
        width: min(100%, 430px);
        height: var(--kkm-products-card-height-mobile, auto);
        margin: 0 auto;
    }

    .kkm-products__card::before {
        border-width: 1.5px;
        box-shadow:
            0 11px 25px rgba(12, 36, 76, .09),
            0 2px 5px rgba(12, 36, 76, .05);
    }

    .kkm-products__content {
        padding: calc(var(--kkm-products-card-top-space) + 52px) 7.5% 0 !important;
    }

    .kkm-products__card-title {
        max-width: 90%;
        margin-bottom: 10px !important;
        font-size: 22px;
        line-height: 27px;
    }

    .kkm-products__card-desc {
        max-width: 89%;
        font-size: clamp(12px, 3.85vw, 14px);
        line-height: 1.48;
    }

    .kkm-products__visual {
        right: auto;
        bottom: auto;
        left: auto;
        width: 90%;
        height: auto;
        flex: 0 0 auto;
        align-items: flex-start;
        margin: 16px 5% 14px;
    }

    .kkm-products__product-image {
        width: calc(var(--kkm-products-visual-width, 72%) + 60px) !important;
        max-width: 96% !important;
    }
}

@media (max-width: 390px) {
    .kkm-products__card {
        --kkm-products-card-top-space: 40px;
        --kkm-products-card-icon-size: 70px;
        aspect-ratio: 1 / 1.10;
    }

    .kkm-products__content {
        padding-top: calc(var(--kkm-products-card-top-space) + 46px) !important;
    }

    .kkm-products__card-desc {
        font-size: 12px;
    }

    .kkm-products__card-title {
        font-size: 20px;
        line-height: 25px;
    }

    .kkm-products__visual {
        width: 90%;
        height: auto;
        margin-top: 14px;
    }
}


/* v9.0.90 typography normalization */

.kkm-products__eyebrow {
    font-size: 13px;
    line-height: 1.2;
}

.kkm-products__title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.16;
}

@media (max-width: 1024px) {
    .kkm-products__eyebrow {
        font-size: 13px;
        line-height: 1.2;
    }

    .kkm-products__title {
        font-size: 34px;
        line-height: 1.16;
    }
}

@media (max-width: 767px) {
    .kkm-products__eyebrow {
        font-size: 12px;
        line-height: 1.2;
    }

    .kkm-products__title {
        font-size: 28px;
        line-height: 1.16;
    }
}
