.reviews-page-section {
    padding: 80px 20px;
    background: linear-gradient(
        180deg,
        #f5f8fc 0%,
        #ffffff 100%
    );
}

.reviews-page-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.reviews-page-header {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.reviews-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #174f97;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reviews-header-stars,
.review-stars {
    color: #f5a623;
    letter-spacing: 2px;
}

.reviews-page-header h1 {
    margin: 0;
    color: #102a4a;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
}

.reviews-page-intro {
    max-width: 740px;
    margin: 20px auto 0;
    color: #536579;
    font-size: 17px;
    line-height: 1.75;
}

.reviews-summary {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.reviews-summary-item {
    min-width: 135px;
}

.reviews-summary-item strong {
    display: block;
    color: #0e4689;
    font-size: 25px;
    line-height: 1.2;
}

.reviews-summary-item span {
    display: block;
    margin-top: 4px;
    color: #6b7888;
    font-size: 13px;
}

.reviews-summary-divider {
    width: 1px;
    background: #d9e1eb;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    border: 1px solid #dfe6ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(18, 48, 83, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: #b8cbe2;
    box-shadow: 0 16px 38px rgba(18, 48, 83, 0.13);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #0b4d96,
        #2f78c9
    );
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
}

.reviewer-details {
    min-width: 0;
    flex: 1;
}

.reviewer-details h2 {
    overflow: hidden;
    margin: 0 0 4px;
    color: #152c48;
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reviewer-details time {
    color: #7a899c;
    font-size: 13px;
}

.google-review-icon {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid #dce3eb;
    border-radius: 50%;
    background: #ffffff;
    color: #4285f4;
    font-size: 16px;
    font-weight: 800;
}

.review-stars {
    margin-top: 19px;
    font-size: 16px;
}

.review-title {
    margin: 15px 0 10px;
    color: #112f52;
    font-size: 18px;
    line-height: 1.4;
}

.review-quote {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
}

.review-quote p {
    margin: 0;
    color: #526276;
    font-size: 15px;
    line-height: 1.72;
}

.review-toggle {
    width: fit-content;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0a58a8;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.review-toggle:hover {
    text-decoration: underline;
}

.review-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.reviews-empty {
    text-align: center;
    color: #67778a;
}

@media (max-width: 980px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .reviews-page-section {
        padding: 56px 15px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 22px;
    }

    .reviews-summary {
        gap: 16px;
    }

    .reviews-summary-divider {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-card {
        transition: none;
    }

    .review-card:hover {
        transform: none;
    }
}

.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
}

.review-card-footer > span {
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.review-card-footer a {
    color: #0a58a8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.review-card-footer a:hover {
    text-decoration: underline;
}

.reviews-page-actions {
    margin-top: 42px;
    text-align: center;
}

.reviews-page-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 50px;
    padding: 13px 25px;
    border-radius: 8px;
    background: #084b97;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.reviews-page-primary-button:hover {
    background: #063c79;
    color: #ffffff;
}