/* LinguoPrep Testimonial Carousel */

.lpt-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
}

.lpt-carousel-inner {
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    z-index: 0 !important;
}

.lpt-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    transition: transform 0.4s ease;
    will-change: transform;
}

.lpt-slide {
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 0 10px;
    /* width is set per-widget by inline <style> from PHP with !important */
}

/* Card */
.lpt-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* Stars */
.lpt-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1;
}
.lpt-star.filled { color: #FF0100; }
.lpt-star.empty  { color: #d0d0d0; }
.lpt-star.half   { color: #FF0100; }

/* Title */
.lpt-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.4;
}
.lpt-title em     { font-style: italic; }
.lpt-title strong { font-weight: 900; }

/* Description */
.lpt-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}
.lpt-desc p            { margin: 0 0 8px; }
.lpt-desc p:last-child { margin-bottom: 0; }
.lpt-desc strong { font-weight: 700; }
.lpt-desc em     { font-style: italic; }
.lpt-desc a      { color: #FF0100; text-decoration: underline; }

/* Author */
.lpt-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}
.lpt-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffe0e0;
    color: #CC0000;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.lpt-author-info  { display: flex; flex-direction: column; gap: 2px; }
.lpt-author-name  { font-size: 13px; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.lpt-author-desig { font-size: 12px; color: #999; line-height: 1.3; }

/* Navigation */
.lpt-nav-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}
@media (max-width: 767px) { .lpt-nav-row { justify-content: center; } }

.lpt-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 22px;
    line-height: 1;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s, border-color .2s, color .2s;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    user-select: none;
}
.lpt-nav-btn:hover,
.lpt-nav-btn:focus {
    background: #FF0100;
    border-color: #FF0100;
    color: #fff;
    outline: none;
}

/* Dots */
.lpt-dots-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}
@media (max-width: 767px) { .lpt-dots-wrap { margin-right: 0; } }

.lpt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background .2s, width .2s, border-radius .2s;
    flex-shrink: 0;
}
.lpt-dot.active {
    width: 22px;
    border-radius: 4px;
    background: #FF0100;
}

/* Fade mode */
.lpt-wrapper.lpt-fade .lpt-carousel-inner { position: relative; }
.lpt-wrapper.lpt-fade .lpt-slide {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.lpt-wrapper.lpt-fade .lpt-slide.active {
    opacity: 1;
    z-index: 1;
    position: relative !important;
}
