.grm-home-reviews-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.grm-home-reviews-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.grm-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.grm-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.grm-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.grm-carousel-item {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.grm-carousel-button {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    color: #2c3e50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.grm-carousel-button:hover,
.grm-carousel-button:focus {
    border-color: #3498db;
    color: #3498db;
}

.grm-carousel-icon {
    font-size: 1.5em;
    line-height: 1;
}

.grm-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.grm-reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0;
}

.grm-review-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grm-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.grm-review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.grm-author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grm-author-initial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5em;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.grm-author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grm-author-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #1a1a1a;
    line-height: 1.2;
}

.grm-rating {
    color: #ffc107;
    margin: 5px 0;
    display: flex;
    gap: 2px;
}

.grm-star {
    font-size: 20px;
}

.grm-date {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grm-review-content {
    color: #444;
    line-height: 1.7;
    font-size: 1em;
    position: relative;
    padding-top: 10px;
}

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

 .grm-review-open {
     margin-top: 12px;
     background: transparent;
     border: 0;
     padding: 0;
     color: #3498db;
     font-weight: 600;
     cursor: pointer;
     text-decoration: underline;
     text-underline-offset: 3px;
 }

 .grm-review-open:hover,
 .grm-review-open:focus {
     color: #2c3e50;
 }

.grm-review-content::before {
    content: '"';
    font-family: serif;
    font-size: 4em;
    color: #eee;
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 0;
}

.grm-review-content > * {
    position: relative;
    z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .grm-home-reviews-section {
        padding: 40px 0;
    }

    .grm-home-reviews-section .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .grm-review-card {
        padding: 20px;
    }

    .grm-author-photo,
    .grm-author-initial {
        width: 50px;
        height: 50px;
    }

    .grm-carousel {
        gap: 6px;
    }

    .grm-carousel-item {
        padding: 0 4px;
    }

    .grm-carousel-button {
        width: 38px;
        height: 38px;
    }
}

@media (min-width: 900px) {
    .grm-carousel-item {
        min-width: 50%;
    }
}

.grm-no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    color: #888;
}

 .grm-modal {
     display: none;
     position: fixed;
     inset: 0;
     z-index: 9999;
 }

 .grm-modal.is-open {
     display: block;
 }

 .grm-modal-overlay {
     position: absolute;
     inset: 0;
     background: rgba(0, 0, 0, 0.6);
 }

 .grm-modal-dialog {
     position: relative;
     max-width: 720px;
     width: calc(100% - 30px);
     margin: 8vh auto 0;
     background: #fff;
     border-radius: 12px;
     padding: 24px;
     box-shadow: 0 20px 60px rgba(0,0,0,0.25);
     max-height: 84vh;
     overflow: auto;
 }

 .grm-modal-title {
     margin: 0 0 12px;
     font-size: 1.6em;
     color: #1a1a1a;
 }

 .grm-modal-close {
     position: absolute;
     top: 12px;
     right: 12px;
     background: #f2f2f2;
     border: 1px solid #e5e5e5;
     border-radius: 999px;
     padding: 8px 12px;
     cursor: pointer;
     font-weight: 600;
 }

 .grm-modal-close:hover,
 .grm-modal-close:focus {
     background: #e9e9e9;
 }

 .grm-modal-content {
     color: #333;
     line-height: 1.7;
 }

 body.grm-modal-open {
     overflow: hidden;
 }

 @media (max-width: 768px) {
     .grm-modal-dialog {
         margin: 5vh auto 0;
         padding: 18px;
     }

     .grm-modal-title {
         font-size: 1.3em;
         padding-right: 60px;
     }
 }

