/* =========================================================
   운세담다 전체 상담후기
   - 상단: 간단한 프로필 목록형
   - 하단: 상담 분야 / 후기 내용 / 도움이 돼요
   - PC 폰트: 1.125rem (18px)
   - 모바일 폰트: 0.875rem (14px)
   ========================================================= */

/* 전체 초기화 */
.review-card-list,
.review-card-list * {
    box-sizing: border-box;
}

.review-card-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-card-list.thumb-list2 {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 기존 thumb-list2 스타일 초기화 */
.review-card-list > li {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =========================================================
   후기 카드
   ========================================================= */

.review-card-list .section.review-card {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.review-card-inner {
    display: block;
    width: 100%;
    padding: 28px 30px 22px;
}

/* =========================================================
   상단 프로필 정보
   ========================================================= */

.review-card-head-simple {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

/* 프로필 이미지 */
.review-card-thumb {
    display: block;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    margin-right: 22px;
    overflow: hidden;
    border-radius: 50%;
    background: #f3f3f3;
    text-decoration: none;
}

.review-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
}

/* 가운데 정보 */
.review-card-info {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 20px;
}

/* 상담 종류 | 상담사명 코드 */
.review-card-title {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin: 0 0 7px;
    padding: 0;
    color: #111;
    font-size: 1.125rem;
    line-height: 1.35;
    white-space: nowrap;
}

.review-card-type {
    flex: 0 0 auto;
    color: #111;
    font-size: 1.125rem;
    font-weight: 800;
}

.review-card-divider {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 18px;
    margin: 0 11px;
    background: #c8c8c8;
}

.review-card-counselor {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #111;
    text-decoration: none;
}

.review-card-counselor:hover,
.review-card-counselor:focus {
    color: #111;
    text-decoration: none;
}

.review-card-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #111;
    font-size: 1.125rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-card-code {
    flex: 0 0 auto;
    margin-left: 5px;
    color: #111;
    font-size: 1.125rem;
    font-weight: 400;
    white-space: nowrap;
}

/* 작성자 */
.review-card-writer {
    width: 100%;
    margin: 0 0 7px;
    overflow: hidden;
    color: #111;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 상담유형 및 상담시간 */
.review-card-consultation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    color: #999;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
}

.review-card-consultation-type,
.review-card-consultation-time {
    color: #999;
    font-size: inherit;
    font-weight: 400;
    white-space: nowrap;
}

.review-card-consultation-divider {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 16px;
    margin: 0 10px;
    background: #d3d3d3;
}

/* =========================================================
   우측 날짜 및 신고
   ========================================================= */

.review-card-side {
    align-self: stretch;
    display: flex;
    flex: 0 0 130px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 130px;
    padding: 3px 0;
    text-align: right;
}

.review-card-date {
    color: #999;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}

.review-card-report {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #555;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.review-card-report:hover,
.review-card-report:focus {
    color: #111;
    background: transparent;
    text-decoration: none;
}

/* =========================================================
   상담 분야
   ========================================================= */

.review-info-table {
    display: block;
    width: 100%;
    margin-top: 26px;
    border-top: 1px solid #e5e5e5;
}

.review-info-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    width: 100%;
    min-height: 58px;
    border-bottom: 1px solid #eaeaea;
}

.review-info-label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 18px 0 0;
    border-right: 1px solid #eaeaea;
    color: #999;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
}

.review-info-value {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 20px;
    color: #111;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: keep-all;
}

/* =========================================================
   후기 내용
   ========================================================= */

.review-card-content {
    display: block;
    width: 100%;
    min-height: 100px;
    padding: 30px 0 40px;
    color: #111;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: keep-all;
    white-space: normal;
}

/* =========================================================
   도움이 돼요
   ========================================================= */

.review-card-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: 52px;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
}

.review-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #111;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.review-help-btn:hover,
.review-help-btn:focus {
    background: transparent;
    color: #111;
}

.review-help-icon {
    display: inline-block;
    font-size: 1.125rem;
    line-height: 1;
}

.review-help-text {
    color: #111;
    font-size: inherit;
    font-weight: 800;
}

.review-help-count {
    color: #ed002b;
    font-size: inherit;
    font-weight: 800;
}

/* =========================================================
   사용하지 않는 기존 디자인 숨김
   하단 분야·내용·도움돼요는 숨기지 않음
   ========================================================= */

.review-card-head,
.review-card-profile,
.review-card-meta,
.review-card-rating,
.review-stars,
.review-card-time,
.review-card-badge,
.review-card .top-filter.dropdown {
    display: none;
}

/* =========================================================
   로딩
   ========================================================= */

.review-card-list .counselor-list-loading {
    display: block;
    width: 100%;
    min-height: 60px;
    clear: both;
}

/* =========================================================
   태블릿 / 모바일
   768px 이하: 0.875rem (14px)
   ========================================================= */

@media screen and (max-width: 768px) {
    .review-card-list .section.review-card {
        margin-bottom: 8px;
    }

    .review-card-inner {
        padding: 20px 16px 16px;
    }

    .review-card-head-simple {
        align-items: center;
    }

    .review-card-thumb {
        flex: 0 0 68px;
        width: 68px;
        height: 68px;
        margin-right: 14px;
    }

    .review-card-info {
        padding-right: 10px;
    }

    .review-card-title {
        margin-bottom: 5px;
        font-size: 0.875rem;
    }

    .review-card-type,
    .review-card-name,
    .review-card-code {
        font-size: 0.875rem;
    }

    .review-card-divider {
        height: 14px;
        margin: 0 8px;
    }

    .review-card-code {
        margin-left: 4px;
    }

    .review-card-writer {
        margin-bottom: 5px;
        font-size: 0.875rem;
    }

    .review-card-consultation {
        font-size: 0.875rem;
    }

    .review-card-consultation-type,
    .review-card-consultation-time {
        font-size: 0.875rem;
    }

    .review-card-consultation-divider {
        height: 13px;
        margin: 0 8px;
    }

    .review-card-side {
        flex: 0 0 84px;
        min-width: 84px;
        padding: 1px 0;
    }

    .review-card-date,
    .review-card-report {
        font-size: 0.875rem;
    }

    .review-info-table {
        margin-top: 20px;
    }

    .review-info-row {
        grid-template-columns: 95px minmax(0, 1fr);
        min-height: 50px;
    }

    .review-info-label {
        padding-right: 13px;
        font-size: 0.875rem;
    }

    .review-info-value {
        padding: 0 14px;
        font-size: 0.875rem;
    }

    .review-card-content {
        min-height: 80px;
        padding: 24px 0 32px;
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .review-card-bottom {
        min-height: 46px;
        padding-top: 13px;
    }

    .review-help-btn,
    .review-help-icon,
    .review-help-text,
    .review-help-count {
        font-size: 0.875rem;
    }
}

/* =========================================================
   작은 모바일
   ========================================================= */

@media screen and (max-width: 480px) {
    .review-card-inner {
        padding: 17px 13px 14px;
    }

    .review-card-thumb {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }

    .review-card-info {
        padding-right: 6px;
    }

    .review-card-title {
        margin-bottom: 4px;
    }

    .review-card-divider {
        margin: 0 6px;
    }

    .review-card-writer {
        margin-bottom: 4px;
    }

    .review-card-consultation-divider {
        margin: 0 6px;
    }

    .review-card-side {
        flex: 0 0 76px;
        min-width: 76px;
    }

    .review-info-table {
        margin-top: 17px;
    }

    .review-info-row {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 46px;
    }

    .review-info-label {
        padding-right: 10px;
    }

    .review-info-value {
        padding: 0 12px;
    }

    .review-card-content {
        min-height: 70px;
        padding: 22px 0 28px;
    }

    .review-card-bottom {
        min-height: 43px;
        padding-top: 12px;
    }
}

/* =========================================================
   매우 작은 화면
   날짜와 상담사 정보가 겹치지 않게 보정
   ========================================================= */

@media screen and (max-width: 360px) {
    .review-card-inner {
        padding: 15px 11px 13px;
    }

    .review-card-thumb {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
        margin-right: 9px;
    }

    .review-card-info {
        padding-right: 4px;
    }

    .review-card-divider {
        margin: 0 5px;
    }

    .review-card-consultation-divider {
        margin: 0 5px;
    }

    .review-card-side {
        flex: 0 0 70px;
        min-width: 70px;
    }

    .review-info-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .review-info-label {
        padding-right: 8px;
    }

    .review-info-value {
        padding: 0 10px;
    }
}

/* =========================================================
   후기 상단 운영정책 / 후기쓰기
   ========================================================= */

.review-top-guide,
.review-top-guide * {
    box-sizing: border-box;
}

.review-top-guide {
    width: 100%;
    margin: 0 0 18px;
    padding: 20px 30px 26px;
    background: #f7f7f7;
}

.review-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.review-top-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 82px;
    padding: 0 24px;
    border: 1px solid #dedfe4;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
}

.review-top-action:hover,
.review-top-action:focus,
.review-top-action:active {
    color: #222;
    background: #fff;
    text-decoration: none;
}

.review-top-action-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-write-text {
    font-weight: 800;
}

/* 우측 화살표 */
.review-top-arrow {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-left: 14px;
    border-top: 2px solid #222;
    border-right: 2px solid #222;
    transform: rotate(45deg);
}

/* 후기쓰기 원형 아이콘 */
.review-write-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 16px;
    border-radius: 50%;
    background: #8c9ce2;
}

/* 연필 모양 */
.review-write-pencil {
    position: relative;
    display: block;
    width: 16px;
    height: 7px;
    border-radius: 1px;
    background: #fff;
    transform: rotate(-45deg);
}

.review-write-pencil::before {
    position: absolute;
    top: 0;
    right: -5px;
    width: 0;
    height: 0;
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
    border-left: 5px solid #fff;
    content: "";
}

.review-write-pencil::after {
    position: absolute;
    top: 0;
    left: -3px;
    width: 3px;
    height: 7px;
    border-radius: 1px 0 0 1px;
    background: #fff;
    content: "";
}

/* 코인 지급 안내 */
.review-top-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 28px;
    color: #222;
    font-size: 1.125rem;
    line-height: 1.4;
    text-align: center;
}

.review-top-benefit-text {
    display: inline-block;
}

.review-benefit-help {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 0 0 14px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    outline: none;
    background: #ffab28;
    color: #fff;
    font-family: inherit;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* =========================================================
   모바일
   ========================================================= */

@media screen and (max-width: 768px) {
    .review-top-guide {
        margin-bottom: 10px;
        padding: 14px 16px 20px;
    }

    .review-top-actions {
        gap: 10px;
    }

    .review-top-action {
        height: 58px;
        padding: 0 12px;
        border-radius: 5px;
        font-size: 0.875rem;
    }

    .review-top-arrow {
        flex-basis: 8px;
        width: 8px;
        height: 8px;
        margin-left: 9px;
        border-width: 1.5px;
    }

    .review-write-icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }

    .review-write-pencil {
        width: 13px;
        height: 6px;
    }

    .review-write-pencil::before {
        right: -4px;
        border-top-width: 3px;
        border-bottom-width: 3px;
        border-left-width: 4px;
    }

    .review-write-pencil::after {
        left: -2px;
        width: 2px;
        height: 6px;
    }

    .review-top-benefit {
        margin-top: 18px;
        font-size: 0.875rem;
    }

    .review-benefit-help {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        margin-left: 8px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .review-top-guide {
        padding: 12px 12px 18px;
    }

    .review-top-actions {
        gap: 8px;
    }

    .review-top-action {
        height: 54px;
        padding: 0 8px;
    }

    .review-write-icon {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
        margin-right: 6px;
    }

    .review-top-arrow {
        margin-left: 6px;
    }

    .review-top-benefit {
        margin-top: 16px;
    }
}