
/* 강좌 전체 */
#ChapterInfoView {
    width: 100%;
    float: left;
    margin-top: 15px;
}

#ChapterInfoView * {
    box-sizing: border-box;
}

/* 강 단위 */
#ChapterInfoView .chapter-item {
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* 강 제목 영역 */
#ChapterInfoView .chapter-main {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) 55px 100px;
    align-items: center;
    gap: 10px;
    padding: 17px 20px;
    background: #f8f9fa;
}

#ChapterInfoView .chapter-number {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

#ChapterInfoView .chapter-info {
    min-width: 0;
}

#ChapterInfoView .chapter-time {
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    color: #888;
}

#ChapterInfoView .chapter-buy {
    text-align: right;
    white-space: nowrap;
}

#ChapterInfoView .chapter-buy a {
    display: inline-block;
    padding: 8px 12px;
    background: #555;
    color: #fff;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
}

/* 교시 영역 */
#ChapterInfoView .chapter-detail {
    width: 100%;
    padding: 5px 20px 5px 95px;
    background: #faf9f7;
}

/* 교시 한 줄 */
#ChapterInfoView .lesson-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 55px 100px;
    align-items: center;
    gap: 10px;
    padding: 13px 5px;
    border-bottom: 1px solid #eee;
}

/* 교시 제목 */
#ChapterInfoView .lesson-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    line-height: 1.5;
    font-size: 14px;
}

#ChapterInfoView .lesson-number {
    flex-shrink: 0;
    color: #777;
    font-weight: bold;
    white-space: nowrap;
}

/* 교시 시간 */
#ChapterInfoView .lesson-time {
    text-align: center;
    color: #888;
    font-size: 13px;
    white-space: nowrap;
}

/* 수강하기 */
#ChapterInfoView .lesson-action {
    text-align: right;
    white-space: nowrap;
}

#ChapterInfoView .lesson-action a,
#ChapterInfoView .lesson-action button {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

/* 주요 내용 */
#ChapterInfoView .chapter-summary {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    padding: 15px 5px;
    line-height: 1.6;
    font-size: 13px;
    color: #666;
}

#ChapterInfoView .summary-title {
    font-weight: bold;
    color: #444;
}

#ChapterInfoView .summary-content {
    min-width: 0;
    overflow-wrap: break-word;
}

#ChapterInfoView .chapter-number img {
    cursor: pointer;
}

/* 모바일 */
@media screen and (max-width: 768px) {

    /* 강 제목과 구매하기 */
    #ChapterInfoView .chapter-main {
		grid-template-columns: 43px minmax(0, 1fr) 35px 68px;
		gap: 4px;
		padding: 13px 8px;
	}

    #ChapterInfoView .chapter-number {
        font-size: 12px;
    }

    #ChapterInfoView .chapter-number img {
        width: 19px;
    }

    #ChapterInfoView .chapter-title {
        font-size: 13px;
    }

    #ChapterInfoView .chapter-subtitle {
        font-size: 11px;
    }

    #ChapterInfoView .chapter-time {
        font-size: 11px;
    }

    #ChapterInfoView .chapter-buy {
        text-align: right;
    }

    #ChapterInfoView .chapter-buy a {
		padding: 6px 5px;
		font-size: 11px;
	}

    /* 교시 영역 */
    #ChapterInfoView .chapter-detail {
        padding: 5px 10px;
    }

    /* 교시 제목 + 시간 + 수강하기 */
    #ChapterInfoView .lesson-row {
        grid-template-columns: minmax(0, 1fr) 30px 68px;
        column-gap: 0;
        padding: 12px 0;
    }

    #ChapterInfoView .lesson-title {
        gap: 6px;
        font-size: 12px;
    }

    #ChapterInfoView .lesson-number {
        font-size: 12px;
    }

    #ChapterInfoView .lesson-time {
        width: 30px;
        text-align: center;
        margin: 0;
        padding: 0;
    }

	#ChapterInfoView .lesson-action {
        width: 58px;
        text-align: right;
        margin: 0;
        padding: 0;
    }

    #ChapterInfoView .lesson-action a,
	#ChapterInfoView .lesson-action button {
		padding: 6px 5px;
		font-size: 11px;
	}

    /* 주요 내용 */
    #ChapterInfoView .chapter-summary {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 13px 2px;
        font-size: 12px;
    }

	#ChapterInfoView .chapter-main {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        column-gap: 3px;
    }
}

/* 아주 작은 모바일 */
@media screen and (max-width: 360px) {

    #ChapterInfoView .chapter-main {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 5px;
        padding: 12px 7px;
    }

    #ChapterInfoView .chapter-buy a {
        padding: 6px 7px;
        font-size: 11px;
    }

    #ChapterInfoView .lesson-row {
        grid-template-columns: minmax(0, 1fr) 30px 68px;
        column-gap: 0;
        padding: 12px 0;
    }

    #ChapterInfoView .lesson-title {
        font-size: 11px;
    }

    #ChapterInfoView .lesson-action a,
    #ChapterInfoView .lesson-action button {
        padding: 5px 5px;
        font-size: 11px;
    }

	#ChapterInfoView .chapter-main {
        grid-template-columns: 43px minmax(0, 1fr) 78px;
    }
}


/* PC 공통 */
#ChapterInfoView .chapter-main {
    grid-template-columns: 65px minmax(0, 1fr) 100px;
    column-gap: 10px;
}

/* 강 시간 전체 숨김 */
#ChapterInfoView .chapter-time {
    display: none;
}

/* 구매하기 */
#ChapterInfoView .chapter-buy {
    width: auto;
    white-space: nowrap;
}

/* 모바일 */
@media screen and (max-width: 768px) {
    #ChapterInfoView .chapter-main {
        grid-template-columns: 43px minmax(0, 1fr) 68px;
        column-gap: 4px;
    }
}

/* 아주 작은 모바일 */
@media screen and (max-width: 360px) {
    #ChapterInfoView .chapter-main {
        grid-template-columns: 43px minmax(0, 1fr) 78px;
        column-gap: 3px;
    }
}


#curriculum::after {
    content: "";
    display: block;
    clear: both;
}

#teacher {
    clear: both;
    position: relative;
}

.curriculum-buttons {
    display: flex;
    gap: 6px;
}

.curriculum-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}

.curriculum-buttons .btn-sample {
    color: #2563eb;
    border-color: #bfdbfe;
}

.curriculum-buttons .btn-lecture-file {
    color: #15803d;
    border-color: #bbf7d0;
}

@media (max-width: 768px) {
    .curriculum-buttons a {
        height: 30px;
        padding: 0 9px;
        font-size: 11px;
    }
}

/* 강좌목차, 수강평 공통 제목 영역 */
.curriculum-header {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 제목 밑줄 */
.curriculum-header h3 {
    display: block;
    width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 0 150px 10px 0 !important;
    line-height: 1.4;
    border-bottom: 1px solid #ddd !important;
    box-sizing: border-box;
}

/* 버튼은 오른쪽에 고정 */
.curriculum-header .curriculum-buttons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.curriculum-header .curriculum-buttons i.fa {
    display: inline-block !important;
    font-family: FontAwesome !important;
    font-style: normal;
    font-size: 14px;
    margin-right: 5px;
    visibility: visible !important;
}

