.our-rating .container,
.review-page-section .container {
    max-width: 960px;
}

.our-rating {
    padding: 0;
}

.rating-title {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.rating-title h1 {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    font-weight: 600;
    font-size: 32px;
}

.rating-title h1::after {
    content: "";
    display: block;
    width: 25%;
    height: 3px;
    background: #ff3a00;
    margin: 0px auto 20px;
}

.rating-title span {
    font-weight: 400;
    font-size: 18px;
}

.rating-boxs {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 260px;
    text-align: center;
    align-items: center;
    margin-top: 20px;
    border: 0.8px solid #f0f1f4;
    border-radius: 10px;
}

.score-star-box {
    max-width: 180px;
    width: 100%;
}

.score-star-box h1 {
    font-weight: 500;
    margin: 0;
    font-size: 64px;
}

.score-star-box .star-icons {
    display: flex;
    justify-content: space-around;
    font-size: 23px;
    color: #ffd600;
    margin: 10px 0;
}

.score-star-box p {
    font-weight: 400;
    font-size: 18px;
    margin: 0;
}

.all-star-box .star-row {
    display: flex;
    gap: 8px;
    font-size: 16px;
    text-align: start;
    align-items: center;
}

.star-row i {
    color: #ffd600;
}

.star-row .star-bar {
    width: 150px;
    height: 10px;
    border-radius: 10px;
    background: #d9d9d9;
    overflow: hidden;
}

.star-row .star-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ffd600;
}

.score-percent-box {
    width: 245px;
    height: 192px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-radius: 10px;
    background: #fef9ed;
}

.score-percent-box img {
    width: 58px;
    height: 58px;
}

.score-percent-box span {
    font-weight: 400;
    font-size: 15px;
}

.score-percent-box h1 {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
}

.score-percent-box p {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
}

.review-page-section {
    padding: 28px 0 48px;
    background: #fff;
}

.review-page-section .our-reviews-content {
    color: #111;
    gap: 18px;
    text-align: center;
}

.review-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
}

.review-filter-tabs {
    display: flex;
    gap: 8px;
}

.review-filter-tabs button,
.review-sort-button {
    border: 1px solid #e2e2e2;
    border-radius: 25px;
    background: #fff;
    color: #000;
    min-width: 169px;
    height: 38px;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.review-filter-tabs button.is-active {
    background: #d94300;
    color: #fff;
}

.review-rating-filter {
    position: relative;
}

.review-rating-button {
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 13px;
    padding: 7px 16px;
    min-width: 132px;
    cursor: pointer;
}

.review-rating-button.is-active {
    border-color: #e94805;
    background: #e94805;
    color: #fff;
}

.review-rating-button i {
    margin-left: 7px;
    font-size: 11px;
}

.review-rating-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 3;
    min-width: 167px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 3px 15px 0px #00000017;
}

.review-rating-menu button {
    display: block;
    width: 100%;
    padding: 8px 20px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #000;
    font: inherit;
    font-size: 17px;
    text-align: left;
    cursor: pointer;
}

.review-rating-menu button:hover,
.review-rating-menu button.is-selected {
    background: #fff8f6;
}

.review-sort {
    position: relative;
}

.review-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 2;
    min-width: 150px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 3px 15px 0px #00000017;
}

.review-sort-menu button {
    display: block;
    width: 100%;
    padding: 8px 20px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #000;
    font: inherit;
    font-size: 17px;
    text-align: left;
    cursor: pointer;
}

.review-sort-menu button:hover {
    background: #fff8f6;
}

.review-card.is-filtered-out {
    display: none;
}

.review-card.is-paged-out {
    display: none;
}

/* ลูกเล่นการ์ดที่เพิ่งถูกเปิดหลังกด "ดูรีวิวเพิ่มเติม" — fade + เลื่อนขึ้น */
.review-page-section .review-card {
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.review-page-section .review-card.is-revealing {
    opacity: 0;
    transform: translateY(28px);
}

.review-sort-button i {
    margin-left: 6px;
    font-size: 11px;
}

.review-page-section .reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 305px);
    justify-content: space-around;
    gap: 18px;
    width: 100%;
}

.review-load-more {
    min-width: 247px;
    height: 43px;
    margin: 40px auto 0;
    border: 1px solid #ff3a00;
    border-radius: 91px;
    background: #fff;
    color: #ff3a00;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.review-load-more[hidden] {
    display: none;
}

.review-load-more:hover {
    background: #fcf0f1;
}

.review-load-more i {
    margin-left: 5px;
}

/* ================= REVIEW PAGINATION (จอมือถือ) ================= */
/* สไตล์เดียวกับ .announcement-pagination (blog.css) — จอ >768px ซ่อน ใช้ load-more แทน */
.review-pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 0;
}

.review-pagination .announcement-pagination-button,
.review-pagination .announcement-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0.8px solid #d5d5d5;
    border-radius: 2px;
    background: #fff;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.review-pagination .announcement-pagination-arrow {
    width: 22px;
    height: 22px;
    font-size: 15px;
    border: 0;
}

.review-pagination .announcement-pagination-button:hover,
.review-pagination .announcement-pagination-button.is-active:hover,
.review-pagination .announcement-pagination-arrow:hover {
    background: #d5d5d5;
}

.review-pagination .announcement-pagination-button.is-active {
    background: #000;
    color: #fff;
}

.review-pagination .announcement-pagination-arrow:disabled {
    color: #d5d5d5;
    font-size: 10px;
    cursor: default;
}

.review-pagination .announcement-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #9393a1;
}

.review-pagination[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .review-load-more {
        display: none;
    }

    .review-pagination {
        display: flex;
    }
}

.review-service-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 960px;
    width: 100%;
    margin-top: 40px;
    padding: 14px 0;
    border-radius: 7px;
    background: #fef9ed;
    text-align: left;
}

.review-service-bar > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-right: 1px solid #fbbd14;
    color: #222;
    font-size: 10px;
}

.review-service-bar > div:last-child {
    border-right: 0;
}

.review-service-bar i {
    color: #fbbd14;
    font-size: 48px;
}

.review-service-bar span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.review-service-bar strong {
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .review-page-section .container {
        padding: 0 18px 20px;
    }

    .rating-title h1 {
        margin-top: 20px;
    }

    .rating-boxs {
        flex-direction: column;
        height: 600px;
    }

    .score-star-box h1 {
        font-size: 40px;
    }

    .review-page-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .review-filter-tabs {
        display: contents;
    }

    .review-filter-tabs button {
        flex: 0 0 auto;
    }

    .review-service-bar {
        grid-template-columns: repeat(auto-fit, 314px);
        gap: 14px 0;
    }

    .review-service-bar > div {
        border-right: 0;
    }

    .review-service-bar > div:nth-child(2) {
        border-right: 0;
    }

    .review-service-bar span {
        font-size: 16px;
    }

    .review-service-bar strong {
        font-size: 18px;
    }
}
