/* Základní reset a společné styly */
.hp-slider-top {
    width: 100%;
    position: relative;
    aspect-ratio: 844 / 674;
}

.hp-slider-top-content {
    position: relative;
    width: 100%;
}

.hp-slide-top {
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-color: #f8f9fa;
    border-top-left-radius: 45px;
    border-top-right-radius: 45px;
    border-bottom-left-radius: 45px;
}

.hp-slide-top.active {
    opacity: 1;
}

.hp-slide-top-box {
    background:#2D1158;
    padding: 40px 25px;
    border-radius: 15px;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    right: 0;
    bottom: 0;
}

.hp-slide-top img {
    width: 100%;
    height: 100%;
}

/* Ikona uvozovek */
.quote-icon {
    font-size: 48px;
    color: #fff;
    opacity: 0.7;
    line-height: 1;
    font-family: serif;
}

.hp-slide-top-box-inner p {
    font-size: 17px;
    line-height: 1.5;
    color: #fff;
}

.hp-slide-top-box-inner span {
    font-size: 17px;
    line-height: 1.5;
    color: #fff;
}

/* Ovládací prvky pro slider 1 */
.hp-slider-top-control {
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    display: flex;
    gap: 7px;
    padding: 0 20px;
    pointer-events: none;
}

.hp-slider-top-control a {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 53px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    text-decoration: none;

}

.hp-slider-top-control a:hover {
    background: rgba(255, 255, 255, 1);
}

/* Ikony šipek */
.arrow-icon {
    font-size: 24px;
    color: #007cba;
    font-weight: bold;
    line-height: 1;
}

/* ===== SLIDER 2 - USER CASES ===== */
.hp-user-case {
    width: 100%;
    position: relative;

}

.hp-user-case-content {
    opacity: 0;
    transition: all 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.hp-user-case-content.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: all;
}

.hp-user-case-item {
    display: grid;
    grid-template-columns: auto 767px;
    align-items: stretch;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 1300px) {
   .hp-user-case-item {
        grid-template-columns: auto 500px;
    }
}

@media (max-width: 1000px) {
   .hp-user-case-item {
        grid-template-columns: auto 350px;
    }
}

@media (max-width: 800px) {
   .hp-user-case-item {
        grid-template-columns: 1fr;
    }

    .hp-user-case-item-right {
        display: none;
    }

    .hp-user-case-item-left {
        border-radius: 40px;
    }
}

.hp-user-case p:empty {
    display: none;
}

.hp-user-case-item-left {
    padding: 5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #341664;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

@media (max-width: 800px) {
   .hp-user-case-item-left {
    padding: 2.5rem 1.75rem;
    }
}

.hp-user-case-item-left h3 {
    color: white;
    font-size: var(--wp--preset--font-size--x-large);
    margin: 0 0 2.5rem 0;
}

.hp-user-case-item-left p {
    color: white;
    margin: 0;
}

.hp-user-case-client {
    font-size: var(--wp--preset--font-size--medium);
    color: white;
    margin: 0rem 0 1rem;
    font-weight: 500;
}

.hp-user-case-item-left a {
   font-size: 15px;
    padding: 15px 19px;
    border: 1px solid #6D58F3;
    border-radius: 25px;
    background-color: transparent;
    text-decoration: none;
    color: white;
    max-width: 100px;
    text-align: center;
    display: block;
    margin-top: 2rem;
}

.hp-user-case-item-left a:hover {
    background-color: var(--wp--preset--color--accent-1);
      color: white;
}

.hp-user-case-item-right {
     position: relative;
    width: 100%;
    height: 100%; /* nebo např. pevně 400px, nebo výška podle kontextu */
    overflow: hidden;
}

.hp-user-case-item-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    display: block;
}

.hp-user-case-item-box {
    text-align: center;
    color: white;
    padding: 30px;
    font-size: 16px;
    line-height: 1.4;
}

.hp-user-case-item-box strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Ovládací puntíky pro slider 2 */
.hp-user-case-control {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.dot-control {
        background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 13px;
    height: 13px;
}

.dot-control span {
display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #707070;
    transition: all 0.3s ease;
}

.dot-control.active span {
     background: #6D58F3;
}

.dot-control:hover span {
  background: #6D58F3;
}

/* Předchozí CSS zůstává, jen měníme slider 3 část */

/* ===== SLIDER 3 - REVIEWS (FADE VERSION) ===== */
.hp-review {
    width: 100%;
    margin: 40px 0;
    position: relative;
}

.hp-review p:empty {
    display: none;
}

.hp-review-container {
    position: relative;
    height: 400px;
}

.hp-review-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    transform: translateY(20px); /* Jemný posun shora při fade */
   
}

.hp-review-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hp-review-item {
    flex: 1;
    background: #fff;
    border: 1px solid #E4DBF4;
    border-radius: 35px;
    padding: 2rem 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hp-review-item:hover {
}

.hp-review-item a {
   font-size: 15px;
    padding: 15px 19px;
    border: 1px solid #6D58F3;
    border-radius: 25px;
    background-color: white;
    text-decoration: none;
    color: black;
        max-width: 100px;
    text-align: center;
}

.hp-review-item a:hover {
       background-color: var(--wp--preset--color--accent-1);
      color: white;
}

.hp-review-item p:empty {
    display: none;
}

.hp-review-item p {
    margin-top: 2em;
    height: 140px;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.5rem;
}

.hp-review-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #707070;
}

.hp-review-autor-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-review-autor-meta img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.hp-review-autor {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 2px;
}

.hp-review-autor-position {
    font-size: 12px;
    color: #777;
}

.hp-review-autor-star {
    display: flex;
    align-items: center;
}

.stars {
    font-size: 18px;
    color: #ffd700;
    letter-spacing: 2px;
}

/* Ovládací puntíky pro slider 3 */
.hp-review-control {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.review-dot {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 13px;
    height: 13px;
}

.review-dot span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #707070;
    transition: all 0.3s ease;
}

.review-dot.active span {
    background: #6D58F3;
}

.review-dot:hover span {
    background: #6D58F3;
}


/* Další fallback možnosti pro různé prohlížeče */
@supports not (backdrop-filter: blur(5px)) {
    .hp-slide-top-box {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* ===== SLIDER 4 - NEKONEČNÁ ANIMACE LOG ===== */
.hp-logo-rotate {
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    border-radius: 15px;
    padding: 30px 0;
    position: relative;
}

.hp-logo-rotate::before,
.hp-logo-rotate::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.hp-logo-rotate::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.hp-logo-rotate::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.hp-logo-track {
    display: flex;
    align-items: center;
    gap: 25px;
    will-change: transform;
    padding: 0 10px;
}

.hp-logo-track img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 10px;
    border: 1px solid #E4DBF4;
    border-radius: 15px;
}

.hp-logo-track img:hover {
}

/* Responzivní design pro slider 4 */
@media (max-width: 768px) {
    .hp-logo-rotate {
        padding: 20px 0;
        margin: 20px 0;
    }

    .hp-logo-track {
        gap: 15px;
    }

    .hp-logo-track img {
        width: 120px;
        height: 65px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .hp-logo-rotate {
        padding: 15px 0;
        margin: 15px 0;
    }

    .hp-logo-track {
        gap: 10px;
    }

    .hp-logo-track img {
        width: 100px;
        height: 55px;
        padding: 6px;
    }
}


/* Prefetch optimalizace pro lepší výkon animace */
.hp-logo-rotate {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hp-logo-track {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Zajištění smooth animace napříč prohlížeči */
@supports (will-change: transform) {
    .hp-logo-track {
        will-change: transform;
    }
}

/* Fallback pro starší prohlížeče */
@media (prefers-reduced-motion: reduce) {
    .hp-logo-track {
        animation: none !important;
    }

    .hp-logo-rotate .hp-logo-track {
        transform: none;
        animation: none;
    }
}
