/* 서브페이지 상단 히어로 (awsHtml/common/sj_hero.html) */

.sj-hero{
	position:relative;
	min-height:430px;
	background:
		radial-gradient(circle at 18% 24%, rgba(103,189,235,.20), transparent 28%),
		linear-gradient(112deg, #071c33 0%, #0d3154 57%, #123f68 100%);
}
.sj-hero::after{
	content:attr(data-word);
	position:absolute;
	left:5vw;
	bottom:55px;
	font-family:"Montserrat_B", Montserrat, Arial, sans-serif;
	font-size:clamp(95px, 13vw, 180px);
	line-height:.82;
	letter-spacing:-.06em;
	color:rgba(255,255,255,.025);
	white-space:nowrap;
	pointer-events:none;
}

/* 배너 비율(1920×433)로 제작된 이미지는 히어로 전체 폭에 맞춤 (흐림 처리는 동일) */
.sj-hero--full .sj-hero-bg{
	width:100%;
	-webkit-mask-image:linear-gradient(90deg, transparent 0, transparent calc(25% - 75px), rgba(0,0,0,.12) calc(50% - 250px), rgba(0,0,0,.35) calc(50% - 50px), rgba(0,0,0,.7) calc(50% + 180px), #000 calc(50% + 400px));
	        mask-image:linear-gradient(90deg, transparent 0, transparent calc(25% - 75px), rgba(0,0,0,.12) calc(50% - 250px), rgba(0,0,0,.35) calc(50% - 50px), rgba(0,0,0,.7) calc(50% + 180px), #000 calc(50% + 400px));
}
@media (max-width:980px){
	.sj-hero--full .sj-hero-bg{
		-webkit-mask-image:linear-gradient(90deg, rgba(0,0,0,.2) 0%, #000 100%);
		        mask-image:linear-gradient(90deg, rgba(0,0,0,.2) 0%, #000 100%);
	}
}

/* ===== grid ===== */
.sj-hero-grid{
	position:relative;
	z-index:2;
	display:grid;
	grid-template-columns:minmax(0, 640px);
	align-items:stretch;
	width:100%;
	max-width:1200px;
	min-height:430px;
	margin:0 auto;
	box-sizing:border-box;
}

/* ===== left ===== */
.sj-hero-copy{
	display:flex;
	flex-direction:column;
	justify-content:center;
	padding:58px 38px 78px 0;
	text-align:left;
}
.sj-hero-crumb{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:10px;
	margin-bottom:42px;
	color:rgba(255,255,255,.48);
	font-size:12px;
}
.sj-hero-crumb a{
	color:inherit;
	transition:color .2s ease;
}
.sj-hero-crumb a:hover{color:#fff;}
.sj-hero-crumb b{
	color:rgba(255,255,255,.82);
	font-weight:500;
}
.sj-hero-dot{
	flex:0 0 7px;
	width:7px;
	height:7px;
	border-radius:50%;
	background:#67b8e6;
	box-shadow:0 0 0 5px rgba(103,184,230,.12);
}
.sj-hero-eyebrow{
	margin-bottom:14px;
	color:#74c5ef;
	font-family:"Montserrat_M", Montserrat, Arial, sans-serif;
	font-size:12px;
	letter-spacing:3.2px;
}
.sj-hero-copy h1{
	margin:0 0 18px;
	color:#fff;
	font-family:"NotoKr_B", sans-serif;
	font-size:52px;
	font-weight:700;
	line-height:1.14;
	letter-spacing:-2.8px;
}
.sj-hero-copy p{
	margin:0;
	color:rgba(255,255,255,.66);
	font-size:16px;
	font-weight:300;
	line-height:1.85;
	word-break:keep-all;
}

/* ===== background image (왼쪽으로 갈수록 투명) ===== */
.sj-hero-bg{
	position:absolute;
	z-index:0;
	top:0;
	right:0;
	bottom:0;
	width:68%;
	background-position:center;
	background-size:cover;
	background-repeat:no-repeat;
	filter:saturate(.8);
	opacity:.75;
	-webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 75%);
	        mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 75%);
	pointer-events:none;
}
.sj-hero-bg::after{
	content:"";
	position:absolute;
	inset:0;
	background:linear-gradient(180deg, rgba(7,28,51,.15), rgba(7,28,51,.45));
}

/* ===== floating tabs ===== */
.sj-hero-tabs-shell{
	position:absolute;
	z-index:10;
	left:50%;
	bottom:-39px;
	width:min(1180px, calc(100% - 64px));
	transform:translateX(-50%);
}
.sj-hero-tabs{
	display:grid;
	grid-template-columns:repeat(var(--sj-tab-cnt, 5), 1fr);
	height:78px;
	overflow:hidden;
	border:1px solid #c3ccd6;
	border-radius:18px;
	background:#fff;
}
.sj-hero-tabs a{
	position:relative;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:0 6px;
	color:#607080;
	font-size:15px;
	font-weight:500;
	text-align:center;
	word-break:keep-all;
	transition:color .2s ease, background .2s ease;
}
.sj-hero-tabs a + a::before{
	content:"";
	position:absolute;
	top:25px;
	left:0;
	width:1px;
	height:28px;
	background:#e8edf2;
}
.sj-hero-tabs a:hover{
	color:#135c8a;
	background:#eef3f7;
}
.sj-hero-tabs a.active{
	color:#fff;
	font-weight:700;
	background:linear-gradient(135deg, #164f79, #1f78a8);
}
.sj-hero-tabs a.active::after{
	content:"";
	position:absolute;
	left:50%;
	bottom:13px;
	width:28px;
	height:3px;
	border-radius:10px;
	background:#8fd4f6;
	transform:translateX(-50%);
}
.sj-hero-tabs a.active::before,
.sj-hero-tabs a.active + a::before{display:none;}

/* ===== 3차 탭 — 2차 셸 bottom은 유지, 3차만 아래로 절대배치(2차 위치 밀림 방지) ===== */
.sj-hero-tabs-shell--sub{
	overflow:visible;
}
.sj-hero-subtabs{
	position:absolute;
	left:0;
	right:0;
	top:calc(100% + 12px);
	display:inline-flex;
	flex-wrap:wrap;
	align-items:stretch;
	justify-content:center;
	gap:0;
	width:100%;
	margin-top:0;
	padding:0;
	border:1px solid #b8c4d1;
	border-radius:10px;
	background:#fff;
	box-shadow:0 10px 24px rgba(18,42,66,.1);
	overflow:hidden;
	box-sizing:border-box;
}
.sj-hero-subtabs a{
	position:relative;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:1 1 0;
	min-width:0;
	min-height:46px;
	padding:10px 8px;
	border:0;
	border-radius:0;
	background:#fff;
	color:#4d5c6c;
	font-size:14px;
	font-weight:600;
	letter-spacing:-.03em;
	line-height:1.25;
	text-align:center;
	text-decoration:none;
	word-break:keep-all;
	box-shadow:none;
	transition:color .18s ease, background .18s ease;
}
.sj-hero-subtabs a + a::before{
	content:"";
	position:absolute;
	left:0;
	top:12px;
	bottom:12px;
	width:1px;
	background:#d7e0ea;
}
.sj-hero-subtabs a:hover{
	color:#135c8a;
	background:#f3f7fb;
	border:0;
	box-shadow:none;
}
.sj-hero-subtabs a.active{
	color:#fff;
	font-weight:700;
	background:#243447;
	border:0;
	box-shadow:none;
}
.sj-hero-subtabs a.active::before,
.sj-hero-subtabs a.active + a::before{display:none;}
.sj-hero-subtabs a.active::after{display:none;}

/* ===== 아래 콘텐츠와의 관계 ===== */
.sj-hero ~ div.sub div.sub-nav{display:none;}
.sj-hero + div.sub{padding-top:39px;}
.sj-hero--hassub + div.sub{padding-top:130px;}
.sj-hero--notabs + div.sub{padding-top:0;}
.sj-hero + div.sub.sub-greeting{padding-top:calc(39px + 3.5rem);}
.sj-hero ~ #sub-container{padding-top:39px;}
.sj-hero--hassub ~ #sub-container{padding-top:130px;}
.sj-hero ~ #sub-container .n6{display:none;}
.sj-hero ~ #sub-container .myClassTab,
.sj-hero ~ #sub-container .stw-my-class,
.sj-hero ~ #sub-container .stw-mycourse-empty{margin-top:2.5rem !important;}
.sj-hero ~ div.sub h2.sub-tit{
	margin-top:2.5rem;
	margin-bottom:3rem;
}

/* ===== 진입 애니메이션 ===== */
@keyframes sjHeroWordIn{
	from{opacity:0;}
	to{opacity:1;}
}
@keyframes sjHeroSlideIn{
	from{opacity:0; transform:translateX(-40px);}
	to{opacity:1; transform:none;}
}
.sj-hero::after{animation:sjHeroWordIn 1.8s ease-out .2s both;}
.sj-hero-crumb,
.sj-hero-eyebrow,
.sj-hero-copy h1,
.sj-hero-copy p{animation:sjHeroSlideIn .8s cubic-bezier(.22,1,.36,1) both;}
.sj-hero-crumb{animation-delay:.15s;}
.sj-hero-eyebrow{animation-delay:.35s;}
.sj-hero-copy h1{animation-delay:.55s;}
.sj-hero-copy p{animation-delay:.75s;}
@media (prefers-reduced-motion:reduce){
	.sj-hero::after,
	.sj-hero-crumb,
	.sj-hero-eyebrow,
	.sj-hero-copy h1,
	.sj-hero-copy p{animation:none;}
}

/* ===== tablet ===== */
@media (max-width:980px){
	.sj-hero::after{display:none;}
	.sj-hero-grid{
		grid-template-columns:1fr;
		padding:0 28px;
	}
	.sj-hero{min-height:0;}
	.sj-hero-grid{min-height:360px;}
	.sj-hero-copy{padding:52px 0 92px;}
	.sj-hero--notabs .sj-hero-copy{padding-bottom:52px;}
	.sj-hero-crumb{margin-bottom:30px;}
	.sj-hero-bg{
		width:100%;
		opacity:.45;
		-webkit-mask-image:linear-gradient(90deg, rgba(0,0,0,.2) 0%, #000 100%);
		        mask-image:linear-gradient(90deg, rgba(0,0,0,.2) 0%, #000 100%);
	}
	.sj-hero-tabs-shell{
		bottom:-36px;
		width:calc(100% - 30px);
		overflow-x:auto;
		border-radius:16px;
		scrollbar-width:none;
	}
	.sj-hero-tabs-shell--sub{
		overflow:visible;
	}
	.sj-hero-tabs-shell::-webkit-scrollbar{display:none;}
	.sj-hero-tabs{
		min-width:calc(var(--sj-tab-cnt, 5) * 130px);
		height:72px;
	}
	.sj-hero-tabs a + a::before{top:22px;}
	.sj-hero-subtabs{
		display:flex;
		top:calc(100% + 10px);
		width:max-content;
		min-width:100%;
		margin-top:0;
		overflow-x:auto;
		flex-wrap:nowrap;
		scrollbar-width:none;
	}
	.sj-hero-subtabs::-webkit-scrollbar{display:none;}
	.sj-hero-subtabs a{
		flex:0 0 auto;
		min-width:108px;
		min-height:42px;
		padding:8px 12px;
		font-size:13px;
		white-space:nowrap;
	}
	.sj-hero + div.sub{padding-top:36px;}
	.sj-hero--hassub + div.sub,
	.sj-hero--hassub ~ #sub-container{padding-top:120px;}
}

/* ===== mobile ===== */
@media (max-width:620px){
	.sj-hero-grid{padding:0 20px;}
	.sj-hero-copy{padding-top:42px;}
	.sj-hero-copy h1{
		font-size:38px;
		letter-spacing:-2px;
	}
	.sj-hero-copy p{font-size:14px;}
	.sj-hero-copy p br{display:none;}
	.sj-hero-crumb{font-size:11px;}
	.sj-hero-eyebrow{
		font-size:10px;
		letter-spacing:2.4px;
	}
	.sj-hero-grid{min-height:320px;}
	.sj-hero-copy{padding-bottom:84px;}
	.sj-hero-tabs{
		min-width:calc(var(--sj-tab-cnt, 5) * 118px);
		height:66px;
	}
	.sj-hero-tabs a{font-size:14px;}
	.sj-hero-tabs a + a::before{top:19px;}
	.sj-hero-subtabs{top:calc(100% + 8px);}
	.sj-hero-subtabs a{min-width:96px; min-height:40px; padding:8px 10px; font-size:12px;}
	.sj-hero--hassub + div.sub,
	.sj-hero--hassub ~ #sub-container{padding-top:114px;}
}

/* ===== 나의강의실: 높이 축소 (430→244) ===== */
.sj-hero--mypage,
.sj-hero--mypage .sj-hero-grid{min-height:300px;}
.sj-hero--mypage .sj-hero-copy{padding:7px 38px 20px;}
.sj-hero--mypage .sj-hero-crumb{margin-bottom:22px;}
.sj-hero--mypage::after{bottom:40px;}
.sj-hero--mypage .sj-hero-copy h1{margin-bottom:0;font-size:36px;letter-spacing:-2px;}
.sj-hero--mypage .sj-hero-tabs-shell{bottom:-31px;}
.sj-hero--mypage .sj-hero-tabs{height:62px;}
.sj-hero--mypage .sj-hero-tabs a + a::before{top:17px;}
.sj-hero--mypage .sj-hero-tabs a.active::after{bottom:9px;}
.sj-hero--mypage + div.sub,
.sj-hero--mypage ~ #sub-container{padding-top:31px;}
@media (max-width:980px){
	.sj-hero--mypage{min-height:0;}
	.sj-hero--mypage .sj-hero-grid{min-height:204px;}
	.sj-hero--mypage .sj-hero-copy{padding:30px 0 64px;}
	.sj-hero--mypage .sj-hero-crumb{margin-bottom:18px;}
	.sj-hero--mypage .sj-hero-tabs-shell{bottom:-29px;}
	.sj-hero--mypage .sj-hero-tabs{height:58px;}
	.sj-hero--mypage .sj-hero-tabs a + a::before{top:15px;}
	.sj-hero--mypage + div.sub,
	.sj-hero--mypage ~ #sub-container{padding-top:29px;}
}
@media (max-width:620px){
	.sj-hero--mypage .sj-hero-grid{min-height:182px;}
	.sj-hero--mypage .sj-hero-copy{padding:26px 0 60px;}
	.sj-hero--mypage .sj-hero-copy h1{font-size:27px;letter-spacing:-1.4px;}
	.sj-hero--mypage .sj-hero-tabs-shell{bottom:-27px;}
	.sj-hero--mypage .sj-hero-tabs{height:54px;}
	.sj-hero--mypage .sj-hero-tabs a + a::before{top:13px;}
	.sj-hero--mypage + div.sub,
	.sj-hero--mypage ~ #sub-container{padding-top:27px;}
}
