/**
 * JDLogos Testimonials Module - Modern Clean Design
 * Matches site theme: Dark backgrounds, orange accents, professional trucking style
 */

/* ===== MAIN WRAPPER ===== */
.testimonials-wrapper {
    position: relative;
    width: 100%;
    background: #1a1a1a;
    padding: 50px 0 40px;
    margin: 40px 0;
    border-top: 3px solid #ff6600;
    border-bottom: 3px solid #ff6600;
    overflow: hidden;
}

/* Subtle background texture */
.testimonials-wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 102, 0, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ===== HEADING SECTION ===== */
.testimonials-wrapper .testimonial-heading {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

/* Star icon divider */
.testimonials-wrapper .information-block {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.testimonials-wrapper .information-block .information-outline {
    position: relative;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials-wrapper .information-block .information-outline i {
    font-size: 24px;
    color: #ff6600;
    background: #1a1a1a;
    border: 2px solid #ff6600;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.testimonials-wrapper .information-block .information-outline i:hover {
    background: #ff6600;
    color: #1a1a1a;
    transform: rotate(360deg);
}

/* Horizontal lines on sides of star */
.testimonials-wrapper .information-block .information-outline:before,
.testimonials-wrapper .information-block .information-outline:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 2px;
    background: linear-gradient(to right, #333, #ff6600);
}

.testimonials-wrapper .information-block .information-outline:before {
    left: 10%;
}

.testimonials-wrapper .information-block .information-outline:after {
    right: 10%;
    background: linear-gradient(to left, #333, #ff6600);
}

/* ===== CAROUSEL SECTION ===== */
.testimonials-wrapper #testimonials-carousel {
    position: relative;
    z-index: 2;
    padding: 0 15px;
    margin-bottom: 0;
}

.testimonials-wrapper #testimonials-carousel .owl-wrapper-outer {
    border: none;
    box-shadow: none;
}

/* Individual testimonial item */
.testimonials-wrapper #testimonials-carousel .item {
    text-align: center !important;
    padding: 20px 15px;
}

.testimonials-wrapper #testimonials-carousel .item .container {
    text-align: center !important;
}

.testimonials-wrapper #testimonials-carousel .testimonial-info {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center !important;
}

/* ===== TESTIMONIAL TEXT ===== */
.testimonials-wrapper #testimonials-carousel .testimonial-advice {
    font-family: 'Open Sans', 'Arial', sans-serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.7;
    color: #e5e5e5;
    margin-bottom: 30px;
    text-align: center !important;
    position: relative;
    padding: 0 20px;
}

/* Remove all quote marks */
.testimonials-wrapper #testimonials-carousel .testimonial-advice:before,
.testimonials-wrapper #testimonials-carousel .testimonial-advice:after,
.testimonials-wrapper .testimonial-advice:before,
.testimonials-wrapper .testimonial-advice:after {
    display: none !important;
    content: none !important;
}

/* ===== AUTHOR NAME ===== */
.testimonials-wrapper #testimonials-carousel .testimonial-by {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    text-align: center !important;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Remove decorative lines on small screens by default */
.testimonials-wrapper #testimonials-carousel .testimonial-by:before,
.testimonials-wrapper #testimonials-carousel .testimonial-by:after {
    display: none;
}

/* Optional company/truck info */
.testimonials-wrapper .testimonial-company {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    font-weight: 400;
    text-align: center;
}

/* Star rating */
.testimonials-wrapper .testimonial-rating {
    margin-top: 15px;
    font-size: 16px;
    color: #ff6600;
    letter-spacing: 3px;
    text-align: center;
}

/* ===== NAVIGATION ARROWS ===== */
.testimonials-wrapper .owl-carousel .owl-controls .owl-buttons div {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 102, 0, 0.9);
    color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid transparent;
}

.testimonials-wrapper .owl-carousel .owl-controls .owl-buttons div:hover {
    background: #ff6600;
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.testimonials-wrapper .owl-carousel .owl-controls .owl-buttons .owl-prev {
    left: 20px;
}

.testimonials-wrapper .owl-carousel .owl-controls .owl-buttons .owl-next {
    right: 20px;
}

/* ===== PAGINATION DOTS ===== */
.testimonials-wrapper .owl-pagination {
    margin-top: 25px;
    text-align: center;
}

.owl-pagination .owl-page {
    display: inline-block;
    margin: 0 5px;
}

.owl-pagination .owl-page span {
    display: block;
    width: 10px;
    height: 10px;
    background: #333;
    border: 2px solid #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.owl-pagination .owl-page span:hover {
    background: rgba(255, 102, 0, 0.5);
    border-color: #ff6600;
}

.owl-pagination .owl-page.active span {
    background: #ff6600 !important;
    border-color: #ff6600;
    width: 14px;
    height: 14px;
}

/* ===== TRUSTPILOT WIDGET ===== */
.testimonials-wrapper .testimonial-trustpilot {
    text-align: center !important;
    padding: 30px 0 0;
    position: relative;
    z-index: 2;
}

.testimonials-wrapper #tp-widget-wrapper {
    display: inline-block;
    background: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    border: 2px solid #ff6600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.testimonials-wrapper #tp-widget-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.testimonials-wrapper #profile-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.testimonials-wrapper #tp-widget-rating {
    color: #191919;
    font-size: 14px;
    font-weight: 400;
}

.testimonials-wrapper #tp-widget-rating strong {
    color: #ff6600;
    font-weight: 700;
    font-size: 16px;
}

.testimonials-wrapper #tp-widget-logo {
    max-width: 110px;
    min-width: 90px;
}

/* Trustpilot logo colors */
.testimonials-wrapper .tp-logo__text { fill: #191919; }
.testimonials-wrapper .tp-logo__star { fill: #00B67A; }
.testimonials-wrapper .tp-logo__star-notch { fill: #005128; }

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and below (991px) */
@media (max-width: 991px) {
    .testimonials-wrapper {
        padding: 40px 0 30px;
    }
    
    .testimonials-wrapper .testimonial-heading {
        font-size: 28px;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-advice {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-by {
        font-size: 16px;
    }
    
    .testimonials-wrapper .owl-carousel .owl-controls .owl-buttons div {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .testimonials-wrapper .owl-carousel .owl-controls .owl-buttons .owl-prev {
        left: 10px;
    }
    
    .testimonials-wrapper .owl-carousel .owl-controls .owl-buttons .owl-next {
        right: 10px;
    }
}

/* Mobile landscape and below (768px) */
@media (max-width: 768px) {
    .testimonials-wrapper {
        padding: 35px 0 25px;
        margin: 30px 0;
    }
    
    .testimonials-wrapper .testimonial-heading {
        font-size: 24px;
        letter-spacing: 1.5px;
    }
    
    .testimonials-wrapper .information-block .information-outline:before,
    .testimonials-wrapper .information-block .information-outline:after {
        width: 30%;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-info {
        padding: 0 20px;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-advice {
        font-size: 17px;
        line-height: 1.6;
        padding: 0 10px;
    }
}

/* Mobile portrait (640px) */
@media (max-width: 640px) {
    .testimonials-wrapper {
        padding: 30px 0 20px;
        margin: 20px 0;
    }
    
    .testimonials-wrapper .testimonial-heading {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .testimonials-wrapper .information-block {
        margin-bottom: 30px;
    }
    
    .testimonials-wrapper .information-block .information-outline i {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-advice {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-by {
        font-size: 15px;
        letter-spacing: 1px;
    }
    
    .testimonials-wrapper .owl-carousel .owl-controls .owl-buttons div {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .testimonials-wrapper .owl-carousel .owl-controls .owl-buttons .owl-prev {
        left: 5px;
    }
    
    .testimonials-wrapper .owl-carousel .owl-controls .owl-buttons .owl-next {
        right: 5px;
    }
    
    .testimonials-wrapper #tp-widget-wrapper {
        padding: 10px 18px;
    }
    
    .testimonials-wrapper #tp-widget-rating {
        font-size: 13px;
    }
    
    .testimonials-wrapper #tp-widget-logo {
        max-width: 95px;
        min-width: 80px;
    }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
    .testimonials-wrapper {
        padding: 25px 0 20px;
    }
    
    .testimonials-wrapper .testimonial-heading {
        font-size: 20px;
    }
    
    .testimonials-wrapper .information-block .information-outline:before,
    .testimonials-wrapper .information-block .information-outline:after {
        width: 25%;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-info {
        padding: 0 10px;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-advice {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .testimonials-wrapper #testimonials-carousel .testimonial-by {
        font-size: 14px;
    }
    
    .testimonials-wrapper #tp-widget-wrapper {
        padding: 8px 15px;
    }
    
    .testimonials-wrapper #tp-widget-rating {
        font-size: 12px;
    }
    
    .testimonials-wrapper #tp-widget-rating strong {
        font-size: 14px;
    }
}

/* ===== FORCE CENTER ALIGNMENT (IMPORTANT) ===== */
.testimonials-wrapper #testimonials-carousel .item,
.testimonials-wrapper #testimonials-carousel .item .container,
.testimonials-wrapper #testimonials-carousel .testimonial-info,
.testimonials-wrapper #testimonials-carousel .testimonial-advice,
.testimonials-wrapper #testimonials-carousel .testimonial-by,
.testimonials-wrapper .testimonial-trustpilot {
    text-align: center !important;
}
