/*
 * Les Privat – PENGALAMAN chatbox polish
 * Height follows quote length; short punches stay compact,
 * long stories grow. Soft ceiling only for extreme outliers.
 * Top-aligned carousel so ragged bottoms read as chat rhythm.
 */

.lp-testi-wrap .owl-stage-outer {
    max-height: none !important;
}

.lp-testi-wrap .owl-stage {
    display: flex !important;
    align-items: flex-start !important;
}

.lp-testi-wrap .owl-item {
    display: flex !important;
    float: none !important;
    height: auto !important;
    align-items: flex-start !important;
}

.lp-testi-wrap .lp-testi-item,
.lp-testi-wrap .testimonial-item.lp-testi-item {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    padding: 0.52vw;
    box-sizing: border-box;
    align-items: flex-start !important;
}

.lp-testi-wrap .lp-testi-bubble-wrap {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Purple chatbox — content-driven height */
.lp-testi-wrap .lp-testi-card.testimonial-text,
.lp-testi-wrap .testimonial-text.lp-testi-card {
    background: #bcb6ff !important;
    border-radius: 1.04vw;
    padding: 1.1rem 1.25rem 1.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    margin-bottom: 1.04vw !important;
    position: relative !important;
    overflow: visible !important;
}

.lp-testi-wrap .lp-testi-quote {
    font-size: clamp(1.5rem, 2.2vw, 2.25rem) !important;
    line-height: 1 !important;
    margin-bottom: 0.35rem !important;
    flex-shrink: 0 !important;
}

.lp-testi-wrap .lp-testi-review {
    font-size: clamp(0.8125rem, 0.94vw, 1rem) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    flex: none !important;
    height: auto !important;
    max-height: none !important;
    text-wrap: pretty;
    /* Soft ceiling for extreme outliers only (~7 lines) */
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 7 !important;
    line-clamp: 7 !important;
    overflow: hidden !important;
}

.lp-testi-wrap .lp-testi-author {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 0.15rem !important;
    margin-left: 3.5vw !important;
    margin-top: 0.25rem !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    flex: none !important;
}

.lp-testi-wrap .lp-testi-author strong {
    font-size: clamp(0.875rem, 1.15vw, 1.125rem) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.lp-testi-wrap .lp-testi-author span {
    font-size: clamp(0.75rem, 0.83vw, 0.875rem) !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
}

/* Matched side fades */
.lp-testi-wrap .testimonial-carousel {
    position: relative;
}

.lp-testi-wrap .testimonial-carousel::before,
.lp-testi-wrap .testimonial-carousel::after {
    width: clamp(1.25rem, 2.2vw, 2rem) !important;
    height: calc(100% - 3rem) !important;
    pointer-events: none;
}

.lp-testi-wrap .testimonial-carousel::before {
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%) !important;
}

.lp-testi-wrap .testimonial-carousel::after {
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%) !important;
}

@media (max-width: 768px) {
    .lp-testi-wrap .lp-testi-card.testimonial-text,
    .lp-testi-wrap .testimonial-text.lp-testi-card {
        border-radius: 12px;
        padding: 16px 14px !important;
        margin-bottom: 14px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .lp-testi-wrap .lp-testi-quote {
        font-size: 28px !important;
    }

    .lp-testi-wrap .lp-testi-review {
        font-size: 13px !important;
        -webkit-line-clamp: 8 !important;
        line-clamp: 8 !important;
    }

    .lp-testi-wrap .lp-testi-author {
        margin-left: 40px !important;
        margin-top: 4px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .lp-testi-wrap .lp-testi-author strong {
        font-size: 15px !important;
    }

    .lp-testi-wrap .lp-testi-author span {
        font-size: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════
   PRESTASI SISWA – compact credential plaques
═══════════════════════════════════════════════════ */

.lp-prestasi-filter {
    margin-top: 8px;
    margin-bottom: 20px;
}

.lp-prestasi-wrap {
    border-radius: 2.71vw;
    padding: 0.5rem 0 0.25rem;
    overflow: hidden;
    margin-bottom: 0.52vw;
    position: relative;
}

/* Soften carousel edge fades on white LP section */
.lp-prestasi-wrap .testimonial-carousel::before {
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 55%);
}

.lp-prestasi-wrap .testimonial-carousel::after {
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 75%);
}

.lp-prestasi-wrap .owl-stage {
    display: flex;
    align-items: stretch;
}

.lp-prestasi-wrap .owl-item {
    display: flex;
    float: none;
    height: auto;
}

.lp-prestasi-card {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Same HOF card structure; keep LP purple fill (#bcb6ff) */
.lp-prestasi-wrap .lp-prestasi-text-card.hof-text-card {
    background: #bcb6ff !important;
    min-height: 140px;
    height: 100%;
    padding: 16px 16px 18px;
    justify-content: flex-start;
}

.lp-prestasi-wrap .lp-prestasi-text-card .hof-text-card-badge {
    background: rgba(29, 10, 128, 0.16);
    color: #1d0a80;
    margin-bottom: 10px;
}

/* Orange name header — beat global/testimonial overrides */
.lp-prestasi-wrap .lp-prestasi-text-card .hof-text-card-name,
.lp-prestasi-wrap .owl-item .lp-prestasi-text-card h5.hof-text-card-name,
.lp-prestasi-wrap .owl-item.center .lp-prestasi-text-card h5.hof-text-card-name {
    color: #1d0a80 !important;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
}

.lp-prestasi-wrap .lp-prestasi-text-card .hof-text-card-achievement,
.lp-prestasi-wrap .owl-item.center .lp-prestasi-text-card .hof-text-card-achievement {
    color: #1d0a80 !important;
    font-size: 14px;
    line-height: 1.4;
}

.lp-prestasi-carousel.lp-prestasi-carousel--compact::before,
.lp-prestasi-carousel.lp-prestasi-carousel--compact::after {
    display: none;
}

.lp-prestasi-carousel.lp-prestasi-carousel--compact .lp-prestasi-text-card {
    max-width: 280px;
    margin-inline: auto;
}

.lp-prestasi-wrap .owl-dots {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.lp-prestasi-wrap .owl-dot {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #1d0a80;
    background: #fff;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    appearance: none;
    -webkit-appearance: none;
}

.lp-prestasi-wrap .owl-dot span {
    display: none;
}

.lp-prestasi-wrap .owl-dot::before {
    content: "";
    position: absolute;
    inset: -14px;
}

.lp-prestasi-wrap .owl-dot.active {
    background: #1d0a80;
    border-color: #1d0a80;
}

.lp-prestasi-wrap .owl-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .lp-prestasi-filter {
        margin-bottom: 16px;
        gap: 6px;
    }

    .lp-prestasi-filter .hof-filter-tab {
        font-size: 13px;
        padding: 8px 12px;
    }

    .lp-prestasi-wrap .lp-prestasi-text-card.hof-text-card {
        min-height: 130px;
        padding: 14px 14px 16px;
        border-radius: 12px;
    }

    .lp-prestasi-wrap .lp-prestasi-text-card .hof-text-card-name {
        font-size: 16px;
    }

    .lp-prestasi-wrap .lp-prestasi-text-card .hof-text-card-achievement {
        font-size: 13px;
    }

    .lp-prestasi-wrap .owl-dots {
        margin-top: 16px;
        gap: 6px;
    }

    .lp-prestasi-wrap .owl-dot {
        width: 8px;
        height: 8px;
    }
}
