@charset "utf-8";

/* ==========================================================================
   강좌 상세 페이지 (Lecture Detail) 스타일
   ========================================================================== */

.lecture-detail-page {
  padding: 40px 15px 60px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. 상단 강좌 요약 영역 (이미지 + 기본 정보 + 구매 박스)
   -------------------------------------------------------------------------- */
.lecture-top-box {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
  align-items: flex-start;
}

.lecture-top-box .lecture-thumb {
  flex: 0 0 360px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lecture-top-box .lecture-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.lecture-top-box .lecture-summary-info {
  flex: 1;
  min-width: 300px;
}

.lecture-summary-info .badge-part {
  display: inline-block;
  padding: 4px 10px;
  background-color: #f2f4f7;
  color: #495057;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 12px;
}

.lecture-summary-info h2 {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0 0 10px 0;
  word-break: keep-all;
}

.lecture-summary-info .summary-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* 스펙 정보 (강사, 구성, 수강시간 등) */
.lecture-summary-info .meta-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  padding: 16px 20px;
  background-color: #f9f9fb;
  border-radius: 6px;
  font-size: 14px;
  color: #444;
  margin-bottom: 25px;
  border: 1px solid #eee;
}

.lecture-summary-info .meta-specs span strong {
  color: #111;
}

/* 가격 및 구매 버튼 영역 */
.price-action-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

/* 가격 영역 */
.price-action-box .price-area {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.price-action-box .price-area > * {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

.price-action-box .price-area .normal-price strong {
    font-size: 24px;
    color: #e03131;
    font-weight: 800;
}

/* 버튼 영역 */
.price-action-box .action-buttons {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto;
}

.price-action-box .action-buttons a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 12px;
    height: 44px;
    font-size: 13px;
}

.btn-cart, .btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-cart {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
}

.btn-cart:hover {
  background-color: #f5f5f5;
}

.btn-buy-now {
  background-color: #228be6;
  color: #fff;
  border: 1px solid #228be6;
}

.btn-buy-now:hover {
  background-color: #1c7ed6;
}


/* --------------------------------------------------------------------------
   2. 상세 탭 네비게이션
   -------------------------------------------------------------------------- */
.detail-tab-nav {
  display: flex;
  border-bottom: 2px solid #222;
  margin-bottom: 40px;
  background-color: #fff;
  position: sticky;
  top: 65px;
  z-index: 10;
}

.detail-tab-nav a {
  flex: 1;
  text-align: center;
  padding: 16px 10px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.detail-tab-nav a:hover {
  color: #111;
}

.detail-tab-nav a.active {
  color: #228be6;
  border-bottom-color: #228be6;
  background-color: #fff;
}


/* --------------------------------------------------------------------------
   3. 상세 본문 세션
   -------------------------------------------------------------------------- */
.detail-content-wrap .content-section {
  margin-bottom: 60px;
}

.detail-content-wrap .content-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.editor-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.editor-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* 커리큘럼 리스트 */
.curriculum-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.curriculum-list li {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e9ecef;
  font-size: 15px;
  color: #333;
  background-color: #fff;
}

.curriculum-list li:last-child {
  border-bottom: none;
}

.curriculum-list li span {
  font-weight: 700;
  color: #228be6;
  margin-right: 15px;
  min-width: 45px;
}

.curriculum-list li strong {
  flex: 1;
  font-weight: 500;
}

.youtube-wrap {
    width: 100%;
    max-width: 564px;
    margin: 20px auto;
    aspect-ratio: 16 / 9;
}

.youtube-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#view_list {
    width: 100%;
    float: none;
    min-width: 0;
    box-sizing: border-box;
}

#view_list * {
    box-sizing: border-box;
    max-width: 100%;
}

/* 수강 후기 */
.review-list-wrap {
    width: 100%;
    box-sizing: border-box;
}

.review-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-item {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

/* 수강평 영역 초기화 */
#view_list {
    width: 100%;
    float: none;
    box-sizing: border-box;
    overflow: hidden;
}

#view_list .review-list-wrap,
#view_list .review-list,
#view_list .review-item {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
    box-sizing: border-box;
}

#view_list .review-list {
    list-style: none;
}

#view_list .review-item {
    display: block;
    list-style: none;
    border-bottom: 1px solid #e5e5e5;
}

#view_list .review-row {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 90px;
    align-items: center;
    width: 100%;
    min-height: 48px;
    color: #333;
    text-decoration: none;
    box-sizing: border-box;
}

#view_list .review-number,
#view_list .review-writer {
    text-align: center;
    font-size: 13px;
}

#view_list .review-title {
    min-width: 0;
    padding: 0 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}

#view_list .review-content {
    width: 100%;
    padding: 18px;
    background: #f8f9fa;
    box-sizing: border-box;
}

#view_list .review-content-text {
    width: 100%;
    line-height: 1.7;
    overflow-wrap: break-word;
}

#view_list .review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
}

#view_list .review-empty {
    padding: 30px 10px;
    text-align: center;
    color: #888;
}

#view_list .paging,
#view_list .paging ul,
#view_list .paging li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

#view_list .paging li {
    display: inline-block;
    vertical-align: middle;
}

#view_list .paging ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

#view_list {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
    box-sizing: border-box;
}

#view_list .review-list-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#view_list .review-paging-wrap {
    width: 100%;
    margin: 25px auto 10px;
    text-align: center;
    box-sizing: border-box;
}

#view_list .review-paging-wrap .paging {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}


/* --------------------------------------------------------------------------
   4. 모바일 반응형 처리 (768px 이하)
   -------------------------------------------------------------------------- */


/* 패드 및 작은 노트북 */
@media (min-width: 769px) and (max-width: 1200px) {
    .lecture-top-box .lecture-thumb {
        flex: 0 0 260px !important;
        width: 260px !important;
        max-width: 260px !important;
    }

    .lecture-top-box .lecture-thumb img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
  .lecture-top-box {
        width: 100%;
        align-items: stretch;
    }

    .lecture-top-box .lecture-thumb {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        box-sizing: border-box;
    }

    .lecture-top-box .lecture-summary-info {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 100%;
        box-sizing: border-box;
    }

  .lecture-summary-info h2 {
    font-size: 20px;
  }

  .price-action-box {
        flex-direction: column;
        align-items: stretch;
    }

    .price-action-box .price-area {
        width: 100%;
        text-align: right;
        overflow: visible;
    }

    .price-action-box .action-buttons {
        width: 100%;
        flex: 1 1 auto;
        gap: 5px;
    }

    .price-action-box .action-buttons a {
        flex: 1 1 0;
        padding: 0 4px;
        font-size: 12px;
    }

  .detail-tab-nav a {
    font-size: 14px;
    padding: 12px 5px;
  }

  .detail-tab-nav {
        top: 5px;
   }

   #view_list .review-row {
        grid-template-columns: 40px minmax(0, 1fr) 65px;
        min-height: 44px;
    }

    #view_list .review-number,
    #view_list .review-writer {
        font-size: 11px;
    }

    #view_list .review-title {
        padding: 0 5px;
        font-size: 13px;
    }

    #view_list .review-content {
        padding: 14px 10px;
        font-size: 13px;
    }

	.action-buttons a {
        font-size: 12px;
        padding: 10px 3px;
    }
}


.action-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
}

.action-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-break: keep-all;
    min-width: 0;
    padding: 10px 5px;
    font-size: 13px;
    box-sizing: border-box;
}

.action-buttons .btn-cart {
    flex: 1;
}

.action-buttons .btn-buy-now {
    flex: 1.2;
}

/* 태블릿 및 좁은 화면 */
@media (max-width: 900px) {

    .price-action-box {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .price-action-box .price-area {
        width: 100%;
        text-align: right;
        overflow: visible;
    }

    .price-action-box .action-buttons {
        width: 100%;
        flex: 1 1 auto;
        gap: 5px;
    }

    .price-action-box .action-buttons a {
        flex: 1 1 0;
        padding: 0 4px;
        font-size: 12px;
    }
}

.youtube-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    margin: 30px auto 20px;
    overflow: hidden;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 768px) {
    .youtube-container {
        width: 100%;
    }

	.review-write {
        width: 100%;
    }

	.review-submit {
        width: 50%;
    }
}

/* 수강평 작성 영역 */
.review-write {
    width: 80%;
    margin: 10px auto;
    box-sizing: border-box;
}

.review-write * {
    box-sizing: border-box;
}

.review-write input[type="text"] {
    width: 100%;
    height: 35px;
    margin-bottom: 10px;
    padding: 5px 10px;
}

.review-write textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    resize: vertical;
}

.review-submit {
    width: 30%;
    height: 35px;
    line-height: 35px;
    margin: 10px auto 0;
    text-align: center;
    border-radius: 3px;
    background: #747474;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}


/* =====================================================
   강좌 상세 가격 및 구매 영역 - 패키지 디자인 통일
   ===================================================== */

/* 전체 영역 세로 배치 */
.price-action-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 15px;

    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

/* 가격 영역 */
.price-action-box .price-area {
    display: block;
    flex: none;
    width: 100%;
    min-width: 0;

    white-space: normal;
    overflow: visible;
    text-align: left;
}

/* 기존 inline-block 설정 해제 */
.price-action-box .price-area > * {
    display: block;
    vertical-align: initial;
    white-space: normal;
}

/* 기본 수강료 */
.pd-normal-price {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* 쿠폰 적용가 */
.pd-coupon-price {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

/* 쿠폰 이름과 버튼 */
.pd-coupon-info {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

/* 할인 상세는 처음에 숨김 */
.price-action-box #couponesol {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

/* 구매 버튼 영역 */
.price-action-box .action-buttons {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
    box-sizing: border-box;
}

/* 구매 버튼 너비 */
.price-action-box .action-buttons a {
    flex: 1 1 0;
    height: 48px;
    padding: 0 8px;
    font-size: 14px;
    white-space: nowrap;
    box-sizing: border-box;
}

/* 모바일 및 태블릿 */
@media (max-width: 900px) {

    .price-action-box {
        flex-direction: column;
        align-items: stretch;
    }

    .price-action-box .price-area {
        text-align: left;
    }

    .price-action-box .action-buttons {
        width: 100%;
        gap: 5px;
    }

    .price-action-box .action-buttons a {
        font-size: 12px;
        padding: 0 3px;
    }
}
