@charset "utf-8";

/* ==========================================================================
   AORES — English pages / common
   국문 사이트의 wp-custom-css 기준으로 재작성.
   Astra / Elementor 를 dequeue 하므로 !important 는 전부 뺐습니다.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens  (국문 사이트 :root 값 그대로)
   -------------------------------------------------------------------------- */
:root {
	--color-white: #fff;
	--point-color-1: #00c7fe;
	--point-color-2: #007dfe;
	--line-color-1: #e1e1e1;
	--gray-767676: #767676;
	--gray-969696: #969696;
	--gray-d9d9d9: #d9d9d9;
	--gray-060606: #060606;
	--gray-c1c1c1: #c1c1c1;
	--gray-f2f3f5: #f2f3f5;

	--font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-poppins: 'Poppins', sans-serif;

	--footer-bg: #262626;

	--header-h: 8rem; /* 80px — .sub_tab_box 의 top 값과 반드시 일치 */
	--gutter: 100px; /* 좌우 여백. 국문 사이트의 calc(100vw - 200px) 와 동일 */
	--admin-offset: 0px;
}

/* 로그인 상태에서 관리자 바(32px / 모바일 46px)만큼 고정 요소를 내립니다 */
body.admin-bar {
	--admin-offset: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar {
		--admin-offset: 46px;
	}
}

/* --------------------------------------------------------------------------
   2. Reset  (Astra 스타일시트를 dequeue 했으므로 여기서 직접 담당)
   ⚠️ font-size: 62.5% — 1rem = 10px.
      이 프로젝트의 모든 rem 값(1.4rem 푸터, 1.8rem 탭, 7.2rem 타이틀)이
      이 기준으로 잡혀 있습니다. 절대 빼거나 바꾸지 마세요.
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 62.5%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.65;
	color: var(--gray-060606);
	background: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
	margin: 0;
}
ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
	border: 0;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
table {
	width: 100%;
	border-collapse: collapse;
}
:focus-visible {
	outline: 2px solid var(--point-color-2);
	outline-offset: 3px;
}

/* 스크린리더 전용 텍스트
   워드프레스·플러그인이 곳곳에 넣는 마크업입니다.
   원래 Astra 스타일시트가 숨겨주던 건데 그걸 제거했으므로 여기서 담당합니다.
   없으면 "Scroll to Top" 같은 글자가 화면에 그대로 튀어나옵니다. */
.screen-reader-text,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus,
.sr-only:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
}

/* Astra 의 최상단 버튼 — .en-top 과 중복이라 숨깁니다.
   Astra JS 가 인라인으로 display 를 켜기 때문에 !important 가 필요합니다. */
#ast-scroll-top {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------------------
   3. Layout
   ⚠️ .en-main / .cont_wrap 에 background 를 주지 마세요.
      #vid_earth 가 z-index:-2 라서 배경이 생기면 지구본이 가려집니다.
   ⚠️ .en-main 에 padding-top 없음 — 국문 사이트와 동일하게
      .sub_sbjt_box 의 padding-top:16rem 이 고정 헤더/탭 자리를 만듭니다.
   -------------------------------------------------------------------------- */
.en-main {
	overflow-x: clip; /* 120vw 이미지의 가로 스크롤 차단.
	                       hidden 이 아니라 clip — hidden 은 position:sticky 를 깨뜨립니다 */
}

.cont_wrap {
	position: relative;
	width: 100%;
	max-width: calc(100vw - var(--gutter) * 2);
	margin: 3.5rem auto 0;
}

/* 정렬 유틸 */
.flex_between {
	display: flex;
	justify-content: space-between;
}

.en-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 1rem 2rem;
	background: var(--gray-060606);
	color: var(--color-white);
}
.en-skip:focus {
	left: 0;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.en-header {
	position: fixed;
	top: var(--admin-offset);
	left: 0;
	width: 100%;
	z-index: 20;
	background: var(--color-white);
	border-bottom: 1px solid var(--line-color-1);
}

.en-header__inner {
	width: 100%;
	max-width: calc(100vw - var(--gutter) * 2);
	min-height: var(--header-h);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.en-header__logo img {
	width: 271px;
	max-width: 100%;
	height: auto;
}

.en-header__nav {
	display: flex;
	align-items: center;
}

.en-gnb {
	display: flex;
	align-items: center;
}

.en-gnb__item {
	position: relative;
}

.en-gnb__item > a {
	display: flex;
	align-items: center;
	height: var(--header-h);
	padding: 0 1.8rem;
	font-family: var(--font-poppins);
	font-size: 1.7rem;
	font-weight: 600;
	color: var(--gray-060606);
	white-space: nowrap;
	transition: color 0.2s;
}
.en-gnb__item > a:hover,
.en-gnb__item.is-current > a {
	color: var(--point-color-2);
}

/* 하위 메뉴 화살표 — 국문 헤더(Astra)와 동일한 표시 */
.en-gnb__item.has-sub > a::after {
	content: '';
	width: 0.7rem;
	height: 0.7rem;
	margin: -0.4rem 0 0 0.8rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition:
		transform 0.2s,
		margin 0.2s;
}
.en-gnb__item.has-sub:hover > a::after,
.en-gnb__item.has-sub:focus-within > a::after {
	margin-top: 0.3rem;
	transform: rotate(225deg);
}

.en-gnb__sub {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 17rem;
	padding: 1.2rem 0;
	background: var(--color-white);
	border: 1px solid var(--line-color-1);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.2s,
		visibility 0.2s;
}
.en-gnb__item.has-sub:hover .en-gnb__sub,
.en-gnb__item.has-sub:focus-within .en-gnb__sub {
	opacity: 1;
	visibility: visible;
}

.en-gnb__sub a {
	display: block;
	padding: 1rem 2rem;
	font-family: var(--font-poppins);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--gray-767676);
	white-space: nowrap;
	transition:
		color 0.2s,
		background 0.2s;
}
.en-gnb__sub a:hover {
	color: var(--point-color-2);
	background: var(--gray-f2f3f5);
}

/* 언어 전환 — 국문 사이트의 KOR / ENG 구분선 그대로 */
.en-lang {
	display: flex;
	align-items: center;
	margin-left: 5rem;
}
.en-lang li {
	position: relative;
}
.en-lang li a {
	display: block;
	min-width: 56px;
	text-align: center;
	font-family: var(--font-poppins);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--gray-767676);
	white-space: nowrap;
	transition: color 0.2s;
}
.en-lang li.is-active a {
	color: var(--gray-060606);
}
.en-lang li:last-child::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 2px;
	height: 12px;
	background: var(--gray-767676);
	transform: translateY(-50%);
}

/* 모바일 토글 */
.en-header__toggle {
	display: none;
	width: 2.6rem;
	height: 2rem;
	position: relative;
}
.en-header__toggle span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--gray-060606);
	transition:
		transform 0.3s,
		opacity 0.3s;
}
.en-header__toggle span:nth-child(1) {
	top: 0;
}
.en-header__toggle span:nth-child(2) {
	top: 50%;
	margin-top: -1px;
}
.en-header__toggle span:nth-child(3) {
	bottom: 0;
}
.en-header__toggle[aria-expanded='true'] span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.en-header__toggle[aria-expanded='true'] span:nth-child(2) {
	opacity: 0;
}
.en-header__toggle[aria-expanded='true'] span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Sub common — 탭 / 페이지 타이틀
   [변경] .sub_tab_box 를 width:100vw + left:50% + translateX(-50%) 에서
          left:0 + width:100% 로. position:fixed 라 결과는 같고,
          100vw 가 스크롤바 폭만큼 넘쳐서 생기던 가로 스크롤이 사라집니다.
   -------------------------------------------------------------------------- */
.sub_tab_box {
	position: fixed;
	top: calc(var(--header-h) + var(--admin-offset));
	left: 0;
	width: 100%;
	z-index: 11;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0 3.6rem;
	margin: 0;
	padding: 3rem 0;
	background: var(--color-white);
}
.sub_tab_box li {
	position: relative;
}
.sub_tab_box li:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -2rem;
	width: 6px;
	height: 6px;
	background: var(--gray-d9d9d9);
	border-radius: 50%;
	transform: translateY(-50%);
}
.sub_tab_box li a {
	font-family: var(--font-poppins);
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--gray-767676);
	transition: color 0.2s;
}
.sub_tab_box li a:hover {
	color: var(--gray-060606);
}
.sub_tab_box li.active a {
	color: var(--point-color-2);
}

.sub_sbjt_box {
	padding: 16rem 0 10rem; /* 고정 헤더(80px) + 고정 탭(약 82px) 을 비우는 값 */
	text-align: center;
}
.sub_sbjt_box .sub_sbjt {
	margin: 0;
	font-family: var(--font-poppins);
	font-size: 7.2rem;
	font-weight: 700;
	line-height: 1.2;
}
.sub_sbjt span {
	display: block;
	padding-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   6. Footer
   [변경] 국문/영문 푸터를 둘 다 출력하고 CSS 로 숨기던 구조를 제거.
          영문 템플릿이므로 영문 푸터만 출력합니다.
   [변경] logo_gray.png 경로 '../wp-content/' → '/wp-content/'
   -------------------------------------------------------------------------- */
.footer_wrap {
	position: relative;
	width: 100%;
	max-width: calc(100vw - var(--gutter) * 2);
	margin: 3rem auto;
	padding: 4rem 6rem 1rem;
	background: var(--footer-bg);
	border-radius: 20px;
}

.footer_wrap > div[class*='er_box'] {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

.footer_wrap .upper_box {
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.footer_wrap .upper_box .logo_footer {
	width: 271px;
	flex-shrink: 0;
}
.footer_wrap .upper_box .logo_footer img {
	width: 271px;
	height: 41px;
}

.footer_wrap .upper_box > ul {
	display: flex;
	align-items: center;
}
.footer_wrap .upper_box > ul li {
	position: relative;
	font-size: 1.4rem;
	color: var(--color-white);
}
.footer_wrap .upper_box > ul li:nth-child(2) {
	padding-left: 2.5rem;
}
.footer_wrap .upper_box > ul li:nth-child(2)::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 1.24rem;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	transform: translateY(-50%);
}

.footer_wrap .lower_box .left_box {
	display: flex;
	flex-wrap: wrap;
	padding: 2rem 0;
}
.footer_wrap .lower_box .left_box li {
	position: relative;
	display: flex;
	align-items: center;
	margin-right: 2.5rem;
	font-size: 1.4rem;
}
.footer_wrap .lower_box .left_box li:first-child {
	width: 100%;
	padding-bottom: 0.5rem;
}
.footer_wrap .lower_box .left_box li:not(:first-child, :last-child)::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -1.25rem;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	transform: translateY(-50%);
}
.footer_wrap .lower_box .left_box .f_title {
	margin: 0 1rem 0 0;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.5);
}
.footer_wrap .lower_box .left_box .f_cont {
	margin: 0;
	font-weight: 400;
	color: var(--color-white);
	text-align: left;
}
.footer_wrap .lower_box .left_box .f_cont a {
	color: var(--color-white);
}
.footer_wrap .lower_box .left_box .f_cont a:hover {
	text-decoration: underline;
}

.footer_wrap .lower_box .copyright {
	margin: 0;
	padding-bottom: 2rem;
	font-size: 1.4rem;
	color: var(--color-white);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. Scroll to top  (#ast-scroll-top 대체)
   -------------------------------------------------------------------------- */
.en-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 19;
	width: 3rem;
	height: 3rem;
	display: grid;
	place-items: center;
	border-radius: 5px;
	background: var(--point-color-2);
	color: var(--color-white);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition:
		opacity 0.3s,
		visibility 0.3s,
		transform 0.3s;
}
.en-top.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.en-top svg {
	width: 1.8rem;
	height: 1.8rem;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media all and (max-width: 1440px) {
	:root {
		--gutter: 6rem;
	}
	.en-lang {
		margin-left: 3rem;
	}
}

@media all and (max-width: 1024px) {
	:root {
		--gutter: 4rem;
	}

	.en-header__toggle {
		display: block;
	}
	.en-header__logo img {
		width: 20rem;
	}

	.en-header__nav {
		position: fixed;
		top: calc(var(--header-h) + var(--admin-offset));
		left: 0;
		width: 100%;
		height: calc(100dvh - var(--header-h) - var(--admin-offset));
		flex-direction: column;
		align-items: stretch;
		padding: 2.4rem var(--gutter) 6rem;
		background: var(--color-white);
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.3s ease;
	}
	.en-header__nav.is-open {
		transform: none;
	}

	.en-gnb {
		flex-direction: column;
		align-items: stretch;
	}
	.en-gnb__item > a {
		height: auto;
		padding: 1.8rem 0;
		font-size: 2rem;
	}
	.en-gnb__item.has-sub > a::after {
		display: none;
	}

	.en-gnb__sub {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		min-width: 0;
		padding: 0 0 1.2rem;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}
	.en-gnb__sub a {
		padding: 1rem 0 1rem 1.6rem;
		font-size: 1.6rem;
	}

	.en-lang {
		margin: 2.4rem 0 0;
	}
	.en-lang li a {
		min-width: 0;
		padding-right: 2rem;
		text-align: left;
	}
	.en-lang li:last-child {
		padding-left: 2rem;
	}

	.sub_sbjt_box .sub_sbjt {
		font-size: 5.6rem;
	}

	.footer_wrap {
		padding: 4rem 3rem 1rem;
	}
	.footer_wrap > div[class*='er_box'] {
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem 0;
	}
	.footer_wrap .lower_box .copyright {
		padding-bottom: 2rem;
	}
}

@media all and (max-width: 768px) {
	:root {
		--gutter: 2rem;
	}

	.sub_sbjt_box {
		padding: 14rem 0 8rem;
	}
	.sub_sbjt_box .sub_sbjt {
		font-size: 4.8rem;
	}
	.sub_sbjt span {
		font-size: 1.8rem;
	}

	.sub_tab_box {
		gap: 0 1.8rem;
		padding: 2.4rem 0;
	}
	.sub_tab_box li a {
		font-size: 1.5rem;
	}
	.sub_tab_box li:not(:last-child)::after {
		right: -1.2rem;
		width: 4px;
		height: 4px;
	}

	.footer_wrap {
		padding: 3rem 2rem 1rem;
		border-radius: 14px;
	}
	.footer_wrap .upper_box .logo_footer,
	.footer_wrap .upper_box .logo_footer img {
		width: 20rem;
		height: auto;
	}
	.footer_wrap .lower_box .left_box li {
		align-items: flex-start;
		width: 100%;
		margin-right: 0;
	}
	.footer_wrap .lower_box .left_box li:not(:first-child, :last-child)::after {
		display: none;
	}
	.footer_wrap .lower_box .copyright {
		white-space: normal;
	}
}
