/* layout.css - 레이아웃 및 반응형 */
* {
	font-family: 'SCoreDream', 'Noto Sans KR', Arial, sans-serif !important;
	box-sizing: border-box;
}

li, ul {
	list-style: none;
}

ol, ul, p {
	padding: 0;
	margin: 0;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'SCoreDream', 'Noto Sans KR', Arial, sans-serif !important;
	background: #f7f9fa;
	color: #222;
}

body.desktop {
	display: flex;
}

button {
	background: transparent;
	border: none;
}

input, button, teatarea, select {
	font-family: 'SCoreDream', 'Noto Sans KR', Arial, sans-serif !important;
}

button {
	border: unset;
}

a {
	text-decoration: none;
}

.form-group label {
	position: relative;
}

label.required::after {
	content: "\F151";
	font-family: 'bootstrap-icons' !important;
	font-size: 7px;
	color: red;
	position: absolute;
	margin-left: 5px;
}

[type=button], [type=submit] {
	border-radius: 4px !important;
	font-size: 0.95rem !important;
	padding: 10px 24px;
}

.desktop-header {
	display: block !important;
	height: 100vh;
	background: #1752aa;
	width: 280px;
	position: fixed !important;
}

.desktop-header .main-header-nav>ul {
	flex-direction: column;
	padding: 0;
	gap: 0;
}

.desktop-header .main-header-nav>ul>li {
	padding: 25px 20px;
	text-align: center;
	width: 100%;
	position: relative;
	top: 0;
	left: 0;
}

.desktop-header .main-header-nav>ul>li>a {
	color: #fff;
	font-weight: 500;
}

.mobile-header {
	display: none;
}

.main-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 10;
}

.main-header-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.3rem;
	font-weight: 700;
	padding: 25px 0px;
	justify-content: center;
}

.main-header-nav>ul {
	display: flex;
	gap: 100px;
	list-style: none;
	margin-bottom: 0;
}

.main-header-nav ul.submenu {
	display: flex;
	list-style: none;
	margin: 0;
	left: 300px;
	top: 0;
	padding: 0;
	flex-direction: column;
	overflow: hidden;
}

.main-header-nav ul.submenu>li a {
	padding: 20px;
}

.main-header-nav>ul>li:hover>a {
	color: #ffd335;
}

.main-header-nav a {
	text-decoration: none;
	color: #000;
	font-weight: 500;
	font-size: 1.2rem;
}

.main-header-login {
	padding: 25px 40px;
	display: flex;
	flex-direction: column;
	border-top: 1px solid #ffff;
}

.main-header-login-btn {
	border-radius: 50px;
	padding: 15px 30px;
	font-size: 1rem;
	cursor: pointer;
	color: #fff;
	font-weight: 500;
	transition: all 0.3s ease;
}

.main-header-login-btn:hover {
	color: #fff;
	background: #0f3f87;
}

.main-header-menu-btn {
	display: none;
	background: none;
	border: none;
	width: 36px;
	height: 36px;
	background-image: url('/images/menu.svg');
	background-size: 60%;
	background-repeat: no-repeat;
	background-position: center;
}
/* 서브메뉴 스타일 */
.main-header-nav ul li {
	position: relative;
}

.submenu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background-color: white;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	width: 180px;
	padding: 8px 0;
	margin-top: 10px;
	list-style: none;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease, margin-top 0.2s
		ease;
}

.submenu li {
	padding: 0;
	margin: 0;
}

.submenu a {
	display: block;
	padding: 10px 16px;
	font-size: 0.95rem;
	color: #333;
	text-align: center;
	transition: background-color 0.2s;
	font-weight: 500;
}

.submenu a:hover {
	background-color: #e8f3fd;
	color: #1752aa;
}

.main-header-nav ul li:hover .submenu {
	opacity: 1;
	visibility: visible;
}

/* 호버 영역 확장을 위한 가상 요소 */
.has-submenu::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 20px;
	left: 0;
	bottom: -20px;
	background: transparent;
}

/* 모바일 헤더 스타일 */
.mobile-header {
	position: fixed;
	z-index: 100;
	width: 100%;
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	top: 0;
}

.mobile-header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	height: 60px;
}

.mobile-menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.mobile-menu-toggle span {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #333;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
	position: fixed;
	top: 56px;
	left: 0;
	width: 100%;
	height: calc(100vh - 56px);
	background-color: #fff;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 99;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.mobile-nav-open {
	transform: translateX(0);
}

.mobile-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	margin-top: 20px;
	overflow-y: auto;
}

.mobile-nav-list li {
	border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list>li:hover>a {
	color: #0d4aa6;
}

.mobile-nav-list a {
	display: block;
	padding: 16px 20px;
	font-size: 1.1rem;
	color: #333;
	text-decoration: none;
	font-weight: 500;
}

.mobile-nav-list>a {
	padding: 13px 20px;
}

.mobile-nav-footer {
	padding: 20px;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: center;
}

.mobile-login-btn {
	border-radius: 50px;
	padding: 10px 30px;
	cursor: pointer;
	color: #000000;
	font-weight: 500;
	transition: all 0.3s ease;
	background: #f5f7f9;
	border: 1px solid #e9e9e9;
}

.mobile-login-btn:hover {
	background: #e5eaef;
}

.desktop-header .mobile-login-btn {
	border-radius: 50px;
	padding: 15px 30px;
	font-size: 1rem;
	cursor: pointer;
	color: #fff;
	font-weight: 500;
	transition: all 0.3s ease;
	background:transparent;
	border:none;
}

.desktop-header .mobile-login-btn:hover{
	background:#0f3f87;;
}

/* 모바일 서브메뉴 스타일 */
.mobile-has-submenu>a {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mobile-has-submenu>a i {
	transition: transform 0.3s ease;
}

.mobile-has-submenu.active>a i {
	transform: rotate(180deg);
}

.mobile-submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	background-color: #f5f7f9;
}

.mobile-has-submenu.active .mobile-submenu {
	display: block;
}

.mobile-submenu li a {
	padding-left: 40px;
	font-size: 0.9rem;
	color: #555;
}

.mobile-submenu>li:hover>a {
	background: #e8edf1;
}

.main-footer {
	background: transparent;
	padding: 40px 0;
	width: 100%;
	margin-top: 40px;
	border-top: 1px solid #a1ccf1;
}

.footer-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.footer-top {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
}

.footer-logo {
	position: absolute;
	left: 0;
	margin-left: 7.5%;
	display: none;
}

.footer-logo img {
	width: 190px;
}

.footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-links a {
	text-decoration: none;
	font-size: 1.1rem;
	margin: 0 8px;
	color: #608cc9;
}

.footer-links span {
	color: #608cc9;
}

.footer-copyright {
	color: #afafaf;
	font-size: 1rem;
	text-align: center;
}

.footer-bottom-logo {
	display: none;
}

@media screen and (max-width: 1700px) {
}

@media screen and (max-width: 1420px) {
}

/* 반응형 스타일 */
@media screen and (max-width: 1199px) {
	main.container {
		padding: 30px 15px;
		max-width: 95%;
	}
	.mainVisual {
		padding: 40px 30px;
		margin-bottom: 30px;
	}
	.mainVisual h1 {
		font-size: 2rem;
	}
	.mainVisual p {
		font-size: 1.1rem;
	}
	.contents {
		padding: 30px;
		margin: 0;
	}
}

@media screen and (max-width: 1199px) {
	.desktop-header {
		display: none !important;
	}
	.mobile-header {
		display: block;
	}
	.mobile-header-logo img {
		height: 40px;
	}
	.footer-logo {
		display: none;
	}
	.footer-bottom-logo {
		display: block;
		margin-top: 30px;
	}
	.footer-bottom-logo img {
		width: 180px;
	}
}

@media ( max-width : 959px) {
}

@media ( max-width : 767px) {
	.main-header {
		flex-direction: row;
		padding: 12px 8px 0 8px;
	}
	.main-header-nav {
		display: none;
	}
	.main-header-menu-btn {
		display: block;
	}
	.main-footer {
		padding: 30px 0 30px 0;
		font-size: 0.95rem;
	}
	.main-footer-logo {
		font-size: 1.3rem;
	}
	.footer-links a {
		font-size: 0.7rem;
	}
	.footer-copyright {
		font-size: 0.7rem;
	}
	.footer-bottom-logo {
		margin-top: 20px;
	}
	.footer-bottom-logo img {
		width: 120px;
	}
}

/* 메인 컨텐츠 영역 */
main.container {
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	background: #fff;
}

/* 메인 비주얼 영역 */
.mainVisual {
	background: linear-gradient(147deg, #4c9bc2, #36a4b6, #00bb99);
	color: #fff;
	padding: 50px 40px;
	border-radius: 16px;
	margin-bottom: 40px;
	text-align: center;
	display: none;
}

.mainVisual h1 {
	font-size: 2.8rem;
	font-weight: 500;
	margin-bottom: 20px;
}

.mainVisual p {
	font-size: 1.2rem;
	font-weight: 400;
	opacity: 0.9;
}

/* 컨텐츠 영역 */
.contents {
	display: flow-root;
	min-height: 0;
	overflow: visible;
	background: #fff;
	border-radius: 16px;
	padding: 20px 40px;
	padding-bottom: 80px;
}

/* 로그인 관련 스타일 */
.login-required {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100% - 30px);
}

.login-message {
	text-align: center;
}

.login-message p {
	color: #ffffff;
	margin-bottom: 20px;
	font-size: 20px;
	font-weight: 500;
}

.login-message .login-btn {
	display: inline-block;
	padding: 10px 30px;
	background-color: #313131;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 500;
	transition: background-color 0.3s;
}

.login-message .login-btn:hover {
	background-color: #464646;
}


@media ( max-width : 767px) {
	main.container {
		padding: 0;
	}
	.mainVisual {
		padding: 30px 20px;
		margin-bottom: 20px;
		border-radius: 12px;
	}
	.mainVisual h1 {
		font-size: 1.8rem;
		margin-bottom: 15px;
	}
	.mainVisual p {
		font-size: 1rem;
	}
	.contents {
		padding: 20px;
		border-radius: 12px;
		padding-bottom: 60px;
	}
	.mobile-nav-list a {
		font-size: 1rem;
	}
}

.mobile-top-bar-inner{
    width:100%;
    display:flex;
    justify-content:flex-end;
    padding-right:20px;
}

.mobile-top-login-btn a{
    color:black;
    padding:8px 16px;
    border-radius:4px;
    text-decoration:none;
    font-size:14px;
	cursor: pointer;
	font-weight: 500;
}
