@charset "utf-8";

/* ============================================
   Design E - Riverside Style Layout
   1080px fixed width, #0074d7 blue accent
   ============================================ */

:root {
	--point: #0074d7;
	--point-dark: #005bb5;
	--width: 1080px;
	--text: #222;
	--text-light: #666;
	--text-muted: #999;
	--border: #e5e5e5;
	--bg-light: #f5f5f5;
	--bg-section: #f9f9f9;
}

/* ---- Reset & Base ---- */
html, body {
	width: 100%;
	font-family: 'Noto Sans KR', 'Roboto', 'Malgun Gothic', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	word-break: keep-all;
	color: var(--text);
}
body {
	position: relative;
	right: 0;
	transition: all 0.3s ease-in-out;
}
body.active {
	position: fixed;
	right: 300px;
}
* { box-sizing: border-box; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--point); text-decoration: none; }
img { max-width: 100%; }

::selection { background: var(--point); color: #fff; text-shadow: none; }
::-moz-selection { background: var(--point); color: #fff; text-shadow: none; }

/* ---- Inner Container ---- */
.inner {
	position: relative;
	max-width: var(--width);
	margin: 0 auto;
	padding: 0 15px;
}

#wrap {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: #fff;
	transition: all 0.3s ease-in-out;
}

/* ---- Utility Classes ---- */
.ellipsis {
	display: block;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}
.line-clamp2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.line-clamp3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.line-clamp4 {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- Thumbnail ---- */
.thumbnail { overflow: hidden; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail div {
	transform: scale(1);
	transition: all 0.3s ease;
}
.thumbnail:hover div {
	transform: scale(1.05);
}

/* =============================================
   HEADER
   ============================================= */

/* 상단 유틸 바 */
.header-util {
	background: #f8f8f8;
	border-bottom: 1px solid var(--border);
	font-size: 12px;
	color: var(--text-muted);
}
.header-util .inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 32px;
}
.header-util a {
	color: var(--text-muted);
	font-size: 12px;
}
.header-util a:hover { color: var(--point); }
.header-util .bar {
	margin: 0 6px;
	color: #ddd;
}

/* 로고 영역 */
.header-logo {
	padding: 20px 0;
	text-align: center;
}
.header-logo .inner {
	display: flex;
	justify-content: center;
	align-items: center;
}
.logo-link img {
	max-height: 60px;
}

/* GNB 네비게이션 */
#gnb-wrap {
	background: #fff;
	border-top: 2px solid var(--text);
	border-bottom: 1px solid var(--border);
}
#gnb-wrap .inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#gnb {
	flex: 1;
}
#gnb > ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}
#gnb > ul > li.gnb {
	position: relative;
}
#gnb > ul > li.gnb > a {
	display: block;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
}
#gnb > ul > li.gnb > a:hover,
#gnb > ul > li.gnb:hover > a {
	color: var(--point);
}

/* 서브메뉴 드롭다운 */
#gnb > ul > li.gnb .lnb-wrap {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	min-width: 160px;
	background: #fff;
	border: 1px solid var(--border);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	padding: 8px 0;
}
#gnb > ul > li.gnb:hover .lnb-wrap {
	display: block;
}
#gnb .lnb-wrap li.lnb a {
	display: block;
	padding: 6px 16px;
	font-size: 13px;
	color: var(--text-light);
}
#gnb .lnb-wrap li.lnb a:hover {
	color: var(--point);
	background: #f8f8f8;
}

/* GNB 우측 (검색 + 햄버거) */
.gnb-right {
	display: flex;
	align-items: center;
	gap: 8px;
}
.gnb-right button {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	color: var(--text-light);
	padding: 8px;
}
.gnb-right button:hover { color: var(--point); }

/* =============================================
   SLIDE GNB (모바일 사이드 메뉴)
   ============================================= */
#slide-gnb {
	position: fixed;
	right: -300px;
	top: 0;
	width: 300px;
	height: 100%;
	z-index: 100;
	overflow-y: auto;
	background: #333;
	transition: all 0.3s ease-in-out;
}
#slide-gnb.active {
	right: 0;
}
#slide-gnb ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
#slide-gnb > ul:first-child {
	padding: 15px;
	border-bottom: 1px solid #444;
}
#slide-gnb .btn-sign,
#slide-gnb .btn-login {
	background: none;
	border: none;
	color: #ccc;
	font-size: 13px;
	cursor: pointer;
}
#slide-gnb .btn-sign:hover,
#slide-gnb .btn-login:hover { color: #fff; }
#slide-gnb .bar { color: #555; margin: 0 8px; }
#slide-gnb .hamburger-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	width: 30px;
	height: 30px;
}
#slide-gnb .hamburger-close::before { content: '\00d7'; }
#slide-gnb li.gnb > a {
	display: block;
	padding: 12px 20px;
	color: #ddd;
	font-size: 14px;
	border-bottom: 1px solid #3d3d3d;
}
#slide-gnb li.gnb > a:hover { color: #fff; background: #3d3d3d; }
#slide-gnb .lnb-wrap {
	display: none;
	background: #2a2a2a;
}
#slide-gnb .lnb-wrap li.lnb a {
	display: block;
	padding: 8px 20px 8px 35px;
	color: #aaa;
	font-size: 13px;
}
#slide-gnb .lnb-wrap li.lnb a:hover { color: #fff; }

#Mask {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 99;
}

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
	position: relative;
	padding: 12px 0;
	margin-bottom: 15px;
	border-bottom: 2px solid var(--text);
}
.section-title h2 {
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.4;
}

/* =============================================
   SIDEBAR (공통)
   ============================================= */
.sidebar {
	width: 280px;
	flex-shrink: 0;
	padding-left: 30px;
	border-left: 1px solid var(--border);
	position: sticky;
	top: 10px;
	align-self: flex-start;
}
.widget { margin-bottom: 30px; }
.widget-title {
	padding: 10px 0;
	border-bottom: 2px solid var(--text);
	margin-bottom: 12px;
}
.widget-title h3 {
	font-size: 16px;
	font-weight: 700;
}

/* 인기기사 랭킹 */
.news-rank a {
	display: flex;
	align-items: center;
	height: 30px;
	line-height: 30px;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--text-light);
}
.news-rank a:last-child { margin-bottom: 0; }
.news-rank a i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	background: #bbb;
	color: #fff;
	margin-right: 8px;
	font-size: 12px;
	font-weight: 700;
	font-style: normal;
}
.news-rank a.rank i {
	background: var(--point);
}
.news-rank a span {
	flex: 1;
	min-width: 0;
}

/* 배너 */
.ad-banner {
	margin-bottom: 12px;
}
.ad-banner a { display: block; }
.ad-banner img { width: 100%; }

/* =============================================
   FOOTER
   ============================================= */

/* 롤링 배너 */
.rolling-banner {
	border-top: 1px solid var(--border);
	padding: 10px 0;
}
.rolling-banner .inner {
	position: relative;
	height: 50px;
	overflow: hidden;
}
.rolling-banner strong {
	display: block;
	position: absolute;
	cursor: pointer;
	z-index: 2;
	background: #fff;
	width: 24px;
	text-align: center;
	line-height: 50px;
	color: var(--text-muted);
}
.rolling-banner strong.prev_btn { top: 0; left: 0; }
.rolling-banner strong.next_btn { top: 0; right: 0; }
.rolling-banner .family_site {
	margin: 0 30px;
	width: auto !important;
	height: 50px;
}
.rolling-banner .family_site span {
	display: inline-block;
	margin: 5px 8px;
}
.rolling-banner .family_site span img {
	width: auto;
	height: 40px;
}

/* 푸터 */
#footer {
	background: #fff;
	color: #333;
	padding: 0;
	font-size: 12px;
	line-height: 1.8;
	border-top: 2px solid #222;
}

/* 풋터 상단 네비 */
.footer-top {
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
	padding: 12px 0;
}
.footer-nav {
	max-width: var(--width);
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
}
.footer-nav a {
	color: #555;
	font-size: 13px;
}
.footer-nav a:hover { color: var(--point); }
.footer-nav a strong {
	color: var(--point);
	font-weight: 700;
}

/* 풋터 중간 (로고 + 정보) */
.footer-bottom {
	display: flex;
	align-items: flex-start;
	gap: 25px;
	padding: 25px 0;
}
#footer .f-logo {
	flex-shrink: 0;
}
#footer .f-logo img {
	max-height: 45px;
}
#footer .f-info {
	color: #666;
	font-size: 12px;
	line-height: 1.9;
	padding: 0;
	margin: 0;
}
#footer .f-info p { margin: 0 0 2px 0; line-height: 1.6; }
#footer .f-info p.f-gap { height: 6px; margin: 0; }
#footer .f-info a { color: #333; }
#footer .f-info a:hover { color: var(--point); }

/* 풋터 하단 카피라이트 */
.footer-copy {
	border-top: 1px solid #e5e5e5;
	padding: 15px 0;
	color: #999;
	font-size: 11px;
	text-align: center;
}

/* 스크롤 탑 */
.scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
}
.scroll-top a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--point);
	color: #fff;
	border-radius: 4px;
	font-size: 14px;
}
.scroll-top a:hover {
	background: var(--point-dark);
	color: #fff;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
	.inner { padding: 0 15px; }
}

@media (max-width: 960px) {
	#gnb > ul > li.gnb > a {
		padding: 10px 8px;
		font-size: 13px;
	}
}

@media (max-width: 768px) {
	#gnb { display: none; }
	.gnb-hamburger { display: block !important; }

	.sidebar {
		width: 100%;
		padding-left: 0;
		margin-top: 40px;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.header-logo { padding: 12px 0; }
	.logo-link img { max-height: 40px; }
}