:root {
	--accent-color: #36C;
	--sub-color: #36C;
	--bg-color: #ffffff; 
	--secondary-bg: #f8fafc;
	--line-color: #f1f5f9;
	--text-main: #1e293b;
	--text-dim: #64748b;
	--ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

* { padding: 0; margin: 0; box-sizing: border-box; position: relative; -webkit-tap-highlight-color : transparent !important; }
label, button { cursor: pointer; }
html, body { overflow-x: hidden; }
body { background: var(--bg-color); color: var(--text-main); letter-spacing: -0.5px; word-break: keep-all; margin:0; font-size: 14px; }
a { text-decoration:none; color:inherit; }

/* 네비게이션 */
.mag-nav { 
	position: fixed; top: 0; left: 0; width: 100%; height: 70px; z-index: 1500;
	display: flex; justify-content: space-between; align-items: center; padding: 0 5%;
	background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0,0,0,0.05); transition: 0.3s;
}
.mag-nav .logo { font-weight: 900; font-size: 24px; color: #FFF; }
.mag-nav .menu-links > div { display: inline-block; }
.mag-nav .menu-links > div > a { text-decoration: none; color: rgba(255, 255, 255, 0.8); font-size: 16px; font-weight: 600; margin-left: 60px; transition: 0.3s; }
.mag-nav .menu-links > div > a.active { color: var(--accent-color); }
.mag-nav .menu-links > div > p { position: absolute; min-width: calc(100% - 60px); right: 0; top: 100%; background-color: var(--accent-color); color: #FFF; font-size: 14px; padding: 10px 15px; margin-top: 26px; display: none; margin-right: -5px; }
.mag-nav .menu-links > div > p > a { margin-bottom: 10px; opacity: 1; font-weight: 600; text-align: center; display: block; }
.mag-nav .menu-links > div > p > a:last-of-type { margin-bottom: 0; }
.mag-nav .menu-links > div > p > a:hover { opacity: 1; }
.mag-nav .menu-links > div > p > a.active { opacity: 1; }

/* 히어로 섹션 */
.mag-header { padding: 120px 20px 60px; text-align: center; background-color: var(--secondary-bg); }
.mag-category { font-weight: 700; font-size: 13px; color: var(--accent-color); margin-bottom: 10px; display: inline-block; letter-spacing: 5px; }
.mag-title { font-size: 48px; font-weight: bold; line-height: 1.2; color: #0f172a; }
.mag-subtitle { font-size: 14px; color: var(--text-dim); margin-top: 10px; }
.mag-subtitle > .btnLink { display: inline-block; background-color: var(--accent-color); color: #FFF; font-weight: bold; font-size: 14px; margin-top: 20px; height: 40px; line-height: 40px; padding: 0 20px; opacity: 1; transition: opacity 0.35s; box-shadow: 0 4px 12px rgba(51, 102, 204, 0.3); }
.mag-subtitle > .btnLink2 { display: inline-block; font-size: 13px; margin-top: 10px; opacity: 1; transition: opacity 0.35s; text-decoration: underline; }
.mag-subtitle > a:hover { opacity: 0.5; }

/* 메인 컨텐츠 리스트 */
.mag-inner-content { max-width: 900px; margin: 0 auto; padding: 60px 20px 100px; min-height: calc(100vh - 300px); }
.mag-list-wrap { display: flex; flex-direction: column; gap: 30px; }

.mag-list-item {
	position: relative; display: flex; gap: 30px; padding: 25px;
	background: #fff; border: 1px solid var(--line-color);
	transition: all 0.4s var(--ease-out);
}
.mag-list-item:hover { 
	transform: translateY(-5px); 
	box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
	border-color: var(--accent-color);
}

/* 링크 오버레이 (요청 사양) */
.link-overlay { position: absolute; top:0; left:0; width:100%; height:100%; z-index: 5; }

.list-thumb { 
	width: 260px; height: 180px; flex-shrink: 0; 
	overflow: hidden; background: #eee;
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.list-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.list-category-tag { font-size: 12px; font-weight: 700; color: var(--accent-color); margin-bottom: 8px; }
.list-subject { 
	font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--text-main); 
	margin-bottom: 12px; display: block;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-desc {
	font-size: 14px; color: var(--text-dim); line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	margin-bottom: 15px;
}
.list-meta { font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 10px; }

/* 페이징 */
.pg_wrap { margin-top: 50px; text-align: center; display: flex; justify-content: center; align-items: center; gap: 8px; }
.pg_page, .pg_current { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-weight: 700; font-size: 14px; transition: 0.3s; }
.pg_page { color: var(--text-dim); background: var(--secondary-bg); border: 1px solid var(--line-color); }
.pg_page:hover { background: #eee; color: var(--accent-color); border-color: var(--accent-color); }
.pg_current { background: var(--accent-color); color: #fff; box-shadow: 0 4px 12px rgba(51, 102, 204, 0.3); }

#footer { width: 100%; text-align: center; background-color: var(--secondary-bg); border-top: 1px solid var(--line-color); padding-top: 40px; padding-bottom: 100px; color: var(--text-dim); font-weight: 500; font-size: 13px; }

#pageContentsBox { width: 100%; line-height: 32px; }
#pageContentsBox img { max-width: 100%; height: auto !important; }

#navList { position: fixed; width: 100%; height: 100%; top: 0; right: -100%; z-index: 1501; background-color: rgba(0, 0, 0, 0); -webkit-transition: all 0.5s; transition: all 0.5s; display: none; }
#navList.on { background-color: rgba(0, 0, 0, 0.4); right: 0; }
#navList > div { position: absolute; width: 100%; height: 100%; background-color: #FFF; top: 0; right: 0; padding: 30px; padding-bottom: 0; -webkit-transition: all 0.5s; transition: all 0.5s; }
#navList > div > ul { width: 100%; float: left; margin-top: 30px; height: 100%; overflow-y: auto; padding-bottom: 60px; }
#navList > div > ul > li { width: 100%; float: left; margin-bottom: 20px; }
#navList > div > ul > li > a { float: left; font-size: 18px; color: #000; font-weight: bold; }
#navList > div > ul > li > a.active { color: var(--accent-color); }
#navList > div > ul > li > p { width: 100%; float: left; background-color: var(--secondary-bg); border: 1px solid var(--line-color); padding: 10px; margin-top: 5px; display: none; }
#navList > div > ul > li > p.active { display: block; }
#navList > div > ul > li > p > a { width: 100%; float: left; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: #666; }
#navList > div > ul > li > p > a:last-of-type { margin-bottom: 0; }
#navList > div > .closeBtn { width: 30px; height: 24px; cursor: pointer; position: absolute; top: 20px; right: 20px; }
#navList > div > .closeBtn > div { position: absolute; width: 100%; height: 2px; background-color: #000; right: 0; }
#navList > div > .closeBtn > div:nth-of-type(1) { top: 12px; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
#navList > div > .closeBtn > div:nth-of-type(2) { bottom: 10px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); }

#navBtn { width: 30px; height: 18px; vertical-align: middle; cursor: pointer; display: none; }
#navBtn > div { position: absolute; width: 100%; height: 2px; background-color: #FFF; right: 0; -webkit-transition: all 0.5s; transition: all 0.5s; }
#navBtn > div:nth-of-type(1) { top: 0; }
#navBtn > div:nth-of-type(2) { top: 50%; margin-top: -1px; }
#navBtn > div:nth-of-type(3) { bottom: 0; }

.mainBox { width: 100%; padding-bottom: 60px; }
.mainBox.bg { padding-top: 60px; background-color: #F5F5F7; margin-bottom: 60px; width: 100vw; left: 50%; transform: translateX(-50%); }
.mainBox.bg > div { padding-bottom: 0; padding-top: 0; min-height: 0; }

#csFrm { width: 100%; float: left; text-align: center; }
#csFrm > p { width: 100%; float: left; font-size: 15px; font-weight: bold; color: var(--text-main); margin-bottom: 10px; text-align: left; }
#csFrm > .inputBox { width: 100%; float: left; padding: 0 10px; height: 40px; border: 1px solid #DDD; font-size: 14px; color: #666; margin-bottom: 20px; resize: none; text-align: left; }
#csFrm > textarea.inputBox { height: 200px; padding: 10px; }
#csFrm > button { width: 300px; height: 60px; margin-top: 20px; border: 0; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); background: var(--accent-color); color: #fff; font-size: 18px; font-weight: bold; }

@media (max-width: 768px){
	body { font-size: 13px; }
	.mag-list-item { flex-direction: column; gap: 20px; padding: 15px; }
	.list-thumb { width: 100%; height: 220px; }
	
	.mag-nav .menu-links { display: none; }
	.mag-title { font-size: 36px; }
	.mag-subtitle { font-size: 13px; }
	.mag-inner-content { padding: 20px 20px 60px; }
	
	#pageContentsBox { line-height: 24px; }
	#footer { padding-top: 20px; }
	#navBtn { display: inline-block; }
	
	.mainBox { padding-bottom: 20px; }
	.mainBox.bg { padding-top: 20px; margin-bottom: 20px; }
	
	#csFrm > button { width: 220px; }
} 