@charset "utf-8";
/* ==========================================================================
   event58 : 2027 겨울방학 오전 특강 (920 박스형)
   - 마크업: layout/event_union/sub_content/sub_content_58.php  (<div class="ts-event event58">)
   - 선행 로드: css/event/event-base.css  ← 폰트·리셋·전역 CSS 방어는 전부 여기서 처리
   - 이 파일은 디자인만 다룬다. 토큰은 이 페이지에서 반복되는 색만 지역 변수로 정의
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root / local tokens  (폰트는 event-base 기본값 Paperozi 사용 — common.css 선언)
   -------------------------------------------------------------------------- */
.event58 {
	--event58-color-primary: #0063dd;
	--event58-color-accent: #0eafeb;
	--event58-color-highlight: #ffdc81;
}

/* 줄바꿈 제어 (PC / 모바일 전용 <br>) */
.event58-break--mobile {
	display: none;
}

/* --------------------------------------------------------------------------
   Section (공통 섹션 레이아웃)
   -------------------------------------------------------------------------- */
.event58-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	padding: 100px 0;
}
.event58-section__title {
	font-size: 40px;
	line-height: 48px;
	font-weight: 700;
	text-align: center;
}
.event58-section__title--primary {
	color: var(--event58-color-primary);
}
.event58-section__highlight {
	color: var(--event58-color-primary);
}

/* --------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */
.event58-button,
.event58-button:hover,
.event58-button:focus {
	color: #fff;
	text-decoration: none;
}
.event58-button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80px;
	padding: 0 20px;
	border-radius: 20px;
	background: var(--event58-color-primary);
	font-size: 20px;
	line-height: 24px;
	font-weight: 700;
	text-align: center;
	transition: background-color .2s;
}
.event58-button:hover {
	background: #0052b8;
}
.event58-button:focus-visible {
	outline: 3px solid var(--event58-color-highlight);
	outline-offset: 2px;
}
.event58-button--compact {
	height: 60px;
}
.event58-button__highlight {
	display: block;
	color: var(--event58-color-highlight);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.event58-hero__image {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Target : 이런 학생이라면 꼭 신청하세요
   -------------------------------------------------------------------------- */
.event58-target {
	background: #ebf6ff;
}
.event58-target__list {
	display: flex;
	justify-content: center;
	gap: 20px;
}
.event58-target__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex: 0 1 254px; /* 769~959px(태블릿)에서 .container 여백 때문에 폭이 부족하면 줄어듦 */
	min-width: 0;
}
.event58-target__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	border-radius: 10px;
	object-fit: cover;
}
.event58-target__description {
	font-size: 18px;
	line-height: 28px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Schedule : 오전 특강 운영 안내
   -------------------------------------------------------------------------- */
.event58-schedule {
	background: #fff;
}
.event58-schedule__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.event58-schedule__icon {
	width: 50px;
}
.event58-schedule__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 434px;
	max-width: 100%;
}
.event58-schedule__item {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 20px;
	line-height: 30px;
}
.event58-schedule__label {
	flex: none;
	padding: 5px 15px;
	border-radius: 999px;
	background: var(--event58-color-accent);
	color: #fff;
	font-weight: 700;
}
.event58-schedule__notice {
	width: 780px;
	max-width: 100%;
	padding: 30px;
	border-radius: 20px;
	background: var(--event58-color-accent);
	color: #fff;
	text-align: center;
}
.event58-schedule__notice-title {
	display: block;
	margin-bottom: 10px;
	font-size: 30px;
	line-height: 30px;
	color: var(--event58-color-highlight);
}
.event58-schedule__notice-description {
	font-size: 20px;
	line-height: 30px;
}

/* --------------------------------------------------------------------------
   Ticket : 특강권이란?
   -------------------------------------------------------------------------- */
.event58-ticket {
	padding-bottom: 50px;
	background: #85ccff;
}
.event58-ticket__header {
	position: relative;
}
.event58-ticket__character {
	position: absolute;
	right: 100%;
	bottom: -30px;
	width: 183px;
	max-width: none;
}
.event58-ticket__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 780px;
	max-width: 100%;
	padding: 30px;
	border-radius: 20px;
	background: #fff;
}
.event58-ticket__item {
	position: relative;
	padding-left: 30px;
	font-size: 20px;
	line-height: 30px;
}
.event58-ticket__item::before {
	content: '';
	position: absolute;
	top: 13px;
	left: 12px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}
.event58-ticket__actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	width: 780px;
	max-width: 100%;
}
.event58-ticket__actions .event58-button {
	flex: 1;
}

/* --------------------------------------------------------------------------
   Curriculum : 추천 커리큘럼
   -------------------------------------------------------------------------- */
.event58-curriculum {
	background: #fff;
}
.event58-curriculum__description {
	font-size: 20px;
	line-height: 30px;
	text-align: center;
}
.event58-curriculum__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	width: 780px;
	max-width: 100%;
}
.event58-curriculum__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	overflow: hidden;
	border: 1px solid var(--event58-color-accent);
	border-radius: 20px;
	background: #fff;
}
.event58-curriculum__name {
	width: 100%;
	padding: 10px 0;
	background: var(--event58-color-accent);
	color: #fff;
	font-size: 20px;
	line-height: 30px;
	font-weight: 700;
	text-align: center;
}
.event58-curriculum__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 300px;
	max-width: calc(100% - 20px);
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 10px;
}
.event58-curriculum__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* 애니메이션 스피킹: 시안상 이미지가 프레임보다 크게 배치되어 잘림 */
.event58-curriculum__image--wide {
	width: 349px;
	aspect-ratio: 349 / 200;
}
.event58-curriculum__image--wide img {
	flex: none;
	width: 107.74%;
	max-width: none;
	height: 125.5%;
}
.event58-curriculum__summary {
	padding: 0 10px;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
}
.event58-curriculum__recommend {
	width: 100%;
	margin-top: auto;
	padding: 10px;
	background: #ebf6ff;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
}
.event58-curriculum__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
	padding-top: 20px;
}
.event58-curriculum__more-title {
	font-size: 24px;
	line-height: 34px;
	font-weight: 700;
	text-align: center;
}
.event58-curriculum__course-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 30px;
	width: 780px;
	max-width: 100%;
	padding: 30px 0;
	border: 1px solid var(--event58-color-accent);
	border-radius: 20px;
}
.event58-curriculum__course {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 200px;
	font-size: 20px;
	line-height: 24px;
	text-align: center;
}
.event58-curriculum__course-image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
}
.event58-curriculum__course-image img {
	flex: none;
	width: 100%;
	max-width: none;
}
/* 시안의 이미지 크롭 비율 그대로 재현 */
.event58-curriculum__course-image--phonics img {
	width: 98.85%;
}
.event58-curriculum__course-image--pattern img {
	width: 106%;
}
.event58-curriculum__course-image--speaking img {
	position: absolute;
	top: -2.67%;
	left: -60%;
	width: 204%;
}
.event58-curriculum__more .event58-button {
	width: 385px;
	max-width: 100%;
}

/* --------------------------------------------------------------------------
   Apply : 신청 방법
   -------------------------------------------------------------------------- */
.event58-apply {
	background: #f1f1f1;
}
.event58-apply__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 780px;
	max-width: 100%;
}
.event58-apply__step-title {
	font-size: 20px;
	line-height: 48px;
	font-weight: 500;
	text-align: center;
}
.event58-apply__screen {
	width: 100%;
	overflow: hidden;
	border-radius: 17.568px;
	filter: drop-shadow(0 3.514px 1.757px rgba(0, 0, 0, .25));
}
.event58-apply__screen img {
	width: 100%;
}
.event58-apply__screen--framed {
	padding: 10px 10px 0;
	background: #fff;
	box-shadow: 0 3.514px 3.514px rgba(0, 0, 0, .25);
	filter: none;
}

/* --------------------------------------------------------------------------
   Responsive (기존 이벤트 페이지와 동일한 768px 기준)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.event58-break--pc {
		display: none;
	}
	.event58-break--mobile {
		display: inline;
	}

	.event58-section {
		padding: 50px 10px;
	}
	.event58-section__title {
		font-size: 28px;
		line-height: 34px;
	}

	.event58-button {
		height: 56px;
		padding: 0 10px;
		border-radius: 14px;
		font-size: 14px;
		line-height: 17px;
	}
	.event58-button--compact {
		height: 42px;
	}

	/* Target */
	.event58-target__list {
		flex-wrap: wrap;
		gap: 10px;
		max-width: 370px;
	}
	.event58-target__item {
		flex-basis: calc(50% - 5px);
		gap: 7px;
	}
	.event58-target__description {
		font-size: 14px;
		line-height: 20px;
	}

	/* Schedule */
	.event58-schedule__title {
		flex-direction: column;
	}
	.event58-schedule__list {
		width: 284px;
	}
	.event58-schedule__item {
		gap: 14px;
		font-size: 14px;
		line-height: 21px;
	}
	.event58-schedule__label {
		padding: 3.5px 10.5px;
	}
	.event58-schedule__notice {
		width: 370px;
	}
	.event58-schedule__notice-title {
		font-size: 21px;
		line-height: 21px;
	}
	.event58-schedule__notice-description {
		font-size: 14px;
		line-height: 21px;
	}

	/* Ticket */
	.event58-ticket {
		gap: 21px;
		padding-bottom: 35px;
	}
	/* 모바일: absolute 대신 흐름 배치 → 캐릭터+제목 묶음이 화면 안에서 가운데 정렬 (좁은 화면에서 밖으로 나가지 않음) */
	.event58-ticket__header {
		display: flex;
		align-items: flex-end;
		justify-content: center;
		max-width: 100%;
	}
	.event58-ticket__character {
		position: static;
		flex: none;
		width: min(116px, 30vw);
		/* 이미지 비율 366:260(=0.7104). 위로는 섹션 여백까지 올라가고, 아래로는 카드 상단(21px)에 닿게
		   → 헤더 높이는 제목 높이(34px) 그대로 유지 */
		margin-top: calc(55px - min(116px, 30vw) * 0.7104);
		margin-bottom: -21px;
	}
	.event58-ticket__header .event58-section__title {
		white-space: nowrap;
	}
	.event58-ticket__list {
		width: 370px;
		gap: 7px;
		padding: 21px;
	}
	.event58-ticket__item {
		padding-left: 21px;
		font-size: 14px;
		line-height: 21px;
	}
	.event58-ticket__item::before {
		top: 9px;
		left: 8px;
		width: 3px;
		height: 3px;
	}
	.event58-ticket__actions {
		width: 370px;
		gap: 7px;
	}

	/* Curriculum */
	.event58-curriculum {
		gap: 20px;
	}
	.event58-curriculum__description {
		font-size: 14px;
		line-height: 21px;
	}
	.event58-curriculum__list {
		width: 370px;
		gap: 10px;
	}
	.event58-curriculum__item {
		gap: 7px;
		border-radius: 14px;
	}
	.event58-curriculum__name {
		padding: 7px 0;
		font-size: 14px;
		line-height: 21px;
	}
	.event58-curriculum__image {
		width: 147px;
		border-radius: 7px;
	}
	.event58-curriculum__image--wide {
		width: 100%;
		max-width: none;
		height: 98px;
		aspect-ratio: auto;
	}
	.event58-curriculum__image--wide img {
		width: 184px;
		height: 123px;
	}
	.event58-curriculum__summary {
		padding: 0 6px;
		font-size: 12px;
		line-height: 16px;
	}
	.event58-curriculum__recommend {
		padding: 7px 10px;
		font-size: 12px;
		line-height: 16px;
	}
	.event58-curriculum__more {
		padding-top: 14px;
	}
	.event58-curriculum__more-title {
		font-size: 16.8px;
		line-height: 23.8px;
	}
	.event58-curriculum__course-list {
		width: 370px;
		gap: 20px 21px;
		padding: 21px 10px;
		border-radius: 14px;
	}
	.event58-curriculum__course {
		width: 140px;
		gap: 7px;
		font-size: 14px;
		line-height: 16.8px;
	}
	.event58-curriculum__more .event58-button {
		width: 269.5px;
	}

	/* Apply */
	.event58-apply__step {
		width: 370px;
	}
	.event58-apply__step-title {
		font-size: 16px;
		line-height: 24px;
	}
	.event58-apply__screen--plain {
		overflow: visible;
		border-radius: 0;
		filter: none;
	}
}
