/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        Segoe UI,
        Roboto,
        Helvetica Neue,
        Arial,
        sans-serif;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.reviews-widget-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.reviews-widget {
    display: grid;
    gap: 16px;
    margin-bottom: 0;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) and (max-width: 999px) {
    .reviews-widget {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) and (max-width: 1399px) {
    .reviews-widget {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .reviews-widget {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
    margin-top: 8px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

.review-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0;
}

.review-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin: 0;
}

.review-author-link {
    color: #202124;
    text-decoration: none;
    transition: color 0.2s ease;
}

.review-author-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.review-author-link:visited {
    color: #202124;
}

.review-date {
    font-size: 12px;
    color: #70757a;
    margin: 0;
}

.review-rating {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-bottom: 0;
}

.star {
    width: 18px;
    height: 18px;
    display: block;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #3c4043;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
}

.review-text-container {
    width: 100%;
}

.review-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: #70757a;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    display: block;
    transition: color 0.2s;
    width: 100%;
    text-align: center;
}

.read-more-btn:hover {
    color: #1557b0;
    text-decoration: underline;
}

.load-more-btn {
    display: block;
    margin: 16px auto 0 auto;
    padding: 10px 24px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3);
}

.load-more-btn:hover {
    background-color: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.review-card:nth-child(1) {
    animation-delay: 0.1s;
}
.review-card:nth-child(2) {
    animation-delay: 0.2s;
}
.review-card:nth-child(3) {
    animation-delay: 0.3s;
}
.review-card:nth-child(4) {
    animation-delay: 0.4s;
}
.review-card:nth-child(5) {
    animation-delay: 0.5s;
}
.review-card:nth-child(6) {
    animation-delay: 0.6s;
}

@media (max-width: 699px) {
    .reviews-widget-container {
        padding: 0;
    }
    .review-card {
        padding: 10px;
    }
    .reviews-widget {
        gap: 8px;
    }
}
