/**
 * Vactours Testimonials Carousel Styles
 * Enhanced testimonials with Swiper integration
 * Updated to match unified color scheme
 */

/* CSS Variables Override - Use unified color scheme */
:root {
    --vactours-primary: var(--primary-color, #247ba0);      /* Ocean Blue */
    --vactours-secondary: var(--accent-color, #ffc107);     /* Golden Yellow */
    --vactours-heading: var(--heading-color, #0e80bf);      /* Blue for headings */
    --vactours-dark: var(--text-primary, #333333);          /* Dark text */
    --vactours-light: var(--background-light, #f8f9fa);     /* Light background */
    --vactours-white: var(--background-white, #ffffff);     /* White background */
    --vactours-gray: var(--text-secondary, #666666);        /* Medium gray text */
    --vactours-border: var(--border-light, #e7e7e7);        /* Light borders */
    --vactours-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --vactours-shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --vactours-border-radius: 12px;
    --vactours-transition: all 0.3s ease;
}

/* Enhanced Testimonials Carousel Styles */
.vactours-testimonials-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    position: relative;
}

.vactours-testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}


.vactours-testimonials-slider {
    overflow: hidden;
    border-radius: 12px;
}

.vactours-testimonials-slider .swiper-slide {
    height: auto;
    display: flex;
}

.vactours-testimonial-card {
    background: var(--vactours-white);
    border-radius: var(--vactours-border-radius);
    box-shadow: var(--vactours-shadow);
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--vactours-transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.vactours-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vactours-primary) 0%, var(--vactours-secondary) 100%);
}

.vactours-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--vactours-shadow-hover);
}

.vactours-testimonial-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    transition: var(--vactours-transition);
}

.vactours-testimonial-image:hover {
    transform: scale(1.02);
    box-shadow: var(--vactours-shadow-hover);
}

.vactours-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--vactours-transition);
}

.vactours-testimonial-image:hover img {
    transform: scale(1.05);
}

.vactours-testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vactours-testimonial-rating {
    text-align: center;
    margin-bottom: 12px;
}

.vactours-testimonial-rating .vactours-stars span {
    color: var(--vactours-secondary);
    font-size: 1.2rem;
}

.vactours-testimonial-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vactours-dark);
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.3;
}

.vactours-testimonial-text {
    flex: 1;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    text-align: justify;
    margin-bottom: 8px;
    font-size: 16px;
    position: relative;
    /* Text ellipsis for 5 lines */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 5); /* line-height * number of lines */
}

.vactours-testimonial-text::before {
    content: '"';
    font-size: 2rem;
    color: var(--vactours-primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    left: -15px;
    top: -5px;
}

.vactours-testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--vactours-primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    right: -15px;
    bottom: -5px;
}

.vactours-testimonial-author {
    text-align: center;
    border-top: 1px solid var(--vactours-light);
    padding-top: 10px;
    margin-top: auto;
}

.vactours-author-name {
    margin-bottom: 8px;
}

.vactours-author-name strong {
    color: var(--vactours-dark);
    font-size: 1rem;
}

.vactours-author-details {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--vactours-gray);
}

.vactours-author-details span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.vactours-testimonial-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--vactours-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    border: 1px solid var(--vactours-primary);
    border-radius: 20px;
    transition: var(--vactours-transition);
    text-align: center;
}

.vactours-testimonial-link:hover {
    background: var(--vactours-primary);
    color: var(--vactours-white);
    transform: translateY(-1px);
}

/* Swiper Navigation Styles */
.vactours-testimonials-slider .swiper-button-next,
.vactours-testimonials-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--vactours-white);
    box-shadow: var(--vactours-shadow);
    color: var(--vactours-primary);
    transition: var(--vactours-transition);
    z-index: 10;
}

.vactours-testimonials-slider .swiper-button-next::after,
.vactours-testimonials-slider .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

.vactours-testimonials-slider .swiper-button-next:hover,
.vactours-testimonials-slider .swiper-button-prev:hover {
    background: var(--vactours-primary);
    color: var(--vactours-white);
    transform: scale(1.1);
}

.vactours-testimonials-slider .swiper-button-next {
    right: -25px;
}

.vactours-testimonials-slider .swiper-button-prev {
    left: -25px;
}

/* Swiper Pagination Styles */
.vactours-testimonials-slider .swiper-pagination {
    bottom: -50px;
    position: relative;
    margin-top: 30px;
}

.vactours-testimonials-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--vactours-gray);
    opacity: 0.5;
    transition: var(--vactours-transition);
    cursor: pointer;
}

.vactours-testimonials-slider .swiper-pagination-bullet:hover {
    opacity: 0.8;
}

.vactours-testimonials-slider .swiper-pagination-bullet-active {
    background: var(--vactours-primary);
    opacity: 1;
    transform: scale(1.2);
}

/* Empty State */
.vactours-testimonials-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--vactours-light);
    border-radius: var(--vactours-border-radius);
    color: var(--vactours-gray);
}

/* Responsive Testimonials */
@media (max-width: 1200px) {
    .vactours-testimonials-slider .swiper-button-next {
        right: 10px;
    }

    .vactours-testimonials-slider .swiper-button-prev {
        left: 10px;
    }
}

@media (max-width: 768px) {
    .vactours-testimonials-section {
        padding: 40px 0;
    }

    .vactours-testimonials-container {
        padding: 0 15px;
    }


    .vactours-testimonial-card {
        padding: 20px;
    }

    .vactours-testimonials-slider .swiper-button-next,
    .vactours-testimonials-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .vactours-testimonials-slider .swiper-button-next::after,
    .vactours-testimonials-slider .swiper-button-prev::after {
        font-size: 14px;
    }

    .vactours-testimonials-slider .swiper-button-next {
        right: 5px;
    }

    .vactours-testimonials-slider .swiper-button-prev {
        left: 5px;
    }

    .vactours-author-details {
        flex-direction: column;
        gap: 8px;
    }

    .vactours-testimonial-text::before,
    .vactours-testimonial-text::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .vactours-testimonial-image {
        height: 200px;
        margin-bottom: 15px;
    }

    .vactours-testimonial-title {
        font-size: 1rem;
    }

    .vactours-testimonial-text {
        font-size: 13px;
        /* Maintain 5 lines ellipsis on mobile */
        max-height: calc(1.6em * 5);
        -webkit-line-clamp: 5;
    }

    .vactours-testimonials-slider .swiper-button-next,
    .vactours-testimonials-slider .swiper-button-prev {
        display: none;
    }
}

/* Popup Text Font Size Fix - Maximum Specificity */
div.vactours-testimonial-popup div.vactours-popup-content div.vactours-popup-text-content div.vactours-popup-text-16px,
div.vactours-testimonial-popup div.vactours-popup-content div.vactours-popup-text-content div.vactours-popup-text-16px p,
div.vactours-testimonial-popup div.vactours-popup-content div.vactours-popup-text-content p.vactours-popup-paragraph,
.vactours-popup-text-16px,
.vactours-popup-text-16px p,
.vactours-popup-paragraph {
    font-size: 16px !important;
}

@media (max-width: 768px) {
    div.vactours-testimonial-popup div.vactours-popup-content div.vactours-popup-text-content div.vactours-popup-text-16px,
    div.vactours-testimonial-popup div.vactours-popup-content div.vactours-popup-text-content div.vactours-popup-text-16px p,
    div.vactours-testimonial-popup div.vactours-popup-content div.vactours-popup-text-content p.vactours-popup-paragraph,
    .vactours-popup-text-16px,
    .vactours-popup-text-16px p,
    .vactours-popup-paragraph {
        font-size: 14px !important;
    }
}

/* Print Styles */
@media print {
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }

    .vactours-testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}