@charset "utf-8";
/* ==========================================================================
   winnersclass 사용자 화면 다크 테마 (관리자 _awsAdm 은 로드하지 않음)
   - dark.auto.css : 기존 CSS 색상을 자동 변환한 결과 (backup/tools/gen_dark.py)
   - dark.css      : 공통 톤/버튼/폼/헤더/푸터 등 수동 보정 (이 파일)
   ========================================================================== */
:root {
	--wc-bg: #0b0b0b;
	--wc-surface: #181818;
	--wc-surface-2: #1b1b1b;
	--wc-surface-3: #232323;
	--wc-line: #2a2a2a;
	--wc-line-2: #3a3a3a;
	--wc-text: #f2f2f2;
	--wc-text-strong: #ffffff;
	--wc-text-muted: #b8b8b8;
	--wc-gold: #c1b092;
	--wc-gold-hover: #cec0a6;
	--wc-gold-text: #c1b092;
	--wc-on-gold: #0b0b0b;
	--wc-price: #e53935;
}

/* 기존 CSS 변수(contents.css, style.css)를 다크 톤으로 재정의 */
body.theme-dark,
.wc-dark-scope {
	--main: #c1b092;
	--sub: #c1b092;
	--black: #f2f2f2;
	--border: rgba(255,255,255,0.12);
	--brand: #c1b092;
	--ink: #f2f2f2;
	--muted: #b8b8b8;
	--bg: #0b0b0b;
	--card: #181818;
}

/* ---------- 기본 바탕 ---------- */
html { background: var(--wc-bg); }
body.theme-dark { background: var(--wc-bg) !important; color: var(--wc-text); }
.theme-dark #wrap,
.theme-dark #wrapmain,
.theme-dark .sub-body,
.theme-dark #sub-container_bg,
.theme-dark .section-new-subject,
.theme-dark .section-best-subject,
.theme-dark .sub-content { background-color: transparent !important; }
.theme-dark .sub-body { background: var(--wc-bg) !important; }

.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4, .theme-dark h5, .theme-dark h6 { color: var(--wc-text-strong); }
.theme-dark hr { border-color: var(--wc-line); }
.theme-dark a:link, .theme-dark a:visited, .theme-dark a:active { color: var(--wc-text); }
.theme-dark a:hover { color: var(--wc-gold-text); }
.theme-dark ::selection { background: var(--wc-gold); color: var(--wc-on-gold); }

/* ---------- 헤더 / GNB ---------- */
.theme-dark #header,
.theme-dark #gnb_area,
.theme-dark .gnbDiv .gnbWrap .gnb { background: var(--wc-bg) !important; }
.theme-dark #header > .min768 { border-bottom: 1px solid var(--wc-line) !important; }
.theme-dark .topmenu-info,
.theme-dark .topmenu-info a,
.theme-dark .topmenu-info span { color: var(--wc-text-muted) !important; }
.theme-dark .topmenu-info a:hover { color: var(--wc-gold-text) !important; }
.theme-dark .topmenu-info .menu_line { background: var(--wc-line-2) !important; }
.theme-dark .topmenu-info { border-top-color: transparent !important; }

/* 서브 상단 비주얼 띠 (넓은 영역은 골드 대신 다크) */
.theme-dark .topvisual .sub_bg,
.theme-dark .topvisual [class*="bg_"] { background-color: var(--wc-surface) !important; color: var(--wc-text-strong) !important; border-bottom: 1px solid var(--wc-line); }
.theme-dark .topvisual .sub_img { color: var(--wc-text-strong) !important; }
.theme-dark .topvisual .sub_img::after { background-color: var(--wc-gold) !important; }
.theme-dark .topvisual .section_bg3 { background: #101010 !important; color: var(--wc-text-muted) !important; }
.theme-dark .topvisual .section_bg3 ul li a { color: var(--wc-text-muted) !important; }
.theme-dark .topvisual .section_bg3 ul li:last-child a { color: var(--wc-gold-text) !important; }
.theme-dark #menu-line { background: var(--wc-gold) !important; }

/* 서브 페이지 타이틀 */
.theme-dark .subject-title { color: var(--wc-text-strong) !important; }
.theme-dark .subject-title::before { background-color: var(--wc-gold) !important; }
.theme-dark .sub-title .subject { background: var(--wc-surface) !important; border-color: var(--wc-line) !important; color: var(--wc-text-strong) !important; }
.theme-dark .sub-title .subject-title { background: var(--wc-surface) !important; border-color: var(--wc-line) !important; }
.theme-dark .gnbDiv .gnbWrap .gnb ul li a.oneDep { color: var(--wc-text-strong) !important; }
.theme-dark .gnbDiv .gnbWrap .gnb ul li:hover a.oneDep,
.theme-dark .gnbDiv .gnbWrap .gnb ul li.on a.oneDep { color: var(--wc-gold-text) !important; }
.theme-dark .gnbDiv .gnbWrap .gnb ul li a.oneDep:after { background: var(--wc-gold) !important; }
.theme-dark .gnbDiv .gnbWrap .twoDep { background: #262626 !important; border-top: 1px solid #3a3a3a !important; border-bottom: 1px solid var(--wc-gold) !important; }
.theme-dark .gnbDiv .gnbWrap li.on .twoDep { background: #303030 !important; border-top: 1px solid #3a3a3a !important; border-bottom: 1px solid var(--wc-gold) !important; }
.theme-dark .gnbDiv .gnbWrap li .twoDep a { color: var(--wc-text) !important; }
.theme-dark .gnbDiv .gnbWrap li .twoDep a:hover,
.theme-dark .gnbDiv .gnbWrap li.on .twoDep a.off:hover { color: var(--wc-on-gold) !important; background: var(--wc-gold) !important; }
.theme-dark .menu-icon img,
.theme-dark .closebtn img { filter: invert(1) brightness(1.6); }

/* 모바일 사이드 메뉴 */
.theme-dark .sidenav { background: var(--wc-surface) !important; border-left: 1px solid var(--wc-line) !important; }
.theme-dark .sidenav a,
.theme-dark .sidenav > button,
.theme-dark .dropdown-btn { color: var(--wc-text) !important; }
.theme-dark .dropdown-container { background: var(--wc-bg) !important; }
.theme-dark .dropdown-container a.btn-submenu { color: var(--wc-text-muted) !important; }
.theme-dark .dropdown-btn.active,
.theme-dark .dropdown-container a.btn-submenu:hover { color: var(--wc-gold-text) !important; }
.theme-dark .m-login button { background: var(--wc-gold) !important; color: var(--wc-on-gold) !important; border: 0 !important; }
.theme-dark .m-login button img { filter: brightness(0); }

/* ---------- 메인 타이틀 (투톤 → 화이트 + 골드) ---------- */
.theme-dark .main-title-text,
.theme-dark .main-title-text-1 { color: var(--wc-text-strong) !important; }
.theme-dark .main-title-text .title-tone--navy,
.theme-dark .section-new-subject .main-title-text .title-tone--navy { color: var(--wc-text-strong) !important; }
.theme-dark .main-title-text .title-tone--sky,
.theme-dark .section-new-subject .main-title-text .title-tone--sky { color: var(--wc-gold-text) !important; }
.theme-dark .main-subtitle-text { color: var(--wc-text-muted) !important; }
.theme-dark .b-title,
.theme-dark .b-title2 { color: var(--wc-text-strong) !important; }

/* ---------- 카드 공통 ---------- */
.theme-dark .best-subject li,
.theme-dark .board_box,
.theme-dark .bbody,
.theme-dark .bboard,
.theme-dark .detailFormBox,
.theme-dark .detailWrap .detailLeft,
.theme-dark .detailWrap .detailRight .detailFormBox { background-color: var(--wc-surface) !important; border-color: var(--wc-line) !important; }
.theme-dark .section_pass_bg { background: #2d2d2d; }
.theme-dark .nm-video-wrap { background: var(--wc-surface) !important; border-color: var(--wc-line) !important; }
.theme-dark .nm-video-wrap::before { display: none; }
.theme-dark .nm-video-wrap .nm-play-overlay { background: rgba(255,255,255,0.4); border: 0; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.theme-dark .nm-video-wrap .nm-play-overlay::before { display: none; }
.theme-dark .nm-video-wrap .nm-play-overlay .nm-play-overlay-icon { border-left-color: #111111; filter: none; }
.theme-dark .nm-video-wrap:hover .nm-play-overlay,
.theme-dark .nm-video-wrap:focus-within .nm-play-overlay { background: #ffffff; border: 0; box-shadow: 0 10px 24px rgba(0,0,0,0.45); }
.theme-dark .bx-wrapper { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.theme-dark .ns-ss-all { border-color: var(--wc-line) !important; background: var(--wc-surface); }
.theme-dark .ns-ss-all { transition: border-color .35s ease, box-shadow .35s ease, background-color .35s ease; }
.theme-dark .ns-ss-all .bs-ss-box img { transition: transform .7s cubic-bezier(.22,.61,.36,1), filter .7s ease; }
.theme-dark .ns-ss-all .bs-ss-text h1 { transition: color .3s ease; }
.theme-dark .ns-ss-all:hover { opacity: 1; border-color: rgba(193,176,146,.75) !important; box-shadow: 0 0 0 1px rgba(193,176,146,.18), 0 12px 28px rgba(0,0,0,.55) !important; }
.theme-dark .ns-ss-all:hover .bs-ss-box img { transform: scale(1.04); filter: brightness(1.06); }
.theme-dark .ns-ss-all:hover .bs-ss-text h1 { color: var(--wc-gold) !important; }
.theme-dark .section-new-subject .ns-ss-all { background: #2f2f2f; }
.theme-dark .section-new-subject .ns-ss-all:hover { background: #353535; }
.theme-dark .bs-ss-box .stateBtn.state2 { display: none; }
.theme-dark .section-new-subject .best-subject li { background-color: transparent !important; }

/* ---------- 버튼 : 주 버튼(골드 채움) / 보조 버튼(골드 테두리) ---------- */
.theme-dark .box_btn > button,
.theme-dark button.confirm,
.theme-dark button.payment,
.theme-dark button.buyGo,
.theme-dark button.buyCart,
.theme-dark button.myStudy,
.theme-dark button.btn-cate,
.theme-dark .btn_bbs_search,
.theme-dark .bbs-normalbtn.bbs-confirm,
.theme-dark .btn-primary,
.theme-dark .btn-gold {
	background: var(--wc-gold) !important;
	color: var(--wc-on-gold) !important;
	border: 1px solid var(--wc-gold) !important;
	font-weight: 700;
	border-radius: 4px;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.theme-dark .box_btn > button:hover,
.theme-dark button.confirm:hover,
.theme-dark button.payment:hover,
.theme-dark button.buyGo:hover,
.theme-dark button.buyCart:hover,
.theme-dark button.myStudy:hover,
.theme-dark button.btn-cate:hover,
.theme-dark .btn_bbs_search:hover,
.theme-dark .bbs-normalbtn.bbs-confirm:hover,
.theme-dark .btn-primary:hover,
.theme-dark .btn-gold:hover { background: var(--wc-gold-hover) !important; border-color: var(--wc-gold-hover) !important; color: var(--wc-on-gold) !important; }

.theme-dark button.joinCode,
.theme-dark button.normal,
.theme-dark button.small-line,
.theme-dark button.add-btn,
.theme-dark .bbs-normalbtn,
.theme-dark .btn_white,
.theme-dark .btn-line,
.theme-dark .btn-default {
	background: transparent !important;
	color: var(--wc-gold-text) !important;
	border: 1px solid var(--wc-gold) !important;
	border-radius: 4px;
	transition: background-color .2s ease, color .2s ease;
}
.theme-dark button.joinCode:hover,
.theme-dark button.normal:hover,
.theme-dark button.small-line:hover,
.theme-dark button.add-btn:hover,
.theme-dark .bbs-normalbtn:hover,
.theme-dark .btn_white:hover,
.theme-dark .btn-line:hover,
.theme-dark .btn-default:hover { background: rgba(193,176,146,0.12) !important; color: var(--wc-gold-hover) !important; }

/* 결제하기 = 레드 채움 / 장바구니 = 골드 테두리 (클라이언트 지정). 무료 '신청하기'(coursFree)는 골드 채움 유지 */
.theme-dark button.buyGo,
.theme-dark button.payment,
.theme-dark .pay-rail .pay-card.v2 .pay-btn.v2 {
	background: var(--wc-price) !important;
	color: #fff !important;
	border: 1px solid var(--wc-price) !important;
	box-shadow: 0 10px 20px rgba(229,57,53,0.22) !important;
}
.theme-dark button.buyGo:hover,
.theme-dark button.payment:hover,
.theme-dark .pay-rail .pay-card.v2 .pay-btn.v2:hover { background: #c62828 !important; border-color: #c62828 !important; color: #fff !important; }
.theme-dark button.buyCart:not(.coursFree),
.theme-dark .pay-rail .pay-card.v2 .pay-ghost {
	background: transparent !important;
	color: var(--wc-gold-text) !important;
	border: 1px solid var(--wc-gold) !important;
}
.theme-dark button.buyCart:not(.coursFree):hover,
.theme-dark .pay-rail .pay-card.v2 .pay-ghost:hover { background: rgba(193,176,146,0.12) !important; color: var(--wc-gold-hover) !important; }
/* 장바구니 페이지: 전체주문 = 레드 채움, 선택주문 = 골드 테두리 */
.theme-dark .cartList-btn button.bl-bnt { background: var(--wc-price) !important; color: #fff !important; border: 1px solid var(--wc-price) !important; }
.theme-dark .cartList-btn button.bl-bnt:hover { background: #c62828 !important; border-color: #c62828 !important; }
.theme-dark .cartList-btn button.b-bnt { background: transparent !important; color: var(--wc-gold-text) !important; border: 1px solid var(--wc-gold) !important; }
.theme-dark .cartList-btn button.b-bnt:hover { background: rgba(193,176,146,0.12) !important; }
.theme-dark .cartList-btn button.b-bnt img { filter: brightness(0) saturate(100%) invert(76%) sepia(12%) saturate(520%) hue-rotate(2deg) brightness(92%) !important; }
.theme-dark button.buyCart:not(.coursFree) img { filter: brightness(0) saturate(100%) invert(76%) sepia(12%) saturate(520%) hue-rotate(2deg) brightness(92%) !important; }

/* 골드 배경 위 텍스트는 항상 어둡게 */
.theme-dark .cate-tap li.active,
.theme-dark .cate-tap li.active a,
.theme-dark .cate-tap li a:hover,
.theme-dark .cd-pagination li .current,
.theme-dark .pagination > .active > a,
.theme-dark .pagination > .active > span,
.theme-dark .check-con input:checked ~ .marking { color: var(--wc-on-gold) !important; }
.theme-dark .cate-tap li.active,
.theme-dark .cd-pagination li .current,
.theme-dark .pagination > .active > a,
.theme-dark .pagination > .active > span { background: var(--wc-gold) !important; border-color: var(--wc-gold) !important; }
.theme-dark .cate-tap li { background: transparent !important; border-color: var(--wc-line-2) !important; }
.theme-dark .cate-tap li a { color: var(--wc-text) !important; }
.theme-dark .cate-tap li a:hover { background: var(--wc-gold) !important; }
.theme-dark .check-con input:checked ~ .marking { background-color: var(--wc-gold) !important; }
.theme-dark .check-con .marking:after { border-color: var(--wc-on-gold) !important; }
.theme-dark .marking { background-color: var(--wc-surface-2) !important; border: 1px solid var(--wc-line-2); }

/* 탭(상세/게시판) */
.theme-dark .detail-tab { border-bottom-color: var(--wc-line) !important; }
.theme-dark .detail-tab button { background: transparent !important; color: var(--wc-text-muted) !important; border-color: var(--wc-line) !important; }
.theme-dark .detail-tab button.active { background: var(--wc-gold) !important; color: var(--wc-on-gold) !important; border-color: var(--wc-gold) !important; font-weight: 700; }
/* 터치 기기는 탭한 버튼에 hover 가 남으므로 마우스 환경에서만 */
@media (hover: hover) {
	.theme-dark .detail-tab button:not(.active):hover { color: var(--wc-gold-text) !important; border-color: var(--wc-gold) !important; }
}

/* ---------- 폼 ---------- */
.theme-dark input[type="text"],
.theme-dark input[type="password"],
.theme-dark input[type="email"],
.theme-dark input[type="tel"],
.theme-dark input[type="number"],
.theme-dark input[type="search"],
.theme-dark input[type="date"],
.theme-dark input:not([type]),
.theme-dark select,
.theme-dark textarea,
.theme-dark .form-control {
	background-color: var(--wc-surface-2) !important;
	color: var(--wc-text) !important;
	border: 1px solid var(--wc-line-2) !important;
}
.theme-dark input:focus,
.theme-dark select:focus,
.theme-dark textarea:focus,
.theme-dark .form-control:focus { border-color: var(--wc-gold) !important; outline: none; box-shadow: 0 0 0 2px rgba(193,176,146,0.18) !important; }
.theme-dark input[readonly],
.theme-dark input:disabled,
.theme-dark select:disabled,
.theme-dark textarea[readonly] { background-color: var(--wc-surface) !important; color: var(--wc-text-muted) !important; }
.theme-dark ::placeholder { color: #6f6f6f !important; }
.theme-dark select option { background: var(--wc-surface-2); color: var(--wc-text); }
.theme-dark input:-webkit-autofill,
.theme-dark input:-webkit-autofill:hover,
.theme-dark input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--wc-text);
	-webkit-box-shadow: 0 0 0 1000px var(--wc-surface-2) inset;
	transition: background-color 9999s ease-in-out 0s;
}
.theme-dark input[type="checkbox"],
.theme-dark input[type="radio"] { accent-color: var(--wc-gold); }

/* 로그인 */
.theme-dark .login-title { color: var(--wc-text-strong) !important; }
.theme-dark button.joinFind { background: transparent !important; color: var(--wc-text-muted) !important; }
.theme-dark button.joinFind:hover { color: var(--wc-gold-text) !important; }
.theme-dark .check-con { color: var(--wc-text-muted); }

/* ---------- 표 / 게시판 ---------- */
.theme-dark table { border-color: var(--wc-line); }
.theme-dark th { color: var(--wc-text-strong); }
.theme-dark td { color: var(--wc-text); }
.theme-dark .table > thead > tr > th,
.theme-dark .table_board_for th,
.theme-dark .table_write tr > th,
.theme-dark .table-th { background: var(--wc-surface) !important; color: var(--wc-text-strong) !important; }
.theme-dark .table > tbody > tr:hover > td,
.theme-dark .table_board_for tr:hover td { background: rgba(255,255,255,0.02); }

/* 게시글/상품상세 본문 (에디터 입력 HTML) */
.theme-dark .content_box,
.theme-dark .detail-center,
.theme-dark .tabcontent { color: var(--wc-text); }
.theme-dark .content_box [style*="background-color: rgb(255, 255, 255)"],
.theme-dark .content_box [style*="background-color:#ffffff"],
.theme-dark .content_box [style*="background-color: #ffffff"],
.theme-dark .detail-center [style*="background-color: rgb(255, 255, 255)"] { background-color: transparent !important; }

/* ---------- 별점 (이미지 스프라이트 → ★ 문자, 메인 수강후기 별과 동일 톤) ---------- */
.theme-dark .starImg { width: 84px; height: 16px; vertical-align: middle; }
.theme-dark .starImg span {
	background: none !important;
	width: 84px;
	height: 16px;
	overflow: hidden;
	white-space: nowrap;
	font-size: 16px;
	line-height: 16px;
	letter-spacing: 1px;
	color: #3a3a3a;
}
.theme-dark .starImg span::before { content: "★★★★★"; display: block; width: 84px; }
.theme-dark .starImg span.on { color: #e53935; }

/* ---------- 모달 ---------- */
.theme-dark .modal-content,
.theme-dark .modal-inner-content { background: var(--wc-surface) !important; color: var(--wc-text) !important; border-color: var(--wc-line) !important; }
.theme-dark .modal-header,
.theme-dark .modal-footer { border-color: var(--wc-line) !important; }
.theme-dark .modal-backdrop { background: #000; }
.theme-dark .close { color: var(--wc-text-strong); text-shadow: none; opacity: .7; }

/* ---------- 가격 ---------- */
.theme-dark .price,
.theme-dark .totalMoney,
.theme-dark .salePrice { color: var(--wc-price); }

/* ---------- 메인 커뮤니티 배너 / 문의 버튼 ---------- */
.theme-dark .nb-right-banner {
	background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.82)), url(/files/images/m_bg.jpg) !important;
	background-size: cover !important;
	background-position: center !important;
	border: 1px solid var(--wc-line);
}
.theme-dark .nb-b-tag { color: var(--wc-gold-text); }
.theme-dark .nb-q-btn { background: var(--wc-gold) !important; color: var(--wc-on-gold) !important; border-color: var(--wc-gold) !important; }
.theme-dark .nb-q-btn span,
.theme-dark .nb-q-btn i { color: var(--wc-on-gold) !important; }

/* ---------- 푸터 ---------- */
.theme-dark .foot-privit { background: var(--wc-bg) !important; border-top: 1px solid var(--wc-line) !important; border-bottom: 1px solid var(--wc-line) !important; }
.theme-dark .foot-privit li a { color: var(--wc-text-muted) !important; }
.theme-dark .foot-privit li a.privit,
.theme-dark .foot-privit li a:hover { color: var(--wc-gold-text) !important; }
.theme-dark .foot-privit li:after { background: var(--wc-line-2) !important; }
.theme-dark .foot-bottom { background: #070707 !important; }
.theme-dark .foot-bottom-info h1 { color: var(--wc-text-strong) !important; }
.theme-dark .foot-bottom-info li,
.theme-dark .fb-info-copylight,
.theme-dark .foot-bottom .by,
.theme-dark .foot-bottom .by a { color: #b0b0b0 !important; }

/* 모바일 하단 내비 */
.theme-dark #bottomNav {
	background: rgba(11,11,11,0.96) !important;
	border-top: 1px solid var(--wc-line);
	color: var(--wc-gold-text) !important;
}
.theme-dark #bottomNav .menu-icon-wrapper { color: var(--wc-text-muted) !important; }
.theme-dark #bottomNav .svg-icon path { fill: #6f6f6f !important; }
.theme-dark #bottomNav .nav-item.on .menu-icon-wrapper,
.theme-dark #bottomNav .nav-item.active .menu-icon-wrapper { color: var(--wc-gold-text) !important; }
.theme-dark #bottomNav .nav-item.on .svg-icon path,
.theme-dark #bottomNav .nav-item.active .svg-icon path { fill: var(--wc-gold) !important; }

/* TOP 버튼 */
.theme-dark .goTop { background: var(--wc-surface-2) !important; color: var(--wc-gold-text) !important; border: 1px solid var(--wc-line-2) !important; box-shadow: 0 6px 18px rgba(0,0,0,.5) !important; }
.theme-dark .goTop:hover,
.theme-dark .goTop:active { background: var(--wc-gold) !important; color: var(--wc-on-gold) !important; border-color: var(--wc-gold) !important; }

/* ---------- jQuery UI 달력 ---------- */
.theme-dark .ui-datepicker { background: var(--wc-surface) !important; border: 1px solid var(--wc-line) !important; color: var(--wc-text); }
.theme-dark .ui-datepicker .ui-datepicker-header { background: var(--wc-surface-2) !important; border-color: var(--wc-line) !important; color: var(--wc-text-strong); }
.theme-dark .ui-datepicker .ui-state-active { background: var(--wc-gold) !important; color: var(--wc-on-gold) !important; border-color: var(--wc-gold) !important; }

/* ---------- 템플릿 인라인 스타일 보정 ---------- */
.theme-dark [style*="color:#000000"], .theme-dark [style*="color: #000000"],
.theme-dark [style*="color:#000;"], .theme-dark [style*="color: #000;"],
.theme-dark [style*="color:#000\""], .theme-dark [style*="color:black"],
.theme-dark [style*="color: rgb(0, 0, 0)"], .theme-dark [style*="color:rgb(0,0,0)"],
.theme-dark [style*="color:#111"], .theme-dark [style*="color: #111"],
.theme-dark [style*="color:#222"], .theme-dark [style*="color: #222"],
.theme-dark [style*="color:#333"], .theme-dark [style*="color: #333"],
.theme-dark [style*="color:#383838"], .theme-dark [style*="color:#11184f"] { color: #f2f2f2 !important; }
.theme-dark [style*="color:#444"], .theme-dark [style*="color: #444"],
.theme-dark [style*="color:#555"], .theme-dark [style*="color: #555"],
.theme-dark [style*="color:#666"], .theme-dark [style*="color: #666"],
.theme-dark [style*="color: rgb(102, 102, 102)"], .theme-dark [style*="color:rgb(102,102,102)"],
.theme-dark [style*="color:#1f4f7a"] { color: var(--wc-text-muted) !important; }
.theme-dark [style*="color:#777"], .theme-dark [style*="color: #777"],
.theme-dark [style*="color:#888"], .theme-dark [style*="color: #888"] { color: var(--wc-text-muted) !important; }
.theme-dark [style*="background:#fff;"], .theme-dark [style*="background: #fff;"],
.theme-dark [style*="background:#fff\""], .theme-dark [style*="background:#ffffff"],
.theme-dark [style*="background: #ffffff"], .theme-dark [style*="background-color:#ffffff"],
.theme-dark [style*="background-color: #ffffff"], .theme-dark [style*="background-color:#fff;"],
.theme-dark [style*="background-color: rgb(255, 255, 255)"],
.theme-dark [style*="background:#f7f7f7"], .theme-dark [style*="background-color:#f7f7f7"],
.theme-dark [style*="background:#f5f5f5"], .theme-dark [style*="background:#eeeeee"],
.theme-dark [style*="background:#fcfcfc"], .theme-dark [style*="background:#f7eeee"],
.theme-dark [style*="background:#e6f4ff"] { background-color: var(--wc-surface) !important; }
.theme-dark [style*="background-color:#2563eb"] { background-color: var(--wc-gold) !important; color: var(--wc-on-gold) !important; border-color: var(--wc-gold) !important; }
.theme-dark [style*="color:#0066ff"], .theme-dark [style*="color:#3399cc"],
.theme-dark [style*="color:#3399ff"], .theme-dark [style*="color:#3366cc"],
.theme-dark [style*="color:#2e4ab1"] { color: var(--wc-gold-text) !important; }
.theme-dark [style*="color:#336600"], .theme-dark [style*="color:#339900"] { color: #8bc34a !important; }
.theme-dark [style*="color:#330000"], .theme-dark [style*="color:#660000"] { color: var(--wc-price) !important; }
/* 인라인 강조색 → 클라이언트 팔레트 (빨강 계열 = 레드, 보라/파랑/주황 계열 = 골드) */
.theme-dark [style*="color:#ff0000" i], .theme-dark [style*="color: #ff0000" i],
.theme-dark [style*="color:#f00;" i], .theme-dark [style*="color:red" i],
.theme-dark [style*="color:#d9261b" i], .theme-dark [style*="color:#e50914" i] { color: var(--wc-price) !important; }
.theme-dark [style*="color:#6600cc" i], .theme-dark [style*="color:#6600ff" i],
.theme-dark [style*="color:#6666ff" i], .theme-dark [style*="color:#3300ff" i],
.theme-dark [style*="color:#0000ff" i], .theme-dark [style*="color:#ff00cc" i],
.theme-dark [style*="color:#ff00ff" i], .theme-dark [style*="color:#3f8dc2" i],
.theme-dark [style*="color:#bda300" i], .theme-dark [style*="color:#ff6600" i] { color: var(--wc-gold-text) !important; }
.theme-dark [style*="background:#ff0000" i], .theme-dark [style*="background-color:#ff0000" i] { background-color: var(--wc-price) !important; color: #fff !important; }
.theme-dark [style*="background:#28aab7" i], .theme-dark [style*="background:#ff9900" i] { background-color: var(--wc-gold) !important; color: var(--wc-on-gold) !important; }
/* 카카오 로그인: 노란 바탕 + 검정 글자 (카카오 가이드) */
.theme-dark .kakaologin { color: #000 !important; }
/* 구글 로그인: 흰 바탕 + 어두운 글자 (구글 브랜드 가이드) */
.theme-dark .googlelogin { background-color: #fff !important; color: #1f1f1f !important; border: 1px solid #dadce0 !important; }
.theme-dark .googlelogin:hover { background-color: #f7f8f8 !important; }
.theme-dark font[color="#000000"], .theme-dark font[color="#000"], .theme-dark font[color="black"],
.theme-dark font[color="#333333"], .theme-dark font[color="#333"] { color: #f2f2f2 !important; }

/* ---------- CKEditor 5 (게시판/마이홈 글쓰기) ----------
   ckeditor.js 가 주입하는 !important 색상보다 우선하도록 .theme-dark 로 덮어씀.
   드롭다운/말풍선 패널은 body 직속(.ck-body-wrapper)에 그려지므로 변수는 body 에 지정 */
body.theme-dark {
	--ck-color-base-background: #1b1b1b;
	--ck-color-base-foreground: var(--wc-surface-2);
	--ck-color-base-border: var(--wc-line-2);
	--ck-color-base-text: var(--wc-text);
	--ck-color-base-active: var(--wc-gold);
	--ck-color-base-active-focus: var(--wc-gold-hover);
	--ck-color-text: var(--wc-text);
	--ck-color-shadow-drop: rgba(0,0,0,0.5);
	--ck-color-shadow-inner: rgba(0,0,0,0.3);
	--ck-color-toolbar-background: var(--wc-surface-2);
	--ck-color-toolbar-border: var(--wc-line-2);
	--ck-color-button-default-background: transparent;
	--ck-color-button-default-hover-background: var(--wc-surface-3);
	--ck-color-button-default-active-background: var(--wc-surface-3);
	--ck-color-button-on-background: var(--wc-surface-3);
	--ck-color-button-on-hover-background: #2a2a2a;
	--ck-color-button-on-active-background: #2a2a2a;
	--ck-color-button-on-color: var(--wc-gold);
	--ck-color-button-action-background: var(--wc-gold);
	--ck-color-button-action-hover-background: var(--wc-gold-hover);
	--ck-color-button-action-text: var(--wc-on-gold);
	--ck-color-split-button-hover-background: var(--wc-surface-3);
	--ck-color-split-button-hover-border: var(--wc-line-2);
	--ck-color-dropdown-panel-background: var(--wc-surface-2);
	--ck-color-dropdown-panel-border: var(--wc-line-2);
	--ck-color-panel-background: var(--wc-surface-2);
	--ck-color-panel-border: var(--wc-line-2);
	--ck-color-input-background: #1b1b1b;
	--ck-color-input-border: var(--wc-line-2);
	--ck-color-input-text: var(--wc-text);
	--ck-color-input-disabled-background: var(--wc-surface-3);
	--ck-color-input-disabled-text: var(--wc-text-muted);
	--ck-color-labeled-field-label-background: var(--wc-surface-2);
	--ck-color-list-background: var(--wc-surface-2);
	--ck-color-list-button-hover-background: var(--wc-surface-3);
	--ck-color-list-button-on-background: var(--wc-gold);
	--ck-color-list-button-on-background-focus: var(--wc-gold-hover);
	--ck-color-list-button-on-text: var(--wc-on-gold);
	--ck-color-focus-border: var(--wc-gold);
	--ck-color-focus-outer-shadow: rgba(193,176,146,0.25);
	--ck-color-widget-blurred-border: var(--wc-line-2);
	--ck-color-widget-hover-border: var(--wc-gold);
	--ck-color-widget-editable-focus-background: #1b1b1b;
	--ck-color-link-default: var(--wc-gold-text);
	--ck-color-tooltip-background: #000;
	--ck-color-tooltip-text: #fff;
}
.theme-dark .ck.ck-reset_all,
.theme-dark .ck.ck-reset_all *,
.theme-dark .ck-editor__editable,
.theme-dark .ck-editor__editable.ck-content { color: var(--wc-text) !important; }
.theme-dark .ck.ck-tooltip, .theme-dark .ck.ck-tooltip .ck-tooltip__text { color: #fff !important; }
.theme-dark .ck.ck-editor__main > .ck-editor__editable,
.theme-dark .ck.ck-editor__editable:not(.ck-editor__nested-editable) { background: #1b1b1b !important; }
.theme-dark .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) { border-color: var(--wc-gold) !important; box-shadow: none !important; }
.theme-dark .ck.ck-dropdown__panel .ck-list__item:hover .ck-button,
.theme-dark .ck.ck-dropdown__panel .ck-list__item:hover .ck-button * { background: var(--wc-surface-3) !important; color: var(--wc-text-strong) !important; }
.theme-dark .ck.ck-dropdown__panel .ck-list__item.ck-on .ck-button,
.theme-dark .ck.ck-dropdown__panel .ck-list__item.ck-on .ck-button * { background: var(--wc-gold) !important; color: var(--wc-on-gold) !important; }
.theme-dark .ck-content a { color: var(--wc-gold-text) !important; }
.theme-dark .ck-content table td, .theme-dark .ck-content table th { border-color: var(--wc-line-2) !important; }
.theme-dark .ck-content blockquote { border-left-color: var(--wc-line-2) !important; }
.theme-dark .ck-content hr { background: var(--wc-line-2) !important; }
.theme-dark .ck-placeholder::before, .theme-dark .ck .ck-placeholder::before { color: var(--wc-text-muted) !important; }
.theme-dark .ckeditor5-resize-handle { background: linear-gradient(135deg, transparent 50%, #555 50%); }
.theme-dark .ckeditor5-resize-handle:hover { background: linear-gradient(135deg, transparent 50%, var(--wc-gold) 50%); }
/* 소스 보기(CodeMirror) */
.theme-dark .ck-source-editing-area textarea { background: #1b1b1b !important; color: var(--wc-text) !important; border-color: var(--wc-line-2) !important; }
.theme-dark .ck-editor__main .CodeMirror { background: #1b1b1b; color: var(--wc-text); border-color: var(--wc-line-2); }
.theme-dark .ck-editor__main .CodeMirror-gutters { background: var(--wc-surface-2); border-right-color: var(--wc-line-2); }
.theme-dark .ck-editor__main .CodeMirror-linenumber { color: #666; }
.theme-dark .ck-editor__main .CodeMirror-cursor { border-left-color: var(--wc-text); }
.theme-dark .ck-editor__main .CodeMirror-selected { background: #333 !important; }
.theme-dark .ck-editor__main .cm-tag { color: #e5c07b; }
.theme-dark .ck-editor__main .cm-attribute { color: #98c379; }
.theme-dark .ck-editor__main .cm-string { color: #61afef; }
.theme-dark .ck-editor__main .cm-comment { color: #7f848e; }
.theme-dark .ck-editor__main .cm-bracket { color: #abb2bf; }

/* ---------- 본문만 라이트로 보여주는 페이지 (결제 페이지: cart.html wmod=pay) ----------
   body 에 theme-dark 대신 theme-dark-shell 을 주고, 헤더/푸터만 .wc-dark-scope 로 감싸 다크 유지 */
body.theme-dark-shell { background: var(--wc-bg) !important; }
.wc-dark-scope { background: var(--wc-bg); color: var(--wc-text); }
body.theme-dark-shell #sub-container { background: #fff; }

/* 결제 페이지 흰 본문에서도 시그니처 색 유지 (클라이언트 지정값: 블랙 #0B0B0B / 골드 #C1B092 / 레드 #E53935) */
body.theme-dark-shell #sub-container {
	--sig-black: #0B0B0B;
	--sig-gold: #C1B092;
	--sig-gold-hover: #b09d7c;
	--sig-red: #E53935;
	--sig-red-hover: #c62828;
	accent-color: var(--sig-gold);
}
/* 제목 + 왼쪽 세로 막대 */
body.theme-dark-shell #sub-container .subject-title { color: var(--sig-black) !important; }
body.theme-dark-shell #sub-container .subject-title::before { background-color: var(--sig-gold) !important; }
body.theme-dark-shell #sub-container .carttitle { margin: 25px 0 8px; padding: 0 0 0 10px; border-left: 4px solid var(--sig-gold); line-height: 1.2; color: var(--sig-black); }
/* 선 */
body.theme-dark-shell #sub-container .table_board_for th { border-top: 2px solid var(--sig-gold) !important; color: var(--sig-black); }
body.theme-dark-shell #sub-container table.totalprice { border-top: 2px solid var(--sig-gold); }
/* 결제수단 선택 */
body.theme-dark-shell #sub-container .pay_mode .check-con:hover { border-color: var(--sig-gold); background: #faf8f4; }
body.theme-dark-shell #sub-container .pay_mode .check-con:has(input:checked) { background: var(--sig-gold); color: var(--sig-black); border-color: var(--sig-gold); font-weight: 600; }
/* 체크박스/라디오 */
body.theme-dark-shell #sub-container .check-con input:checked ~ .marking { background-color: var(--sig-gold) !important; }
body.theme-dark-shell #sub-container .check-con .marking:after { border-color: var(--sig-black) !important; }
/* 입력칸 포커스 */
body.theme-dark-shell #sub-container .form-control:focus { border-color: var(--sig-gold) !important; box-shadow: 0 0 0 2px rgba(193,176,146,0.25) !important; outline: none; }
/* 쿠폰함·주소검색 단추: 골드 테두리 */
body.theme-dark-shell #sub-container .couponBtn,
body.theme-dark-shell #sub-container .address-find { background: #fff !important; color: var(--sig-black) !important; border: 1px solid var(--sig-gold) !important; }
body.theme-dark-shell #sub-container .couponBtn:hover,
body.theme-dark-shell #sub-container .address-find:hover { background: var(--sig-gold) !important; color: var(--sig-black) !important; }
/* 쿠폰 모달 닫기 */
body.theme-dark-shell #sub-container .login-close { background: var(--sig-gold) !important; color: var(--sig-black) !important; }
body.theme-dark-shell #sub-container .login-close:hover { background: var(--sig-gold-hover) !important; }
/* 가격 글자 */
body.theme-dark-shell #sub-container .red { color: var(--sig-red) !important; }
body.theme-dark-shell #sub-container .goods_money li:first-child { color: var(--sig-red); font-weight: 600; }
/* 결제하기(일반/토스) = 레드, 취소 = 블랙 */
body.theme-dark-shell #sub-container #paySubmitBtn,
body.theme-dark-shell #sub-container #payment-button { background: var(--sig-red) !important; color: #fff !important; }
body.theme-dark-shell #sub-container #paySubmitBtn:hover,
body.theme-dark-shell #sub-container #payment-button:hover { background: var(--sig-red-hover) !important; }
body.theme-dark-shell #sub-container button.large.r-bnt { background: var(--sig-black) !important; color: #fff !important; }
body.theme-dark-shell #sub-container button.large.r-bnt:hover { background: #2A2A2A !important; }
/* 링크 */
body.theme-dark-shell #sub-container .option_list a:hover { color: var(--sig-gold-hover); }
/* 인라인 강조색: 빨강 = 레드, 옵션 문구(보라/파랑) = 흰 바탕에서 읽히는 진한 골드 */
body.theme-dark-shell #sub-container [style*="color:#ff0000" i],
body.theme-dark-shell #sub-container [style*="color:#e50914" i] { color: var(--sig-red) !important; }
body.theme-dark-shell #sub-container [style*="color:#6600ff" i],
body.theme-dark-shell #sub-container [style*="color:#3366cc" i] { color: #8c7a5b !important; }

/* ---------- 토스 결제위젯 (awsToss/widget.do, widget_gigan.do) ----------
   위젯은 토스 도메인 iframe 이라 다크 적용 불가 → 감싸는 영역을 흰색 카드로 처리 */
.theme-dark #tossWidget {
	background: #fff !important;
	color: #333;
	border-radius: 8px;
	margin-top: 20px;
	padding: 8px 0;
	overflow: hidden;
}

/* ---------- 스크롤바 ---------- */
.theme-dark ::-webkit-scrollbar { width: 10px; height: 10px; }
.theme-dark ::-webkit-scrollbar-track { background: var(--wc-bg); }
.theme-dark ::-webkit-scrollbar-thumb { background: #2f2f2f; border-radius: 6px; border: 2px solid var(--wc-bg); }
.theme-dark ::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }

/* ---------- 후기 별점 ---------- */
.theme-dark .star-bg { color: #3a3a3a; }
.theme-dark .star-fill { color: #e53935; }
.theme-dark .section_pass_bg .review-card--modern .review-footer { padding-top: 14px; border-top: 1px solid #333333; }

/* ---------- 후기 슬라이드 화살표 ---------- */
.theme-dark .section_pass_bg .review-swiper-nav__btn { width: 40px; height: 40px; background: #1b1b1b; border: 1px solid var(--wc-gold); box-shadow: none; transition: background .2s ease, border-color .2s ease; }
.theme-dark .section_pass_bg .review-swiper-nav__icon { border-top: 2px solid var(--wc-gold); border-right: 2px solid var(--wc-gold); transition: border-color .2s ease; }
.theme-dark .section_pass_bg .review-swiper-nav__btn:hover { background: var(--wc-gold); border-color: var(--wc-gold); box-shadow: none; }
.theme-dark .section_pass_bg .review-swiper-nav__btn:hover .review-swiper-nav__icon { border-color: #0b0b0b; }

/* ---------- 게시판 페이징 (.cd-pagination) ---------- */
.theme-dark .cd-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; overflow: visible; }
.theme-dark .cd-pagination li,
.theme-dark .cd-pagination li.button { float: none; margin: 0; line-height: 1; background: transparent !important; }
.theme-dark .cd-pagination li a,
.theme-dark .cd-pagination li.button a,
.theme-dark .cd-pagination li .current {
	display: flex; align-items: center; justify-content: center;
	width: auto; min-width: 40px; height: 40px; padding: 0 10px; box-sizing: border-box;
	background: #222222 !important;
	border: 1px solid #444444 !important;
	border-radius: 999px;
	color: #e6e6e6 !important;
	font-size: 15px; font-weight: 600; line-height: 1;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-dark .cd-pagination li.button + li:not(.button),
.theme-dark .cd-pagination li:not(.button) + li.button { margin-left: 12px; }
.theme-dark .cd-pagination li a b { font-weight: 800; }
.theme-dark .cd-pagination li a img { width: 18px; height: 18px; filter: brightness(1.7); }
.theme-dark .cd-pagination li a:hover,
.theme-dark .cd-pagination li.button a:hover {
	background: #2d2a24 !important;
	border-color: var(--wc-gold) !important;
	color: var(--wc-gold) !important;
	transform: translateY(-1px);
}
.theme-dark .cd-pagination li a.current,
.theme-dark .cd-pagination li a.current:hover {
	background: var(--wc-gold) !important;
	border-color: var(--wc-gold) !important;
	color: var(--wc-on-gold) !important;
	box-shadow: 0 0 0 3px rgba(193,176,146,.22);
	transform: none;
	cursor: default;
}
.theme-dark .cd-pagination li.button a.disabled,
.theme-dark .cd-pagination li.button a.disabled:hover {
	background: #161616 !important;
	border-color: #2a2a2a !important;
	opacity: .45;
	transform: none;
	cursor: default;
}
@media (max-width: 480px) {
	.theme-dark .cd-pagination { gap: 4px; }
	.theme-dark .cd-pagination li a,
	.theme-dark .cd-pagination li.button a,
	.theme-dark .cd-pagination li .current { min-width: 34px; height: 34px; padding: 0 8px; font-size: 14px; }
}

/* 수강중인강의 (/web/21) */
.theme-dark button.listOpen.lec-list-open-btn,
.theme-dark button.listOpen.lec-list-open-btn.active { color: #0b0b0b; font-weight: 600; }
.theme-dark #lec-list td.data img { filter: brightness(0) invert(1); }
.theme-dark .pause_open .pause-btn {
	color: #e8dcc4;
	background: rgba(193, 176, 146, .14);
	border: 1px solid #c1b092;
	border-radius: 6px;
	font-weight: 600;
	transition: background .2s ease, color .2s ease;
}
.theme-dark .pause_open .pause-btn:hover { color: #0b0b0b; background: #c1b092; }

/* 결제상태 텍스트 (webPayState 인라인 색상) */
.theme-dark span[style*="color: #656565"] { color: #e3d3b2 !important; }
.theme-dark span[style*="color: #336600"] { color: #8fd17a !important; }
.theme-dark span[style*="color: #336699"] { color: #7fb3e0 !important; }

/* 메인 비주얼 배너 하단 구분선 */
.theme-dark .bx-wrapper:has(> .bx-viewport > .bannerWrap) { border-bottom: 1px solid #2e2e2e !important; }

/* 모바일 메인 성과리뷰: 구 배너용 .swiper-slide::before 오버레이 제거 */
@media (max-width: 768px) {
  .main-hero-review .swiper-slide::before { content: none !important; display: none !important; }
}

/* ---------- 성과리뷰 게시판 모바일 카드형 목록 ---------- */
@media (max-width: 767px) {
  .theme-dark .contable.board_sugang { padding: 0 !important; margin: 0 0 8px !important; }
  .theme-dark .contable.board_sugang .table-title { display: none !important; }
  .theme-dark .contable.board_sugang .table-textlist { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border-top: 2px solid var(--wc-line-2); }
  .theme-dark .contable.board_sugang .table-textlist .section-box { margin: 0; padding: 0; }
  .theme-dark .contable.board_sugang .table-textlist .section-box .ul-1 {
    display: flex !important; flex-wrap: wrap; align-items: center;
    width: 100%; box-sizing: border-box; padding: 16px 4px 14px;
    background: transparent !important;
    border: 0 !important; border-bottom: 1px solid var(--wc-line) !important; border-radius: 0;
    transition: background .2s ease;
  }
  .theme-dark .contable.board_sugang .table-textlist .section-box .ul-1:has(.bbsSubject:active),
  .theme-dark .contable.board_sugang .table-textlist .section-box .ul-1:has(.bbsSubject:hover) { background: #141414 !important; }
  .theme-dark .contable.board_sugang .table-textlist .section-box .ul-1 > li {
    display: block !important; width: auto !important; min-height: 0; padding: 0 !important;
    border: 0 !important; background: none !important; line-height: 1.4; text-align: left;
    font-size: 13px; color: var(--wc-text-muted); letter-spacing: -0.2px;
  }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li:nth-child(1) { order: 2; margin-left: auto; font-size: 12px; color: #7a7a7a; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li:nth-child(1)::before { content: "No. "; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li.starpnt { order: 1; display: flex !important; align-items: center; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li.starpnt .starImg { margin: 0; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li.bbsSubject {
    order: 3; flex: 0 0 100%; margin: 10px 0 12px; padding-bottom: 12px !important;
    border-bottom: 1px solid #1d1d1d !important; cursor: pointer;
  }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li.bbsSubject .subject,
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li.bbsSubject .subject span {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--wc-text) !important; letter-spacing: -0.3px; word-break: keep-all;
  }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li:nth-child(4) { order: 4; display: flex !important; align-items: center; color: #d6d6d6; font-weight: 500; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li:nth-child(4) .max480 { display: none !important; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li:nth-child(5) { order: 5; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li:nth-child(5)::before { content: "·"; margin: 0 6px; color: #555; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li:nth-child(6) { order: 6; margin-left: auto; font-size: 12px; color: #8a8a8a; }
  .theme-dark .contable.board_sugang .table-textlist .ul-1 > li:nth-child(6)::before { content: "조회 "; }
  .theme-dark .contable.board_sugang .table-textlist section:last-child ul.ul-1 { border-bottom: 1px solid var(--wc-line) !important; }

  .theme-dark .sub-body .boardSearch { display: flex; gap: 8px; margin: 18px 0 0; }
  .theme-dark .sub-body .boardSearch select.form-control.board { flex: 0 0 104px; width: 104px !important; min-width: 0 !important; height: 44px; margin: 0; border-radius: 10px; }
  .theme-dark .sub-body .boardSearch input.board_search { flex: 1 1 auto; width: auto !important; min-width: 0 !important; height: 44px; margin: 0; border-radius: 10px; box-sizing: border-box; }
}

/* ---------- 성과리뷰 상세 모바일 표 ---------- */
@media (max-width: 767px) {
  .theme-dark .detail_sugang { border-top: 2px solid var(--wc-line-2) !important; }
  .theme-dark .detail_sugang > .dtable {
    display: flex !important; flex-wrap: wrap; width: 100%;
    border-bottom: 1px solid var(--wc-line) !important;
  }
  .theme-dark .detail_sugang > .dtable > .table-th,
  .theme-dark .detail_sugang > .dtable > .table-td {
    float: none !important; display: flex !important; align-items: center;
    box-sizing: border-box; height: auto !important; min-height: 52px; margin: 0;
    padding: 12px 14px !important; border: 0 !important; border-radius: 0 !important;
    line-height: 1.5;
  }
  .theme-dark .detail_sugang > .dtable > .table-th {
    flex: 0 0 30%; width: 30% !important;
    background: #1f1f1f !important; border-right: 1px solid var(--wc-line) !important;
    font-size: 14px; font-weight: 600; color: var(--wc-text);
  }
  .theme-dark .detail_sugang > .dtable > .table-td {
    flex: 1 1 70%; width: 70% !important;
    background: #151515 !important; font-size: 15px; color: #e6e6e6;
  }
  .theme-dark .detail_sugang > .dtable.col2 > :nth-child(n+3) { border-top: 1px solid var(--wc-line) !important; }
  .theme-dark .detail_sugang > .dtable > .table-td:only-child {
    display: block !important; flex: 0 0 100%; width: 100% !important; min-height: 0;
    padding: 20px 16px !important; background: transparent !important;
  }
  .theme-dark .detail_sugang > .dtable > .table-td .starWrap { display: flex; align-items: center; }
  .theme-dark .detail_sugang > .dtable > .table-td .starImg { margin: 0; }
  .theme-dark .detail_sugang > .dtable > .table-td > a { color: var(--wc-text); }
}

/* ---------- 게시판 글보기 하단 버튼 ---------- */
.theme-dark .bbs-read-actions { display: flex; align-items: center; gap: 12px; clear: both; margin: 24px 0 0; }
.theme-dark .bbs-read-actions ~ .commnet_title { margin-top: 48px; }
.theme-dark .bbs-read-actions > .bbslist {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  float: none !important; width: auto !important; padding: 0 !important; text-align: left !important;
}
.theme-dark .bbs-read-actions > .btn_right { margin-left: auto; }
.theme-dark .bbs-read-actions .bbs-normalbtn {
  height: 40px; min-width: 64px; margin: 0; padding: 0 16px; box-sizing: border-box;
  border-radius: 8px !important; font-size: 14px; font-weight: 600; line-height: 38px; letter-spacing: -0.2px;
}
.theme-dark .bbs-read-actions .bbs-normalbtn:not(.bbs-act--list):not(.bbs-act--del) { background: transparent !important; color: var(--wc-gold-text) !important; border-color: var(--wc-gold) !important; }
.theme-dark .bbs-read-actions .bbs-normalbtn:not(.bbs-act--list):not(.bbs-act--del):hover { background: rgba(193,176,146,.12) !important; }
.theme-dark .bbs-read-actions .bbs-normalbtn.bbs-act--list {
  min-width: 88px; background: var(--wc-gold) !important; border-color: var(--wc-gold) !important; color: var(--wc-on-gold) !important;
}
.theme-dark .bbs-read-actions .bbs-normalbtn.bbs-act--list:hover { background: var(--wc-gold-hover) !important; border-color: var(--wc-gold-hover) !important; color: var(--wc-on-gold) !important; }
.theme-dark .bbs-read-actions .bbs-normalbtn.bbs-act--del { order: 3; color: #e57373 !important; border-color: rgba(229,115,115,.55) !important; }
.theme-dark .bbs-read-actions .bbs-normalbtn.bbs-act--del:hover { background: rgba(229,57,53,.12) !important; color: #ef9a9a !important; }
@media (max-width: 767px) {
  .theme-dark .bbs-read-actions { margin: 20px 0 0; gap: 8px; }
  .theme-dark .bbs-read-actions ~ .commnet_title { margin-top: 36px; }
  .theme-dark .bbs-read-actions .bbs-normalbtn { height: 38px; min-width: 56px; padding: 0 14px; line-height: 36px; font-size: 13px; }
  .theme-dark .bbs-read-actions .bbs-normalbtn.bbs-act--list { min-width: 76px; }
}

/* ---------- 모바일 사이드메뉴 환영문구: 줄바꿈 시 버튼과 겹치지 않게 ---------- */
.m-login > div { height: auto !important; min-height: 40px; padding-bottom: 6px !important; word-break: keep-all; }

/* ---------- 모바일 사이드메뉴: 스크롤바 숨김(스크롤은 유지) ---------- */
.sidenav { scrollbar-width: none; -ms-overflow-style: none; }
.sidenav::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- 모바일 헤더 로고: 우측 메뉴 아이콘과 세로 중심 맞춤 ---------- */
@media screen and (max-width: 834px) {
  #header .max768.toggle .top-logo-m { margin-top: 14px; }
}

/* ---------- 모바일 사이드메뉴 로그인 영역: 두 번째 버튼은 골드 라인 ---------- */
.theme-dark .m-login > button:nth-of-type(2) {
  background: transparent !important; color: var(--wc-gold-text) !important;
  box-shadow: inset 0 0 0 1px var(--wc-gold);
}
.theme-dark .m-login > button:nth-of-type(2) img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(13%) saturate(560%) hue-rotate(2deg) brightness(92%) contrast(88%);
}

/* ---------- 메인 강좌 카드: 별점·리뷰수 / 찜 ---------- */
.ns-ss-all .wc-card-meta {
  clear: both; display: flex; align-items: center; justify-content: space-between;
  margin: 0 15px; padding: 10px 0 12px; border-top: 1px solid var(--wc-line);
}
.ns-ss-all .wc-card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 1; color: var(--wc-text-muted); }
.ns-ss-all .wc-card-rating__star { color: #f5b301; font-size: 15px; }
.ns-ss-all .wc-card-rating b { font-weight: 700; color: var(--wc-text); }
.ns-ss-all .wc-card-rating__cnt { color: #8a8a8a; font-size: 13px; }
.ns-ss-all .wc-card-rating.is-empty .wc-card-rating__star { color: #4a4a4a; }
.ns-ss-all .wc-card-rating.is-empty b { color: #8a8a8a; font-weight: 600; }
.ns-ss-all .wc-wish-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px !important; padding: 0; margin: -4px -6px -4px 0;
  background: transparent !important; border: 0 !important; border-radius: 50%; cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}
.ns-ss-all .wc-wish-btn svg { width: 22px; height: 22px; fill: transparent; stroke: #9a9a9a; stroke-width: 1.8; transition: fill .2s ease, stroke .2s ease; }
.ns-ss-all .wc-wish-btn:hover { background: rgba(255,255,255,.06) !important; }
.ns-ss-all .wc-wish-btn:hover svg { stroke: #e53935; }
.ns-ss-all .wc-wish-btn:active { transform: scale(.9); }
.ns-ss-all .wc-wish-btn.is-on svg { fill: #e53935; stroke: #e53935; }
.bs-source-subjcet:has(.wc-card-meta) { height: 396px; }
@media (max-width: 768px) {
  .bs-source-subjcet:has(.wc-card-meta) { height: auto; padding-bottom: 16px; }
}

/* ---------- 푸터 약관 링크: 모바일에서 3개 한 줄 ---------- */
@media screen and (max-width: 480px) {
  .foot-privit li { width: auto; }
}

/* ---------- 주문내역 목록 ---------- */
.theme-dark .myOrder td { background: rgba(255,255,255,0.04); }
.theme-dark .myOrder tr:hover td { background: rgba(255,255,255,0.07); }
.theme-dark .myOrder .pay-method--8 span { color: #ff5a5a !important; }
