/* ==========================================================================
   TESTIMONIALS SECTION (Video Testimonial Cards styled like Best Places)
   ========================================================================== */

.testimonials-section {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 60px 32px 50px;
    overflow: hidden;
}

/* Header */
.testimonials-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.testimonials-header .section-tag {
    display: inline-block;
    background-color: #E6F7F8;
    color: #08919A;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 14px;
    border: 1px solid rgba(8, 145, 154, 0.2);
}

.testimonials-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.6px;
    line-height: 1.25;
    margin-bottom: 14px;
}

.testimonials-header .description {
    font-size: 17px;
    line-height: 1.6;
    color: #64748B;
    margin-bottom: 20px;
}

/* Trust rating pill */
.testimonials-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    padding: 8px 22px;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    margin-top: 4px;
}

.testimonials-rating-pill .stars {
    color: #F59E0B;
    font-size: 15px;
    letter-spacing: 2px;
}

.testimonials-rating-pill strong {
    color: #0F172A;
}

/* ==========================================================================
   CAROUSEL WRAPPER & MARQUEE (Identical to Best Places)
   ========================================================================== */

.testimonials-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 10px 0 20px;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%);
}

.testimonials-marquee-track {
    display: flex;
    width: 100%;
    overflow: visible;
    user-select: none;
    gap: 24px;
}

.testimonials-marquee-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    animation: testimonialMarqueeSlideLeft 40s linear infinite;
    will-change: transform;
}

@keyframes testimonialMarqueeSlideLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 24px));
    }
}

.testimonials-carousel-wrapper:hover .testimonials-marquee-group,
.testimonials-marquee-track.is-paused .testimonials-marquee-group {
    animation-play-state: paused;
}

/* ==========================================================================
   TESTIMONIAL VIDEO CARD (Styled exactly like Best Places card)
   ========================================================================== */

.testimonial-video-card {
    position: relative;
    flex: 0 0 320px;
    width: 320px;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-color: #0F172A;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.testimonial-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 36px -6px rgba(8, 145, 154, 0.35);
}

/* Image Thumbnail */
.testimonial-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-video-card:hover img {
    transform: scale(1.08);
}

/* Card Gradient Overlay */
.testimonial-video-card .card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(15, 23, 42, 0.82) 65%,
        rgba(15, 23, 42, 0.98) 100%
    );
    z-index: 1;
}

/* Card Top Badge */
.testimonial-video-card .card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 2;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonial-video-card .card-badge .badge-icon {
    color: #F59E0B;
}

/* Video Center Play Button with Pulse */
.video-play-center {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.video-play-btn-circle {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(8, 145, 154, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 8px 26px rgba(8, 145, 154, 0.55);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.testimonial-video-card:hover .video-play-btn-circle {
    transform: scale(1.15);
    background: #067077;
    box-shadow: 0 12px 32px rgba(8, 145, 154, 0.75);
}

.video-play-btn-circle svg {
    margin-left: 3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pulsing outer ring */
.video-play-btn-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: playPulse 2.4s infinite;
}

@keyframes playPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.22);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.video-play-badge {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #E2E8F0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Bottom Info (Matches Best Places) */
.testimonial-video-card .card-info {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
}

.testimonial-video-card .card-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #4FC5C5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.testimonial-video-card h3 {
    font-family: 'Outfit', sans-serif;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.testimonial-video-card .card-rating-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #F59E0B;
    font-size: 13px;
    margin-bottom: 6px;
}

.testimonial-video-card .card-snippet {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   VIDEO MODAL (Interactive Video Player Dialog)
   ========================================================================== */

.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal-box {
    position: relative;
    width: 100%;
    max-width: 840px;
    background: #0F172A;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 40px rgba(8, 145, 154, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-overlay.is-open .video-modal-box {
    transform: scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-close-modal:hover {
    background: #EF4444;
    transform: scale(1.08);
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000000;
}

.video-player-container iframe,
.video-player-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-footer {
    padding: 22px 28px;
    background: #0A1120;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modal-author-info h4 {
    font-family: 'Outfit', sans-serif;
    color: #FFFFFF;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 3px;
}

.modal-author-info p {
    color: #94A3B8;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-author-info .modal-tag {
    color: #4FC5C5;
    font-weight: 600;
}

.btn-modal-book-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #08919A;
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-modal-book-now:hover {
    background: #067077;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-header h2 {
        font-size: 32px;
    }

    .testimonial-video-card {
        flex: 0 0 280px;
        width: 280px;
        height: 400px;
    }

    .video-modal-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }

    .btn-modal-book-now {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .testimonials-section {
        padding: 40px 16px 30px;
    }

    .testimonials-header h2 {
        font-size: 26px;
        line-height: 1.25;
    }

    .testimonials-header .description {
        font-size: 14.5px;
    }

    .testimonials-rating-pill {
        padding: 6px 14px;
        font-size: 12.5px;
    }

    .testimonial-video-card {
        flex: 0 0 260px;
        width: 260px;
        height: 380px;
        border-radius: 16px;
    }

    .testimonial-video-card h3 {
        font-size: 19px;
    }

    .video-modal-overlay {
        padding: 12px;
    }

    .video-modal-box {
        border-radius: 16px;
    }
}
