@charset "UTF-8";

/* =========================
   0. 공통 기본 설정
   ========================= */
.course-detail-page {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

#sub_wrap.course-detail-page {
    background: #f5f7fb;
    padding-bottom: 80px;
}

.course-detail-page .sub_visu {
    margin-bottom: 32px;
}

.course-detail-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.cd-header-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.cd-header-meta {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* 메인 레이아웃 (기본: PC용 그리드) */
.cd-main {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 360px);
    gap: 28px;
    align-items: flex-start;
}

/* 상세 카드 (좌측) */
.cd-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 24px 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* 상단 레이아웃 */
.cd-top {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

/* 썸네일 */
.cd-thumb {
    border-radius: 14px;
    overflow: hidden;
    background: #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
}
.cd-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

/* 상단 정보 헤더 */
.cd-top-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cd-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border: 1px solid transparent;
}
.cd-badge-refund {
    background: #e8f7ef;
    color: #0f9153;
    border-color: rgba(15,145,83,0.3);
}
.cd-badge-pc {
    background: #eff4ff;
    color: #3b4fe0;
    border-color: rgba(59,79,224,0.3);
}
.cd-badge-mobile {
    background: #fff2e5;
    color: #f97316;
    border-color: rgba(249,115,22,0.3);
}

.cd-top-extra {
    font-size: 12px;
    color: #6b7280;
}

/* =========================
   1. 상단 기본 정보 테이블 & 모바일 요약
   ========================= */

/* PC용 기본 정보 표 */
.cd-top-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}
.cd-top-table th,
.cd-top-table td {
    padding: 7px 8px;
    border: 1px solid #e5e7eb;
    line-height: 1.5;
    vertical-align: middle;
}
.cd-top-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}
.cd-top-table td {
    color: #111827;
}

/* 모바일용 요약 카드 (기본 숨김) */
.cd-top-summary-mobile {
    display: none;
}

/* PC: 테이블 보이고 요약 숨김 */
@media (min-width: 769px) {
    .cd-top-table {
        display: table;
    }
    .cd-top-summary-mobile {
        display: none !important;
    }
}

/* 모바일: 테이블 숨기고 요약 카드 표시 */
@media (max-width: 768px) {
    .cd-top-table {
        display: none !important;
    }

    .cd-top-summary-mobile {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 10px;
    }

    .cd-top-summary-item {
        background: #ffffff;
        border-radius: 8px;
        padding: 6px 10px;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
        border: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
    }

    .cd-top-summary-item.cd-top-summary-item--full {
        grid-column: 1 / -1;
        padding: 8px 10px;
    }

    .cd-top-summary-item .label {
        font-size: 10.5px;
        line-height: 1.2;
        margin-bottom: 2px;
        color: #6b7280;
    }

    .cd-top-summary-item .value {
        font-size: 12.5px;
        line-height: 1.3;
        font-weight: 600;
        color: #111827;
    }
}

/* =========================
   2. 공통 섹션 / 테이블
   ========================= */
.cd-section-title {
    margin: 26px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cd-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #19406a, #2563eb);
}

.cd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 4px 0 10px;
}
.cd-table th,
.cd-table td {
    padding: 9px 8px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}
.cd-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #4b5563;
}

/* 과정소개 리스트 */
.cd-desc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #374151;
}
.cd-desc-list > li {
    margin-bottom: 8px;
}
.cd-desc-sub {
    margin-top: 4px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}

/* =========================
   3. 탭 영역 (과정소개/학습목차/수료기준/수강후기)
   ========================= */
.cd-tabs {
    margin-top: 24px;
}

/* 공통: 탭 리스트 */
.cd-tabs-nav {
    margin: 0 0 14px;
    padding: 0;
    border: none !important;
    display: grid;
    gap: 8px;
}

/* 모바일 기본: 2열 */
.cd-tabs-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cd-tabs-nav li {
    list-style: none;
    margin: 0;
    border: none !important;
}

/* 탭 버튼 */
.cd-tabs-nav li button {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 999px;
    border: 1px solid #dfe4f0;
    background: #f5f7fb;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 10px rgba(15, 33, 61, 0.06);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
    border-bottom: none !important;
}

/* 활성 탭 */
.cd-tabs-nav li.on button,
.cd-tabs-nav li[class~="on"] button {
    background: #19406A;
    color: #ffffff;
    border-color: #19406A;
    box-shadow: 0 8px 18px rgba(25, 64, 106, 0.35);
    border-bottom: none !important;
}

/* 매우 작은 화면 */
@media (max-width: 360px) {
    .cd-tabs-nav li button {
        font-size: 12px;
        padding: 9px 4px;
    }
}

/* 태블릿~PC: 4개 한 줄 */
@media (min-width: 769px) {
    .cd-tabs-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 600px;
    }
}

.cd-tab-panels {
    margin-top: 30px;
}
.cd-tab-panel {
    display: none;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}
.cd-tab-panel.on {
    display: block;
}

/* 기존 sub-tab/하단탭 숨김 */
.course-detail-page .sub-tab,
.course-detail-page .sub-tab-wrap,
.course-detail-page .sub-tab-area,
.course-detail-page [data-tab-prev],
.course-detail-page [data-tab-next] {
    display: none !important;
}

/* =========================
   4. 학습목차 (PC 테이블 + 모바일 카드)
   ========================= */

.cd-curr-subject,
.cd-curr-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cd-curr-subject li,
.cd-curr-list li {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 90px;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-top: none;
    font-size: 13px;
}
.cd-curr-subject li:first-child {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 600;
    color: #4b5563;
}

/* 모바일 카드형 */
@media (max-width: 768px) {
    .cd-curr-subject {
        display: none;
    }

    .cd-curr-list {
        border: none;
        padding: 0;
        margin: 12px 0 0;
    }

    .cd-curr-list li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 14px;
        margin-bottom: 8px;
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e1e4ec;
        box-shadow: 0 6px 14px rgba(15, 33, 61, 0.06);
    }

    .cd-curr-list li span:nth-child(1) {
        font-size: 11px;
        font-weight: 600;
        color: #2563eb;
        padding: 3px 8px;
        border-radius: 999px;
        background: #eff4ff;
    }

    .cd-curr-list li span:nth-child(2) {
        font-size: 13px;
        font-weight: 500;
        color: #111827;
        line-height: 1.5;
        margin-top: 2px;
        word-break: keep-all;
    }

    .cd-curr-list li span:nth-child(3) {
        font-size: 12px;
        color: #6b7280;
        margin-top: 2px;
        align-self: flex-end;
    }
}

/* =========================
   5. 평가 및 수료기준 (cd-table + cd-eval-table)
   ========================= */

/* cd-table는 위에서 공통 vertical-align 지정됨 */

/* 탭3(평가/수료기준) - 모바일 가로 스크롤 허용 */
.cd-tab-panel.tab03 {
    margin-top: 16px;
}
@media (max-width: 768px) {
    .cd-tab-panel.tab03 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cd-tab-panel.tab03 .cd-table {
        min-width: 520px;
        text-align:center;
    }

    .cd-tab-panel.tab03 .cd-table th,
    .cd-tab-panel.tab03 .cd-table td {
        padding: 8px 6px;
        font-size: 12px;
        line-height: 1.4;
        text-align:center;
    }

    .cd-tab-panel.tab03 .cd-table th:nth-child(2),
    .cd-tab-panel.tab03 .cd-table th:nth-child(3),
    .cd-tab-panel.tab03 .cd-table th:nth-child(4),
    .cd-tab-panel.tab03 .cd-table td:nth-child(2),
    .cd-tab-panel.tab03 .cd-table td:nth-child(3),
    .cd-tab-panel.tab03 .cd-table td:nth-child(4) {
        text-align: center;
    }
}

/* cd-eval-table: 모던 모바일 뷰 */
.cd-eval-table th,
.cd-eval-table td {
    vertical-align: middle;
	        text-align: center;
}

@media (max-width: 768px) {
    .cd-eval-table thead {
        display: none;
    }

    .cd-eval-table {
        border-collapse: collapse;
        width: 100%;
    }

    .cd-eval-table tbody tr {
        display: block;
        margin-bottom: 8px;
        padding: 10px 12px;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10);
        border: 1px solid rgba(148, 163, 184, 0.25);
    }
    .cd-eval-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .cd-eval-table td {
        display: inline-block;
        border: none;
        padding: 0;
        font-size: 13px;
        line-height: 1.5;
        color: #111827;
    }

    .cd-eval-table td:first-child {
        font-weight: 700;
        color: #0f172a;
        margin-right: 8px;
    }

    .cd-eval-table td:nth-child(n+2) {
        font-weight: 400;
        color: #4b5563;
        margin-right: 6px;
        position: relative;
        padding-left: 8px;
    }

    .cd-eval-table td:nth-child(n+3)::before {
        content: "·";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #cbd5f5;
        font-size: 14px;
    }

    .cd-eval-table td[colspan] {
        display: block;
        margin-top: 6px;
        padding-left: 0;
    }
}

/* =========================
   6. 교육비 안내 표 (cd-cost-table)
   ========================= */
.cd-cost-table th,
.cd-cost-table td {
    white-space: nowrap !important;
    word-break: keep-all !important;
}
.cd-cost-table th {
    font-size: 14px !important;
}
.cd-cost-table td {
    font-size: clamp(10px, 3.5vw, 13px);
}
@media (max-width: 768px) {
    .cd-cost-table th,
    .cd-cost-table td {
        padding: 8px 6px;
    }
}

/* 사업주훈련 교육비 안내 – 금액 가운데 정렬 */
.cd-table-refund th:nth-child(2),
.cd-table-refund th:nth-child(3),
.cd-table-refund td:nth-child(2),
.cd-table-refund td:nth-child(3) {
    text-align: center !important;
    vertical-align: middle !important;
}
.cd-table-refund th,
.cd-table-refund td {
    vertical-align: middle;
}

/* =========================
   7. 수강후기 테이블 + 페이징
   ========================= */
.cd-review-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cd-review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.cd-review-table th,
.cd-review-table td {
    padding: 9px 8px;
    border: 1px solid #e1e4ec;
    text-align: center;
    vertical-align: middle;
}
.cd-review-table thead th {
    background: #f5f7fb;
    font-weight: 600;
    color: #555;
}
.cd-review-table td.left {
    text-align: left;
}

/* 별점 */
.cd-rating-wrap {
    display: flex;
    justify-content: center;
}
.cd-rating {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}
.cd-rating svg {
    width: 14px;
    height: 14px;
    margin-right: 2px;
    fill: #e0e4f0;
}
.cd-rating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffd26f;
    mix-blend-mode: multiply;
}

/* PC 페이징 */
.cd-review-paging {
    margin-top: 18px;
    text-align: center;
    overflow-x: hidden;
}
.cd-page-group {
    display: inline-flex;
    gap: 4px;
}
.cd-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #d4d9e5;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}
.cd-page-btn.is-active {
    background: #19406A;
    border-color: #19406A;
    color: #fff;
}
.cd-page-btn:disabled {
    opacity: .4;
    cursor: default;
}
.cd-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: #999;
    font-size: 12px;
}

/* 모바일 더보기 버튼 */
.cd-review-more {
    display: none;
    width: 100%;
    margin: 14px 0 4px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #f1f4fb;
    color: #19406A;
    font-size: 13px;
    font-weight: 600;
}
.cd-review-more.is-end {
    background: #f5f5f5;
    color: #999;
}
@media (max-width: 768px) {
    .cd-review-more {
        display: block;
    }
}

/* =========================
   8. 관련 컨텐츠 슬라이더
   ========================= */
.cd-related {
    margin: 40px 0 60px;
}
.cd-related-card {
    max-width: 1180px;
    margin: 0 auto 40px;
    padding: 18px 18px 22px;
    border-radius: 18px;
    background: #f3f4ff;
    position: relative;
}
.cd-related-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cd-related-title i {
    color: #19406a;
}

.cd-slider-wrapper {
    overflow: hidden;
}
.cd-slider-track {
    display: flex;
    transition: transform .4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 -8px;
}
.cd-slider-item {
    flex: 0 0 25%;
    padding: 0 8px;
    box-sizing: border-box;
}
.cd-related-link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
    text-decoration: none;
}
.cd-related-thumb {
    position: relative;
    overflow: hidden;
}
.cd-related-thumb img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    transition: transform .35s ease;
}
.cd-related-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
    opacity: 0;
    transition: opacity .2s ease;
}
.cd-related-link:hover .cd-related-thumb img {
    transform: scale(1.06);
}
.cd-related-link:hover .cd-related-thumb-overlay {
    opacity: 1;
}
.cd-related-info {
    padding: 12px 12px 14px;
}
.cd-related-info h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
}

/* 슬라이더 버튼 */
.cd-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #d4d4d8;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cd-slider-btn.prev { left: -10px; }
.cd-slider-btn.next { right: -10px; }

@media (max-width: 1024px) {
    .cd-main {
        grid-template-columns: minmax(0, 1fr);
    }
    .cd-top {
        grid-template-columns: minmax(0, 1fr);
    }
    .cd-side-card {
        position: static !important;
        margin-top: 20px;
    }
    .cd-slider-item {
        flex: 0 0 33.3333%;
    }
}
@media (max-width: 768px) {
    .course-detail-inner {
        padding: 0 12px 28px;
    }
    .cd-header-title {
        font-size: 20px;
    }
    .cd-related-card {
        margin: 10px 12px 40px;
    }
    .cd-slider-item {
        flex: 0 0 50%;
    }
    .cd-slider-btn {
        display: none;
    }
}
@media (max-width: 480px) {
    .cd-slider-item {
        flex: 0 0 100%;
    }
}

/* =========================
   9. 우측 수강신청 카드 (PC 전용)
   ========================= */
.cd-side-card {
    background: #050b18;
    border-radius: 24px;
    padding: 18px 18px 20px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.65);
    box-sizing: border-box;
}

.cd-side-header {
    display: none;
    border: none;
    background: none;
    width: 100%;
    color: #ffffff;
    padding: 0;
    margin: 0 0 4px;
    font: inherit;
}

.cd-side-body {}

/* 가격 박스 */
.cd-price-box {
    background: linear-gradient(135deg, #1e4abf, #1662ff);
    border-radius: 18px;
    padding: 16px 18px 18px;
    margin-bottom: 16px;
}
.cd-price-label {
    font-size: 12px;
    opacity: .85;
    margin-bottom: 4px;
}
.cd-price-main {
    font-size: 22px;
    font-weight: 700;
}
.cd-price-sub {
    margin-top: 6px;
    font-size: 12px;
    opacity: .9;
}

/* 버튼 그룹 공통 */
.cd-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    box-sizing: border-box;
    width: 100%;
}
.cd-btn img {
    width: 18px;
    height: 18px;
}
.cd-btn-sample {
    background: #f4f6fb;
    color: #222;
}
.cd-btn-print {
    background: #111827;
    color: #e5e7eb;
}
.cd-btn-apply {
    background: #163AA2;
    color: #fff;
    box-shadow: 0 16px 26px rgba(255,122,60,0.4);
}

/* 요약 리스트 (PC 용) */
.cd-side-list ul {
    list-style: none;
    margin: 0;
    padding: 10px 4px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    line-height: 1.7;
    opacity: .9;
}

/* PC 레이아웃에서 우측 카드 위치 */
@media (min-width: 769px) {
    .cd-main {
        display: flex;
        gap: 32px;
    }
    .cd-card {
        flex: 1 1 auto;
        min-width: 0;
    }
    .cd-side-card {
        flex: 0 0 320px;
        width: 320px;
        align-self: flex-start;
        position: sticky;
        top: 120px;
        transform: none !important;
        padding-top: 24px;
    }
}

/* =========================
   10. 모바일 하단 바텀 패널 (cd-enroll-mobile)
   ========================= */

/* 기본: PC에서는 숨김 */
.cd-enroll-mobile {
    display: none;
}

/* 모바일 전용 바텀 패널 */
@media screen and (max-width: 768px) {

    /* PC용 우측 카드 숨김 */
    .cd-side-card {
        display: none;
    }

    .cd-enroll-mobile {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        font-family: inherit;
    }

    /* 헤더 (접힘/펼침 버튼 역할) */
    .cd-enroll-mobile-header {
        width: 100%;
        border: none;
        outline: none;
        padding: 10px 16px;
        background: #151b28;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        font-weight: 500;
    }
    .cd-enroll-mobile-title {
        font-size: 13px;
        opacity: 0.8;
    }
    .cd-enroll-mobile-price {
        font-size: 15px;
        font-weight: 600;
        margin-left: auto;
        margin-right: 6px;
    }
    .cd-enroll-mobile-arrow {
        font-size: 12px;
        transition: transform 0.2s ease;
    }
    .cd-enroll-mobile.is-open .cd-enroll-mobile-arrow {
        transform: rotate(180deg);
    }

    /* 펼쳐지는 본문 */
    .cd-enroll-mobile-body {
        overflow: hidden;
        max-height: 0;
        background: #f5f6fa;
        transition: max-height 0.25s ease;
        border-top: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
    }
    .cd-enroll-mobile.is-open .cd-enroll-mobile-body {
        max-height: 420px; /* 내용에 맞춰 조절 */
    }

    .cd-enroll-mobile-inner {
        padding: 12px 16px 16px;
        background: #ffffff;
        border-radius: 12px 12px 0 0;
    }

    /* 간단 요약 박스 (필요한 항목만 HTML에서 구성) */
    .cd-enroll-summary {
        margin-bottom: 10px;
        border-radius: 8px;
        background: #f8fafc;
        padding: 8px 10px;
    }
    .cd-enroll-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 13px;
        margin-bottom: 4px;
    }
    .cd-enroll-row:last-child {
        margin-bottom: 0;
    }
    .cd-enroll-row-sub {
        font-size: 12px;
        color: #4b5563;
    }
    .cd-enroll-label {
        color: #6b7280;
    }
    .cd-enroll-value {
        font-weight: 600;
        color: #111827;
    }
    .cd-enroll-note {
        font-weight: 400;
        font-size: 11px;
        margin-left: 4px;
        color: #9ca3af;
    }

    /* 버튼 2개 가로 배치 (미리보기 / 수강신청) */
    .cd-enroll-actions {
        display: flex;
        gap: 8px;
        margin-top: 4px;
    }
    .cd-enroll-btn {
        flex: 1;
        height: 44px;
        border-radius: 999px;
        border: 1px solid transparent;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.15s ease, box-shadow 0.15s ease,
                    transform 0.05s ease, color 0.15s ease;
    }
    .cd-enroll-btn-primary {
        background: #ffffff;
        color: #1f2933;
        border-color: #d1d5db;
    }
    .cd-enroll-btn-primary:active {
        transform: translateY(1px);
        box-shadow: none;
    }
    .cd-enroll-btn-accent {
        background: #ff7b1a;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(255, 123, 26, 0.4);
    }
    .cd-enroll-btn-accent:active {
        transform: translateY(1px);
        box-shadow: none;
    }
    .cd-enroll-btn-disabled {
        background: #e5e7eb;
        color: #6b7280;
        cursor: default;
        box-shadow: none;
    }

    /* 모바일에서는 총 차시/시간, 난이도, 학습정원, 과정소개서 출력 숨김
       (해당 요소에 cd-side-list-mobile, cd-btn-print 클래스를 사용한다고 가정) */
    .cd-side-list-mobile,
    .cd-enroll-mobile .cd-btn-print {
        display: none !important;
    }
}

/* =========================
   11. 기타
   ========================= */

/* course-detail-page 내부에서 sub-tab 완전 제거 (앞에 한 번 더 명시) */
.course-detail-page .sub-tab,
.course-detail-page .sub-tab-wrap,
.course-detail-page .sub-tab-area,
.course-detail-page [data-tab-prev],
.course-detail-page [data-tab-next] {
    display: none !important;
}

/* =========================
   PC 수강신청 카드 리디자인
   ========================= */
@media (min-width: 769px) {

  /* 카드 전체 톤 다운 & 페이지와 어울리게 */
  .cd-side-card {
      background: #ffffff;
      color: #111827;
      border-radius: 20px;
      padding: 20px 20px 18px;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
      border: 1px solid #e5e7eb;
  }

  /* 가격 박스: 파스텔 그라데이션 */
  .cd-price-box {
      background: linear-gradient(135deg, #eef2ff, #e0f2fe);
      border-radius: 16px;
      padding: 14px 16px 16px;
      margin-bottom: 16px;
      box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
  }

  .cd-price-label {
      font-size: 12px;
      font-weight: 600;
      color: #4b5563;
      display: flex;
      align-items: center;
      gap: 6px;
      opacity: 0.9;
  }
  /* “교육비” 뱃지 느낌 */
  .cd-price-label::before {
      content: "교육비";
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      background: rgba(255,255,255,0.9);
      color: #2563eb;
  }

  .cd-price-main {
      margin-top: 6px;
      font-size: 24px;
      font-weight: 800;
      color: #111827;
  }

  .cd-price-sub {
      margin-top: 4px;
      font-size: 12px;
      color: #4b5563;
      opacity: 0.9;
  }

  /* 버튼 그룹 간격 살짝 정리 */
  .cd-btn-group {
      margin-top: 12px;
      margin-bottom: 14px;
      gap: 8px;
  }

  .cd-btn {
      height: 44px;
      font-size: 14px;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      color: #111827;
      box-shadow: none;
      transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
  }

  .cd-btn:hover {
      background: #eef2ff;
      box-shadow: 0 6px 14px rgba(148, 163, 184, 0.35);
  }
  .cd-btn:active {
      transform: translateY(1px);
      box-shadow: none;
  }

  /* 강의 미리보기 : 연한 회색 버튼 */
  .cd-btn-sample {
      background: #f9fafb;
      color: #111827;
  }

  /* 과정소개서 출력 : 딥그레이 아웃라인 버튼 */
  .cd-btn-print {
      background: #ffffff;
      color: #4b5563;
      border-color: #d1d5db;
  }

  /* 수강신청 : 메인 포인트 컬러 */
  .cd-btn-apply {
      background: #163AA2;
      color: #ffffff;
      border-color: #f97316;
      box-shadow: 0 14px 26px rgba(249,115,22,0.35);
  }
  .cd-btn-apply:hover {
      background: #ea580c;
      border-color: #ea580c;
  }

  /* 하단 요약 텍스트도 전체 톤에 맞게 */
  .cd-side-list ul {
      padding-top: 10px;
      border-top: 1px solid #e5e7eb;
      color: #6b7280;
      opacity: 1;
  }
}

/* ====================================
   PC 수강신청 카드 버튼 리파인
   ==================================== */
@media (min-width: 769px) {

  /* 버튼 그룹 간격 */
  .cd-side-card .cd-btn-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 14px;
      margin-bottom: 14px;
  }

  /* 공통 버튼 스타일 */
  .cd-side-card .cd-btn {
      width: 100%;
      height: 48px;
      padding: 0 18px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 600;
      border: 1px solid #e5e7eb;
      background: #ffffff;
      color: #111827;
      box-shadow: none;
      text-decoration: none;
      transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
  }

  .cd-side-card .cd-btn img {
      width: 18px;
      height: 18px;
  }

  .cd-side-card .cd-btn:hover {
      background: #f3f4ff;
      box-shadow: 0 6px 14px rgba(148, 163, 184, 0.35);
  }

  .cd-side-card .cd-btn:active {
      transform: translateY(1px);
      box-shadow: none;
  }

  /* 강의 미리보기 (1번 버튼) */
  .cd-side-card .cd-btn-sample {
      background: #f9fafb;
      border-color: #e5e7eb;
      color: #111827;
  }

  /* 과정소개서 출력 (2번 버튼) */
  .cd-side-card .cd-btn-print {
      background: #ffffff;
      border-color: #d1d5db;
      color: #4b5563;
  }

  /* 수강신청 (3번 버튼 – 메인 컬러) */
  .cd-side-card .cd-btn-apply {
      margin-top: 2px;
      background: linear-gradient(135deg, #102C7A, #1C6BDE);
      border-color: transparent;
      color: #ffffff;
      box-shadow: 0 14px 26px rgba(255, 123, 26, 0.45);
  }

  .cd-side-card .cd-btn-apply:hover {
      background: linear-gradient(135deg, #102C7A, #1550A6);
      box-shadow: 0 16px 28px rgba(249,115,22,0.5);
  }

  .cd-side-card .cd-btn-apply:active {
      transform: translateY(1px);
      box-shadow: none;
  }
}


/* 수강신청 버튼: 불(glow) 효과 제거 */
@media (min-width: 769px) {
  .cd-side-card .cd-btn-apply {
      box-shadow: none;                 /* 기본 glow 제거 */
  }
  .cd-side-card .cd-btn-apply:hover,
  .cd-side-card .cd-btn-apply:active {
      box-shadow: none;                 /* 호버/클릭 때도 glow 없음 */
  }
}

/* 강의 미리보기 / 과정소개서 출력 아이콘 색 진하게 보이게 */
@media (min-width: 769px) {
  .cd-side-card .cd-btn-sample img,
  .cd-side-card .cd-btn-print img {
      filter: none !important;          /* 이전의 흰색 필터 제거 */
      /* 혹시 너무 연하면 아래 한 줄만 남기고 위 줄 지워도 됨 */
      filter: grayscale(1) brightness(0.25) !important; 
  }
}

/* 수강후기 셀: 한 줄 + 말줄임표 */
.cd-review-table td.cd-review-content {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.cd-review-table td.cd-review-content:hover {
    text-decoration: underline;
}

/* 비어있는 별 5개짜리 이미지 / 꽉찬 별 5개짜리 이미지 준비 */
.cd-rating-icon {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 16px;
    background: url('/images/review-star-empty.svg') no-repeat left center / contain;
    vertical-align: middle;
}

/* 점수만큼 꽉 찬 별 덧씌우기 */
.cd-rating-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: url('/images/review-star-fill.svg') no-repeat left center / contain;
    width: 0;
    overflow: hidden;
}

/* 1~5점 매핑 */
.cd-rating-icon.rating-1::after { width: 20%; }
.cd-rating-icon.rating-2::after { width: 40%; }
.cd-rating-icon.rating-3::after { width: 60%; }
.cd-rating-icon.rating-4::after { width: 80%; }
.cd-rating-icon.rating-5::after { width: 100%; }



/* 수강후기 셀: 한 줄 + 말줄임표 */
.cd-review-table td.cd-review-content {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.cd-review-table td.cd-review-content:hover {
    text-decoration: underline;
}

/* 비어있는 별 5개짜리 이미지 / 꽉찬 별 5개짜리 이미지 준비 */
.cd-rating-icon {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 16px;
    background: url('/images/review-star-empty.svg') no-repeat left center / contain;
    vertical-align: middle;
}

/* 점수만큼 꽉 찬 별 덧씌우기 */
.cd-rating-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: url('/images/review-star-fill.svg') no-repeat left center / contain;
    width: 0;
    overflow: hidden;
}

/* 1~5점 매핑 */
.cd-rating-icon.rating-1::after { width: 20%; }
.cd-rating-icon.rating-2::after { width: 40%; }
.cd-rating-icon.rating-3::after { width: 60%; }
.cd-rating-icon.rating-4::after { width: 80%; }
.cd-rating-icon.rating-5::after { width: 100%; }



/* 전체 레이어 래퍼 */
.cd-review-layer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}
.cd-review-layer.is-open {
    display: block;
}

/* 딤 */
.cd-review-layer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

/* 다이얼로그 */
.cd-review-layer-dialog {
    position: relative;
    max-width: 520px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    padding: 18px 20px 20px;
    box-sizing: border-box;
}

.cd-review-layer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.cd-review-layer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.cd-review-layer-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
}

/* 팝업 내 만족도 */
.cd-review-layer-rating {
    margin-bottom: 10px;
}

/* 팝업 본문 */
.cd-review-layer-body {
    max-height: 320px;
    overflow-y: auto;
}
.cd-review-layer-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    white-space: pre-wrap;
}



/* 상단 서브 탭 전체 영역 */
.course-subnav {
    background:#ffffff;
    border-bottom:1px solid #edf0f5;
    padding-top:8px;
    padding-bottom:4px;
}

/* 내부 컨테이너: 왼쪽 정렬 */
.course-subnav-inner {
    max-width:1200px;
    margin:0 auto;
    padding:0 24px;
    display:flex;
    justify-content:flex-start;     /* ⬅ 왼쪽 정렬 */
    align-items:flex-end;
    gap:32px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}
.course-subnav-inner::-webkit-scrollbar { display:none; }

/* 개별 탭 기본 스타일 */
.course-subnav--line .item {
    position:relative;
    padding:10px 0 14px;
    font-family:"Pretendard",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
    font-size:15px;
    color:#8a8fa1;
    text-decoration:none;
    white-space:nowrap;
    letter-spacing:-0.02em;
    transition:color .18s ease;
}

/* hover 시 살짝 강조 */
.course-subnav--line .item:hover {
    color:#355bff;
}

/* 활성 탭 */
.course-subnav--line .item.on {
    color:#111827;
    font-weight:600;
}

/* 활성 탭 언더라인 (조금 두껍게) */
.course-subnav--line .item.on::after {
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:3px;
    border-radius:999px;
    background:#355bff;
}

/* 필요 없으면 구분선은 제거 */
.course-subnav--line .item + .item::before {
    content:"";
    position:absolute;
    left:-16px;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:18px;
    background:#e3e5ee;
}

/* 모바일에서 간격/폰트 조정 */
@media (max-width:768px){
    .course-subnav-inner {
        padding:0 16px;
        gap:20px;
    }
    .course-subnav--line .item {
        padding:8px 0 10px;
        font-size:14px;
    }
    .course-subnav--line .item.on::after {
        height:2px;
    }
}

.course-category-select {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}

.course-category-select select {
    width: 240px;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #d7d9e2;
    background: #ffffff;
    color: #333;
    font-family: "Pretendard", sans-serif;
    appearance: none;

    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='12' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M2 4l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.course-category-select select:focus {
    outline: none;
    border-color: #315bff;
    box-shadow: 0 0 0 3px rgba(49,91,255,0.15);
}



/* ==========================================
 * 수강유형 / 수강기간 선택 영역
 * (오른쪽 수강신청 카드 공용)
 * ==========================================*/

/* 전체 박스 */
.cd-enroll-type-box {
    margin-top: 16px;
    padding: 14px 16px 12px;
    border-radius: 12px;
    background: #f7f9fc;
    border: 1px solid #e1e6f0;
    font-size: 13px;
    color: #333;
}

/* 상단 탭(일반수강 / 내일배움카드) */
.cd-enroll-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.cd-type-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #c5cedf;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    transition: all .18s ease;
    user-select: none;
}

.cd-type-item input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* 선택된 탭 스타일 */
.cd-type-item input[type="radio"]:checked + span,
.cd-type-item span.selected {
    color:#163AA2;
	font-weight:bold;
	border-color: #1d4ed8;

}


/* hover 효과 (PC) */
@media (hover: hover) {
    .cd-type-item:hover {
        border-color: #1d4ed8;
        background: #e5edff;
    }
}

/* 수강기간 선택 박스 공통 */
.cd-period-box {
    margin-top: 8px;
}

.cd-period-label {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

/* 셀렉트 박스 */
.cd-period-select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 13px;
    color: #111827;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #9ca3af 50%),
        linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position:
        calc(100% - 14px) 50%,
        calc(100% - 9px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.cd-period-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .15);
}

/* 아래 설명 텍스트 */
.cd-period-help {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

/* 수강신청 카드와 간격 맞추기 */
.cd-side-card .cd-enroll-type-box {
    margin-bottom: 14px;
}

/* 모바일에서도 자연스럽게 보이도록 */
@media (max-width: 768px) {
    .cd-enroll-type-box {
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .cd-enroll-type-tabs {
        gap: 6px;
    }

    .cd-type-item {
        flex: 1 1 0;
        padding: 7px 0;
        font-size: 12px;
        justify-content: center;
        text-align: center;
    }

    .cd-period-select {
        font-size: 12px;
        padding: 7px 9px;
    }

    .cd-period-help {
        font-size: 10px;
    }
}



/* ===== Related Contents (rc- 새 버전) ===== */

/* 섹션 : 그냥 흰 배경에 여백만 */
.rc-section {
    margin-top: 36px;
    padding: 0 0 32px;
    background: #ffffff;
}

.rc-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 헤더 영역 */
.rc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.rc-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rc-title i {
    font-size: 15px;
    color: #6b7280;
}

/* 우측 네비 버튼 – 라인 아이콘 느낌 */
.rc-nav {
    display: flex;
    gap: 6px;
}

.rc-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.rc-nav-btn i {
    font-size: 13px;
    color: #6b7280;
}

.rc-nav-btn:hover {
    background: #111827;
    border-color: #111827;
    transform: translateY(-1px);
}

.rc-nav-btn:hover i {
    color: #ffffff;
}

/* 슬라이더 */
.rc-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.rc-slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}

/* 스크롤바 최소화 */
.rc-slider-track::-webkit-scrollbar {
    height: 5px;
}
.rc-slider-track::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148,163,184,0.4);
}

/* 카드 – 이미지 작게, 모던한 카드 느낌 */
.rc-card {
    flex: 0 0 220px;          /* = 카드 너비 축소 */
    max-width: 230px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.rc-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

/* 썸네일 – 높이 조금 낮게 */
.rc-thumb {
    position: relative;
    width: 100%;
    padding-top: 50%;       /* 기존보다 낮은 비율 → 작아 보이게 */
    overflow: hidden;
    background: #f3f4f6;
}

.rc-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

/* 카드 하단 정보 */
.rc-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rc-tag {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.rc-lecturename {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    max-height: 2.8em;       /* 2줄까지만 */
    overflow: hidden;
}

/* hover 효과 – 요즘 카드 트렌드 느낌 */
.rc-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.rc-card:hover .rc-thumb img {
    transform: scale(1.03);
}

/* 빈 상태 */
.rc-empty {
    padding: 16px 0;
    font-size: 14px;
    color: #6b7280;
}

/* 반응형 */
@media (max-width: 1024px) {
    .rc-card {
        flex: 0 0 210px;
        max-width: 210px;
    }
}

@media (max-width: 768px) {
    .rc-section {
        margin-top: 28px;
        padding-bottom: 20px;
    }
    .rc-title {
        font-size: 17px;
    }
    .rc-card {
        flex: 0 0 70%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .rc-card {
        flex: 0 0 85%;
    }
}

/* ===== 모바일 튜닝 (한 장씩, 여백 추가, 높이 줄이기) ===== */
@media (max-width: 768px) {

    /* 섹션 양 옆 패딩 주기 */
    .rc-inner {
        padding: 0 16px;
    }

    /* 트랙은 gap 조금 줄이고, 안쪽 패딩도 최소화 */
    .rc-slider-track {
        gap: 12px;
        padding: 0 0 4px;
    }

    /* 카드 : 한 장씩 꽉 차게 (옆 카드 안 보이도록) */
    .rc-card {
        flex: 0 0 100%;      /* 한 화면에 한 장 */
        max-width: 100%;
        margin: 0;           /* 양 옆 여백은 rc-inner 패딩으로 처리 */
        border-radius: 14px;
    }

    /* 썸네일 높이 줄여서 너무 크게 안 보이게 */
    .rc-thumb {
        padding-top: 42%;    /* 50% → 42% 정도로 낮춤 */
    }

    /* 정보 영역 여백·폰트도 살짝 줄이기 */
    .rc-info {
        padding: 10px 12px 12px;
        gap: 3px;
    }

    .rc-tag {
        font-size: 10px;
    }

    .rc-lecturename {
        font-size: 13px;
        line-height: 1.35;
    }

    /* 헤더도 살짝 컴팩트하게 */
    .rc-section {
        margin-top: 24px;
        padding-bottom: 18px;
    }

    .rc-title {
        font-size: 16px;
    }

    .rc-nav-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    /* 아주 작은 화면에서는 썸네일 더 얇게 */
    .rc-thumb {
        padding-top: 38%;
    }
}

/* ===== 수강후기 전체 래퍼 ===== */
#reviewWrap {
    margin-top: 32px;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    background: #ffffff;
}

.rv-section {
    max-width: 1200px;
    margin: 0 auto;
}

/* 타이틀 */
.rv-header {
    margin-bottom: 12px;
}

.rv-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

/* ===== 평점 요약 영역 ===== */
.rv-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px 24px;
    border-radius: 18px;
    background: #f9fafb;
    margin-bottom: 24px;
}

.rv-summary-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rv-score {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.rv-score-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rv-score-label {
    font-size: 13px;
    color: #6b7280;
}

.rv-score-count {
    font-size: 14px;
    color: #111827;
}

.rv-bars {
    flex: 1;
    max-width: 520px;
}

.rv-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.rv-bar-label {
    width: 32px;
    color: #6b7280;
}

.rv-bar-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.rv-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: #fbbf24; /* 노란색 */
}

.rv-bar-value {
    width: 40px;
    text-align: right;
    color: #6b7280;
}

/* ===== 후기 테이블 (PC) ===== */
.rv-table-wrap {
    width: 100%;
}

.rv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rv-table thead th {
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.rv-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.rv-table tbody tr:hover {
    background: #f9fafb;
}

.rv-col-no {
    text-align: center;
    color: #9ca3af;
}

.rv-col-name {
    text-align: center;
    font-weight: 600;
    color: #111827;
}

.rv-col-text {
    text-align: left;
    color: #374151;
    line-height: 1.5;
}

.rv-col-rating {
    text-align: center;
}

.rv-empty {
    text-align: center;
    padding: 24px 0;
    color: #9ca3af;
}

/* 별점 – 행 안에서 사용 */
.rv-stars {
    display: inline-flex;
    gap: 2px;
}

.rv-star {
    width: 18px;
    height: 18px;
    fill: #e5e7eb;   /* 기본 회색 */
}

.rv-star.on {
    fill: #facc15;   /* 선택된 별 – 노란색 */
}


/* ===== 페이징 / 더보기 ===== */
.rv-paging {
    margin: 16px 0 8px;
    text-align: center;
}

.rv-more {
    display: none; /* 기본: 모바일에서만 노출 */
    margin: 8px auto 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
}


@media (max-width: 768px) {

    #reviewWrap {
        padding-top: 20px;
        margin-top: 24px;
    }

    .rv-section {
        padding: 0 16px;
    }

    .rv-title {
        font-size: 18px;
    }

    /* 평점 요약 카드 */
    .rv-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 14px;
        border-radius: 14px;
    }

    .rv-score {
        font-size: 32px;
    }

    .rv-bars {
        width: 100%;
        max-width: none;
    }

    /* ===========================
       후기 리스트 – 쇼핑몰 리뷰 카드
       =========================== */

    .rv-table thead {
        display: none;   /* 헤더 숨김 */
    }

    .rv-table,
    .rv-table tbody,
    .rv-table tr {
        display: block;
        width: 100%;
    }

    /* 카드 한 장 */
    .rv-table tbody tr {
        padding: 14px 16px 12px;
        margin-bottom: 12px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    }

    .rv-table tbody td {
        display: block;
        border: 0;
        padding: 0;
        margin-bottom: 6px;
        text-align: left;
    }

    /* 1줄: 번호 + 작성자 (얇은 회색 텍스트) */
    .rv-col-no,
    .rv-col-name {
        display: inline-block;
        font-size: 12px;
        font-weight: 500;
        color: #6b7280;
        margin-bottom: 0;
    }

    .rv-col-no {
        margin-right: 4px;
    }

    /* 2줄: 별점 */
    .rv-col-rating {
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .rv-stars {
        display: inline-flex;
        gap: 1px;
    }

    .rv-star {
        width: 16px;
        height: 16px;
        fill: #e5e7eb;
    }

    .rv-star.on {
        fill: #facc15;
    }

    /* 3줄: 후기 내용 */
    .rv-col-text {
        margin-top: 2px;
        font-size: 14px;
        line-height: 1.5;
        color: #374151;
    }

    /* 페이징/더보기 */
    .rv-paging {
        display: none;
    }

    .rv-more {
        display: inline-block;
    }
}

/* 수강신청 카드 하단 - 목록으로 버튼 */
.cd-side-body .cd-btn-back-to-list {
  margin-top: 12px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background-color: #ffffff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cd-side-body .cd-btn-back-to-list:hover {
  background-color: #f9fafb;
}

.cd-side-body .cd-btn-back-icon {
  font-size: 13px;
  line-height: 1;
}
/* 모바일: 관련과정 하단 목록 버튼 */
.rc-mobile-list-btn {
  display: none; /* 기본은 숨김 (PC) */
}

@media (max-width: 768px) {
  .rc-mobile-list-btn {
    display: flex;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  }

  .rc-mobile-list-btn:active {
    background-color: #f3f4f6;
  }

  .rc-mobile-list-icon {
    font-size: 13px;
    line-height: 1;
  }

  .rc-mobile-list-text {
    line-height: 1;
  }
}
