#header {
	/* 초기화 또는 공통 헤더 스타일 */
}

.navbar {
	background: #fff;
	width: 100%;
	z-index: 9999;
	border-bottom: 1px solid #ccc;
	/* position: fixed; */
}

.navbar_con {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.navbar_con .logo {
	font-size: 1.5em;
	font-weight: bold;
	color: #333;
	width: 240px;
	display: flex;
}

.nav-links {
	display: flex;
}

.nav-links ul {
	display: flex;
}

.nav-links ul li {
	position: relative;
	min-width: 200px;
	text-align: center;
}

.nav-links ul li a {
	display: block;
	padding: 30px 0;
	color: #333;
	transition: background-color 0.3s ease;
}

.nav-links ul li a:hover {
	background-color: #323993;
	color: #FFF;
}

.nav_btn {
	display: flex;
	align-items: center;
	margin: 0 0 0 30px;
}

.nav_btn a {
	display: flex;
	align-items: center;
	padding: 13px 20px;
	background: #323993;
	color: #FFF;
	border-radius: 5px;
}

.nav_btn i {
	margin-right: 6px;
	font-size: 1.3rem;
}

/* --- Submenu Styles --- */
.has-submenu {
	font-size: 1.25rem;
	font-weight: 600;
}

.submenu li a:hover {
	background-color: #666;
}

.has-submenu:hover > a {
	background-color: #323993;
	color: #FFF;
}

.has-submenu .submenu {
	/* 수정된 부분: 호버 상태와 동일한 폰트 크기를 명시적으로 지정합니다. */
	font-size: 1rem;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #323993;
	min-width: 150px;
	z-index: 10;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	display: flex;
    flex-direction: column;
}

.has-submenu:hover .submenu {
	opacity: 1;
	visibility: visible;
	/* font-size: 1rem; // 이 부분은 이제 필요하지 않습니다. */
}

.has-submenu .submenu li {
	text-align: center;
}

.has-submenu .submenu li a {
	padding: 15px 0;
	color: #fff;
	white-space: nowrap;
}

.has-submenu .submenu li a:hover {
	background-color: #5b61a9;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	position: relative;
	z-index: 1001;
}

.hamburger-menu span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #333;
	margin: 5px 0;
	transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
	opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1200px) {
	.navbar {
		position: fixed;
		margin: 0 auto;
	}
	.navbar_con .logo {
		padding-left: 2.5%;
	}
	.navbar_con {
		height: 80px;
	}
	.hamburger-menu {
		display: block;
	}
	.nav-links {
		display: none;
		flex-direction: column;
		width: 100%;
		background-color: #323993;
		position: absolute;
		top: 80px;
		left: 0;
		padding: 0;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	}
	.nav-links.active {
		display: flex;
	}
	.nav-links ul {
		flex-direction: column;
		width: 100%;
	}
	.nav-links ul li {
		width: 100%;
		text-align: center;
		border-bottom: 1px solid #323993;
	}
	.nav-links ul li:last-child {
		border-bottom: none;
	}
	.nav-links ul li a {
		padding: 15px;
		color: #FFF;
		font-size: 1.2rem;
	}
	.has-submenu:hover .submenu {
		display: none;
		opacity: 0;
		visibility: hidden;
	}
	.nav-links.active .submenu {
		display: none;
		position: static;
		width: 100%;
		background-color: #5b61a9;
		box-shadow: none;
		padding-left: 0;
		opacity: 1;
		visibility: visible;
	}
	.has-submenu.active > .submenu {
		display: block;
	}
	.nav_btn {
		display: none;
	}
}

@media (max-width: 768px) {
	.navbar_con .logo {
		font-size: 1.5em;
		font-weight: bold;
		color: #333;
		width: 200px;
	}
}


/* ============================================== */
/* Footer Area                    */
/* ============================================== */
#footer {
	padding-bottom: 40px;
	background: #eaeef4;
	border-top: 1px solid #e7e7e7;
}

#footer .f_center {
	display: flex;
	justify-content: space-between;
	width: 1240px;
	margin: 0px auto;
}

#footer .f_c_left {
	margin-top: 30px;
}

#footer .f_menu {
	margin-bottom: 20px;
}

#footer .f_menu:after {
	content: "";
	display: block;
	clear: both;
}

#footer .f_menu > li {
	float: left;
}

#footer .f_menu > li:nth-child(1) > a {
	color: #364995;
}

#footer .f_menu > li > a {
	color: #333;
	font-weight: 500;
	font-size: 0.875rem;
	transition: all .5s;
}

#footer .f_menu > li:hover > a {
	text-decoration: underline;
}

#footer .f_menu > li:after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 12px;
	background: #555;
	margin: 0px 10px;
}

#footer .f_menu > li:last-child:after {
	display: none;
}

#footer .address {
	float: left;
	color: #333;
	font-size: 0.875rem;
	line-height: 1.8;
	padding: 0 100px;
}

#footer .f_logo {
	float: left;
	margin-bottom: 25px;
}

#footer .mobile_address {
	display: none; /* 기본적으로 숨김 */
}

#footer .f_c_right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-top: 25px;
}

#footer .f_c_r_top {
	display: flex;
	margin-bottom: 10px;
}

#footer .f_c_r_top ul {
	display: flex;
}

#footer .f_c_r_top li {
	display: flex;
	margin-left: 10px;
}

#footer .f_sns {
	margin-right: 20px;
}

#footer .f_sns:after {
	content: "";
	display: block;
	clear: both;
}

#footer .f_sns > li {
	float: left;
	margin-right: 10px;
}

#footer .f_sns > li:last-child {
	margin-right: 0px;
}

#footer .f_c_r_bot {
	/* 스타일 필요 시 추가 */
}

#footer .f_logo_wrap {
	display: flex;
	align-items: center;
}

#footer .f_logo_wrap > li {
	margin-right: 10px;
}

#footer .f_logo_wrap > li:last-child {
	margin-right: 0px;
}


/* ============================================== */
/* Media Queries                  */
/* ============================================== */

/* --- Max Width: 1200px --- */
@media (max-width: 1200px) {
	.navbar {
		position: fixed;
		margin: 0 auto;
	}
	.navbar_con .logo {
		padding-left: 2.5%;
	}
	.navbar_con {
		height: 80px;
	}
	.hamburger-menu {
		display: block; /* 햄버거 메뉴 보이기 */
	}
	.nav-links {
		display: none; /* PC 메뉴 숨기기 */
		flex-direction: column;
		width: 100%;
		background-color: #323993;
		position: absolute;
		top: 80px;
		left: 0;
		padding: 0;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	}
	.nav-links.active {
		display: flex; /* 활성화 시 메뉴 보이기 */
	}
	.nav-links ul {
		flex-direction: column;
		width: 100%;
	}
	.nav-links ul li {
		width: 100%;
		text-align: center;
		border-bottom: 1px solid #323993;
	}
	.nav-links ul li:last-child {
		border-bottom: none;
	}
	.nav-links ul li a {
		padding: 15px;
		color: #FFF;
		font-size: 1.2rem;
	}
	.has-submenu:hover .submenu {
		display: none; /* 모바일에서 hover 서브메뉴 숨김 */
		opacity: 0;
		visibility: hidden;
	}
	.nav-links.active .submenu {
		display: none; /* 기본적으로 서브메뉴 숨김 */
		position: static;
		width: 100%;
		background-color: #5b61a9;
		box-shadow: none;
		padding-left: 0;
		opacity: 1;
		visibility: visible;
	}
	.has-submenu.active > .submenu {
		display: block; /* 활성화된 서브메뉴 보이기 */
	}
	.nav_btn {
		display: none; /* 모바일에서 버튼 숨김 */
	}
	#footer {
		padding-bottom: 30px;
	}
	#footer .address {
		padding: 0 30px;
	}
}

@media screen and (max-width: 1600px) {
	#footer .f_center {
		width: 95%; /* 푸터 중앙 영역 너비 조절 */
	}
}

@media screen and (max-width: 1330px) {
	#footer .f_c_r_top {
		flex-direction: column-reverse; /* 푸터 오른쪽 상단 요소 순서 변경 */
		align-items: flex-end;
	}
	#footer .f_sns {
		margin-top: 15px;
	}
}

@media screen and (max-width: 1024px) {
	#footer {
		padding-top: 30px;
	}
	#footer .f_center {
		flex-direction: column; /* 푸터 중앙 영역 세로 정렬 */
		align-items: center;
	}
	#footer .f_c_left {
		margin-top: 0px;
	}
	#footer .f_c_right {
		margin-top: 0px;
		align-items: center;
	}
	#footer .f_c_r_top {
		align-items: center;
	}
	#footer .f_sns {
		margin-right: 0px;
	}
	#footer .address {
		padding: 0;
	}
	#footer .pc_address {
		display: none; /* PC 주소 숨김 */
	}
	#footer .mobile_address {
		display: block; /* 모바일 주소 보이기 */
		margin-top: 15px;
		text-align: center;
		line-height: 1.5;
	}
}

@media (max-width: 768px) {
	.navbar_con .logo {
		font-size: 1.5em;
		font-weight: bold;
		color: #333;
		width: 200px; /* 로고 너비 축소 */
	}
	#footer {
		padding: 20px 0px;
	}
}

@media screen and (max-width: 650px) {
	#footer .f_menu {
		text-align: center;
	}
	#footer .f_menu > li {
		float: none;
		display: inline-block; /* 푸터 메뉴 항목 가로 정렬 */
	}
}

@media screen and (max-width: 600px) {
	#footer .mobile_address {
		font-size: 0.8125rem;
	}
}

@media screen and (max-width: 524px) {
	#footer .mobile_address {
		font-size: 0.8125rem;
	}
	#footer .mz_link h4 a {
		padding: 0px 0px 0px 10px;
	}
	#footer .f_sns > li > a > img {
		width: 30px;
	}
	#footer .f_logo_wrap > li:nth-child(1) > a > img {
		width: 90px;
	}
	#footer .f_logo_wrap > li:nth-child(2) > a > img {
		width: 50px;
	}
}