@charset "utf-8";

/* ============================================
   Design E - Sub Page Styles (List, View, Search)
   강변일보 스타일 참고
   ============================================ */

#sub-container {
	padding-top: 0;
}

/* ---- Category Header ---- */
.category-header {
	background: #fff;
	padding: 25px 0 0;
	border-bottom: 2px solid var(--text);
}
.cate-info {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
}
.cate-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--text);
}
.cate-count {
	font-size: 13px;
	color: var(--text-muted);
}
.cate-count strong {
	color: var(--point);
	font-weight: 700;
}

/* 실시간 뉴스 티커 */
.realtime-news {
	background: var(--bg-light);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.realtime-news .inner {
	display: flex;
	align-items: center;
	height: 42px;
	overflow: hidden;
}
.rt-label {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--point);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	margin-right: 15px;
	white-space: nowrap;
}
.rt-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	min-width: 0;
	height: 38px;
	overflow: hidden;
}
.rt-list li {
	height: 38px;
	line-height: 38px;
}
.rt-list li a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--text);
}
.rt-list li a:hover {
	color: var(--point);
}
.rt-time {
	flex-shrink: 0;
	font-size: 12px;
	color: var(--text-muted);
}
.rt-title {
	flex: 1;
	min-width: 0;
}


/* ---- Section List (기사 목록 + 사이드바) ---- */
#section-list {
	padding: 25px 0 50px;
}
#section-list > .inner {
	display: flex;
	gap: 0;
}

.list-area {
	flex: 1;
	min-width: 0;
	padding-right: 30px;
}


/* ---- List Hero (첫번째 기사 대형) ---- */
.list-hero {
	margin-bottom: 25px;
	padding-bottom: 25px;
	border-bottom: 1px solid var(--border);
}
.list-hero a {
	display: block;
}
.hero-thumb {
	overflow: hidden;
	margin-bottom: 15px;
}
.hero-thumb div {
	transition: transform 0.3s;
}
.list-hero a:hover .hero-thumb div {
	transform: scale(1.03);
}
.hero-text h3 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 8px;
	color: var(--text);
}
.hero-text .desc {
	font-size: 14px;
	color: var(--text-light);
	line-height: 1.7;
	margin-bottom: 10px;
}
.hero-meta {
	font-size: 12px;
	color: var(--text-muted);
}
.hero-meta em {
	font-style: normal;
}
.hero-meta em + em::before {
	content: '|';
	margin: 0 8px;
	color: #ddd;
}


/* ---- Article List ---- */
.article-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.article-list > li {
	border-bottom: 1px solid var(--border);
}
.article-list > li > a {
	display: flex;
	gap: 16px;
	padding: 16px 0;
}
.article-list > li > a:hover h4 {
	color: var(--point);
}
.list-thumb {
	width: 180px;
	flex-shrink: 0;
	overflow: hidden;
}
.list-thumb div {
	transition: transform 0.3s;
}
.article-list > li > a:hover .list-thumb div {
	transform: scale(1.05);
}
.list-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.list-text h4 {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 6px;
	color: var(--text);
	transition: color 0.2s;
}
.list-text .desc {
	font-size: 13px;
	color: var(--text-light);
	line-height: 1.6;
	margin-bottom: 8px;
}
.list-meta {
	font-size: 12px;
	color: var(--text-muted);
}
.list-meta em {
	font-style: normal;
}
.list-meta .writer + .date::before {
	content: '|';
	margin: 0 8px;
	color: #ddd;
}

.list-none {
	text-align: center;
	padding: 80px 0;
	color: var(--text-muted);
	font-size: 14px;
}

/* ---- Paging ---- */
.paging-wrap {
	text-align: center;
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px solid var(--border);
}
#shop-list-pagenation .inner {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}
#shop-list-pagenation a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	font-size: 14px;
	color: var(--text-light);
	border: 1px solid transparent;
	border-radius: 4px;
	transition: all 0.15s;
}
#shop-list-pagenation a:hover {
	background: var(--bg-light);
	border-color: var(--border);
	color: var(--point);
}
#shop-list-pagenation a.on {
	background: var(--point);
	color: #fff;
	border-color: var(--point);
	font-weight: 700;
}
#shop-list-pagenation a.btn_next,
#shop-list-pagenation a.btn_nnext,
#shop-list-pagenation a.btn_prev,
#shop-list-pagenation a.btn_pprev {
	font-size: 12px;
	color: var(--text-muted);
	border: 1px solid var(--border);
}
#shop-list-pagenation a.btn_next:hover,
#shop-list-pagenation a.btn_nnext:hover,
#shop-list-pagenation a.btn_prev:hover,
#shop-list-pagenation a.btn_pprev:hover {
	background: var(--point);
	color: #fff;
	border-color: var(--point);
}


/* =============================================
   VIEW PAGE
   ============================================= */

/* 스크롤 진행 바 */
#scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 9999;
	background: transparent;
}
.progress-bar {
	height: 100%;
	width: 0;
	background: var(--point);
	transition: width 0.1s;
}

/* 카테고리 링크 */
.view-category {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--point);
	margin-bottom: 12px;
	padding: 3px 10px;
	border: 1px solid var(--point);
	border-radius: 2px;
}
.view-category:hover {
	background: var(--point);
	color: #fff;
}

.view-wrap {
	padding: 25px 0 50px;
}
.view-wrap > .inner {
	display: flex;
}
.view-content {
	flex: 1;
	min-width: 0;
	padding-right: 30px;
	border-right: 1px solid var(--border);
}

/* 기사 헤더 */
.view-header {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}
.view-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 10px;
	color: var(--text);
}
.view-subtitle {
	font-size: 16px;
	color: var(--text-light);
	line-height: 1.5;
	margin-bottom: 20px;
}

/* 기자 정보 */
.view-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}
.reporter-area {
	display: flex;
	align-items: center;
	gap: 10px;
}
.reporter-img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: #f0f0f0;
}
.reporter-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.reporter-detail strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
}
.reporter-detail .date {
	font-size: 12px;
	color: var(--text-muted);
}

/* 도구 버튼 */
.view-tools {
	display: flex;
	align-items: center;
	gap: 6px;
	position: relative;
}
.view-tools button {
	background: none;
	border: 1px solid var(--border);
	cursor: pointer;
	padding: 6px 10px;
	font-size: 13px;
	color: var(--text-light);
	border-radius: 3px;
}
.view-tools button:hover {
	border-color: var(--point);
	color: var(--point);
}
#font_ul {
	position: absolute;
	top: 100%;
	right: 0;
	background: #fff;
	border: 1px solid var(--border);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	z-index: 10;
	padding: 4px;
	display: flex;
	gap: 2px;
}
#font_ul button {
	border: none;
	padding: 6px 12px;
	font-size: 13px;
}
#font_ul button:hover {
	background: var(--point);
	color: #fff;
}

/* SNS 공유 */
.sns-share {
	display: flex;
	gap: 6px;
}
.sns-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--border);
	border-radius: 50%;
	font-size: 14px;
	color: var(--text-light);
}
.sns-share a:hover {
	background: var(--point);
	color: #fff;
	border-color: var(--point);
}

/* 기사 본문 */
.view-body {
	font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
	font-size: 16px;
	line-height: 1.9;
	color: #333;
	word-break: keep-all;
}
.view-body p,
.view-body div {
	margin-bottom: 15px;
}
.view-body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 10px auto;
}
.view-body figcaption {
	font-size: 13px;
	color: var(--text-muted);
	text-align: center;
	padding: 8px 0;
}
.view-body .video-wrap {
	text-align: center;
	margin-bottom: 20px;
}
.view-body iframe {
	max-width: 100%;
}

.copyright-notice {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-muted);
	text-align: center;
}

/* 기자 하단 카드 */
.reporter-bottom {
	margin-top: 30px;
	padding: 20px;
	background: var(--bg-light);
	border: 1px solid var(--border);
}
.reporter-card {
	display: flex;
	align-items: center;
	gap: 12px;
}
.reporter-card .reporter-img {
	width: 50px;
	height: 50px;
}
.reporter-info strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
}
.reporter-info a {
	font-size: 12px;
	color: var(--text-muted);
}
.reporter-info a:hover { color: var(--point); }

/* 관련기사 */
.related-articles {
	margin-top: 30px;
	padding: 20px 0;
	border-top: 2px solid var(--text);
}
.related-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 12px;
}
.related-articles ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.related-articles li {
	padding: 6px 0;
	border-bottom: 1px solid var(--border);
}
.related-articles li:last-child { border-bottom: none; }
.related-articles li a {
	font-size: 14px;
	color: var(--text);
	display: block;
	padding-left: 12px;
	position: relative;
}
.related-articles li a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	background: var(--point);
	border-radius: 50%;
	transform: translateY(-50%);
}
.related-articles li a:hover {
	color: var(--point);
}

/* 댓글 영역 */
#div_comment {
	margin-top: 30px;
}
#comments .news-view-btn {
	text-align: center;
	margin: 30px 0;
	padding-top: 30px;
	border-top: 1px solid var(--border);
}
#comments .news-view-btn button.btn-comments {
	display: inline-block;
	padding: 12px 40px;
	background: var(--point);
	color: #fff;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
#comments .all-comments h5 {
	font-size: 15px;
	font-weight: 700;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--text);
	margin-bottom: 15px;
}


/* ---- no_img ---- */
#sub-container div.no_img {
	background: #f0f0f0 url(/images/C/common/no_img.png) no-repeat center center;
	background-size: 40%;
}


/* ---- Responsive ---- */
@media (max-width: 768px) {
	#section-list > .inner { flex-direction: column; }
	.list-area { padding-right: 0; }

	.view-wrap > .inner { flex-direction: column; }
	.view-content {
		padding-right: 0;
		border-right: 0;
	}

	.list-hero .hero-thumb div { height: 250px !important; }
	.list-thumb { width: 120px; }

	.cate-title { font-size: 20px; }
	.view-title { font-size: 22px; }
	.view-body { font-size: 15px; }
}

@media (max-width: 480px) {
	.article-list > li > a {
		flex-direction: column;
	}
	.list-thumb {
		width: 100%;
	}
	.list-hero .hero-thumb div { height: 200px !important; }
}