
/* Review section */



.widget-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px 10px;
    /* Left-right padding 10px ki gayi hai */
}

.widget-title {
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 40px;
}

.widget-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #2563eb;
    margin: 10px auto;
    border-radius: 2px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    padding: 10px 0;
}

.review-card {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 25px;
    width: 350px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.name-box h3 {
    margin: 0;
    font-size: 16px;
    color: #111;
}

.name-box span {
    font-size: 13px;
    color: #777;
}

.google-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
}

.tooltip {
    visibility: hidden;
    width: 140px;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 10;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.google-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.stars-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.star-icon {
    width: 18px;
}

.verified-wrapper {
    position: relative;
    display: inline-block;
}

.verified-icon {
    width: 18px;
    cursor: pointer;
    vertical-align: middle;
}

.verified-tooltip {
    visibility: hidden;
    width: 220px;
    background-color: #000000;
    color: #ffffff;
    text-align: left;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 10;
    bottom: 135%;
    left: 0;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.verified-wrapper:hover .verified-tooltip {
    visibility: visible;
    opacity: 1;
}

.card-body {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.read-more {
    font-size: 14px;
    color: #888;
    cursor: pointer;
    font-weight: 600;
    margin-top: 5px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.prev-btn {
    left: -15px;
}

.next-btn {
    right: -15px;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(6px);
    }

    50% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

.jitter {
    animation: shake 0.3s ease-in-out;
}

/* --- Mobile Responsive Optimizations --- */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .widget-container {
        padding: 80px 20px;
    }

    .review-card {
        width: 100%;
        /* Mobile par card container full width lega taaki ek baar mein ek hi dikhe */
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .slider-track {
        overflow-x: auto;
        /* Touch karke scroll karne ke liye */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .slider-track::-webkit-scrollbar {
        display: none;
        /* Scrollbar chupane ke liye */
    }

    .review-card {
        scroll-snap-align: start;
    }

    /* Mobile par arrows/buttons ko hide karna */
    .slider-btn {
        display: none !important;
    }
}


