/* ===============================
   KYMOR SERVICES CUSTOM TAB ICONS
   Desktop: 5 + 5
   Tablet/Mobile: 4 + 4 + centered 2
================================ */

.kymor-services-tabs-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 20px 35px;
}

.kymor-service-tabs-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 70px 70px;
    align-items: start;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
}

.kymor-service-tab {
    width: 170px;
    min-height: 205px;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    appearance: none;
    -webkit-appearance: none;

    text-align: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.kymor-service-tab img {
    width: 150px;
    height: 150px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.kymor-service-tab span {
    display: block;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    color: #222222;
    font-family: inherit;
    pointer-events: none;
}

.kymor-service-tab:hover {
    transform: translateY(-4px);
}

.kymor-service-tab:hover span,
.kymor-service-tab.is-active span {
    color: #d71920;
}

.kymor-service-tab.is-active img {
    transform: scale(1.04);
}

.kymor-service-tab:focus-visible {
    outline: 2px solid #d71920;
    outline-offset: 8px;
    border-radius: 14px;
}

/* Services page bullet dots */
.service_page_1 ul li::marker,
.service_page_2 ul li::marker,
.service_page_3 ul li::marker,
.service_page_4 ul li::marker,
.service_page_5 ul li::marker,
.service_page_6 ul li::marker,
.service_page_7 ul li::marker,
.service_page_8 ul li::marker,
.service_page_9 ul li::marker,
.service_page_10 ul li::marker {
    color: #E71413;
}

/* Laptop / smaller desktop */
@media only screen and (max-width: 1200px) {
    .kymor-service-tabs-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 55px 35px;
    }

    .kymor-service-tab {
        width: 145px;
        min-height: 180px;
    }

    .kymor-service-tab img {
        width: 125px;
        height: 125px;
    }

    .kymor-service-tab span {
        font-size: 14px;
    }
}

/* Tablet + Mobile: 4, 4, centered 2 */
@media only screen and (max-width: 900px) {
    .kymor-services-tabs-wrapper {
        padding: 30px 12px 28px;
    }

    .kymor-service-tabs-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px 14px;
    }

    .kymor-service-tab {
        width: 100%;
        min-height: 145px;
    }

    .kymor-service-tab img {
        width: clamp(70px, 16vw, 105px);
        height: clamp(70px, 16vw, 105px);
    }

    .kymor-service-tab span {
        margin-top: 9px;
        font-size: clamp(10px, 2.3vw, 13px);
        line-height: 1.2;
        font-weight: 600;
    }

    .kymor-service-tab.services-tab-9 {
        grid-column: 2;
    }

    .kymor-service-tab.services-tab-10 {
        grid-column: 3;
    }
}

/* Mobile fine tuning */
@media only screen and (max-width: 600px) {
    .kymor-services-tabs-wrapper {
        padding: 24px 8px 24px;
    }

    .kymor-service-tabs-row {
        gap: 24px 8px;
    }

    .kymor-service-tab {
        min-height: 118px;
    }

    .kymor-service-tab img {
        width: clamp(58px, 18vw, 78px);
        height: clamp(58px, 18vw, 78px);
    }

    .kymor-service-tab span {
        margin-top: 7px;
        font-size: clamp(8.5px, 2.6vw, 10.5px);
        line-height: 1.15;
    }
}

/* Very small mobile */
@media only screen and (max-width: 380px) {
    .kymor-service-tabs-row {
        gap: 20px 6px;
    }

    .kymor-service-tab {
        min-height: 106px;
    }

    .kymor-service-tab img {
        width: 56px;
        height: 56px;
    }

    .kymor-service-tab span {
        font-size: 8.5px;
    }
}