/* 메인 강의 카드 — mukoom 스타일 (section-best-subject / section-new-subject) */

/* 메인 인기강의 / 추천강의 섹션 배경 */
#main > .section-best-subject {
	background: #fff url('/files/images/bg_main1.png') no-repeat center top;
	background-size: cover;
}

#main > .section-new-subject {
	background: #fff url('/files/images/bg_main2.png') no-repeat center top;
	background-size: cover;
}

.section-best-subject .bs-ss-box,
.section-new-subject .bs-ss-box {
	height: 0;
	overflow: hidden;
	/* 교체 이미지 1428x1102 기준 (1102/1428) */
	padding-bottom: 77.17%;
	position: relative;
}

.section-best-subject .bs-ss-box img,
.section-new-subject .bs-ss-box img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

.section-best-subject .bs-ss-text,
.section-new-subject .bs-ss-text,
.section-best-subject .ns-ss-text,
.section-new-subject .ns-ss-text {
	padding: 0 15px;
	min-height: 20px;
	margin-top: 15px;
}

.section-best-subject .bs-ss-text2,
.section-new-subject .bs-ss-text2,
.section-best-subject .ns-ss-text2,
.section-new-subject .ns-ss-text2 {
	padding: 0 15px;
	min-height: 28px;
	margin-top: 0;
	margin-bottom: 10px;
}

.section-best-subject .bs-ss-text h1,
.section-new-subject .bs-ss-text h1,
.section-best-subject .ns-ss-text h1,
.section-new-subject .ns-ss-text h1 {
	font-size: 20px;
	font-weight: 600;
	height: 24px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-wrap: break-word;
	line-height: 23px;
}

.section-best-subject .main_teacher,
.section-new-subject .main_teacher {
	float: left;
	width: 50%;
	font-size: 16px;
	font-weight: normal;
	color: #888;
}

.section-best-subject .main_price,
.section-new-subject .main_price {
	float: right;
	text-align: right;
	padding-right: 3px;
	width: 50%;
	font-size: 21px;
	font-weight: 700;
	color: #db0f0f !important;
	letter-spacing: -1px;
	line-height: 24px;
}

.section-best-subject .main_price .main_lec_stit,
.section-new-subject .main_price .main_lec_stit {
	display: none;
}

.section-best-subject .main_price span:not(.salePersent):not(.salePrice):not(.main_lec_stit),
.section-new-subject .main_price span:not(.salePersent):not(.salePrice):not(.main_lec_stit) {
	color: #db0f0f !important;
	font-size: 18px;
	font-weight: 600;
}

.section-best-subject .ns-ss-all .bs-ss-text2,
.section-new-subject .ns-ss-all .bs-ss-text2,
.section-best-subject .ns-ss-all .ns-ss-text2,
.section-new-subject .ns-ss-all .ns-ss-text2,
.section-best-subject .bs-ss-all .bs-ss-text2,
.section-new-subject .bs-ss-all .bs-ss-text2 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.section-best-subject .ns-ss-all .main_teacher,
.section-new-subject .ns-ss-all .main_teacher,
.section-best-subject .bs-ss-all .main_teacher,
.section-new-subject .bs-ss-all .main_teacher {
	float: none;
	width: auto;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.section-best-subject .ns-ss-all .main_price,
.section-new-subject .ns-ss-all .main_price,
.section-best-subject .bs-ss-all .main_price,
.section-new-subject .bs-ss-all .main_price {
	float: none;
	width: auto;
	flex-shrink: 0;
	text-align: right;
}

.section-best-subject .ns-ss-all,
.section-new-subject .ns-ss-all,
.section-best-subject .bs-ss-all,
.section-new-subject .bs-ss-all {
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	box-shadow: 2px 4px 4px 0 rgba(0, 0, 0, 0.1);
	background: #fff;
	padding-bottom: 12px;
	overflow: visible;
}

.section-best-subject .ns-ss-all:hover,
.section-new-subject .ns-ss-all:hover,
.section-best-subject .bs-ss-all:hover,
.section-new-subject .bs-ss-all:hover {
	opacity: 1;
}

.section-best-subject .ns-ss-all .bs-ss-box,
.section-new-subject .ns-ss-all .bs-ss-box,
.section-best-subject .bs-ss-all .bs-ss-box,
.section-new-subject .bs-ss-all .bs-ss-box {
	overflow: hidden;
	border-radius: 14px 14px 0 0;
}

.section-best-subject .ns-ss-all .bs-ss-box img,
.section-new-subject .ns-ss-all .bs-ss-box img,
.section-best-subject .bs-ss-all .bs-ss-box img,
.section-new-subject .bs-ss-all .bs-ss-box img {
	transition: transform 0.35s ease;
}

.section-best-subject .ns-ss-all:hover .bs-ss-box img,
.section-new-subject .ns-ss-all:hover .bs-ss-box img,
.section-best-subject .bs-ss-all:hover .bs-ss-box img,
.section-new-subject .bs-ss-all:hover .bs-ss-box img {
	transform: scale(1.1);
}

/* 인기강의/추천강의: 슬라이드 없이 3개 고정 노출, 카드 원본 크기 유지 */
.section-best-subject .course_1Wrap .courseBox .bx-wrapper,
.section-new-subject .course_2Wrap .courseBox .bx-wrapper {
	max-width: 100% !important;
	overflow: visible !important;
}

.section-best-subject .course_1Wrap .courseBox .bx-viewport,
.section-new-subject .course_2Wrap .courseBox .bx-viewport {
	overflow: visible !important;
	height: auto !important;
	width: 100% !important;
}

.section-best-subject .course_1Wrap .course_1Slider,
.section-new-subject .course_2Wrap .course_2Slider {
	display: flex !important;
	justify-content: center;
	align-items: stretch;
	gap: 12px;
	width: 100% !important;
	transform: none !important;
	position: relative !important;
	left: auto !important;
}

.section-best-subject .course_1Wrap .course_1Slider > li,
.section-new-subject .course_2Wrap .course_2Slider > li {
	width: 315px !important;
	flex: 0 0 315px !important;
	float: none !important;
	position: relative !important;
	margin-right: 0 !important;
	padding: 8px 10px 20px;
	box-sizing: border-box;
}

.section-best-subject .course_1Wrap .course_1Slider > li:nth-child(n+4),
.section-new-subject .course_2Wrap .course_2Slider > li:nth-child(n+4) {
	display: none !important;
}

.section-best-subject .courseBox .bx-wrapper,
.section-new-subject .courseBox .bx-wrapper {
	max-width: 1100px !important;
}

.section-best-subject .courseBox .bx-controls,
.section-new-subject .courseBox .bx-controls,
.section-best-subject .courseBox .bx-controls-direction,
.section-new-subject .courseBox .bx-controls-direction {
	display: none !important;
}

.section-best-subject .course_1Wrap .ns-ss-all,
.section-new-subject .course_1Wrap .ns-ss-all,
.section-best-subject .course_2Wrap .ns-ss-all,
.section-new-subject .course_2Wrap .ns-ss-all,
.section-best-subject .course_1Wrap .bs-ss-all,
.section-new-subject .course_1Wrap .bs-ss-all,
.section-best-subject .course_2Wrap .bs-ss-all,
.section-new-subject .course_2Wrap .bs-ss-all {
	position: relative;
}

.section-best-subject .course_1Wrap .bs-ss-box,
.section-new-subject .course_1Wrap .bs-ss-box,
.section-best-subject .course_2Wrap .bs-ss-box,
.section-new-subject .course_2Wrap .bs-ss-box {
	position: relative;
}

.section-best-subject .course_1Wrap .ns-ss-all > a:nth-child(2) .bs-ss-text,
.section-new-subject .course_1Wrap .ns-ss-all > a:nth-child(2) .bs-ss-text,
.section-best-subject .course_2Wrap .ns-ss-all > a:nth-child(2) .bs-ss-text,
.section-new-subject .course_2Wrap .ns-ss-all > a:nth-child(2) .bs-ss-text,
.section-best-subject .course_1Wrap .bs-ss-all > a:nth-child(2) .ns-ss-text,
.section-new-subject .course_1Wrap .bs-ss-all > a:nth-child(2) .ns-ss-text,
.section-best-subject .course_2Wrap .bs-ss-all > a:nth-child(2) .ns-ss-text,
.section-new-subject .course_2Wrap .bs-ss-all > a:nth-child(2) .ns-ss-text {
	position: static;
	margin-top: 15px;
	padding: 0 15px;
	pointer-events: auto;
	display: block;
	aspect-ratio: auto;
	min-height: 20px;
}

.section-best-subject .course_1Wrap .ns-ss-all > a:nth-child(2) .bs-ss-text h1,
.section-new-subject .course_1Wrap .ns-ss-all > a:nth-child(2) .bs-ss-text h1,
.section-best-subject .course_2Wrap .ns-ss-all > a:nth-child(2) .bs-ss-text h1,
.section-new-subject .course_2Wrap .ns-ss-all > a:nth-child(2) .bs-ss-text h1,
.section-best-subject .course_1Wrap .bs-ss-all > a:nth-child(2) .ns-ss-text h1,
.section-new-subject .course_1Wrap .bs-ss-all > a:nth-child(2) .ns-ss-text h1,
.section-best-subject .course_2Wrap .bs-ss-all > a:nth-child(2) .ns-ss-text h1,
.section-new-subject .course_2Wrap .bs-ss-all > a:nth-child(2) .ns-ss-text h1 {
	color: inherit;
	font-weight: 600;
	font-size: 20px;
	line-height: 23px;
	text-shadow: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 26px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.section-best-subject .ns-ss-all .bs-ss-text h1,
.section-new-subject .ns-ss-all .bs-ss-text h1 {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 26px;
	line-height: 26px;
}

.section-best-subject .ns-ss-all .bs-ss-text2,
.section-new-subject .ns-ss-all .bs-ss-text2,
.section-best-subject .bs-ss-all .ns-ss-text2,
.section-new-subject .bs-ss-all .ns-ss-text2 {
	margin-bottom: 0;
}

@media (max-width: 834px) {
	.section-best-subject .courseBox .bx-wrapper,
	.section-new-subject .courseBox .bx-wrapper {
		max-width: 100% !important;
		width: 100% !important;
	}

	.section-best-subject .course_1Wrap .courseBox .bx-viewport,
	.section-new-subject .course_2Wrap .courseBox .bx-viewport {
		overflow: visible !important;
	}

	.section-best-subject .course_1Wrap .course_1Slider,
	.section-new-subject .course_2Wrap .course_2Slider {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}

	.section-best-subject .course_1Wrap .course_1Slider > li,
	.section-new-subject .course_2Wrap .course_2Slider > li {
		width: 100% !important;
		flex: 0 0 auto !important;
		max-width: 315px;
	}

	.section-best-subject .course_1Wrap .course_1Slider > li:nth-child(n+2),
	.section-new-subject .course_2Wrap .course_2Slider > li:nth-child(n+2) {
		display: none !important;
	}
}
