/*
 Theme Name:   Eduma Child
 Theme URI:    http://educationwp.thimpress.com/
 Description:  Eduma Child Theme
 Author:       ThimPress
 Author URI:   http://thimpress.com
 Template:     eduma
 Version:      1.0.0
 Text Domain:  eduma-child
*/

/* ==== LearnPress 강좌 상세 페이지 다크모드 (추가: 2026-09-10) ==== */
.single-lp_course .header_single_content,
.single-lp_course .thim-course-menu-landing,
.single-lp_course .course_right {
  background-color: #16171d !important;
  border-color: rgba(255,255,255,0.08) !important;
}

.single-lp_course .header_single_content,
.single-lp_course .header_single_content *,
.single-lp_course .thim-course-menu-landing,
.single-lp_course .thim-course-menu-landing *,
.single-lp_course .course_right,
.single-lp_course .course_right * {
  color: #c5c8d0 !important;
  border-color: rgba(255,255,255,0.08) !important;
}

.single-lp_course .header_single_content h1,
.single-lp_course .header_single_content h2,
.single-lp_course .header_single_content h3,
.single-lp_course .header_single_content h4,
.single-lp_course .course_right h1,
.single-lp_course .course_right h2,
.single-lp_course .course_right h3,
.single-lp_course .course_right h4 {
  color: #ffffff !important;
}

.single-lp_course .course_right .price,
.single-lp_course .course_right .price .woocommerce-Price-amount,
.single-lp_course .course_right .price bdi {
  color: #389aff !important;
}

.single-lp_course .thim-course-menu-landing li.active a,
.single-lp_course .thim-course-menu-landing a:hover {
  color: #389aff !important;
}

.single-lp_course .course_right button,
.single-lp_course .course_right .lp-button,
.single-lp_course .course_right a.button,
.single-lp_course .course_right .add_to_cart_button {
  color: #000000 !important;
}

.single-lp_course .content-pusher,
.single-lp_course .content-pusher > div {
  background-color: #000000 !important;
}

/* ==== 노란색 아이콘/버튼 → 블루로 통일 (2026-09-10 추가) ==== */
.single-lp_course .lp-icon-file,
.single-lp_course .lp-icon-puzzle-piece,
.single-lp_course .lp-icon-clock,
.single-lp_course .lp-icon-signal,
.single-lp_course .lp-icon-students,
.single-lp_course .lp-icon-check-square-o,
.single-lp_course .lp-icon-angle-down,
.single-lp_course .lp-icon-angle-up,
.single-lp_course .section-toggle,
.single-lp_course .section-count-items,
.single-lp_course .course-item-ico,
.single-lp_course .lost-pass-link,
.single-lp_course .rating {
  color: #389aff !important;
}

.single-lp_course .wrapper-items-number,
.single-lp_course .lp-button,
.single-lp_course .lp-btn-add-item-to-cart,
.single-lp_course input.button-primary {
  background-color: #389aff !important;
  color: #ffffff !important;
}

/* ==== 흰색 테두리선 오퍼시티 낮추기 (너무 튀는 문제 완화) ==== */
.single-lp_course .breadcrumbs,
.single-lp_course .lectures-feature,
.single-lp_course .quizzes-feature,
.single-lp_course .duration-feature,
.single-lp_course .skill-feature,
.single-lp_course .students-feature,
.single-lp_course .assessments-feature,
.single-lp_course .purchase-feature,
.single-lp_course .course-section,
.single-lp_course .course-item {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==== 하단 "You May Like" 강의 카드 테두리 완전 제거 ==== */
.thim-related-course .thim-course-content,
.thim-related-course .course-item {
  border: none !important;
}

/* ==== 잘 안 보이는 회색 텍스트 밝게 ==== */
.single-lp_course .instructor-display-name,
.single-lp_course .course-count-item {
  color: #9295a0 !important;
}

.single-lp_course .course-permalink {
  color: #ffffff !important;
}

.single-lp_course .thim-related-course .price {
  color: #389aff !important;
}

.single-lp_course .origin-price {
  color: #6b6e78 !important;
}

/* ==== 회색 텍스트 전부 흰색으로 (콘텐츠 영역 전체 블랭킷, 2026-09-10) ==== */
.single-lp_course .content-area,
.single-lp_course .content-area *,
.thim-related-course,
.thim-related-course * {
  color: #ffffff !important;
}

/* 블랭킷 이후 다시 덮어써야 하는 포인트 색상들 (블루 유지) */
.single-lp_course .lp-icon-file,
.single-lp_course .lp-icon-puzzle-piece,
.single-lp_course .lp-icon-clock,
.single-lp_course .lp-icon-signal,
.single-lp_course .lp-icon-students,
.single-lp_course .lp-icon-check-square-o,
.single-lp_course .lp-icon-angle-down,
.single-lp_course .lp-icon-angle-up,
.single-lp_course .lp-icon-heart-o,
.single-lp_course .section-toggle,
.single-lp_course .section-count-items,
.single-lp_course .course-item-ico,
.single-lp_course .lost-pass-link {
  color: #389aff !important;
}

.single-lp_course .wrapper-items-number,
.single-lp_course .lp-button,
.single-lp_course .lp-btn-add-item-to-cart,
.single-lp_course input.button-primary,
.single-lp_course .owl-page.active,
.single-lp_course .rating {
  background-color: #389aff !important;
  color: #ffffff !important;
}

.single-lp_course .course_right .price,
.single-lp_course .thim-related-course .price {
  color: #389aff !important;
}

.single-lp_course .origin-price {
  color: #8a8d96 !important;
}

/* 리뷰 그래프 빈 막대 (흰색 → 어두운 회색) */
.single-lp_course .rating-gray {
  background-color: #2a2c34 !important;
}

/* 로그인 팝업 "비밀번호를 잊으셨나요" 링크 (특이도 보강) */
body.single-lp_course .thim-widget-login-popup .lost-pass-link,
body.single-lp_course .lost-pass-link {
  color: #389aff !important;
}

/* ==== 잔여 항목 마무리 (2026-09-10) ==== */
.single-lp_course .thim-course-content {
  border: none !important;
}

.single-lp_course .avatar {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.single-lp_course button.lp-button.lp-btn-add-item-to-cart,
.single-lp_course .wrap-btn-add-course-to-cart button,
.single-lp_course .wrap-btn-add-course-to-cart .lp-button {
  color: #ffffff !important;
}

/* ==== 리뷰 별점 SVG 아이콘 fill 속성 (2026-09-10) ==== */
.single-lp_course .lp-review-svg-star svg,
.single-lp_course .lp-review-svg-star svg polygon,
.single-lp_course .course-rate__details-row svg,
.single-lp_course .course-rate__details-row polygon,
.single-lp_course svg[class*="star"],
.single-lp_course .fas.lp-review-svg-star {
  fill: #389aff !important;
  color: #389aff !important;
}

/* ==== 캐러셀 페이지네이션 점 테두리 (2026-09-10) ==== */
.single-lp_course .owl-page.active,
.single-lp_course .owl-page span,
.single-lp_course .owl-dot.active {
  border-color: #389aff !important;
  background-color: #389aff !important;
}

/* ==== 강사 정보 옆 별점 아이콘 (purchase-feature) fill (2026-09-10) ==== */
.single-lp_course .purchase-feature svg,
.single-lp_course .purchase-feature svg circle,
.single-lp_course .purchase-feature svg polygon,
.single-lp_course .purchase-feature svg * {
  fill: #389aff !important;
}

/* ==== 리뷰 별점(lucide-star) 테두리 stroke 제거 (2026-09-10) ==== */
.single-lp_course svg.lucide-star {
  stroke: #389aff !important;
}

/* ==== 관련 강좌 카드 제목 아래 구분선 (2026-09-10) ==== */
.single-lp_course .course-meta::before {
  background-color: #389aff !important;
}
.single-lp_course .course-meta::after {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==================================================================
   강좌 목록(아카이브) 페이지 다크모드 (2026-09-10)
   ================================================================== */
body.post-type-archive-lp_course .content-pusher,
body.post-type-archive-lp_course .content-pusher > div {
  background-color: #000000 !important;
}

/* 전체 텍스트 블랭킷: 흰색 기본 */
body.post-type-archive-lp_course .content-area,
body.post-type-archive-lp_course .content-area * {
  color: #ffffff !important;
}

/* 블루 포인트 (아이콘/링크/필터버튼) */
body.post-type-archive-lp_course .lp-icon-heart-o,
body.post-type-archive-lp_course .lp-icon-list,
body.post-type-archive-lp_course .lp-switch-btn,
body.post-type-archive-lp_course .lost-pass-link,
body.post-type-archive-lp_course .course-price .price,
body.post-type-archive-lp_course a:hover {
  color: #389aff !important;
}

body.post-type-archive-lp_course .wrapper-items-number,
body.post-type-archive-lp_course .course-filter-submit,
body.post-type-archive-lp_course input.button-primary {
  background-color: #389aff !important;
  color: #ffffff !important;
}

body.post-type-archive-lp_course .origin-price {
  color: #8a8d96 !important;
}

/* 카드/위젯 배경 (살짝 밝은 다크 패널) */
body.post-type-archive-lp_course .course,
body.post-type-archive-lp_course .widget {
  background-color: transparent !important;
}

/* 테두리 오퍼시티 낮추기 */
body.post-type-archive-lp_course .course,
body.post-type-archive-lp_course .breadcrumbs-wrapper,
body.post-type-archive-lp_course hr,
body.post-type-archive-lp_course .course-item,
body.post-type-archive-lp_course .widget {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* 체크박스/인풋 필드 */
body.post-type-archive-lp_course input[type="text"],
body.post-type-archive-lp_course input[type="search"],
body.post-type-archive-lp_course input[type="checkbox"] {
  background-color: #16171d !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

body.post-type-archive-lp_course select {
  background-color: #16171d !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* ==== 잔여 수정: 필터 버튼 테두리, breadcrumb 밑줄 (2026-09-10) ==== */
body.post-type-archive-lp_course .course-filter-submit {
  border-color: #389aff !important;
}

body.post-type-archive-lp_course .breadcrumbs {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
/* ==================================================================
   위 아카이브 다크모드를 모든 강좌 카테고리 페이지에도 동일 적용
   (body.archive.learnpress-page = 강좌 목록/카테고리 페이지 공통, 2026-09-10)
   강좌 목록(아카이브) 페이지 다크모드 (2026-09-10)
   ================================================================== */
body.archive.learnpress-page .content-pusher,
body.archive.learnpress-page .content-pusher > div {
  background-color: #000000 !important;
}

/* 전체 텍스트 블랭킷: 흰색 기본 */
body.archive.learnpress-page .content-area,
body.archive.learnpress-page .content-area * {
  color: #ffffff !important;
}

/* 블루 포인트 (아이콘/링크/필터버튼) */
body.archive.learnpress-page .lp-icon-heart-o,
body.archive.learnpress-page .lp-icon-list,
body.archive.learnpress-page .lp-switch-btn,
body.archive.learnpress-page .lost-pass-link,
body.archive.learnpress-page .course-price .price,
body.archive.learnpress-page a:hover {
  color: #389aff !important;
}

body.archive.learnpress-page .wrapper-items-number,
body.archive.learnpress-page .course-filter-submit,
body.archive.learnpress-page input.button-primary {
  background-color: #389aff !important;
  color: #ffffff !important;
}

body.archive.learnpress-page .origin-price {
  color: #8a8d96 !important;
}

/* 카드/위젯 배경 (살짝 밝은 다크 패널) */
body.archive.learnpress-page .course,
body.archive.learnpress-page .widget {
  background-color: transparent !important;
}

/* 테두리 오퍼시티 낮추기 */
body.archive.learnpress-page .course,
body.archive.learnpress-page .breadcrumbs-wrapper,
body.archive.learnpress-page hr,
body.archive.learnpress-page .course-item,
body.archive.learnpress-page .widget {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* 체크박스/인풋 필드 */
body.archive.learnpress-page input[type="text"],
body.archive.learnpress-page input[type="search"],
body.archive.learnpress-page input[type="checkbox"] {
  background-color: #16171d !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

body.archive.learnpress-page select {
  background-color: #16171d !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* ==== 잔여 수정: 필터 버튼 테두리, breadcrumb 밑줄 (2026-09-10) ==== */
body.archive.learnpress-page .course-filter-submit {
  border-color: #389aff !important;
}

body.archive.learnpress-page .breadcrumbs {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==== 강좌 설명(개요) 영역 폭 제한 해제 (2026-09-10) ==== */
.single-lp_course .thim-course-content {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
}

/* ==== 사이드바 스티키 기능 비활성화 (스크립트 오류로 위치 계산 깨짐, 2026-09-10) ==== */
.single-lp_course .theiaStickySidebar {
  position: static !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transform: none !important;
}
.single-lp_course .course_right {
  position: static !important;
  top: auto !important;
}

/* ==== 사이드바 위치 이동(transform) 완전 차단 (2026-09-10) ==== */
.single-lp_course .theiaStickySidebar,
.single-lp_course .course_right,
.single-lp_course #sidebar {
  transform: none !important;
  -webkit-transform: none !important;
  top: auto !important;
  left: auto !important;
}

/* ==== 스크롤 고정 탭+가격바가 잘못된 위치에 고정되는 문제 (2026-09-10) ==== */
.single-lp_course .thim-course-menu-landing {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* ==== 사이드바 가격 폰트 크기 축소 (36px -> 24px, 2026-09-10) ==== */
.single-lp_course .course_right .price {
  font-size: 24px !important;
}

/* ==== 사이드바 '최신 강좌' 위젯 썸네일 상단 크롭 방지 (2026-09-10) ====
   부모 테마(eduma)가 .course-thumbnail img 에 margin-top:-8px 를 강제로 걸고
   부모 컨테이너에 overflow:hidden 을 적용해, 썸네일 상단부(약 16%)가
   overflow-clip 되어 이미지 상단의 텍스트가 잘려 보이던 문제 수정. */
.widget-area .thim-course-list-sidebar .course-thumbnail img {
  margin-top: 0 !important;
}

/* ==== 강좌 목록(아카이브/카테고리) 카드의 "설명" 짧은 요약 숨김 (2026-09-10) ==== */
body.post-type-archive-lp_course .course-item .course-description,
body.archive.learnpress-page .course-item .course-description {
  display: none !important;
}


/* ==================================================================
   장바구니 페이지 다크모드 (WooCommerce Cart Block, page-id-22) (2026-09-10)
   ================================================================== */
body.page-id-22 .content-pusher,
body.page-id-22 .content-pusher > div {
  background-color: #000000 !important;
}

body.page-id-22 .wc-block-cart,
body.page-id-22 .wc-block-cart * {
  color: #ffffff !important;
}

body.page-id-22 .wc-block-cart-items,
body.page-id-22 .wc-block-cart-items__row,
body.page-id-22 .wc-block-components-panel,
body.page-id-22 .wc-block-components-totals-wrapper,
body.page-id-22 .wc-block-components-totals-item,
body.page-id-22 .wc-block-cart__sidebar {
  background-color: transparent !important;
}

/* 기존 currentColor 기반 흰색 구분선을 은은한 톤으로 고정 */
body.page-id-22 .wc-block-cart-items,
body.page-id-22 .wc-block-cart-items__row {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 사이드바 합계 박스: 불필요한 테두리/그림자 제거 */
body.page-id-22 .wc-block-cart__sidebar,
body.page-id-22 .wc-block-components-sidebar,
body.page-id-22 .wc-block-components-totals-wrapper,
body.page-id-22 .wc-block-components-panel {
  border: none !important;
  box-shadow: none !important;
}

body.page-id-22 .wc-block-components-totals-item {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.page-id-22 .wc-block-components-text-input input,
body.page-id-22 .wc-block-components-totals-coupon__input input {
  background-color: #16171d !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.page-id-22 .wc-block-components-text-input label {
  color: #9295a0 !important;
  background-color: transparent !important;
}

body.page-id-22 .wc-block-components-formatted-money-amount {
  color: #389aff !important;
}

body.page-id-22 .wc-block-components-totals-coupon-link,
body.page-id-22 .wc-block-cart-item__remove-link {
  color: #389aff !important;
}

body.page-id-22 .wc-block-cart del {
  color: #6b6e78 !important;
}

body.page-id-22 .wc-block-cart__submit-button {
  color: #16171d !important;
}

/* 카트 상품 썸네일: 정사각 크롭 방지, 배경만 채워 여백 대비 확보 */
body.page-id-22 .wc-block-cart-item__image {
  background-color: #16171d !important;
}

body.page-id-22 .wc-block-cart-item__image > a {
  background-color: #16171d !important;
}

body.page-id-22 .wc-block-cart-item__image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* ==================================================================
   결제 페이지 다크모드 (WooCommerce Classic Checkout, page-id-30710) (2026-09-10)
   실제 결제 페이지는 블록(Block) 방식이 아니라 [woocommerce_checkout] 클래식
   숏코드 템플릿이라 위 카트 블록 CSS와는 다른 클래스 체계를 사용함.
   ================================================================== */
body.page-id-30710 .content-pusher,
body.page-id-30710 .content-pusher > div {
  background-color: #000000 !important;
}

body.page-id-30710 .woocommerce-checkout,
body.page-id-30710 .woocommerce-checkout * {
  color: #ffffff !important;
}

body.page-id-30710 #order_review_heading,
body.page-id-30710 h3 {
  color: #ffffff !important;
}

/* 쿠폰 안내 배너 */
body.page-id-30710 .woocommerce-info {
  background-color: #16171d !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

body.page-id-30710 .woocommerce-info a,
body.page-id-30710 .showcoupon {
  color: #389aff !important;
}

/* 청구 상세 입력 필드 */
body.page-id-30710 input.input-text,
body.page-id-30710 textarea,
body.page-id-30710 select,
body.page-id-30710 .select2-selection,
body.page-id-30710 .woocommerce-input-wrapper input {
  background-color: #16171d !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.page-id-30710 label {
  color: #9295a0 !important;
}

/* 주문 요약 박스 (고객님의 주문) */
body.page-id-30710 #order_review,
body.page-id-30710 .woocommerce-checkout-review-order-table {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.page-id-30710 .woocommerce-checkout-review-order-table th,
body.page-id-30710 .woocommerce-checkout-review-order-table td,
body.page-id-30710 .cart_item,
body.page-id-30710 .cart-subtotal,
body.page-id-30710 .order-total {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.page-id-30710 .order-total .woocommerce-Price-amount,
body.page-id-30710 .cart-subtotal .woocommerce-Price-amount,
body.page-id-30710 .product-total .woocommerce-Price-amount {
  color: #389aff !important;
}

/* 결제 수단 목록 */
body.page-id-30710 .wc_payment_methods,
body.page-id-30710 .wc_payment_method,
body.page-id-30710 .payment_box {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.page-id-30710 .payment_box {
  background-color: #16171d !important;
}

body.page-id-30710 .payment_box::before {
  border-bottom-color: #16171d !important;
}

/* 이용약관 체크박스 영역 */
body.page-id-30710 .woocommerce-terms-and-conditions-wrapper a {
  color: #389aff !important;
}

/* 주문 확정 버튼: 기존 강조색 유지, 텍스트만 대비 확보 */
body.page-id-30710 #place_order {
  color: #16171d !important;
}

/* 테마가 PHP 훅으로 주문 요약을 감싸는 .inner-col-set 래퍼: 하드코딩된
   밝은 배경(--thim-bg-order-cart, #f3f7ff)을 다크모드에 맞게 덮어씀 (2026-09-10) */
body.page-id-30710 .inner-col-set {
  background-color: transparent !important;
}

/* ==== 모바일 강좌 목록 카드 단순화: 제목/가격만 표시 (2026-09-10) ==== */
@media (max-width: 767px) {
  body.post-type-archive-lp_course .course-item .course-instructor,
  body.post-type-archive-lp_course .course-item .course-lesson,
  body.post-type-archive-lp_course .course-item .course-students,
  body.archive.learnpress-page .course-item .course-instructor,
  body.archive.learnpress-page .course-item .course-lesson,
  body.archive.learnpress-page .course-item .course-students {
    display: none !important;
  }

  body.post-type-archive-lp_course .course-item .course-meta::before,
  body.archive.learnpress-page .course-item .course-meta::before {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.post-type-archive-lp_course .course-item .course-meta::after,
  body.archive.learnpress-page .course-item .course-meta::after {
    display: none !important;
  }
}

/* ==== 모바일 강좌 카드: 테두리 제거 + 제목/가격 간격 축소 (2026-09-10) ==== */
@media (max-width: 767px) {
  body.post-type-archive-lp_course .course-item .thim-course-content,
  body.archive.learnpress-page .course-item .thim-course-content {
    border: none !important;
  }

  body.post-type-archive-lp_course .course-item .course-title,
  body.archive.learnpress-page .course-item .course-title {
    margin-bottom: 6px !important;
  }

  body.post-type-archive-lp_course .course-item .course-meta,
  body.archive.learnpress-page .course-item .course-meta {
    padding-top: 0 !important;
    padding-bottom: 6px !important;
  }
}

/* ==== 모바일 강좌 카드: 가격 가운데 정렬 (2026-09-10) ====
   .course-price 에 float:right 가 걸려있어 가격이 오른쪽으로 밀려 보이던 문제 수정 */
@media (max-width: 767px) {
  body.post-type-archive-lp_course .course-item .course-price,
  body.archive.learnpress-page .course-item .course-price {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }
}

/* ==== 모바일 강좌 카드: 제목-가격 간격 추가 축소 (2026-09-10) ==== */
@media (max-width: 767px) {
  body.post-type-archive-lp_course .course-item .course-title,
  body.archive.learnpress-page .course-item .course-title {
    margin-bottom: 0 !important;
  }

  body.post-type-archive-lp_course .course-item .course-meta,
  body.archive.learnpress-page .course-item .course-meta {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* ==== 강좌 상세페이지: 하단 고정 장바구니 담기 바 (2026-09-10) ==== */
.mcs-sticky-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #0a0b0f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.mcs-sticky-cart.is-visible {
  transform: translateY(0);
}

.mcs-sticky-cart__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mcs-sticky-cart__price {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcs-sticky-cart__price .origin-price {
  color: #8a8d96;
  font-weight: 400;
  font-size: 14px;
  text-decoration: line-through;
  margin-right: 6px;
}

.mcs-sticky-cart__price .price {
  color: #389aff;
}

.mcs-sticky-cart__btn {
  flex-shrink: 0;
  background: #1a6bfc;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.mcs-sticky-cart__btn:hover {
  background: #0f56d8;
}

@media (max-width: 480px) {
  .mcs-sticky-cart__price {
    font-size: 15px;
  }
  .mcs-sticky-cart__btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* ==================================================================
   게시판(bbPress) 다크모드 (2026-09-10)
   ================================================================== */
body.bbpress .content-pusher,
body.bbpress .content-pusher > div {
  background-color: #000000 !important;
}

body.bbpress .bbp-forums,
body.bbpress .bbp-topics,
body.bbpress .bbp-replies,
body.bbpress .bbp-forums *,
body.bbpress .bbp-topics *,
body.bbpress .bbp-replies *,
body.bbpress .bbp-forum-content,
body.bbpress .bbp-forum-content *,
body.bbpress .bbp-topic-content,
body.bbpress .bbp-topic-content *,
body.bbpress .bbp-reply-content,
body.bbpress .bbp-reply-content *,
body.bbpress .bbp-breadcrumb,
body.bbpress .bbp-breadcrumb *,
body.bbpress .bbp-search-form,
body.bbpress .bbp-search-form *,
body.bbpress .bbp-topic-form,
body.bbpress .bbp-topic-form *,
body.bbpress .bbp-reply-form,
body.bbpress .bbp-reply-form *,
body.bbpress .bbp-login-form,
body.bbpress .bbp-login-form *,
body.bbpress .bbp-pagination,
body.bbpress .bbp-pagination * {
  color: #ffffff !important;
}

/* 헤더 행(주황색 배경)은 유지, 텍스트만 흰색 그대로 */
body.bbpress .bbp-header,
body.bbpress .bbp-header * {
  color: #ffffff !important;
}

/* 목록 행/푸터/검색창/알림 박스 배경: 밝은 회색 -> 어두운 패널 */
body.bbpress .bbp-body ul,
body.bbpress .bbp-footer,
body.bbpress .bbp-search-form,
body.bbpress .bbp-search-form form,
body.bbpress .bbp-template-notice,
body.bbpress .bbp-topic-form fieldset,
body.bbpress .bbp-reply-form fieldset,
body.bbpress .bbp-login-form fieldset {
  background-color: #16171d !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.bbpress .bbp-body ul:nth-child(even) {
  background-color: #1b1c23 !important;
}

/* 입력창/텍스트영역/드롭다운 */
body.bbpress input[type="text"],
body.bbpress input[type="search"],
body.bbpress input[type="password"],
body.bbpress input[type="email"],
body.bbpress textarea,
body.bbpress select {
  background-color: #0e0f13 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* 링크/제목 포인트 컬러 */
body.bbpress .bbp-forum-title,
body.bbpress .bbp-topic-permalink,
body.bbpress a.bbp-forum-title,
body.bbpress a.bbp-topic-permalink {
  color: #389aff !important;
}

body.bbpress .bbp-forums a:hover,
body.bbpress .bbp-topics a:hover {
  color: #389aff !important;
}

/* 알림 박스 (정보/경고) 좌측 강조선 */
body.bbpress .bbp-template-notice.info {
  border-left: 3px solid #389aff !important;
}

body.bbpress .bbp-template-notice.warning,
body.bbpress .bbp-template-notice.important {
  border-left: 3px solid #f0b849 !important;
}

/* 버튼 */
body.bbpress .button,
body.bbpress button[type="submit"],
body.bbpress input[type="submit"] {
  background-color: #1a6bfc !important;
  color: #ffffff !important;
  border: none !important;
}

body.bbpress .button:hover,
body.bbpress button[type="submit"]:hover,
body.bbpress input[type="submit"]:hover {
  background-color: #0f56d8 !important;
}

/* ==== .content-pusher 흰 배경 전역 수정 (2026-09-10) ====
   지금까지 새 페이지 유형(장바구니, 결제, 강좌 목록, 게시판, FAQ 등)을 만들 때마다
   테마의 .content-pusher 및 그 바로 아래 이름 없는 wrapper div가 매번 흰 배경으로
   나와서 페이지별로 하나씩 고쳐왔음. 사이트 전체가 다크 테마이므로 페이지별 스코프
   대신 전역으로 한 번에 처리. */
.content-pusher,
.content-pusher > div {
  background-color: #000000 !important;
}

/* ==== bbPress 새 글 작성 폼: 남은 흰 배경 요소 전역 방어 (2026-09-10) ==== */
body.bbpress #bbpress-forums,
body.bbpress #bbpress-forums > div,
body.bbpress .bbp-topic-form,
body.bbpress .bbp-topic-form fieldset,
body.bbpress .bbp-topic-form legend,
body.bbpress .bbp-reply-form,
body.bbpress .bbp-reply-form fieldset,
body.bbpress .bbp-reply-form legend,
body.bbpress .bbp-submit-wrapper {
  background-color: transparent !important;
  color: #ffffff !important;
}

body.bbpress .bbp-topic-form fieldset,
body.bbpress .bbp-reply-form fieldset {
  background-color: #16171d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ==== bbPress: 알 수 없는 흰 배경 요소 포괄 방어 (2026-09-10) ====
   .content-pusher 안의 모든 요소 배경을 기본 투명으로 리셋하고,
   버튼/알림창/입력폼 등 의도적으로 색이 있어야 하는 요소는
   더 구체적인 선택자(이미 위에 정의됨)가 우선 적용되어 정상 표시됨. */
body.bbpress .content-pusher * {
  background-color: transparent !important;
}

/* ==== 게시판(bbPress) 페이지: 상단 배경 이미지 제거 (2026-09-10) ====
   .top_site_main 이 테마 데모 사이트(eduma.thimpress.com)의 깨진 이미지를
   배경으로 불러오고 있었음. 게시판 페이지에서만 제거. */
body.bbpress .top_site_main {
  background-image: none !important;
}

/* ==== 게시판 목록 표 레이아웃 (2026-09-10) ==== */
body.bbpress .mcs-topic-table,
body.bbpress .mcs-topic-table th,
body.bbpress .mcs-topic-table td,
body.bbpress .mcs-topic-table tr {
  border: none !important;
}

body.bbpress .mcs-topic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

body.bbpress .mcs-topic-table thead th {
  padding: 14px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #9295a0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  background-color: transparent !important;
}

body.bbpress .mcs-topic-table .mcs-col-no {
  width: 60px;
  text-align: center;
}

body.bbpress .mcs-topic-table .mcs-col-author,
body.bbpress .mcs-topic-table .mcs-col-date,
body.bbpress .mcs-topic-table .mcs-col-views {
  width: 110px;
  text-align: center;
}

body.bbpress .mcs-topic-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background-color: transparent !important;
}

body.bbpress .mcs-topic-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

body.bbpress .mcs-topic-table td {
  padding: 16px 12px;
  color: #ffffff !important;
  background-color: transparent !important;
}

body.bbpress .mcs-topic-table .mcs-col-no,
body.bbpress .mcs-topic-table .mcs-col-author,
body.bbpress .mcs-topic-table .mcs-col-date,
body.bbpress .mcs-topic-table .mcs-col-views {
  text-align: center;
  color: #9295a0 !important;
  font-size: 13px;
}

body.bbpress .mcs-topic-table .bbp-topic-permalink {
  color: #ffffff !important;
  font-weight: 500;
  text-decoration: none;
}

body.bbpress .mcs-topic-table .bbp-topic-permalink:hover {
  color: #389aff !important;
}

body.bbpress .mcs-topic-table .mcs-topic-reply-count {
  margin-left: 4px;
  color: #389aff !important;
  font-size: 13px;
}

body.bbpress .mcs-topic-table .mcs-topic-pinned {
  margin-right: 6px;
}

@media (max-width: 600px) {
  body.bbpress .mcs-topic-table .mcs-col-author,
  body.bbpress .mcs-topic-table .mcs-col-date {
    display: none;
  }
}

/* ==== 게시판(bbPress) 페이지: 사이드바 제거, 본문 전체 폭 사용 (2026-09-10) ==== */
body.bbpress #sidebar {
  display: none !important;
}

body.bbpress .site-main.col-sm-9 {
  width: 100% !important;
  float: none !important;
}

/* ==== NEWS 카테고리 페이지 정리 (2026-09-10) ====
   글이 없을 때 나오는 영어 "Nothing Found" 안내문 + 검색창 숨김,
   사이드바(POPULAR COURSES 등) 제거하고 본문 전체 폭 사용 */
body.category-news .no-results {
  display: none !important;
}

body.category-news #sidebar {
  display: none !important;
}

body.category-news .site-main.col-sm-9 {
  width: 100% !important;
  float: none !important;
}

/* ==================================================================
   게시판 글/답변 카드 디자인 리뉴얼 (2026-09-10)
   ================================================================== */
body.bbpress .mcs-post-card {
  background-color: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

body.bbpress .mcs-post-card--reply {
  margin-left: 0;
}

body.bbpress .mcs-post-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.bbpress .mcs-post-card__author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.bbpress .mcs-post-card__author .bbp-author-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff !important;
}

body.bbpress .mcs-post-card__author .bbp-author-avatar img {
  border-radius: 50%;
  display: block;
}

body.bbpress .mcs-post-card__author .bbp-author-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
}

body.bbpress .mcs-post-card__author .bbp-author-role {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: rgba(56, 154, 255, 0.15);
  color: #389aff !important;
  font-size: 12px;
  font-weight: 600;
}

body.bbpress .mcs-post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #7c7f89 !important;
}

body.bbpress .mcs-post-card__permalink {
  color: #7c7f89 !important;
  text-decoration: none;
}

body.bbpress .mcs-post-card__permalink:hover {
  color: #389aff !important;
}

body.bbpress .mcs-post-card__content {
  font-size: 15px;
  line-height: 1.75;
  color: #d6d7db !important;
}

body.bbpress .mcs-post-card__content p:last-child {
  margin-bottom: 0;
}

body.bbpress .mcs-post-card__actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

body.bbpress .mcs-post-card__actions a {
  color: #7c7f89 !important;
  text-decoration: none;
  margin-right: 4px;
}

body.bbpress .mcs-post-card__actions a:hover {
  color: #389aff !important;
}

/* 상단 알림 바(구독/즐겨찾기) 다듬기 */
body.bbpress .bbp-topic-header {
  margin-bottom: 4px;
}

/* 오래된 글쓴이/글 열 헤더-풋터 라벨 숨김 (새 카드 레이아웃엔 불필요) */
body.bbpress .bbp-lead-topic > .bbp-header,
body.bbpress .bbp-lead-topic > .bbp-footer,
body.bbpress .bbp-replies > .bbp-header,
body.bbpress .bbp-replies > .bbp-footer {
  display: none !important;
}

@media (max-width: 600px) {
  body.bbpress .mcs-post-card {
    padding: 18px 18px;
  }
}

/* ==== 게시판 목록 하단: 검색창 + 글쓰기 버튼 (2026-09-10) ==== */
body.bbpress .mcs-topic-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

body.bbpress .mcs-topic-list-footer__search {
  flex: 1;
  max-width: 320px;
}

body.bbpress .mcs-topic-list-footer .bbp-search-box {
  overflow: visible !important;
}

body.bbpress .mcs-topic-list-footer #bbp_search {
  width: 100% !important;
  max-width: 100% !important;
  background-color: #16171d !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 0 40px 0 16px !important;
}

body.bbpress .mcs-topic-list-footer .bbp-search-box::before {
  color: #7c7f89 !important;
  right: 8px !important;
}

body.bbpress .mcs-topic-list-footer #bbp_search_submit {
  cursor: pointer;
}

body.bbpress .mcs-write-button {
  display: inline-block;
  flex-shrink: 0;
  background-color: #1a6bfc;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 28px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

body.bbpress .mcs-write-button:hover {
  background-color: #0f56d8;
  color: #ffffff !important;
}

@media (max-width: 600px) {
  body.bbpress .mcs-topic-list-footer {
    flex-direction: column;
    align-items: stretch;
  }
  body.bbpress .mcs-topic-list-footer__search {
    max-width: none;
  }
  body.bbpress .mcs-write-button {
    text-align: center;
  }
}

/* ==== 레퍼런스 게시판 스타일에 맞춰 추가 정리 (2026-09-10) ==== */

/* 글쓰기 폼은 "글쓰기" 버튼 클릭 전까지 숨김 */
body.bbpress .mcs-topic-form--hidden {
  display: none !important;
}

body.bbpress #new-topic-0 {
  margin-top: 24px;
  scroll-margin-top: 100px;
}

/* 글쓰기 버튼을 button 태그로도 써도 동일하게 보이도록 */
body.bbpress button.mcs-write-button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ==== 검색창 버튼: 범용 제출버튼 파란색 규칙에서 제외 (2026-09-10) ====
   body.bbpress input[type="submit"] 전역 규칙이 검색창의 원래
   투명 오버레이 버튼까지 파랗게 칠해버려서 별도로 다시 투명 처리 */
body.bbpress #bbp_search_submit {
  background-color: transparent !important;
  color: transparent !important;
  width: 30px !important;
  padding: 0 !important;
}

/* ==== 글쓰기 폼: 제목 입력란 전체 너비로 (2026-09-10) ==== */
body.bbpress .mcs-post-form #bbp_topic_title,
body.bbpress .mcs-post-form #bbp_topic_content,
body.bbpress .mcs-post-form #bbp_reply_content {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #0e0f13 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
}

body.bbpress .mcs-post-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff !important;
}

body.bbpress .mcs-post-form p {
  margin-bottom: 20px;
}

/* ==== 전체강좌 페이지: 카테고리/작성자/가격 필터 위젯 제거 (2026-09-10) ==== */
body.post-type-archive-lp_course .widget_course_filter,
body.archive.learnpress-page .widget_course_filter {
  display: none !important;
}
