/*---------------------------------------
	CLASS SHOWCASE
-----------------------------------------*/
.home_class_section {
	position: relative;
	padding: 0;
	color: #ffffff;
	/* overflow-x: hidden; */
	overflow-y: visible;
}
.home_class_section::-webkit-scrollbar {
	display: none;
}

.classes_page_section {
	position: relative;
}

.class_mount {
	position: relative;
	padding-top: 50px;
}

.class_showcase {
	position: relative;
	isolation: isolate;
	min-height: 720px;
	background:
		linear-gradient(90deg, rgba(7, 16, 28, 0.96) 0%, rgba(7, 16, 28, 0.62) 40%, rgba(7, 16, 28, 0.18) 72%, rgba(7, 16, 28, 0.45) 100%),
		url("../../img/news/newsbg.png") center / cover no-repeat;
	background: url("../../img/news/newsbg.png") center / cover no-repeat;
}

.class_showcase::before,
.class_showcase::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

.class_showcase::before {
	inset: 0;
	background:
		radial-gradient(circle at 68% 28%, rgba(167, 242, 255, 0.18), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 18%, rgb(7 16 28) 100% 100%);
	background:linear-gradient(90deg, rgba(7, 16, 28, 0.96) 0%, rgba(7, 16, 28, 0.62) 40%, rgba(7, 16, 28, 0.18) 72%, rgba(7, 16, 28, 0.45) 100%);
}

.class_showcase::after {
	left: 0;
	right: 0;
	bottom: 0;
	height: 180px;
	background: linear-gradient(180deg, transparent, rgba(7, 16, 28, 0.92));
}

.class_showcase_home {
	min-height: 700px;
}

.class_showcase_full {
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

/*---------------------------------------
	RACE TABS
-----------------------------------------*/
.class_race_tabs {
	position: absolute;
	z-index: 8;
	bottom: 0;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	pointer-events: all;
	user-select: none;
	--webkit-overflow-scrolling: touch;
  background: linear-gradient(to top, #071f30, #2d6370);
}

.class_race_tabs::-webkit-scrollbar {
	display: none;
}

.class_race_tab {
	position: relative;
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: calc(100% / 6);
  max-width: 345px;
	height: 65px;
	padding: 0 22px;
	color: var(--highlight);
	background: url("../../img/class/tabbg.png") no-repeat;
	background: linear-gradient(to top, #071f30, #2d6370);
	background-size: 100%;
	background-position: bottom center;
	font-family: var(--font-title);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: transform .5s ease, filter .25s ease;
  border: 1px solid rgba(0,0,0,0);
}
.class_race_tab:not(:last-child){
	border-right: 1px solid rgba(255, 243, 183, 0.28);
}

.class_race_tab:hover{
	border: 1px solid var(--active);
	background: linear-gradient(to top, #0d314b, #5fb9cf);
}
.class_race_tab.active {
	color: #201005;
	border-top: 1px solid #ffffff77;
	background: linear-gradient(to top, #af9252, var(--highlight));
	background: url(../../img/button/button.png) top center no-repeat;
	background-size: auto 250%;
	z-index: 0;
}

/*---------------------------------------
	STAGE
-----------------------------------------*/
.class_stage {
	position: relative;
	min-height: 700px;
	width: min(100%, 90vw);
	margin: 0 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 28px;
	pointer-events: none;
}

.class_stage a,
.class_stage button {
	pointer-events: all;
}

/*---------------------------------------
	JOB TABS
-----------------------------------------*/
.class_job_tabs {
	position: relative;
	z-index: 5;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 6px;
	padding: 22px 18px;
	pointer-events: all;
	/* background: linear-gradient(180deg, rgba(5, 28, 42, 0.08), rgba(5, 28, 42, 0.36), rgba(5, 28, 42, 0.08)); */
}

.class_job_tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 7px;
	padding: 12px 8px;
	color: rgba(255, 255, 255, 0.48);
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: linear-gradient(180deg, rgba(11, 92, 118, 0.56), rgba(7, 42, 62, 0.5));
	transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.class_job_tab::before, .class_race_tab::before{
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid transparent;
	transition: border-color 0.25s ease;
}

.class_job_tab img {
	width: 35px;
	height: 35px;
	object-fit: contain;
	opacity: 0.52;
	filter: grayscale(1);
	transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.class_job_tab span {
	writing-mode: vertical-rl;
	font-family: var(--font-main);
	font-size: 16px;
	letter-spacing: 0.08em;
}

.class_job_tab:hover,
.class_job_tab.active {
	color: #fff3b7;
	border-color: var(--active);
	background: linear-gradient(180deg, rgba(77, 163, 210, 0.76), rgba(17, 75, 103, 0.72));
}

.class_job_tab:hover::before,
.class_job_tab.active::before,
.class_race_tab::before {
	border-color: rgba(255, 243, 183, 0.28);
}

.class_job_tab:hover img,
.class_job_tab.active img {
	opacity: 1;
	filter: none;
}

.class_job_tab {
	display: none;
}

.class_job_tab.is_visible {
	display: flex;
}

/*---------------------------------------
	PANEL
-----------------------------------------*/
.class_panels {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	width: min(100%, 1500px);
	min-height: 630px;
}

.class_panel {
	display: none;
	position: relative;
	min-height: 630px;
}

.class_panel.active {
	display: grid;
	grid-template-columns: minmax(0, 560px) minmax(420px, 1fr);
	align-items: center;
	gap: 36px;
	animation: class_panel_in 0.45s ease both;
}

@keyframes class_panel_in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.class_panel_content {
	position: relative;
	z-index: 4;
	max-width: 560px;
	height: 100%;
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
	padding: 20px;
}

.class_name_row {
	display: flex;
	align-items: center;
	gap: 18px;
}

.class_name_row h3 {
	color: var(--highlight);
	font-family: var(--font-default);
	font-size: clamp(64px, 8vw, 104px);
	line-height: 0.9;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-shadow: 0 5px 16px rgba(0, 0, 0, 0.26);
}

.class_video_btn {
	position: relative;
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(24, 46, 58, 0.45);
	box-shadow: 0 0 0 5px rgba(255, 231, 152, 0.14);
	transition: transform 0.25s ease, background 0.25s ease, filter 0.25s ease;
}

.class_video_btn::before {
	content: "";
	position: absolute;
	width: 130%;
	height: 130%;
	max-width: 80px;
	background: url("../../img/class/playbg.png") center no-repeat;
	background-size: contain;
	transform-origin: center;
	animation: spin 3s infinite linear;
}

.class_video_btn span {
	position: relative;
	z-index: 1;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 16px solid #fff3b7;
}

.class_video_btn:hover {
	transform: scale(1.08);
	background: rgba(24, 46, 58, 0.68);
	filter: drop-shadow(0 0 12px rgba(255, 231, 152, 0.34));
}

.class_panel_desc {
	max-width: 520px;
	margin-top: 22px;
	color: #ffffff;
	font-size: 17px;
	line-height: 1.9;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.class_power_chart {
	width: min(100%, 320px);
	margin-top: 28px;
}

.class_power_chart img {
	width: fit-content;
	max-width: 100%;
}

.class_panel_actions {
	margin-top: 30px;
}

.class_panel_visual {
	position: absolute;
	z-index: 2;
	/* width: min(62vw, 1200px); */
	height: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	right: 0;
	bottom: 0;
	/* top: 50%; */
	/* transform: translateY(-50%); */
	pointer-events: none;
}

.class_panel_visual::before {
	content: "";
	position: absolute;
	right: 12%;
	bottom: 6%;
	width: 62%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(167, 242, 255, 0.22), transparent 68%);
	filter: blur(8px);
}

.class_panel_visual img {
	position: relative;
	z-index: 1;
	/* max-height: 720px; */
	/* max-width: 100%; */
	max-width: unset;
	object-fit: contain;
	object-position: bottom center;
	filter: drop-shadow(0 28px 35px rgba(0, 0, 0, 0.36));
}

/*---------------------------------------
	FULL PAGE ADJUSTMENT
-----------------------------------------*/
.page_classes .class_showcase {
	min-height: 760px;
}

.page_classes .class_stage {
	min-height: 760px;
}

.page_classes .class_panels,
.page_classes .class_panel {
	min-height: 680px;
}

.page_classes .class_panel_visual img {
	max-height: 760px;
}

/*---------------------------------------
	RESPONSIVE - DESKTOP SMALL
-----------------------------------------*/
@media (max-width: 1440px) {
	.class_panel.active {
		grid-template-columns: minmax(0, 500px) minmax(360px, 1fr);
		gap: 24px;
	}

	.class_panel_visual img {
		height: fit-content;
		max-height: 680px;
	}
}

@media (max-width: 1200px) {
	.class_showcase,
	.class_showcase_home,
	.page_classes .class_showcase {
		min-height: 690px;
	}

	.class_stage,
	.page_classes .class_stage {
		min-height: 690px;
		gap: 16px;
	}

	.class_panel.active {
		grid-template-columns: minmax(0, 440px) minmax(320px, 1fr);
	}

	.class_name_row h3 {
		font-size: clamp(58px, 8vw, 88px);
	}

	.class_panel{
		overflow: hidden;
	}
	.class_panel_visual {
		right: unset;
		left: 5%;
	}
}

/*---------------------------------------
	RESPONSIVE - TABLET
-----------------------------------------*/
@media (max-width: 900px) {
	.home_class_section {
		padding: 0;
	}

	.class_showcase,
	.class_showcase_home,
	.page_classes .class_showcase {
		min-height: auto;
	}

	.class_race_area {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		padding: 18px 18px 0;
	}

	.class_race_tabs {
    justify-content: flex-start;
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		margin-bottom: 15px;
	}

	.class_stage,
	.page_classes .class_stage {
		width: 100%;
		min-height: auto;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
	}

	.class_job_tabs {
		position: absolute;
		width: 100%;
		flex-direction: row;
		justify-content: flex-start;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 0 25px;
		background: none;
		border: 0;
		cursor: grab;
		scrollbar-width: none;
		-ms-overflow-style: none;
		touch-action: pan-x;
		scroll-snap-type: x proximity;
		--webkit-overflow-scrolling: touch;
		/* mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); */
	}

	.class_job_tabs::-webkit-scrollbar {
		display: none;
	}

	.class_job_tabs.is_dragging,
	.class_job_tabs.is_momentum {
		cursor: grabbing;
		scroll-snap-type: none;
	}

	.class_job_tab span {
		/* writing-mode: horizontal-tb; */
		font-size: 15px;
	}

	.class_panels,
	.page_classes .class_panels,
	.class_panel,
	.page_classes .class_panel {
		width: 100%;
		min-height: auto;
	}

	.class_panel.active {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.class_panel_content {
		order: 2;
		max-width: none;
		padding: 10px 25px 40px;
	}

	.class_name_row h3 {
		font-size: clamp(52px, 15vw, 88px);
	}

	.class_panel_desc {
		max-width: none;
		font-size: 16px;
	}

	.class_panel_visual {
		order: 1;
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		bottom: auto;
		transform: none;
		align-items: flex-end;
		width: 100%;
		margin-bottom: -80px;
	}

	.class_panel_visual::before {
		right: 50%;
		bottom: 5%;
		width: 70%;
		transform: translateX(50%);
	}

	.class_panel_visual img {
		width: 100%;
		min-height: 450px;
		max-height: 100%;
		max-width: unset;
		object-fit: cover;
	}
}

/*---------------------------------------
	RESPONSIVE - MOBILE
-----------------------------------------*/
@media (max-width: 600px) {
	.class_race_area {
		padding: 14px 14px 0;
	}

	.class_race_tab {
		width: 104px;
		height: 36px;
		padding: 0 14px;
		font-size: 17px;
	}

	/* .class_job_tab {
		min-width: 82px;
		min-height: 62px;
		padding: 9px 12px;
	} */

	.class_job_tab img {
		width: 28px;
		height: 28px;
	}

	.class_job_tab span {
		font-size: 14px;
	}

	.class_name_row {
		gap: 12px;
	}

	.class_name_row h3 {
		font-size: clamp(48px, 18vw, 76px);
	}

	.class_video_btn {
		width: 50px;
		height: 50px;
	}

	.class_panel_desc {
		margin-top: 18px;
		font-size: 15px;
		line-height: 1.85;
	}

	.class_power_chart {
		width: min(100%, 280px);
	}

	.class_panel_actions .primary_btn {
		width: 100%;
	}
}
