/* ══════════════════════════════════════════════
   고객 후기 (sec-review)
   a 카드 3열 / b 좌우 슬라이드 / c 큰 인용문 / d 좌 제목 + 우 목록
   ══════════════════════════════════════════════ */

.sec-review__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sec-review__item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── 별점 ────────────────────────────── */

.sec-review__rating {
    display: flex;
    gap: 2px;
}

.sec-review__star {
    width: 18px;
    height: 18px;
    color: var(--line);
}

.sec-review__star.is-on {
    color: #f5b301;
}

.sec-review__star svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── 본문 ────────────────────────────── */

.sec-review__body-text {
    margin: 0;
    flex: 1;
    color: var(--text);
    line-height: 1.75;
    word-break: keep-all;
}

/* ── 작성자 ──────────────────────────── */

.sec-review__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sec-review__avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-review__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sec-review__initial {
    font-size: 18px;
    font-weight: 700;
    color: var(--main);
}

.sec-review__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sec-review__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.sec-review__role {
    font-size: 13px;
    color: var(--text-sub);
}

/* ══════════════════════════════════════════════
   A — 카드 3열
   ══════════════════════════════════════════════ */

.sec-review--a .sec-review__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sec-review--a .sec-review__item {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sec--alt .sec-review--a .sec-review__item,
.sec-review--a.sec--alt .sec-review__item {
    background: #fff;
}

/* ══════════════════════════════════════════════
   B — 좌우 슬라이드
   ══════════════════════════════════════════════ */

.sec-review--b .sec-review__body {
    position: relative;
}

.sec-review--b .sec-review__list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.sec-review--b .sec-review__list::-webkit-scrollbar {
    display: none;
}

.sec-review--b .sec-review__item {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sec-review__nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.sec-review__nav button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.sec-review__nav button:hover {
    border-color: var(--main);
    color: var(--main);
}

.sec-review__nav svg {
    width: 18px;
    height: 18px;
}

/* ══════════════════════════════════════════════
   C — 큰 인용문 (1개)
   ══════════════════════════════════════════════ */

.sec-review--c .sec-review__item {
    max-width: 820px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.sec-review--c .sec-review__body-text {
    font-size: 22px;
    line-height: 1.7;
    position: relative;
    padding-top: 40px;
}

.sec-review--c .sec-review__body-text::before {
    content: '"';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 72px;
    line-height: 1;
    color: var(--main);
    opacity: .25;
}

.sec-review--c .sec-review__meta {
    flex-direction: column;
    gap: 10px;
}

.sec-review--c .sec-review__who {
    align-items: center;
}

.sec-review--c .sec-review__avatar {
    width: 60px;
    height: 60px;
}

/* ══════════════════════════════════════════════
   D — 좌 제목 + 우 목록
   ══════════════════════════════════════════════ */

.sec-review--d .sec__inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

.sec-review--d .sec__head {
    text-align: left;
    margin-bottom: 0;
}

.sec-review--d .sec-review__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sec-review--d .sec-review__item {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.sec-review--d .sec-review__item:first-child {
    padding-top: 0;
}

.sec-review--d .sec-review__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* ══════════════════════════════════════════════
   E — 아바타 오버랩 카드
   ══════════════════════════════════════════════ */

.sec-review--e .sec-review__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 48px;
}

.sec-review--e .sec-review__item {
    position: relative;
    padding: 62px 28px 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .07);
    gap: 0;
}

/* 아바타를 카드 위로 */
.sec-review--e .sec-review__meta {
    position: static;
    display: block;
}

.sec-review--e .sec-review__avatar {
    position: absolute;
    top: -34px;
    left: 28px;
    width: 84px;
    height: 84px;
    border: 5px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.sec-review--e .sec-review__initial {
    font-size: 30px;
}

.sec-review--e .sec-review__name {
    display: block;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 10px;
}

.sec-review--e .sec-review__role {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--main);
}

/* 이름 줄 · 별점 한 줄에 */
.sec-review--e .sec-review__who {
    display: block;
}

.sec-review--e .sec-review__rating {
    position: absolute;
    top: 106px;
    right: 28px;
    gap: 3px;
}

.sec-review--e .sec-review__star {
    width: 15px;
    height: 15px;
}

/* 인용부호 + 점선 */
.sec-review--e .sec-review__body-text {
    position: relative;
    margin-top: 28px;
    padding-top: 34px;
    font-size: 15px;
    font-style: italic;
    color: var(--text-sub);
}

.sec-review--e .sec-review__body-text::before {
    content: '“';
    position: absolute;
    top: -4px;
    left: 0;
    font-size: 40px;
    font-style: normal;
    line-height: 1;
    color: var(--main);
}

.sec-review--e .sec-review__body-text::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 34px;
    right: 0;
    border-top: 1px dashed var(--line);
}

@media (max-width: 1024px) {
    .sec-review--e .sec-review__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sec-review--e .sec-review__list {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════
   반응형
   ══════════════════════════════════════════════ */

@media (max-width: 1024px) {

    .sec-review--a .sec-review__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .sec-review--b .sec-review__item {
        flex-basis: calc((100% - 24px) / 2);
    }

    .sec-review--c .sec-review__body-text {
        font-size: 19px;
    }

    .sec-review--d .sec__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {

    .sec-review--a .sec-review__list {
        grid-template-columns: 1fr;
    }

    .sec-review--a .sec-review__item,
    .sec-review--b .sec-review__item {
        padding: 24px 20px;
    }

    .sec-review--b .sec-review__item {
        flex-basis: 85%;
    }

    .sec-review--c .sec-review__body-text {
        font-size: 17px;
        padding-top: 32px;
    }
}