
.rating2 {
  display: flex;
  gap: 2px;
}

.star2 {
  font-size: var(--star-size);
  color: #ccc; /* Default gray color for empty stars */
}
.starrat {
  font-size: 20;
  color: #ccc; /* Default gray color for empty stars */
}

.star2.filled2 {
  color: var(--star-color);
}

.star.partially-filled {
  background: linear-gradient(to right, var(--star-color) 50%, #f7c307 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.star2.partially-filled2 {
  background: linear-gradient(to right, var(--star-color) 65%, #f7c307 65%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}





 /* Main Review Section */
       /* Main Review Section */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1100px;
    margin: auto;
}

/* Modern Review Card */
.review {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Reviewer Info */
.reviewer {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

/* Star Rating */
.rating {
    margin-bottom: 10px;
}

.star {
    font-size: 22px;
    color: #f7c307;
}

/* Partially filled stars */
.star.partially-filled {
    background: linear-gradient(to right, #f7c307; 50%, #ccc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Review Text */
.review p {
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

/* Review Images */
.review-images {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.review-images img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-images img:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Image Modal */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#imageModal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

#imageModal span {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
