/* Ring Carousel 스타일 — 선택자당 한 줄 */

/* 글자 폰트: Paperlogy 는 ybmedu 서버 폰트를 먼저 쓰고, 막히는 곳(로컬·아티팩트)에서는 fonts 폴더 파일로 대신 표시 / Montserrat 는 index.html 의 구글 폰트 */
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-1Thin.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-1Thin.woff2') format('woff2'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-2ExtraLight.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-2ExtraLight.woff2') format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-3Light.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-3Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-4Regular.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-4Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-5Medium.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-5Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-6SemiBold.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-6SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-7Bold.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-7Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-8ExtraBold.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-8ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Paperlogy'; src: url('https://www.ybmedu.com/resource/font/Paperlogy-9Black.woff2') format('woff2'), url('/resource/images/event/careOn/tsopic/fonts/Paperlogy-9Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root { --pageBg: #dcdcdb; --screenBg: #f5f5f3; --ink: #111111; --muted: #a2a2a2; --accent: #ff3b30; --cardW: 232px; --cardH: 290px; --sideW: 280px; }
* { box-sizing: border-box; margin: 0; padding: 0; word-break: keep-all; }
html, body { height: 100%; }
body { font-family: 'Paperlogy', system-ui, -apple-system, sans-serif; background: var(--pageBg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- 바깥 무대 ---------- */
.stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* ---------- 페이지 감싸개 ---------- */
.phone { position: relative; width: 100%; height: 100%; flex-shrink: 0; }
.screen { position: relative; width: 100%; height: 100%; background: var(--screenBg); overflow-x: hidden; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; }
/* 텍스트 아래로 카드가 이어지고 화면 전체가 스크롤 (스크롤바는 숨김) */
.screen::-webkit-scrollbar { display: none; }
/* 상단 헤더(시리즈 메뉴·안내·카운터)는 사용하지 않아 숨김 */
.appHeader { display: none; padding: 6px 26px 0; align-items: center; justify-content: space-between; flex-shrink: 0; }
.appHeader h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
/* ---------- 강의(시리즈) 선택 메뉴 ---------- */
.seriesMenu { position: relative; z-index: 250; }
.seriesMenuBtn { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.seriesMenuLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seriesMenuIcon { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #ececea; color: #555555; transition: transform .2s ease; }
.seriesMenuIcon svg { width: 16px; height: 16px; }
/* 열리면 화살표가 위(^)로 */
.seriesMenu.isOpen .seriesMenuIcon { transform: rotate(180deg); }
.seriesMenuList { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; padding: 8px 0; display: none; border-radius: 14px; background: #ffffff; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .04); list-style: none; }
.seriesMenu.isOpen .seriesMenuList { display: block; }
.seriesMenuItem { display: block; padding: 13px 24px; color: #333333; font-size: 15px; text-decoration: none; white-space: nowrap; }
.seriesMenuItem:hover, .seriesMenuItem:focus-visible { background: #f4f5f7; }
.seriesMenuItem[aria-current="true"] { color: var(--ink); font-weight: 700; }
.counter { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter b { color: var(--ink); font-weight: 600; }

/* ---------- 카드 캐러셀 ---------- */
/* 캐러셀 위 콘텐츠 영역: 남는 높이를 채우고 넘치면 스크롤 */
.topContent { flex: none; }

/* ---------- 히어로 텍스트 (캐러셀 위) — 기본은 폰 크기, 데스크톱에서 1920 기준 비율로 키움 ---------- */
.hero { padding: 12px 20px 0; text-align: center; }
/* 로고: 1줄 과정명(시리즈마다 다름) + 2줄 CARE ON(시리즈 공통, ON 만 초록) */
.heroTitle { display: flex; flex-direction: column; align-items: center; gap: .1em; font-family: 'Montserrat', 'Paperlogy', sans-serif; font-weight: inherit; }
/* 과정명 (과정 이동 화살표 버튼은 2026-11-10 삭제) */
.heroCategory { display: inline-block; font-size: 28px; }
.heroTitleMain { font-size: 1em; font-weight: 700; line-height: 1.07; letter-spacing: -0.01em; color: #218450; }
.heroTitleSub { font-size: 52px; font-weight: 800; line-height: .95; letter-spacing: -0.03em; color: #111111; }
.heroOn { color: #218450; }
/* ON 의 O 둘레를 작은 불빛 한 점이 계속 도는 효과(꼬리 없이 앞뒤 대칭): 같은 O 를 겹쳐 그 위에 원뿔 그라데이션(빛줄기)을 글자 모양으로만 보이게 하고, 각도를 돌림 (설정과 상관없이 항상) */
@property --glintAngle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.heroO { position: relative; display: inline-block; }
.heroO::after { content: "O"; position: absolute; inset: 0; color: transparent; background: conic-gradient(from var(--glintAngle) at 50% 52%, transparent 0deg, rgba(255, 255, 255, .45) 12deg, #ffffff 22deg, rgba(255, 255, 255, .45) 32deg, transparent 44deg, transparent 360deg); -webkit-background-clip: text; background-clip: text; filter: blur(.035em) drop-shadow(0 0 .08em #ffffff) drop-shadow(0 0 .2em rgba(255, 255, 255, .85)); pointer-events: none; animation: heroOGlint 6s linear infinite; }
@keyframes heroOGlint { to { --glintAngle: 360deg; } }
/* ON 불 켜짐: 처음엔 꺼진 회색 → 형광등처럼 두어 번 깜빡 → 과정 색으로 켜지며 빛이 번졌다가 잦아듦 (페이지 열 때 한 번, 빛 색은 글자색 따라감, O 반짝임처럼 설정과 상관없이 항상) */
.heroOn { animation: heroOnSwitch 1.6s ease-out .9s both; }
.heroO::after { animation: heroOGlint 6s linear infinite, heroOnGlintIn .5s ease 2.1s both; }
@keyframes heroOnSwitch {
    0%, 30% { filter: grayscale(1) opacity(.3); text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
    34% { filter: grayscale(0) opacity(1); text-shadow: 0 0 .25em, 0 0 0 transparent; }
    39% { filter: grayscale(1) opacity(.3); text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
    45% { filter: grayscale(0) opacity(1); text-shadow: 0 0 .3em, 0 0 0 transparent; }
    50% { filter: grayscale(1) opacity(.45); text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
    58% { filter: grayscale(0) opacity(1); text-shadow: 0 0 .35em, 0 0 .9em; }
    100% { filter: grayscale(0) opacity(1); text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}
@keyframes heroOnGlintIn { from { opacity: 0; } to { opacity: 1; } }
/* 첫 화면 글자 등장: 과정명 → CARE ON → 문구 → 설명 순서로 아래에서 살짝 떠오름 (0.12초 간격, 끝나면 ON 불 켜짐) */
.heroCategory, .heroTitleSub, .heroCopy, .heroDesc { animation: heroRise .7s cubic-bezier(.22, 1, .36, 1) both; }
.heroTitleSub { animation-delay: .12s; }
.heroCopy { animation-delay: .24s; }
.heroDesc { animation-delay: .36s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.heroCopy { margin-top: 22px; font-family: 'Paperlogy', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.364; letter-spacing: -0.02em; color: #0d8f25; }
.heroDesc { margin-top: 14px; font-family: 'Paperlogy', sans-serif; font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0; color: #666666; }

/* ---------- 센터별 강사 라인업 — 기본은 폰 크기, 브랜드 전체를 펼쳐 둠 ---------- */
/* 배경: 진초록 위에 흐릿한 빛 번짐(청록·연두·노랑, 2400px마다 반복) + 옅은 노이즈 질감 */
.lineup { flex: none; padding: 64px 0 24px; background-color: #1f5a42; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(circle 520px at 20% 760px, rgba(72, 205, 190, .38), transparent 70%), radial-gradient(circle 620px at 92% 1340px, rgba(110, 224, 160, .42), transparent 70%), radial-gradient(circle 440px at 40% 1880px, rgba(255, 206, 84, .16), transparent 70%), linear-gradient(180deg, #24644a 0%, #1c5039 100%); background-size: 180px 180px, 100% 2400px, 100% 2400px, 100% 2400px, 100% 100%; background-repeat: repeat, repeat-y, repeat-y, repeat-y, no-repeat; color: #ffffff; text-align: center; font-family: 'Paperlogy', sans-serif; }
.lineupEyebrow { font-family: 'Paperlogy', 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .3em; color: rgba(255, 255, 255, .55); }
.lineupHeading { margin-top: 8px; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
/* 센터 필터: 스크롤해도 위에 고정 (폰 틀 안에서는 상태바 54px 아래), 위에 붙었을 때(isStuck, 스크립트)만 라인업 바탕색(70%) + 블러, 원래 자리에서는 배경 없음 — 너무 투명하면 뒤 사진·빛이 그라데이션처럼 비침 */
.lineupFilter { position: sticky; top: 54px; z-index: 20; margin-top: 16px; padding: 12px 20px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; transition: background-color .2s ease; }
.lineupFilter.isStuck { background: rgba(31, 90, 66, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.lineupFilter::-webkit-scrollbar { display: none; }
.lineupChip { flex: none; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; font-size: 13px; font-weight: 300; color: #ffffff; transition: background-color .2s ease, color .2s ease; }
.lineupChip:hover { background: rgba(255, 255, 255, .12); }
.lineupChip[aria-pressed="true"] { border-color: #ffc21a; background: #ffc21a; font-weight: 700; color: #1a1a1a; }
.lineupList { padding: 0 20px; }
/* 필터를 눌러 이동했을 때 고정된 필터에 가리지 않도록 */
.lineupGroup, .lineupBrand { scroll-margin-top: 130px; }
.lineupGroup { padding: 40px 0; display: grid; gap: 48px; }
.lineupGroup + .lineupGroup { border-top: 1px solid rgba(255, 255, 255, .14); }
/* 브랜드 1개뿐인 두 센터를 한 줄로 묶는 틀 (모바일은 위아래로 쌓임) */
.lineupGroup + .lineupPair, .lineupPair + .lineupGroup { border-top: 1px solid rgba(255, 255, 255, .14); }
.lineupBrand { display: grid; gap: 24px; align-content: start; text-align: left; }
/* 카드: 사진 + 아래쪽 어둡게 + 센터명(위 가운데) + 큰 브랜드명(아래 가운데) — 글자 크기는 카드 폭 기준(cqw) */
.lineupVisual { position: relative; width: 100%; max-width: 280px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .5); container-type: inline-size; }
.lineupVisual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 40, 22, .78) 0%, rgba(5, 40, 22, .35) 28%, rgba(5, 40, 22, 0) 48%); pointer-events: none; }
/* 강사 사진: 기본은 14% 위로 — 사진을 불러오면 main.js 가 머리 위 여백에 맞춰 이동량을 다시 정함, 잘린 아래 끝은 서서히 투명하게 */
.lineupPhoto { aspect-ratio: 4 / 5; transform: translateY(-14%); -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, #000 84%, transparent 100%); }
/* 센터명: 브랜드명 바로 위 작은 글자 */
.lineupCenter { display: block; margin-bottom: 1.5cqw; font-size: 15px; font-weight: 300; letter-spacing: .04em; white-space: nowrap; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.lineupCaption { position: absolute; left: 6%; right: 6%; bottom: calc(6% - 16px); z-index: 1; text-align: center; }
.lineupName { font-size: 13cqw; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; white-space: nowrap; color: #ffc21a; text-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
/* 강사 이름: 브랜드명 아래 검은 반투명 칩 하나에 모두, 2명 이상이면 사이에 세로선 */
.lineupTeachers { display: inline-flex; align-items: center; margin-top: 3cqw; padding: .3em .9em; border-radius: 6px; font-size: clamp(13px, 5.0cqw, 16px); font-weight: 300; line-height: 1.3; color: rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .4); }
.lineupTeachers span + span::before { content: ""; display: inline-block; width: 1px; height: .85em; margin: 0 .7em; vertical-align: -.05em; background: rgba(255, 255, 255, .5); }
/* 소개 글 왼쪽 여백: 목록 여백 20px 의 1.5배(30px)가 되도록 10px 추가 */
.lineupInfo { padding-left: 10px; }
.lineupIntro { margin-top: 16px; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; white-space: pre-line; }
.lineupPoints { margin-top: 12px; list-style: none; font-size: 16px; font-weight: 400; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.lineupPoints li { position: relative; padding-left: 12px; }
.lineupPoints li + li { position: relative; margin-top: 6px; }
/* 글머리 점 (폰트에 • 글리프가 없어 도형으로) */
.lineupPoints li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.lineupLink { margin-top: 24px; padding: 14px 24px; display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; background: #ffb821; font-size: 15px; font-weight: 700; color: #1a1a1a; text-decoration: none; transition: background-color .2s ease; }
.lineupLink:hover { background: #ffd457; }
/* 오른쪽 화살표 (폰트에 › 글리프가 없어 도형으로) */
.lineupLink::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- 전체 강사 단체 이미지 (STAR LINE-UP 위) — 이미지 원본 2000×636 비율 ---------- */
.allTeachers { flex: none; padding-top: 40px; }
.allTeachersVisual { position: relative; width: 100%; aspect-ratio: 2000 / 636; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #e9ece9; }
.allTeachersVisual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- YBM 대표 스타 강사 (센터별 라인업 위) — 기본은 폰 크기 ---------- */
.starLineup { flex: none; padding: 56px 0 64px; overflow: hidden; text-align: center; font-family: 'Paperlogy', sans-serif; }
.starLineupEyebrow { font-family: 'Paperlogy', 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .3em; color: #111111; }
.starLineupHeading { margin-top: 8px; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: #218450; }
.starLineupNote { margin-top: 12px; padding: 0 20px; font-size: 15px; font-weight: 400; line-height: 1.5; word-break: keep-all; color: #555555; }
.starMarquee { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
/* 카드 목록을 두 번 이어 붙여 두고, 흐르는 움직임은 스크립트(moveStarMarquee)가 px 단위로 처리 */
.starMarqueeTrack { display: flex; gap: 12px; width: max-content; padding: 4px 0 14px; will-change: transform; }
.starCard { position: relative; flex: 0 0 auto; width: 190px; height: 89px; border-radius: 14px; overflow: hidden; text-align: left; background: #ffffff; box-shadow: 0 10px 18px rgba(0, 0, 0, .08); }
.starCardText { position: relative; z-index: 1; max-width: 120px; padding: 12px 14px; }
.starCardCenter { display: block; font-size: 10px; font-weight: 400; color: #2f7a5b; }
.starCardName { display: block; margin: 1px 0 4px; font-size: 17px; font-weight: 700; line-height: 1.2; color: rgba(6, 6, 6, .8); }
.starCardCopy { display: block; font-size: 11px; font-weight: 400; line-height: 1.3; letter-spacing: -0.03em; color: #8a8a8a; }
.starCardImage { position: absolute; top: 0; right: 0; bottom: 0; width: 100px; height: 100%; object-fit: cover; object-position: center top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%); mask-image: linear-gradient(90deg, transparent, #000 42%); }
.starLineupLink { margin-top: 28px; padding: 14px 28px; display: inline-flex; align-items: center; gap: 10px; border-radius: 99px; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: #ffffff; text-decoration: none; background: linear-gradient(112deg, #3fb873 3%, #1a7a45 100%); transition: transform .18s ease; }
.starLineupLink:hover { transform: translateY(-2px); }
.starLineupLink::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- CARE ON 학습 관리 3가지 (카드 아래) — 기본은 폰 크기 ---------- */
.srOnly { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.careOn { flex: none; padding: 56px 20px 43px; text-align: center; font-family: 'Paperlogy', sans-serif; }
.careOnList { display: grid; gap: 12px; list-style: none; }
/* 패널 색: 연두 → 민트 → 초록 순으로 점점 진하게 */
/* 카드 배경: 3개 모두 아이콘 이미지 배경색과 같은 연한 민트 그라데이션 */
/* 폰: 왼쪽에 번호·제목·설명, 오른쪽에 아이콘 (데스크톱은 세로 가운데 정렬로 되돌림) */
.careOnItem { padding: 24px 16px 24px 22px; border-radius: 24px; display: grid; grid-template-columns: 1fr 38%; grid-template-areas: "num image" "title image" "text image"; align-content: center; column-gap: 8px; text-align: left; background: linear-gradient(180deg, #e1ecdd 0%, #d4e5d3 100%); }
.careOnNum { grid-area: num; font-family: 'Paperlogy', 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: .08em; color: rgba(33, 132, 80, .32); }
/* 제목은 형광펜처럼 아래쪽 강조 */
.careOnTitle { grid-area: title; justify-self: start; margin-top: 3px;/* padding: 0 4px;*/ font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; word-break: keep-all; color: #14301f; /* background: linear-gradient(transparent 58%, rgba(255, 224, 138, .85) 58%); */ }
/* 아이콘(펠트 질감 이미지): 가장자리를 흐리게 해 카드 배경과 자연스럽게 이어지게 */
.careOnImage { grid-area: image; align-self: center; width: 100%; max-width: 123px; height: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
.careOnText { grid-area: text; margin-top: 6px; font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: #4a5d51; }
.careOnClosing { margin-top: 29px; display: flex; flex-direction: column; align-items: center; }
.careOnSwitch { width: 88px; height: auto; }
.careOnClosingSub { margin-top: 14px; font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: #555555; }
.careOnOff { font-family: 'Paperlogy', 'Montserrat', sans-serif; font-weight: 700; color: #a6a6a6; }
.careOnOn { font-family: 'Paperlogy', 'Montserrat', sans-serif; font-weight: 700; color: #218450; }
.careOnClosingMain { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: #111111; }
.careOnClosingMain span { font-family: 'Paperlogy', 'Montserrat', sans-serif; color: #218450; }
/* ---------- 맨 아래 안내 (more): ybmedu 토익 랜딩과 같은 레이아웃·배경 이미지, 글자는 Paperlogy ---------- */
.more { flex: none; padding: 0 16px clamp(60px, 9vw, 110px); font-family: 'Paperlogy', sans-serif; }
.moreInner { max-width: 1840px; margin: 0 auto; padding: clamp(48px, 8vw, 90px) 24px; border-radius: 40px; text-align: center; color: #ffffff; background: linear-gradient(rgba(20, 84, 54, .62), rgba(20, 84, 54, .62)), url('/resource/images/event/careOn/tsopic/more-bg.webp') center / cover no-repeat #14301f; }
.moreEyebrow { font-family: 'Paperlogy', 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.moreText { margin-top: clamp(14px, 1.4vw, 22px); font-size: clamp(21.6px, 2.52vw, 30.6px); line-height: 1.4; letter-spacing: -0.02em; word-break: keep-all; }
@media (max-width: 767px) {
    /* 모바일: 줄바꿈한 2줄이 유지되도록 화면 폭에 맞춤 */
    .moreText { font-size: clamp(14.4px, 4.5vw, 21.6px); }
}
.moreBtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: clamp(28px, 4vw, 40px); }
.moreBtn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; border-radius: 999px; font-size: clamp(16px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.02em; color: #14301f; text-decoration: none; transition: transform .18s; }
.moreBtn:hover { transform: translateY(-2px); }
.moreBtnGold { font-size: clamp(16px, 1.8vw, 24px); background: #ffb821; }
.moreBtnWhite { background: #ffffff; }
.moreArrow { flex: 0 0 auto; width: 16px; height: 26px; }
/* 캐러셀 높이 = 선택 카드(1.3배 + 줌인 여유) + 위아래 여백 60px → 카드 크기에 맞춤 */
.carousel { position: relative; flex: 0 0 auto; height: calc(var(--cardH) * 1.4 + 60px); touch-action: pan-y; cursor: grab; }
.carousel:active { cursor: grabbing; }
/* 카드 뒤 흐릿한 빛 번짐 (초록 + 양옆 청록) — 카드 아래로 번지지 않게 가운데에만 */
.carousel::before { content: ""; position: absolute; left: 50%; top: 44%; z-index: 0; width: min(900px, 80%); height: 78%; background: radial-gradient(closest-side at 50% 50%, rgba(63, 184, 115, .40), rgba(63, 184, 115, .12) 60%, transparent 100%), radial-gradient(closest-side at 26% 46%, rgba(72, 205, 190, .22), transparent 100%), radial-gradient(closest-side at 74% 46%, rgba(72, 205, 190, .18), transparent 100%); transform: translate(-50%, -50%); pointer-events: none; }
/* 원 궤도 회전 중심은 스크립트에서 translateY로 처리 (layout.pivotY) */
.card { position: absolute; left: 50%; top: 50%; width: var(--cardW); height: var(--cardH); margin-left: calc(var(--cardW) / -2); margin-top: calc(var(--cardH) / -2); padding: 18px; border-radius: 28px; transform-origin: 50% 50%; overflow: hidden; user-select: none; box-shadow: 0 16px 28px -18px rgba(16, 64, 40, .28); display: flex; flex-direction: column; }
/* 유리 질감 하이라이트 */
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 38%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); pointer-events: none; }
/* Figma 이미지가 연결된 카드: 유리 하이라이트 제거 (디자인 그대로 표시) */
.card.hasImage::after { display: none; }
/* 이미지에 글자가 포함된 경우 HTML 글자 숨김 (cardList의 textOverlay: false) */
.card.hideText > *:not(.cardProfile) { visibility: hidden; }
/* 강사팀 글자 레이어: -active 이미지가 붙은 카드에만 표시, 크기는 카드 너비 비례 (05 디자인 800×1000 기준 실측) */
/* 아래쪽 어두운 그라데이션: 밝은 옷 위에서도 강사 이름이 보이도록 */
.cardProfile { position: absolute; inset: 0; display: none; background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .25) 12%, rgba(0, 0, 0, 0) 26%); color: #ffffff; font-family: 'Paperlogy', sans-serif; pointer-events: none; }
.card.hideText .cardProfile { display: block; }
.cardProfileTeam { position: absolute; left: 10%; top: 7.6%; font-size: calc(var(--cardW) * 0.072); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.cardProfileCenter { position: absolute; left: 10%; top: 15%; font-size: calc(var(--cardW) * 0.047); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: rgba(255, 255, 255, .6); }
.cardProfileNames { position: absolute; left: 10%; right: 10%; bottom: 5.8%; display: flex; justify-content: space-between; font-size: calc(var(--cardW) * 0.034); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: rgba(255, 255, 255, .65); }
.cardTitle { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.cardSub { font-size: 15px; font-weight: 300; opacity: .65; }
.cardValue { margin-top: auto; font-size: 66px; font-weight: 200; letter-spacing: -0.05em; line-height: 1; text-align: center; }
.cardValue sup { font-size: 18px; font-weight: 300; letter-spacing: 0; vertical-align: top; margin-left: 2px; position: relative; top: 6px; }
.cardTrack { position: relative; height: 1px; margin: 18px 0 0; background: currentColor; opacity: .5; }
.cardTrack::after { content: ''; position: absolute; top: -4px; left: var(--ratio); width: 0; height: 0; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid currentColor; }
.cardFoot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; opacity: .7; }

/* ---------- 중앙 고정 프레임 레이어 (카드 위, 클릭은 통과) ---------- */
/* 선택된 카드 확대 비율(--activeScale)에 맞춰 프레임 크기/모서리 계산 */
.focusFrame { --frameGap: 20px; --frameW: calc(var(--cardW) * var(--activeScale, 1) + var(--frameGap)); --frameH: calc(var(--cardH) * var(--activeScale, 1) + var(--frameGap)); --frameRadius: calc(28px * var(--activeScale, 1) + var(--frameGap) / 2); position: absolute; left: 50%; top: 50%; width: var(--frameW); height: var(--frameH); margin-left: calc(var(--frameW) / -2); margin-top: calc(var(--frameH) / -2); border-radius: var(--frameRadius); border: 1px solid rgba(17, 17, 17, .12); z-index: 150; pointer-events: none; transition: opacity .25s ease; }
.focusFrame.isHidden { opacity: 0; }
/* 프레임 이미지가 연결되면 기본 테두리/브래킷 대신 이미지로 표시 (프레임 크기에 맞춰 늘림) */
.focusFrame.hasImage { border: 0; background: var(--frameImage) center / 100% 100% no-repeat; }
.focusFrame.hasImage i { display: none; }
/* 테두리 숨김 (SHOW_FOCUS_BORDER = false) — 위 라벨만 표시 */
.focusFrame.noBorder, .focusFrame.noBorder.hasImage { border: 0; background: none; }
.focusFrame.noBorder i { display: none; }
.focusFrame.isPulse { animation: frameZoomIn .4s cubic-bezier(.2, .8, .2, 1); }
/* 프레임은 크기 변화 없이 투명 → 진해짐 */
@keyframes frameZoomIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 네 모서리 브래킷 */
.focusFrame i { position: absolute; width: var(--frameRadius); height: var(--frameRadius); border: 2px solid var(--ink); }
.focusFrame i:nth-child(1) { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--frameRadius); }
.focusFrame i:nth-child(2) { top: -1px; right: -1px; border-left: 0; border-bottom: 0; border-top-right-radius: var(--frameRadius); }
.focusFrame i:nth-child(3) { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-bottom-left-radius: var(--frameRadius); }
.focusFrame i:nth-child(4) { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--frameRadius); }
.focusLabel { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 11px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
/* 가운데 카드 위 라벨(01 · 팀명) 숨김 — 요소는 남겨 둠 */
.focusLabel { display: none; }

/* ---------- 효과 토글 패널 ---------- */
.effectPanel { position: fixed; right: 20px; bottom: 20px; z-index: 150; padding: 6px; border-radius: 99px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .3); display: flex; align-items: center; gap: 4px; font-size: 12px; }
.effectPanel[hidden] { display: none; }
.effectPanel > span { padding: 0 8px 0 10px; color: var(--muted); font-weight: 500; }
.effectChip { padding: 7px 12px; border-radius: 99px; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.effectChip:hover { background: #ececea; }
.effectChip[aria-pressed="true"] { background: #111; color: #fff; }

@media (max-width: 500px) {
    .effectPanel { display: none; }
}

/* ---------- 다이얼 ---------- */
.dialArea { position: relative; height: 236px; flex-shrink: 0; touch-action: pan-y; }
.dialSvg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 -12px 24px rgba(0, 0, 0, .07)); }
/* 돌림판(눈금·라벨·이전/다음 버튼) 숨김 — 요소는 남겨 둠. 다시 보이게 하려면 아래 두 줄과 데스크톱 .dialArea 숨김 줄 삭제 */
.dialArea .dialSvg, .dialArea .dialLabel, .dialArea .dialControls { display: none; }
/* 돌림판 영역 전체 숨김 (폰·데스크톱 모두) — 다시 보이게 하려면 이 줄 삭제 (원래 높이 236px) */
.dialArea { display: none; }
.dialLabel { position: absolute; top: 78px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); pointer-events: none; }
.dialControls { position: absolute; top: 112px; left: 0; right: 0; display: flex; justify-content: center; gap: 72px; }
.navBar { position: absolute; left: 0; right: 0; bottom: 26px; padding: 0 28px; display: flex; justify-content: space-between; }
.iconBtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s ease, background-color .2s ease; }
.iconBtn:active { transform: scale(.9); }
.iconBtn.soft { background: #ececea; }
.iconBtn.glass { background: rgba(255, 255, 255, .28); backdrop-filter: blur(10px); }
.iconBtn.ghost:hover { background: #ececea; }
.iconBtn svg { width: 18px; height: 18px; }

/* ---------- 상세 모달 ---------- */
.detail { position: absolute; inset: 0; z-index: 200; padding: 24px; display: flex; align-items: center; justify-content: center; visibility: hidden; }
.detail.isVisible { visibility: visible; }
/* 모달 바깥 배경 — 클릭하면 닫힘 */
.detailBackdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .32); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s ease; cursor: pointer; }
.detail.isOpen .detailBackdrop { opacity: 1; }
/* 모달 패널 — 카드 자리에서 clip-path로 펼쳐짐 */
.detailPanel { position: relative; width: min(420px, 100%); height: min(720px, 100%); border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.detailPanel.isAnimating { transition: clip-path .55s cubic-bezier(.7, 0, .2, 1); }
/* 닫을 때: 카드 자리로 줄어들면서 패널도 투명해져 아래의 실제 카드가 드러남 (빈 카드 방지) */
.detailPanel.isClosing { opacity: 0; transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), opacity .35s ease .1s; }
.detailInner { height: 100%; padding: 28px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .4s ease; }
.detail.isOpen .detailInner { opacity: 1; transform: none; transition-delay: .25s; }
.detailHead { display: flex; justify-content: space-between; align-items: flex-start; }
.detailHead .cardTitle, .detailHead .cardSub { font-size: 18px; }
.detailValue { margin-top: 28px; text-align: center; font-size: 104px; font-weight: 200; letter-spacing: -0.06em; line-height: 1; }
.detailValue sup { font-size: 30px; font-weight: 300; letter-spacing: 0; vertical-align: top; position: relative; top: 10px; }
.detailCaption { text-align: center; margin-top: 10px; font-size: 14px; }
.detailCaption span { display: block; opacity: .6; font-weight: 300; }
.gauge { width: 100%; margin-top: 18px; overflow: visible; }
.gaugeLabels { display: flex; justify-content: space-between; font-size: 18px; font-weight: 500; margin-top: -6px; }
.gaugeLabels small { display: block; font-size: 12px; font-weight: 300; opacity: .65; }
.gaugeLabels div:last-child { text-align: right; }
.tiles { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; min-height: 128px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); display: flex; flex-direction: column; overflow: hidden; }
.tile b { font-size: 14px; font-weight: 600; }
.tile span { font-size: 13px; opacity: .65; font-weight: 300; }
.tile strong { margin-top: auto; font-size: 34px; font-weight: 200; letter-spacing: -0.04em; }
.tileDots { position: absolute; inset: 40px 10px 10px 50%; }
.tileDots i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.detailBar { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.accentDot { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .85); display: grid; place-items: center; }
.accentDot::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--dotColor, var(--accent)); }

/* ---------- 사이드바 / 헤더 힌트 / 보기 전환 버튼 (데스크톱 전용) ---------- */
.sidebar, .headerHint { display: none; }
.sidebar { flex-direction: column; gap: 4px; padding: 36px 20px 28px; background: #fafaf8; border-right: 1px solid #e6e6e3; }
.sidebarBrand { padding: 0 12px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.sidebarCaption { padding: 2px 12px 28px; font-size: 13px; color: var(--muted); }
/* 카드가 많아지면 목록만 스크롤 */
.sideList { position: relative; flex: 1; min-height: 0; margin: 0 -8px 16px; padding: 0 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sideItem { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-align: left; transition: background-color .2s ease, color .2s ease; }
.sideItem:hover { background: #efefec; }
.sideItem.isActive { background: #111; color: #fff; }
.sideSwatch { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.sideItem b { display: block; font-size: 14px; font-weight: 600; }
.sideItem span { font-size: 12px; opacity: .6; }
.sideItem em { margin-left: auto; font-style: normal; font-size: 14px; font-variant-numeric: tabular-nums; }
.sidebarFoot { margin-top: auto; padding: 0 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.headerHint { font-size: 14px; color: var(--muted); }
.headerHint b { color: var(--ink); font-weight: 600; }
/* ---------- 데스크톱 (1024px 이상) ---------- */
@media (min-width: 1024px) {
    /* 화면 높이에 맞춰 카드 크기 조절 */
    body { --cardH: clamp(260px, 40vh, 400px); --cardW: calc(var(--cardH) * 0.8); }
    .navBar { display: none; }
    .phone { width: 100vw; height: 100vh; }
    .screen { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
    /* 왼쪽 사이드바 숨김 — 요소는 남겨 둠 */
    .sidebar { display: none; }
    .appHeader, .topContent, .carousel, .dialArea { grid-column: 1; }
    .appHeader { padding: 36px 48px 0; justify-content: center; gap: 20px; }
    /* 강의 선택 목록도 버튼 아래 가운데로 */
    .appHeader .seriesMenuList { left: 50%; transform: translateX(-50%); }
    /* 상단에는 강의 선택만 표시 */
    .headerHint, .counter { display: none; }
    .dialArea { display: none; }
    .dialControls { gap: 120px; }
    /* 모달은 화면 가운데에 표시 */
    .detail { padding: 32px; }
    .detailPanel { width: min(460px, 100%); height: min(760px, 100%); }
    .detailValue { margin-top: 8px; font-size: 112px; }
    .gauge, .gaugeLabels { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
    .tiles { margin-top: 32px; }
    .tile { min-height: 140px; }
    /* 위아래 콘텐츠가 붙도록 화면 높이 고정을 풀고 페이지 전체 스크롤 */
    html, body { height: auto; }
    body { overflow-x: hidden; overflow-y: auto; }
    .stage { height: auto; }
    .phone { height: auto; min-height: 100vh; }
    .screen { grid-template-rows: auto auto auto auto; }
    .detail { position: fixed; }
    /* 히어로 텍스트: 화면 폭 비율로 키우되, 1440×900 첫 화면에 캐러셀까지 들어오도록 간격을 줄임 */
    .hero { padding: 40px 48px 0; }
    .heroCategory { font-size: clamp(36px, 3.4vw, 64px); }
    .heroTitleSub { font-size: clamp(64px, 6.4vw, 120px); }
    .heroCopy { margin-top: 20px; font-size: clamp(24px, 1.95vw, 36px); }
    .heroDesc { margin-top: 14px; font-size: clamp(15px, 1.11vw, 20px); color: #6b6b6b; }
    /* 전체 강사 이미지: 화면 폭 전체 */
    .allTeachers { grid-column: 1; padding-top: clamp(64px, 6.25vw, 120px); }
    /* YBM 대표 스타 강사: 1920 기준 비율 */
    .starLineup { grid-column: 1; padding: clamp(80px, 8.333vw, 160px) 0 clamp(80px, 8.333vw, 160px); }
    .starLineupEyebrow { font-size: clamp(13px, .833vw, 16px); }
    .starLineupHeading { margin-top: 12px; font-size: clamp(47px, 3.792vw, 73px); }
    .starLineupNote { margin-top: 16px; font-size: clamp(16px, 1.146vw, 22px); }
    .starMarquee { margin-top: clamp(40px, 2.917vw, 56px); gap: 16px; }
    .starCard { width: 300px; height: 128px; }
    .starCardText { max-width: 170px; padding: 20px; }
    .starCardCenter { font-size: 13px; }
    .starCardName { margin: 1px 0 6px; font-size: 21px; }
    .starCardCopy { font-size: 13px; line-height: 1.35; }
    .starCardImage { width: 144px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%); mask-image: linear-gradient(90deg, transparent, #000 2%); }
    .starLineupLink { margin-top: clamp(32px, 2.083vw, 40px); padding: 18px 36px; font-size: clamp(18px, 1.25vw, 24px); }
    /* 센터별 강사 라인업: 데스크톱은 탭(묶음)마다 브랜드 2개를 2단으로 */
    .lineup { grid-column: 1; padding: clamp(80px, 8.333vw, 160px) 48px clamp(40px, 3.333vw, 64px); }
    .lineupEyebrow { font-size: clamp(13px, .833vw, 16px); }
    .moreEyebrow { font-size: clamp(13px, .833vw, 16px); }
    .lineupHeading { margin-top: 12px; font-size: clamp(47px, 3.792vw, 73px); }
    .lineupFilter { top: 0; margin: clamp(16px, 1.25vw, 24px) -48px 0; padding: 16px 48px; justify-content: center; flex-wrap: wrap; gap: 8px; overflow: visible; }
    .lineupChip { padding: 10px 22px; font-size: 16px; }
    /* 좌우 카드 사이가 너무 벌어지지 않도록 전체 폭을 1000px 로 (카드 420px + 간격) */
    .lineupList { max-width: 1000px; margin: 0 auto; padding: 0; }
    .lineupGroup, .lineupBrand { scroll-margin-top: 76px; }
    /* 묶음 하나 = 2단 한 줄 (사진 위, 글 아래) */
    .lineupGroup { padding: clamp(48px, 4.167vw, 80px) 0; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 4.167vw, 80px); }
    /* 인천·동성로처럼 한 줄로 묶인 센터: 좌우 한 칸씩, 사이 구분선 없음 */
    .lineupPair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4.167vw, 80px); }
    .lineupPair > .lineupGroup { grid-template-columns: minmax(0, 1fr); }
    .lineupPair > .lineupGroup + .lineupGroup { border-top: 0; }
    .lineupBrand { gap: clamp(24px, 2.083vw, 40px); }
    .lineupVisual { max-width: 420px; margin: 0 auto; border-radius: 32px; }
    .lineupTeachers { font-size: 16px; }
    .lineupInfo { padding-left: 0; }
    .lineupIntro { margin-top: clamp(20px, 1.667vw, 32px); font-size: clamp(22px, 1.458vw, 24px); }
    .lineupPoints { margin-top: 16px; }
    .lineupLink { margin-top: clamp(28px, 2.083vw, 40px); padding: 18px 32px; font-size: 18px; }
    /* 페이지 전체 스크롤일 때 고정 필터가 창 기준으로 붙도록 (가로 넘침만 잘라냄) */
    .screen { overflow: visible; overflow-x: clip; }
    /* CARE ON 3가지: 데스크톱 3단, 1920 기준 비율 */
    .careOn { grid-column: 1; padding: clamp(80px, 8.333vw, 160px) 48px clamp(58px, 6.25vw, 120px); }
    .more { grid-column: 1; padding: 0 48px clamp(60px, 9vw, 110px); }
    .careOnList { max-width: 1200px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.25vw, 24px); }
    .careOnItem { padding: clamp(20px, 2.083vw, 32px) clamp(24px, 2.5vw, 40px); border-radius: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
    .careOnTitle { justify-self: auto; }
    .careOnImage { align-self: auto; }
    .careOnNum { font-size: clamp(20px, 1.458vw, 28px); }
    .careOnTitle { margin-top: clamp(8px, 0.613vw, 23px); font-size: clamp(24px, 1.725vw, 36px); }
    .careOnImage { max-width: 164px; margin-top: clamp(12px, 1.042vw, 20px); }
    .careOnText { margin-top: clamp(6px, .521vw, 10px); font-size: clamp(16px, 1.146vw, 22px); }
    .careOnClosing { margin-top: clamp(38px, 3.75vw, 72px); }
    .careOnSwitch { width: clamp(112px, 7.292vw, 140px); }
    .careOnClosingSub { margin-top: clamp(16px, 1.25vw, 24px); font-size: clamp(20px, 1.667vw, 32px); }
    .careOnClosingMain { font-size: clamp(30px, 2.917vw, 56px); }
}

/* ---------- 모바일·태블릿 (1023px 이하): 화면 폭에 맞춰 전체 화면 ---------- */
@media (max-width: 1023px) {
    :root { --cardW: min(232px, 60vw); --cardH: calc(var(--cardW) * 1.25); }
    /* 모바일도 화면 높이 고정을 풀고 페이지 전체 스크롤 */
    html, body { height: auto; }
    body { overflow-x: hidden; overflow-y: auto; }
    .stage { height: auto; }
    .phone { width: 100vw; height: auto; min-height: 100dvh; }
    .detail { position: fixed; }
    .screen { padding-top: 20px; }
    /* 페이지 전체 스크롤일 때 고정 필터가 창 기준으로 붙도록 (가로 넘침만 잘라냄) */
    .screen { overflow: visible; overflow-x: clip; }
    .lineupFilter { top: 0; }
    .lineupGroup, .lineupBrand { scroll-margin-top: 70px; }
    .detail { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .detailPanel.isAnimating { transition-duration: .01s; }
    .detailPanel.isClosing { transition-delay: 0s; }
    .moreBtn { transition: none; }
}

/* ---------- 과정별 포인트색 (기본은 토익 초록) — 스크립트가 html 에 data-series="폴더명" 을 붙임 ---------- */
/* 전체 강사: 이미지(1518×636, CARE ON 글자를 뺀 투명 webp)는 위쪽(0,0)부터 비율 그대로 줄어들고, 1518px 보다 넓으면 양옆만 배경색(#22386e) / CARE ON 은 글자로 이미지 크기에 맞춰 얹음 */
.allTeachersVisual { display: block; aspect-ratio: 1518 / 636; max-height: 636px; container-type: inline-size; background: url('/resource/images/event/careOn/tsopic/allTeachersVisual-notext.webp?v=2') center top / min(100%, 1518px) auto no-repeat #22386e; }
.allTeachersVisual::before { content: "CARE ON"; position: absolute; left: 0; right: 0; top: calc(min(100cqw, 1518px) * .0214); font-family: 'Montserrat', sans-serif; font-size: calc(min(100cqw, 1518px) * .1512); font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; color: rgba(255, 255, 255, .0); pointer-events: none; background: linear-gradient(90deg, rgba(40, 54, 89, .1) 0%, rgba(49, 89, 140, .5) 25%, rgba(49, 89, 140, .5) 75%, rgba(40, 54, 89, .1) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.01em; }
/* .allTeachersVisual::before { content: "CARE ON"; position: absolute; left: 0; right: 0; top: calc(min(100cqw, 1518px) * .0214); font-family: 'Montserrat', sans-serif; font-size: calc(min(100cqw, 1518px) * .1512); font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; color: rgba(255, 255, 255, .08); pointer-events: none;background: linear-gradient(90deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .10) 100%, rgba(255, 255, 255, .10) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.01em; } */
.allTeachersCopy { position: absolute; left: 0; right: 0; top: 17%; padding: 0 16px; font-family: 'Paperlogy', sans-serif; font-size: clamp(16px, 2vw, 29px); font-weight: 500; line-height: 1.45; letter-spacing: -0.02em; text-align: center; color: #ffffff; }
@media (max-width: 767px) {
    /* 좁은 화면은 이미지가 작아 글자가 겹치므로 글자를 이미지 위로 빼고, 이미지는 아래쪽에 붙임 */
    .allTeachersVisual { aspect-ratio: auto; max-height: none; padding: 28px 16px 38%; background-position: center bottom; }
    .allTeachersCopy { position: static; padding: 0; }
    .allTeachersVisual::before { top: auto; bottom: calc(100cqw * .2464); }
}
/* 토플/아이엘츠: #5745a9 보라 */
html[data-series="tfielts"] .heroTitleMain, html[data-series="tfielts"] .heroOn, html[data-series="tfielts"] .heroCopy, html[data-series="tfielts"] .starLineupHeading, html[data-series="tfielts"] .starCardCenter, html[data-series="tfielts"] .careOnOn, html[data-series="tfielts"] .careOnClosingMain span { color: #5745a9; }
html[data-series="tfielts"] .carousel::before { background: radial-gradient(closest-side at 50% 50%, rgba(110, 90, 210, .38), rgba(110, 90, 210, .12) 60%, transparent 100%), radial-gradient(closest-side at 26% 46%, rgba(120, 150, 240, .22), transparent 100%), radial-gradient(closest-side at 74% 46%, rgba(120, 150, 240, .18), transparent 100%); }
html[data-series="tfielts"] .card { box-shadow: 0 16px 28px -18px rgba(40, 30, 90, .3); }
html[data-series="tfielts"] .starLineupLink { background: linear-gradient(112deg, #7a68cf 3%, #4a3a93 100%); }
html[data-series="tfielts"] .lineup { background-color: #2a2156; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(circle 520px at 20% 760px, rgba(110, 150, 245, .34), transparent 70%), radial-gradient(circle 620px at 92% 1340px, rgba(150, 125, 240, .42), transparent 70%), radial-gradient(circle 440px at 40% 1880px, rgba(255, 206, 84, .14), transparent 70%), linear-gradient(180deg, #34296b 0%, #251d4c 100%); }
html[data-series="tfielts"] .lineupFilter.isStuck { background: rgba(42, 33, 86, .7); }
html[data-series="tfielts"] .careOnNum { color: rgba(87, 69, 169, .32); }
html[data-series="tfielts"] .careOnItem { background: linear-gradient(180deg, #ecebf8 0%, #e0dcf3 100%); }
html[data-series="tfielts"] .careOnTitle { color: #1c1640; }
html[data-series="tfielts"] .careOnText { color: #544f73; }
html[data-series="tfielts"] .moreInner { background: linear-gradient(rgba(48, 36, 110, .62), rgba(48, 36, 110, .62)), url('/resource/images/event/careOn/tsopic/more-bg.webp') center / cover no-repeat #1e1840; }
html[data-series="tfielts"] .moreBtn { color: #1c1640; }
/* 센터 필터 선택 탭: 포인트색에서 밝기 +20 (HSB 66% → 86%) */
html[data-series="tfielts"] .lineupChip[aria-pressed="true"] { border-color: #7159db; background: #7159db; color: #ffffff; }
/* 토스·오픽: #3a60ba (blue) — 선택 탭은 밝기 +20 = #4a7aed (2026-11-10 영어회화와 색 맞바꿈) */
html[data-series="tsopic"] .heroTitleMain, html[data-series="tsopic"] .heroOn, html[data-series="tsopic"] .heroCopy, html[data-series="tsopic"] .starLineupHeading, html[data-series="tsopic"] .starCardCenter, html[data-series="tsopic"] .careOnOn, html[data-series="tsopic"] .careOnClosingMain span { color: #3a60ba; }
html[data-series="tsopic"] .carousel::before { background: radial-gradient(closest-side at 50% 50%, rgba(58, 96, 186, 0.38), rgba(58, 96, 186, 0.12) 60%, transparent 100%), radial-gradient(closest-side at 26% 46%, rgba(107, 174, 209, 0.22), transparent 100%), radial-gradient(closest-side at 74% 46%, rgba(107, 174, 209, 0.18), transparent 100%); }
html[data-series="tsopic"] .card { box-shadow: 0 16px 28px -18px rgba(19, 30, 57, 0.3); }
html[data-series="tsopic"] .starLineupLink { background: linear-gradient(112deg, #6383ce 3%, #2b488b 100%); }
html[data-series="tsopic"] .lineup { background-color: #1c2a4a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(circle 520px at 20% 760px, rgba(107, 174, 209, 0.34), transparent 70%), radial-gradient(circle 620px at 92% 1340px, rgba(119, 147, 213, 0.42), transparent 70%), radial-gradient(circle 440px at 40% 1880px, rgba(255, 206, 84, .14), transparent 70%), linear-gradient(180deg, #223259 0%, #16213b 100%); }
html[data-series="tsopic"] .lineupFilter.isStuck { background: rgba(28, 42, 74, 0.7); }
html[data-series="tsopic"] .careOnNum { color: rgba(58, 96, 186, 0.32); }
html[data-series="tsopic"] .careOnItem { background: linear-gradient(180deg, #e8eef9 0%, #dbe4f5 100%); }
html[data-series="tsopic"] .careOnTitle { color: #111f3d; }
html[data-series="tsopic"] .careOnText { color: #4a5670; }
html[data-series="tsopic"] .moreInner { background: linear-gradient(rgba(24, 52, 110, .62), rgba(24, 52, 110, .62)), url('/resource/images/event/careOn/tsopic/more-bg.webp') center / cover no-repeat #14213f; }
html[data-series="tsopic"] .moreBtn { color: #111f3d; }
html[data-series="tsopic"] .lineupChip[aria-pressed="true"] { border-color: #4a7aed; background: #4a7aed; color: #ffffff; }
html[data-series="tsopic"] .lineupVisual::after { background: linear-gradient(to top, rgba(10, 22, 56, .78) 0%, rgba(10, 22, 56, .35) 28%, rgba(10, 22, 56, 0) 48%); }
/* 영어회화: 민트 #11b186 (2026-11-10 토스·오픽과 색 맞바꿈) — 선택 탭 #46ffcd */
html[data-series="engconversation"] .heroTitleMain, html[data-series="engconversation"] .heroOn, html[data-series="engconversation"] .heroCopy, html[data-series="engconversation"] .starLineupHeading, html[data-series="engconversation"] .starCardCenter, html[data-series="engconversation"] .careOnOn, html[data-series="engconversation"] .careOnClosingMain span { color: #11b186; }
html[data-series="engconversation"] .carousel::before { background: radial-gradient(closest-side at 50% 50%, rgba(17, 177, 134, 0.38), rgba(17, 177, 134, 0.12) 60%, transparent 100%), radial-gradient(closest-side at 26% 46%, rgba(101, 215, 143, 0.22), transparent 100%), radial-gradient(closest-side at 74% 46%, rgba(101, 215, 143, 0.18), transparent 100%); }
html[data-series="engconversation"] .card { box-shadow: 0 16px 28px -18px rgba(19, 57, 47, 0.3); }
html[data-series="engconversation"] .starLineupLink { background: linear-gradient(112deg, #69d8ba 3%, #299e7e 100%); }
html[data-series="engconversation"] .lineup { background-color: #1c4a3e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(circle 520px at 20% 760px, rgba(101, 215, 143, 0.34), transparent 70%), radial-gradient(circle 620px at 92% 1340px, rgba(113, 219, 190, 0.42), transparent 70%), radial-gradient(circle 440px at 40% 1880px, rgba(255, 206, 84, .14), transparent 70%), linear-gradient(180deg, #22594a 0%, #163b31 100%); }
html[data-series="engconversation"] .lineupFilter.isStuck { background: rgba(28, 74, 62, 0.7); }
html[data-series="engconversation"] .careOnNum { color: rgba(17, 177, 134, 0.32); }
html[data-series="engconversation"] .careOnItem { background: linear-gradient(180deg, #dff0ea 0%, #cfe8df 100%); }
html[data-series="engconversation"] .careOnTitle { color: #0f3229; }
html[data-series="engconversation"] .careOnText { color: #47605a; }
html[data-series="engconversation"] .moreInner { background: linear-gradient(rgba(16, 84, 68, .62), rgba(16, 84, 68, .62)), url('/resource/images/event/careOn/tsopic/more-bg.webp') center / cover no-repeat #123a30; }
html[data-series="engconversation"] .moreBtn { color: #0f3229; }
html[data-series="engconversation"] .lineupChip[aria-pressed="true"] { border-color: #46ffcd; background: #46ffcd; color: #1a1a1a; }
html[data-series="engconversation"] .lineupName { color: #46ffcd; }
/* 일본어·중국어: #e14b50 (red) — 선택 탭은 밝기 +20 = #ff555b */
html[data-series="jpch"] .heroTitleMain, html[data-series="jpch"] .heroOn, html[data-series="jpch"] .heroCopy, html[data-series="jpch"] .starLineupHeading, html[data-series="jpch"] .starCardCenter, html[data-series="jpch"] .careOnOn, html[data-series="jpch"] .careOnClosingMain span { color: #e14b50; }
html[data-series="jpch"] .carousel::before { background: radial-gradient(closest-side at 50% 50%, rgba(225, 75, 80, 0.38), rgba(225, 75, 80, 0.12) 60%, transparent 100%), radial-gradient(closest-side at 26% 46%, rgba(226, 90, 144, 0.22), transparent 100%), radial-gradient(closest-side at 74% 46%, rgba(226, 90, 144, 0.18), transparent 100%); }
html[data-series="jpch"] .card { box-shadow: 0 16px 28px -18px rgba(57, 19, 20, 0.3); }
html[data-series="jpch"] .starLineupLink { background: linear-gradient(112deg, #e97c7f 3%, #cd2228 100%); }
html[data-series="jpch"] .lineup { background-color: #4a1c1e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(circle 520px at 20% 760px, rgba(226, 90, 144, 0.34), transparent 70%), radial-gradient(circle 620px at 92% 1340px, rgba(228, 103, 107, 0.42), transparent 70%), radial-gradient(circle 440px at 40% 1880px, rgba(255, 206, 84, .14), transparent 70%), linear-gradient(180deg, #592223 0%, #3b1618 100%); }
html[data-series="jpch"] .lineupFilter.isStuck { background: rgba(74, 28, 30, 0.7); }
html[data-series="jpch"] .careOnNum { color: rgba(225, 75, 80, 0.32); }
html[data-series="jpch"] .careOnItem { background: linear-gradient(180deg, #fbecec 0%, #f7dedf 100%); }
html[data-series="jpch"] .careOnTitle { color: #3d1214; }
html[data-series="jpch"] .careOnText { color: #6f4f50; }
html[data-series="jpch"] .moreInner { background: linear-gradient(rgba(110, 28, 32, .62), rgba(110, 28, 32, .62)), url('/resource/images/event/careOn/tsopic/more-bg.webp') center / cover no-repeat #3a1113; }
html[data-series="jpch"] .moreBtn { color: #3d1214; }
html[data-series="jpch"] .lineupChip[aria-pressed="true"] { border-color: #ff555b; background: #ff555b; color: #ffffff; }
