
.tpservshow__thumb{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(100%, -50%);

    width: 50%;
    height: 100%;          /* alebo konkrétnu výšku */

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transition:
        transform .38s cubic-bezier(.22, .61, .36, 1),
        opacity .24s ease,
        visibility .24s ease;
}

.tpservshow__thumb img{
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.tpservshow.active,
.tpservshow {
    min-width: 0;
    height: auto;
    min-height: 450px;
    transition:
        flex-grow .38s cubic-bezier(.22, .61, .36, 1),
        background-color .25s ease,
        color .25s ease;
}

.tp-services-showcase {
    align-items: stretch;
}

.tpservshow__info-wrap,
.tpservshow__content,
.tpservshow__title,
.tpservshow__link {
    min-width: 0;
}

.tpservshow__title,
.tpservshow__content p,
.tpservshow_list a {
    overflow-wrap: anywhere;
}

.tpservshow__link {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.tpservshow__link a {
    display: inline-flex;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}

.tpservshow.active {
    background: var(--tp-theme-color);
}

.tpservshow.active p,
.tpservshow.active h3 {
    color:#FFF;
}

.tpservshow__icon svg,
.tpservshow__icon img {
    height:40px;
    width: auto;
}

.tpservshow.active h3:hover  a{
    color:#fff !important;
    text-decoration: underline;
}

.tpservshow .tpservshow__icon svg path {
    fill:var(--tp-theme-color) !important;
}

.tpservshow.active .tpservshow__icon svg path {
    fill:#fff !important;
}

.tpservshow .tpservshow__link a {
    border-color: transparent;
    background-color: var(--tp-theme-color);
    color: var(--tp-white-color);
}

.tpservshow.active .tpservshow__link a {
    border-color: transparent;
    background-color: #fff;
    color:var(--tp-theme-color);
}

.tpservshow.active .tpservshow__link a:hover {
    border-color: transparent;
    background-color: var(--tp-secoundery-color);
    color:var(--tp-theme-color);
}


@media (min-width: 1200px) {
    .tp-services-showcase.two > .tpservshow,
    .tp-services-showcase.three > .tpservshow,
    .tp-services-showcase.four > .tpservshow {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        margin-bottom: 0;
        will-change: flex-grow;
    }

    .tp-services-showcase.two > .tpservshow.active {
        flex-grow: 1.85;
    }

    .tp-services-showcase.three > .tpservshow.active {
        flex-grow: 2;
    }

    .tp-services-showcase.four > .tpservshow.active {
        flex-grow: 2.5;
    }

    .tp-services-showcase.two .tpservshow__info-wrap,
    .tp-services-showcase.three .tpservshow__info-wrap,
    .tp-services-showcase.two .tpservshow__link,
    .tp-services-showcase.three .tpservshow__link {
        width: 260px;
        max-width: 100%;
    }

    .tp-services-showcase.four .tpservshow__info-wrap,
    .tp-services-showcase.four .tpservshow__link {
        width: 230px;
        max-width: 100%;
    }
}

.tpservshow__thumb {
    width: 50%;
}

.tpservshow.active .tpservshow__thumb {
    right: 0;
    transform: translate(0, -50%);
}

.tpservshow_list {
    margin:30px 0 0 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.tpservshow_list a {
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: var(--tp-theme-color);
    margin-bottom:5px;
}

.tpservshow_list a:before {
    content:'';
    display: flex;
    width: 6px;
    height: 6px;
    background-color: transparent;
    border: 1px solid var(--tp-theme-color);;
    border-radius:50%;
    position: absolute;
    left:0;
}

.active .tpservshow_list a {
    color:#fff;
    transition: all 0.2s ease-in-out;
}

.active .tpservshow_list a:before {
    border: 1px solid #fff;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.active .tpservshow_list a:hover {
    color: var(--tp-secoundery-color);
}

.active .tpservshow_list a:hover:before {
    background-color: var(--tp-secoundery-color);
    border: 1px solid var(--tp-secoundery-color);
}

@media (max-width: 1199px) {
    .tp-services-showcase.two,
    .tp-services-showcase.three,
    .tp-services-showcase.four {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 24px;
    }

    .tp-services-showcase .tpservshow,
    .tp-services-showcase .tpservshow.active {
        width: 100%;
        height: auto;
        min-height: 400px;
        margin-bottom: 0;
    }

    .tp-services-showcase .tpservshow.active .tpservshow__info-wrap {
        width: 48%;
    }
}

@media (max-width: 991px) {
    .tp-services-showcase.two,
    .tp-services-showcase.three,
    .tp-services-showcase.four {
        grid-template-columns: 1fr;
    }

    .tp-services-showcase .tpservshow,
    .tp-services-showcase .tpservshow.active {
        min-height: 360px;
    }

    .tpservshow_list a {
        padding-left: 0;
    }

    .tpservshow_list a::before {
        display: none;
        content: none;
    }
}

@media (max-width: 767px) {
    .tp-services-showcase,
    .tp-services-showcase.two,
    .tp-services-showcase.three,
    .tp-services-showcase.four {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-bottom: 0;
    }

    .tp-services-showcase .tpservshow,
    .tp-services-showcase .tpservshow.active {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 26px;
    }

    .tp-services-showcase .tpservshow__info-wrap,
    .tp-services-showcase .tpservshow.active .tpservshow__info-wrap {
        width: 100%;
    }

    .tp-services-showcase .tpservshow__thumb,
    .tp-services-showcase .tpservshow.active .tpservshow__thumb {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        margin-top: 24px;
        overflow: hidden;
        border-radius: 16px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .tp-services-showcase .tpservshow__thumb img {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .tp-services-showcase .tpservshow__link {
        margin-top: 24px;
    }
}

@media (max-width: 575px) {
    .tp-services-showcase .tpservshow,
    .tp-services-showcase .tpservshow.active {
        padding: 22px 18px;
    }

    .tpservshow_list a {
        align-items: flex-start;
    }

}
