/* =========================================
   Huuswart Referenzen – Slider v2.0
   ========================================= */

/* ---- Slider wrap ---- */
.hr-slider-wrap {
    position: relative;
    padding: 10px 0 56px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Manrope', sans-serif;
    box-sizing: border-box;
    width: 100%;
    user-select: none;
}

/* ---- Viewport & track ---- */
.hr-slider-viewport {
    overflow: hidden;
}

.hr-slider-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ---- Single slide ---- */
.hr-slide {
    flex: 0 0 calc(100% / var(--hr-visible, 3));
    box-sizing: border-box;
    padding: 8px 12px;
    display: flex;
}

/* ---- Card ---- */
.hr-card {
    background: #ffffff;
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(13, 34, 81, 0.07);
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
    box-sizing: border-box;
}

.hr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(13, 34, 81, 0.13);
}

/* ---- Stars ---- */
.hr-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.hr-stars span {
    color: #f5c842;
    font-size: 20px;
    line-height: 1;
}

/* ---- Quote text ---- */
.hr-text {
    font-size: 15px;
    line-height: 1.65;
    color: #3a4560;
    margin: 0;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    flex: 1;
    quotes: none;
}

/* ---- Author section ---- */
.hr-author {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef0f8;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px;
}

.hr-name,
.hr-position,
.hr-firma {
    display: block !important;
    width: 100%;
    white-space: normal;
    float: none !important;
}

.hr-name {
    font-size: 15px;
    font-weight: 700;
    color: #0d2251;
    line-height: 1.4;
}

.hr-position {
    font-size: 13px;
    color: #7a8499;
    line-height: 1.4;
}

.hr-firma {
    font-size: 13px;
    color: #3a4560;
    font-weight: 600;
    line-height: 1.4;
}

/* ---- Background quote icon ---- */
.hr-quote-icon {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 80px;
    line-height: 1;
    color: #0d2251;
    opacity: 0.06;
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
}

/* ---- Prev / Next buttons ---- */
.hr-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 28px));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e8ecf4;
    background: #fff;
    color: #0d2251;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px rgba(13, 34, 81, 0.07);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 10;
    padding: 0;
}

.hr-btn:hover {
    background: #0d2251;
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 34, 81, 0.2);
}

.hr-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.hr-btn-prev { left: -20px; }
.hr-btn-next { right: -20px; }

/* ---- Dot navigation ---- */
.hr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
}

.hr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d9e8;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

.hr-dot-active {
    background: #0d2251;
    width: 24px;
    border-radius: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hr-slide {
        flex: 0 0 50%;
    }
    .hr-btn-prev { left: 0; }
    .hr-btn-next { right: 0; }
}

@media (max-width: 640px) {
    .hr-slide {
        flex: 0 0 100%;
    }
    .hr-card {
        padding: 22px 20px 20px;
    }
    .hr-btn-prev { left: 0; }
    .hr-btn-next { right: 0; }
}
