/**
 * HRB Testimonial Carousel
 *
 * @package HRB_Testimonial_Carousel
 * @version 1.0.0
 */

.hrb-testimonial-carousel {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.hrb-testimonial-empty {
    padding: 40px;
    text-align: center;
    color: #9aa1b3;
}

/* ============================================
   Swiper container
   ============================================ */

.hrb-testimonial-carousel .swiper {
    width: 100%;
    overflow: hidden;
    padding: 6px 10px 6px;
}

.hrb-testimonial-carousel .swiper-slide {
    height: auto;
    display: flex;
}

/* ============================================
   Card
   ============================================ */

.hrb-testimonial-card {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 25px;
    padding: 45px 30px 30px;
    border: none;
    box-shadow: 0 0px 40px -10px rgba(20, 30, 60, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hrb-testimonial-card.is-featured {
    border-color: #2D9BF0;
    box-shadow: 0 12px 32px rgba(45, 155, 240, 0.18);
}

.hrb-testimonial-quote-icon {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #e3e8f5;
    width: 50px;
    opacity: 0.3;
}
.hrb-testimonial-body {
    flex: 1;
    min-height: 110px;
    margin-bottom: 18px;
    padding-right: 36px;
}

/* ============================================
   Quote text
   ============================================ */

.hrb-testimonial-quote {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #5b6478;

    /* Clamp to N lines, matching the reference design's truncated paragraph */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--hrb-quote-lines, 5);
    overflow: hidden;
}

.hrb-testimonial-missing-media {
    font-style: italic;
    opacity: 0.7;
}

/* ============================================
   Audio testimonial
   ============================================ */

.hrb-testimonial-audio {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hrb-testimonial-media-caption {
    margin: 0;
    font-size: 13px;
    color: #9aa1b3;
}

.hrb-testimonial-audio-player {
    width: 100%;
    height: 38px;
}

/* ============================================
   Video testimonial
   ============================================ */

.hrb-testimonial-video {
    border-radius: 10px;
    overflow: hidden;
    background: #0d1320;
}

.hrb-testimonial-video-player {
    display: block;
    width: 100%;
    max-height: 220px;
    border-radius: 10px;
}

.hrb-testimonial-video-frame-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.hrb-testimonial-video-frame-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   Divider
   ============================================ */

.hrb-testimonial-divider {
    position: relative;
    height: 1px;
    width: 100%;
    background-color: #eef0f4;
    margin-bottom: 28px;
}
.hrb-testimonial-divider:before {
    position: absolute;
    left: 0;
    top: -1px;
    width: 20%;
    background: #ff8c00;
    content: '';
    height: 3px;
}
 .elementor-widget-hrb_testimonial_carousel .swiper-wrapper {
    position: relative;
    padding: 20px 0 !important;
}

/* ============================================
   Author block
   ============================================ */

.hrb-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hrb-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 80% !important;
    object-fit: cover;
    flex-shrink: 0;
}

.hrb-testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hrb-testimonial-name {
    font-size: 14px;
    font-weight: 700;
    color: #1b2236;
    line-height: 1.3;
}

.hrb-testimonial-role {
    font-size: 12px;
    color: #9aa1b3;
    line-height: 1.3;
}

/* ============================================
   Navigation Arrows
   ============================================ */

.hrb-testimonial-carousel .swiper-button-next,
.hrb-testimonial-carousel .swiper-button-prev {
    width: 38px;
    height: 38px;
    background-color: #f1f3f7;
    border-radius: 50%;
    color: #aab0bf;
    transition: all 0.3s ease;
    top: 45%;
}

.hrb-testimonial-carousel .swiper-button-next:hover,
.hrb-testimonial-carousel .swiper-button-prev:hover {
    background-color: #3a3f4b;
    color: #ffffff;
}

.hrb-testimonial-carousel .swiper-button-next:after,
.hrb-testimonial-carousel .swiper-button-prev:after {
    font-size: 14px;
    font-weight: 700;
}

.hrb-testimonial-carousel .swiper-button-next {
    right: -10px;
}

.hrb-testimonial-carousel .swiper-button-prev {
    left: -10px;
}

@media (max-width: 768px) {
    .hrb-testimonial-carousel .swiper-button-next,
    .hrb-testimonial-carousel .swiper-button-prev {
        display: none;
    }
}

/* ============================================
   Pagination Dots
   ============================================ */

.hrb-testimonial-carousel .swiper-pagination {
    bottom: 0;
}

.hrb-testimonial-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #d7dbe4;
    opacity: 1;
    transition: all 0.3s ease;
}

.hrb-testimonial-carousel .swiper-pagination-bullet-active {
    background-color: #3a3f4b;
    width: 20px;
    border-radius: 4px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 480px) {
    .hrb-testimonial-card {
        padding: 22px 18px 18px;
    }

    .hrb-testimonial-body {
        padding-right: 30px;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.hrb-testimonial-carousel .swiper-slide:focus-visible {
    outline: 2px solid #2D9BF0;
    outline-offset: 2px;
}

/* ============================================
   RTL Support
   ============================================ */

.rtl .hrb-testimonial-quote-icon {
    right: auto;
    left: 22px;
}

.rtl .hrb-testimonial-body {
    padding-right: 0;
    padding-left: 36px;
}

.rtl .hrb-testimonial-carousel .swiper-button-next {
    left: -10px;
    right: auto;
}

.rtl .hrb-testimonial-carousel .swiper-button-prev {
    right: -10px;
    left: auto;
}

.rtl .hrb-testimonial-carousel .swiper-button-next:after {
    content: 'prev';
}

.rtl .hrb-testimonial-carousel .swiper-button-prev:after {
    content: 'next';
}
