/* 전기기능사 공부 순서 (cert_1) - 상단 테이블(16~18px)과 톤 맞춤 */
.cert_con:has(.cert_study_order) {
	--step-number-size: 48px;
	--timeline-line-center: 27.5px;
	--timeline-content-gap: 60px;
	--timeline-gutter: calc(var(--timeline-line-center) + (var(--step-number-size) / 2) + var(--timeline-content-gap));
}

/* 위·아래 두 영역 공통 셸 (배경·둥근 테두리) */
.cert_study_order,
.cert_detail_panel {
	--navy: #0a1f4d;
	--blue: #1a56db;
	--text: #1e293b;
	--text-muted: #475569;
	--red: #dc2626;
	--card: #ffffff;
	--shadow: 0 3px 10px rgba(15, 40, 90, 0.05);
	--radius-xl: 16px;
	--content-max: 1000px;
	box-sizing: border-box;
	color: var(--text);
	font-size: 17px;
	line-height: 1.65;
	font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Pretendard", "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at 86% 7%, rgba(89, 150, 255, 0.16) 0 18%, transparent 18.5% 42%),
		radial-gradient(circle at 17% 23%, rgba(75, 121, 255, 0.08), transparent 28%),
		linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
	border-radius: var(--radius-xl);
	overflow: hidden;
	width: 100%;
}

.cert_study_order {
	margin-top: 0;
	margin-bottom: 0;
}

.cert_detail_panel {
	margin-top: var(--timeline-content-gap, 60px);
	padding: 0;
	width: 100%;
	max-width: 100%;
}

/* 위 .poster와 동일한 바깥 여백·최대 너비 */
.cert_detail_panel .cert_detail_inner {
	--panel-pad-x: 24px;
	width: min(var(--content-max), 100%);
	max-width: 100%;
	margin: 0 auto;
	padding: 28px var(--panel-pad-x) 36px;
	box-sizing: border-box;
}

.cert_detail_panel .cert_detail_inner .sc_title {
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
	color: var(--navy);
}

.cert_detail_panel .cert_detail_inner .sc_title span {
	color: var(--blue);
}

/* 위 final-card·poster 내용과 동일 너비(952px) */
.cert_con .cert_detail_panel .cert_detail_inner .lecture_detail_box {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.cert_con .cert_detail_panel .cert_detail_inner .lecture_detail_box .board_box {
	width: 100%;
}

.cert_study_order *,
.cert_study_order *::before,
.cert_study_order *::after,
.cert_detail_panel *,
.cert_detail_panel *::before,
.cert_detail_panel *::after {
	box-sizing: border-box;
}

.cert_study_order .poster {
	position: relative;
	overflow: hidden;
	width: min(var(--content-max), 100%);
	max-width: 100%;
	margin: 0 auto;
	padding: 28px 24px 36px;
}

.cert_study_order .poster::before {
	content: "";
	position: absolute;
	right: 20px;
	top: 36px;
	width: 80px;
	height: 64px;
	opacity: 0.35;
	background-image: radial-gradient(circle, #9fbaff 0 3px, transparent 3.5px);
	background-size: 20px 20px;
	pointer-events: none;
}

.cert_study_order .hero {
	position: relative;
	min-height: auto;
	display: grid;
	grid-template-columns: 1fr 180px;
	align-items: center;
	gap: 24px;
}

.cert_study_order .eyebrow {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 7px 16px;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -0.03em;
	background: linear-gradient(135deg, #1a56db, #3b6fd9);
	box-shadow: 0 3px 8px rgba(26, 86, 219, 0.15);
}

.cert_study_order h1 {
	margin: 14px 0 12px;
	color: var(--navy);
	font-size: clamp(22px, 2.8vw, 30px);
	line-height: 1.25;
	letter-spacing: -0.05em;
	font-weight: 800;
	white-space: nowrap;
}

.cert_study_order h1 .accent {
	display: inline-block;
	color: var(--blue);
}

.cert_study_order .hero-copy {
	max-width: 100%;
	margin: 0;
	color: var(--text-muted);
	font-size: 18px;
	line-height: 1.7;
	letter-spacing: -0.03em;
	font-weight: 400;
}

.cert_study_order .hero-visual {
	position: relative;
	z-index: 1;
	width: min(100%, 180px);
	justify-self: center;
	filter: drop-shadow(0 6px 10px rgba(6, 43, 122, 0.08));
}

.cert_study_order .timeline {
	position: relative;
	margin-top: 24px;
	padding-left: var(--timeline-gutter);
}

.cert_study_order .timeline::before {
	content: "";
	position: absolute;
	left: calc(var(--timeline-line-center) - 1.5px);
	top: 28px;
	bottom: 36px;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(180deg, #2d65ff, #0d33c9);
}

.cert_study_order .step {
	position: relative;
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 24px;
	align-items: center;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	min-height: auto;
	margin-bottom: 20px;
	padding: 20px 28px;
	border: 1px solid #dbe4f0;
	border-radius: var(--radius-xl);
	background: var(--card);
	box-shadow: var(--shadow);
}

.cert_study_order .step-number {
	position: absolute;
	left: calc(var(--timeline-line-center) - var(--timeline-gutter));
	top: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: var(--step-number-size, 48px);
	height: var(--step-number-size, 48px);
	border-radius: 50%;
	color: #fff;
	background-color: #1650c9;
	background-image:
		linear-gradient(90deg, #3b6fd9 50%, transparent 50%),
		linear-gradient(#3b6fd9 50%, transparent 50%);
	background-size: 4px 4px;
	background-position: 0 0, 2px 2px;
	box-shadow: 0 3px 8px rgba(26, 86, 219, 0.15);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.cert_study_order .image-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 220px;
	height: auto;
	min-height: 0;
	margin: 0 auto;
	padding: 12px;
	border-radius: 12px;
	overflow: visible;
	background: linear-gradient(145deg, #f5f9ff, #e7f0ff);
}

.cert_study_order .image-box img {
	display: block;
	width: auto;
	height: auto;
	max-width: 120px;
	max-height: 100px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.cert_study_order .image-box.book img {
	max-width: 100px;
	max-height: 110px;
	mix-blend-mode: normal;
}

.cert_study_order .pill {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 10px;
	padding: 5px 12px;
	border-radius: 6px;
	color: #fff;
	background: linear-gradient(135deg, #1a56db, #3b6fd9);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.cert_study_order .step h2 {
	margin: 0 0 10px;
	color: var(--navy);
	font-size: 20px;
	line-height: 1.35;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.cert_study_order .step p {
	margin: 0;
	color: var(--text);
	font-size: 17px;
	line-height: 1.65;
	letter-spacing: -0.02em;
	font-weight: 400;
}

.cert_study_order .notice {
	display: block;
	margin-top: 8px;
	font-size: 16px;
	color: var(--red);
	font-weight: 700;
}

.cert_study_order .final-card {
	display: grid;
	grid-template-columns: 52px 1fr 100px;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
	padding: 18px 22px;
	border-radius: var(--radius-xl);
	background: #ffffff;
	box-shadow: var(--shadow);
	border: 1px solid #dbe4f0;
}

.cert_study_order .star-badge {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, #1a56db, #3b6fd9);
	font-size: 24px;
	font-weight: 800;
	box-shadow: 0 3px 8px rgba(26, 86, 219, 0.15);
}

.cert_study_order .final-card strong {
	display: block;
	margin-bottom: 6px;
	color: var(--navy);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.cert_study_order .final-card span {
	color: var(--text-muted);
	font-size: 17px;
	line-height: 1.55;
	letter-spacing: -0.02em;
}

.cert_study_order .trophy {
	width: 50px;
	justify-self: end;
	filter: drop-shadow(0 4px 8px rgba(6, 43, 122, 0.06));
	mix-blend-mode: multiply;
}

@media (max-width: 900px) {
	.cert_study_order,
	.cert_detail_panel {
		border-radius: 12px;
	}

	.cert_study_order {
		margin-top: 20px;
	}

	.cert_detail_panel {
		margin-top: 40px;
	}

	.cert_detail_panel .cert_detail_inner {
		--panel-pad-x: 14px;
		width: calc(100% - 20px);
		padding: 24px var(--panel-pad-x) 28px;
	}

	.cert_con .cert_detail_panel .cert_detail_inner .lecture_detail_box {
		padding-left: 0;
	}

	.cert_study_order .poster {
		width: calc(100% - 20px);
		padding: 24px 14px 28px;
	}

	.cert_study_order .hero {
		grid-template-columns: 1fr;
		gap: 16px;
		text-align: center;
	}

	.cert_study_order .eyebrow {
		margin: 0 auto;
	}

	.cert_study_order .hero-visual {
		width: min(50%, 160px);
		justify-self: center;
		margin: 0 auto;
	}

	.cert_study_order .timeline {
		margin-top: 20px;
		padding-left: 0;
	}

	.cert_study_order .timeline::before {
		display: none;
	}

	.cert_study_order .step {
		--step-number-size: 40px;
		grid-template-columns: 1fr;
		gap: 14px;
		padding: calc(12px + var(--step-number-size) + var(--timeline-content-gap, 60px)) 16px 18px;
		margin-bottom: 24px;
	}

	.cert_study_order .step-number {
		left: 50%;
		top: 12px;
		transform: translateX(-50%);
		width: var(--step-number-size);
		height: var(--step-number-size);
		font-size: 17px;
	}

	.cert_study_order .image-box {
		max-width: 160px;
		padding: 8px;
		margin: 0 auto;
	}

	.cert_study_order .image-box img {
		max-width: 96px;
		max-height: 80px;
	}

	.cert_study_order .image-box.book img {
		max-width: 88px;
		max-height: 88px;
	}

	.cert_study_order .step-content {
		text-align: left;
	}

	.cert_study_order .step h2 {
		word-break: keep-all;
		overflow-wrap: break-word;
	}

	.cert_study_order .final-card {
		grid-template-columns: 48px 1fr;
		gap: 14px;
		padding: 16px;
		margin-top: 20px;
	}

	.cert_study_order .trophy {
		grid-column: 1 / -1;
		justify-self: center;
		width: 72px;
	}
}

@media (max-width: 560px) {
	.cert_study_order {
		margin-top: 16px;
		border-radius: 10px;
	}

	.cert_study_order .poster {
		width: calc(100% - 12px);
		padding: 18px 10px 24px;
	}

	.cert_study_order .poster::before {
		display: none;
	}

	.cert_study_order .eyebrow {
		font-size: 15px;
		padding: 6px 12px;
	}

	.cert_study_order h1 {
		margin: 10px 0;
		font-size: clamp(16px, 4.2vw, 23px);
		white-space: nowrap;
	}

	.cert_study_order .hero-copy {
		font-size: 16px;
		line-height: 1.6;
	}

	.cert_study_order .hero-visual {
		width: min(45%, 140px);
	}

	.cert_study_order .step {
		--step-number-size: 34px;
		padding: calc(10px + var(--step-number-size) + var(--timeline-content-gap)) 12px 14px;
		margin-bottom: 20px;
	}

	.cert_study_order .step-number {
		width: var(--step-number-size);
		height: var(--step-number-size);
		font-size: 15px;
		top: 10px;
	}

	.cert_study_order .image-box {
		max-width: 140px;
		padding: 6px;
	}

	.cert_study_order .image-box img {
		max-width: 80px;
		max-height: 68px;
	}

	.cert_study_order .image-box.book img {
		max-width: 72px;
		max-height: 72px;
	}

	.cert_study_order .step h2 {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.cert_study_order .step p,
	.cert_study_order .notice {
		font-size: 16px;
	}

	.cert_study_order .pill {
		font-size: 14px;
		padding: 4px 10px;
		margin-bottom: 8px;
	}

	.cert_study_order .final-card {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 16px 12px;
	}

	.cert_study_order .star-badge {
		justify-self: center;
		width: 42px;
		height: 42px;
		font-size: 20px;
	}

	.cert_study_order .final-card strong {
		font-size: 18px;
	}

	.cert_study_order .final-card span {
		font-size: 16px;
	}

	.cert_study_order .trophy {
		width: 64px;
	}
}

@media (max-width: 380px) {
	.cert_study_order h1 {
		font-size: clamp(14px, 4vw, 18px);
		white-space: nowrap;
	}
}

