/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.ftlt-review-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ftlt-review-section {
    font-family: 'Poppins', sans-serif;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.ftlt-reviews-container {
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 60px 40px; /* Increased top/bottom padding for hover effects */
    position: relative;
    overflow: hidden;
}

.ftlt-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.ftlt-section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.ftlt-brand {
    color: #22c55e;
    font-weight: 800;
}

.ftlt-google-rating {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 20px;
    border-radius: 50px;
    gap: 10px;
}

.ftlt-google-rating .ftlt-stars {
    color: #fbbc05;
    font-size: 1.2rem;
}

.ftlt-google-rating .ftlt-rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.ftlt-google-rating .ftlt-rating-text {
    font-size: 1rem;
    color: #5f6368;
}

.ftlt-reviews-carousel {
    position: relative;
    width: 100%;
    height: 350px; /* Fixed height to prevent overflow */
    overflow: hidden;
    margin-bottom: 30px;
    padding: 20px 0; /* Padding for hover effects */
}

.ftlt-reviews-track {
    display: flex;
    position: absolute;
    top: 27px;
    left: 0;
    height: calc(100% - 40px);
    animation: slideReviews 25s linear infinite;
    gap: 30px;
}

/* Infinite sliding animation */
@keyframes slideReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.ftlt-reviews-track:hover {
    animation-play-state: paused;
}

.ftlt-review-card {
    flex: 0 0 auto;
    width: 350px; /* Fixed width for consistent spacing */
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin: 0 15px; /* Margin instead of gap for proper spacing */
    
    /* Smooth RGB Border Effect */
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000) border-box;
    background-size: 100% 100%, 400% 100%;
    animation: ftlt-smooth-rgb-border 4s linear infinite;
}

/* Smoother RGB animation */
@keyframes ftlt-smooth-rgb-border {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 400% 0%;
    }
}

.ftlt-review-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 10;
    border-width: 6px;
    animation-duration: 2s;
}

.ftlt-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ftlt-reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ftlt-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.ftlt-review-card:hover .ftlt-avatar {
    transform: rotate(360deg) scale(1.1);
}

.ftlt-reviewer-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
    transition: color 0.3s ease;
}

.ftlt-review-card:hover .ftlt-reviewer-info h3 {
    color: #22c55e;
}

.ftlt-review-stars {
    color: #fbbc05;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.ftlt-review-card:hover .ftlt-review-stars {
    transform: scale(1.1);
}

.ftlt-google-logo {
    color: #4285f4;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.ftlt-review-card:hover .ftlt-google-logo {
    transform: rotate(360deg) scale(1.2);
}

.ftlt-review-content {
    flex: 1;
    margin-bottom: 20px;
}

.ftlt-review-content p {
    color: #5f6368;
    line-height: 1.6;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.ftlt-review-card:hover .ftlt-review-content p {
    color: #333;
}

.ftlt-review-date {
    color: #9aa0a6;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.ftlt-review-card:hover .ftlt-review-date {
    color: #22c55e;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ftlt-review-card {
        width: 300px;
    }
    
    .ftlt-reviews-carousel {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .ftlt-reviews-container {
        padding: 50px 20px;
    }
    
    .ftlt-section-header h2 {
        font-size: 2rem;
    }
    
    .ftlt-review-card {
        width: 280px;
        min-height: 260px;
        padding: 10px; /* Add this line - reduces padding from 25px to 20px */
    }
    
    .ftlt-reviews-carousel {
        height: 300px;
    }
    
    .ftlt-review-card:hover {
        transform: translateY(-10px) scale(1.02);
    }

    /* Add this new rule */
    .ftlt-review-date {
        margin-bottom: 5px; /* Adds space from the bottom border */
    }
}