/* 메인 강의 카드 — mukoom 스타일 (section-best-subject / section-new-subject) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 메인 인기강의 / 추천강의 섹션 배경 */
#main > .section-best-subject {
	background: #fff url('/files/images/bg_main1.png') no-repeat center top;
	background-size: cover;
	padding: 60px 0 80px;
}

#main > .section-new-subject {
	background: #fff url('/files/images/bg_main2.png') no-repeat center top;
	background-size: cover;
	padding: 60px 0 80px;
}

/* 인기강의·추천강의: 합격수기와 동일 1200px 영역 */
#main > .section-best-subject > .section,
#main > .section-new-subject > .section {
	width: 100%;
	max-width: 1200px;
	box-sizing: border-box;
}

.section-best-subject .bs-ss-box,
.section-new-subject .bs-ss-box {
	height: 0;
	overflow: hidden;
	/* 썸네일 원본 16:9 (9/16) */
	padding-bottom: 56.25%;
	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);
}

/* 인기강의/추천강의: PC 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 .courseBox .bx-wrapper,
.section-new-subject .courseBox .bx-wrapper {
	max-width: 1200px !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;
}

/* 모바일 슬라이더 네비 (합격수기 스타일) */
.course-swiper-nav {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}
.course-swiper-nav__btn {
	width: 34px;
	height: 28px;
	border: 1px solid #d5dbe6;
	border-radius: 10px;
	background: #fff;
	color: #475569;
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.course-swiper-nav__btn:hover { border-color: #94a3b8; color: #1e293b; }
.course-swiper-nav__btn.swiper-button-disabled { opacity: .35; cursor: default; }

@media (min-width: 835px) {
	#main > .section-best-subject .course_1Wrap,
	#main > .section-new-subject .course_2Wrap,
	#main > .section-best-subject .course-swiper-wrap,
	#main > .section-new-subject .course-swiper-wrap {
		max-width: 1200px;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	#main > .section-best-subject .course_1Wrap .courseBox,
	#main > .section-new-subject .course_2Wrap .courseBox {
		width: 100%;
	}

	.section-best-subject .course_1Wrap .course_1Slider,
	.section-new-subject .course_2Wrap .course_2Slider {
		display: flex !important;
		justify-content: space-between;
		align-items: flex-start;
		gap: 0;
		width: 100% !important;
		max-width: 1200px;
		transform: none !important;
		position: relative !important;
		left: auto !important;
		height: auto !important;
	}

	.section-best-subject .course_1Wrap .course_1Slider > li,
	.section-new-subject .course_2Wrap .course_2Slider > li {
		width: 368px !important;
		flex: 0 0 368px !important;
		min-width: 0;
		float: none !important;
		position: relative !important;
		margin-right: 0 !important;
		margin-bottom: 0 !important;
		padding: 0;
		box-sizing: border-box;
		height: auto !important;
		align-self: flex-start;
	}

	.section-best-subject .course_1Wrap .course_1Slider > li .bs-source-subjcet,
	.section-new-subject .course_2Wrap .course_2Slider > li .bs-source-subjcet {
		height: auto !important;
	}

	.section-best-subject .course_1Wrap .course_1Slider > li .bs-source-subjcet > ul > li,
	.section-new-subject .course_2Wrap .course_2Slider > li .bs-source-subjcet > ul > li {
		width: 100%;
		float: none;
		margin: 0;
	}

	.section-best-subject .course_1Wrap .course-loop-clone,
	.section-new-subject .course_2Wrap .course-loop-clone {
		display: none !important;
	}

	.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 .course-swiper-wrap .swiper,
	.section-new-subject .course-swiper-wrap .swiper {
		overflow: visible;
		height: auto !important;
		width: 100%;
	}

	.section-best-subject .course-swiper-wrap .swiper-wrapper,
	.section-new-subject .course-swiper-wrap .swiper-wrapper {
		height: auto !important;
	}
}

@media (max-width: 834px) {
	#main > .section-best-subject,
	#main > .section-new-subject {
		padding: 22px 0 28px;
	}

	#main > .section-best-subject .course_1,
	#main > .section-new-subject .course_2,
	.section-best-subject .course_1Wrap .course_1,
	.section-new-subject .course_2Wrap .course_2 {
		margin-top: 18px;
	}

	.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,
	.section-new-subject .course_2Wrap .courseBox {
		width: 100%;
		overflow: visible;
	}

	.section-best-subject .course_1Wrap .course_1Slider.swiper-wrapper > li,
	.section-new-subject .course_2Wrap .course_2Slider.swiper-wrapper > li {
		float: none;
		margin-right: 0;
		margin-bottom: 0;
	}

	.section-best-subject .course-swiper-wrap,
	.section-new-subject .course-swiper-wrap {
		position: relative;
		max-width: 100%;
		width: 100%;
		margin: 0 auto;
		box-sizing: border-box;
	}

	.section-best-subject .course-swiper-wrap .swiper-course-card,
	.section-new-subject .course-swiper-wrap .swiper-course-card {
		overflow: hidden;
		width: 100%;
		padding-bottom: 4px;
	}

	.section-best-subject .course-swiper-wrap .swiper-wrapper,
	.section-new-subject .course-swiper-wrap .swiper-wrapper {
		align-items: stretch;
	}

	.section-best-subject .course_1Wrap .course_1Slider > li,
	.section-new-subject .course_2Wrap .course_2Slider > li {
		width: auto;
		flex: none;
		max-width: none;
		padding: 0;
		box-sizing: border-box;
		height: auto;
	}

	.section-best-subject .course-swiper-wrap .swiper-slide,
	.section-new-subject .course-swiper-wrap .swiper-slide {
		width: min(88vw, 320px);
		height: auto;
		box-sizing: border-box;
		display: flex;
		align-items: flex-start;
		min-width: 0;
	}

	.section-best-subject .course-swiper-wrap .swiper-slide .bs-source-subjcet,
	.section-new-subject .course-swiper-wrap .swiper-slide .bs-source-subjcet {
		height: auto !important;
		width: 100%;
		min-width: 0;
	}

	.section-best-subject .course-swiper-wrap .swiper-slide .bs-source-subjcet > ul > li,
	.section-new-subject .course-swiper-wrap .swiper-slide .bs-source-subjcet > ul > li {
		width: 100%;
		float: none;
		margin: 0;
	}

	.section-best-subject .course-swiper-wrap .swiper-slide .ns-ss-all,
	.section-new-subject .course-swiper-wrap .swiper-slide .ns-ss-all,
	.section-best-subject .course-swiper-wrap .swiper-slide .bs-ss-all,
	.section-new-subject .course-swiper-wrap .swiper-slide .bs-ss-all {
		width: 100%;
		max-width: none;
		margin: 0;
		box-sizing: border-box;
	}

	.course-swiper-nav {
		display: flex;
		margin-top: 10px;
	}
}

.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;
	}
}

/* ── 메인 썸네일 HTML 텍스트·라벨 오버레이 ── */

.section-best-subject .course-thumb-html-host,
.section-new-subject .course-thumb-html-host {
	position: relative;
	overflow: hidden;
	container-type: inline-size;
}
.section-best-subject .course-thumb-html-host > img,
.section-new-subject .course-thumb-html-host > img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.section-best-subject .course-thumb-html-host .course-thumb-html-overlay,
.section-new-subject .course-thumb-html-host .course-thumb-html-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.section-best-subject .course-thumb-html-host .course-thumb-html-text,
.section-new-subject .course-thumb-html-host .course-thumb-html-text {
	position: absolute;
	left: 6%;
	top: 54%;
	transform: translateY(-50%);
	width: 85%;
	color: #fff;
	letter-spacing: -0.04em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
	font-family: inherit;
}
.section-best-subject .course-thumb-html-host .course-thumb-html-line1,
.section-new-subject .course-thumb-html-host .course-thumb-html-line1 {
	display: block;
	font-size: clamp(18px, 12cqw, 55px);
	font-weight: 800;
	line-height: 1.05;
	word-break: keep-all;
	font-family: inherit;
}
.section-best-subject .course-thumb-html-host .course-thumb-html-line2,
.section-new-subject .course-thumb-html-host .course-thumb-html-line2 {
	display: block;
	margin-top: 0.06em;
	font-size: clamp(16px, 10.8cqw, 50px);
	font-weight: 600;
	line-height: 1.05;
	word-break: keep-all;
	opacity: 0.96;
	font-family: inherit;
}
.section-best-subject .course-thumb-html-host .course-thumb-html-badge,
.section-new-subject .course-thumb-html-host .course-thumb-html-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 6px 14px;
	border-radius: 8px;
	background: #ffd400;
	color: #111;
	font-size: clamp(12px, 5.2cqw, 24px);
	font-weight: 800;
	font-family: inherit;
	line-height: 1.2;
	letter-spacing: -0.02em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.section-best-subject .course-thumb-html-host .stateBtn,
.section-new-subject .course-thumb-html-host .stateBtn {
	top: 14px;
	left: 14px;
	margin: 0;
}
@supports not (container-type: inline-size) {
	.section-best-subject .course-thumb-html-host .course-thumb-html-line1,
	.section-new-subject .course-thumb-html-host .course-thumb-html-line1 {
		font-size: 55px;
	}
	.section-best-subject .course-thumb-html-host .course-thumb-html-line2,
	.section-new-subject .course-thumb-html-host .course-thumb-html-line2 {
		font-size: 50px;
	}
	.section-best-subject .course-thumb-html-host .course-thumb-html-badge,
	.section-new-subject .course-thumb-html-host .course-thumb-html-badge {
		font-size: 24px;
	}
}
@media screen and (max-width: 480px) {
	.section-best-subject .course-thumb-html-host .course-thumb-html-text,
	.section-new-subject .course-thumb-html-host .course-thumb-html-text {
		left: 6%;
		width: 85%;
	}
	.section-best-subject .course-thumb-html-host .course-thumb-html-badge,
	.section-new-subject .course-thumb-html-host .course-thumb-html-badge {
		top: 10px;
		right: 10px;
		min-height: 28px;
		padding: 5px 10px;
		border-radius: 6px;
	}
	.section-best-subject .course-thumb-html-host .stateBtn,
	.section-new-subject .course-thumb-html-host .stateBtn {
		top: 10px;
		left: 10px;
	}
}
