

 :root {
    --primary-bg: #f8f9fa;
    --card-bg: white;
    --text-color: #4a5568;
    --accent-color: #ffd700;
}

.feedback-section {
    background: var(--primary-bg);
    padding: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.feedback-slider {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.feedback-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.feedback-card {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.feedback-section h2 {
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
    text-align: center;
}

.feedback-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.stars {
    color: var(--accent-color);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.comment {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.date {
    font-size: 0.8rem;
    color: #718096;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 8px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
    z-index: 2;
}

.feedback-section:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow.left {
    left: 5px;
}

.slider-arrow.right {
    right: 5px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .feedback-section {
        padding: 0.75rem;
    }

    .feedback-slider {
        gap: 0.75rem;
        padding: 0.25rem;
    }

    .feedback-card {
        width: 85%;
        min-width: 250px;
        padding: 0.75rem;
    }

    .user-info {
        gap: 0.5rem;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .feedback-section h2 {
        font-size: 1.1rem;
    }

    .feedback-card h3 {
        font-size: 1rem;
    }

    .comment {
        font-size: 0.9rem;
    }

    .slider-arrow {
        display: none; /* Hide arrows on mobile */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .feedback-card {
        width: 90%;
        min-width: 200px;
    }

    .comment {
        font-size: 0.85rem;
    }
}