/* 연수 후기 허브(/review/) — .review-hub 범위만 */

.review-hub {
    width: 100%;
}

.review-hub__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px 80px;
    box-sizing: border-box;
}

.review-hub__count {
    margin: 0 0 28px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
}

.review-hub__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-hub__card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-hub__card-link:hover .review-hub__card,
.review-hub__card-link:focus-visible .review-hub__card {
    border-color: #c7d7f5;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.review-hub__card-link:focus-visible {
    outline: 2px solid var(--primary, #2563EB);
    outline-offset: 3px;
}

.review-hub__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    margin: 0;
    padding: 24px 22px;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


.review-hub__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
}

.review-hub__head > div:first-child {
    flex: 1 1 auto;
    min-width: max-content;
}

.review-hub__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.review-hub__region {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #64748B;
    white-space: nowrap;
    word-break: keep-all;
}

.review-hub__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 1 auto;
}

.review-hub__badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.review-hub__badge--course {
    background: #fff1e8;
    color: #c2410c;
}

.review-hub__badge--vehicle {
    background: #eaf2ff;
    color: #1d4ed8;
}

.review-hub__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-hub__stars {
    display: inline-flex;
    gap: 2px;
    color: #f5b301;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0;
}

.review-hub__stars span {
    font-weight: 700;
}

.review-hub__score {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    line-height: 1;
}

.review-hub__text {
    margin: 0;
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #334155;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.review-hub__count-range {
    margin-left: 8px;
    font-weight: 400;
    color: #64748B;
}

.review-hub__paging {
    margin: 40px 0 0;
}

.review-hub__paging-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-hub__paging-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
}

a.review-hub__paging-link:hover,
a.review-hub__paging-link:focus {
    border-color: #93c5fd;
    color: #2563EB;
}

.review-hub__paging-link.is-current {
    border-color: #2563EB;
    background: #2563EB;
    color: #fff;
}

.review-hub__paging-link--prev,
.review-hub__paging-link--next {
    min-width: auto;
    padding: 0 14px;
}

.review-hub__empty {
    margin: 24px 0 0;
    padding: 28px 20px;
    border: 1px dashed #d7dee6;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    color: #64748b;
    background: #f8fafc;
}

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

@media (max-width: 768px) {
    .review-hub__inner {
        padding: 50px 16px 40px;
    }



    .review-hub__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .review-hub__card {
        padding: 20px 18px;
    }

    .review-hub__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-hub__badges {
        justify-content: flex-start;
    }
}
