@charset "utf-8";

/* ============================================
   Design E - Main Page Styles
   ============================================ */

#main-container {
	padding: 0;
}


/* ---- Section 01 : Top News ---- */
#section01 {
	padding: 25px 0 30px;
	border-bottom: 1px solid var(--border);
}
#section01 .section-title {
	display: none;
}

.top-news-grid {
	display: flex;
	gap: 25px;
}
.top-left {
	flex: 1;
	min-width: 0;
}
.top-right {
	width: 330px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* 히어로 기사 */
.top-hero a { display: block; }
.top-hero .thumbnail { margin-bottom: 14px; }
.top-hero .hero-text h3 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 8px;
	color: var(--text);
	transition: color var(--transition);
}
.top-hero a:hover .hero-text h3 { color: var(--point); }
.top-hero .hero-text p {
	font-size: 14px;
	color: var(--text-light);
	line-height: 1.7;
}

/* 서브 기사 */
.top-sub-item a { display: block; }
.top-sub-item .thumbnail { margin-bottom: 10px; }
.top-sub-item h4 {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	margin-bottom: 4px;
	color: var(--text);
	transition: color var(--transition);
}
.top-sub-item a:hover h4 { color: var(--point); }
.top-sub-item .desc {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.5;
}

/* 속보 리스트 */
.breaking-list {
	margin-top: 20px;
	padding: 15px 0 0;
	border-top: 1px solid var(--border);
}
.breaking-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.breaking-list li {
	padding: 7px 0;
	border-bottom: 1px solid var(--border-light);
}
.breaking-list li:last-child { border-bottom: 0; }
.breaking-list li a {
	display: flex;
	align-items: center;
	gap: 10px;
}
.breaking-list li .time {
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
}
.breaking-list li strong {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	min-width: 0;
	color: var(--text);
	transition: color var(--transition);
}
.breaking-list li a:hover strong { color: var(--point); }


/* ---- Section 02 : Content + Sidebar ---- */
#section02 {
	padding: 25px 0 0;
}
#section02 > .inner {
	display: flex;
	gap: 0;
}

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

/* 주요뉴스 메인 기사 */
.main-article {
	margin-bottom: 20px;
}
.main-article a { display: block; }
.main-article .thumbnail { margin-bottom: 12px; }
.main-article h4 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	margin-bottom: 6px;
	color: var(--text);
	transition: color var(--transition);
}
.main-article a:hover h4 { color: var(--point); }
.main-article .desc {
	font-size: 13px;
	color: var(--text-light);
	line-height: 1.7;
}

/* 기사 그리드 (4열) */
.article-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	list-style: none;
	padding: 0;
	margin: 0 0 25px 0;
	padding-bottom: 25px;
	border-bottom: 1px solid var(--border);
}
.article-grid .article-item {
	width: calc(25% - 12px);
}
.article-grid .article-item a { display: block; }
.article-grid .article-item .thumbnail {
	margin-bottom: 8px;
}
.article-grid .article-item strong {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text);
	transition: color var(--transition);
}
.article-grid .article-item a:hover strong { color: var(--point); }

/* 하위 섹션 (디자인 3,4,5) */
.sub-sections {
	display: flex;
	gap: 25px;
}
.sub-left {
	flex: 1;
	min-width: 0;
	padding-right: 25px;
	border-right: 1px solid var(--border);
}
.sub-right {
	width: 280px;
	flex-shrink: 0;
}

/* 서브 기사 (썸네일 + 텍스트) */
.sub-article {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border-light);
}
.sub-article:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}
.sub-article a {
	display: flex;
	gap: 14px;
}
.sub-article .thumb-wrap {
	width: 120px;
	flex-shrink: 0;
}
.sub-article .text-wrap {
	flex: 1;
	min-width: 0;
}
.sub-article strong {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	margin-bottom: 4px;
	display: block;
	color: var(--text);
	transition: color var(--transition);
}
.sub-article a:hover strong { color: var(--point); }
.sub-article .desc {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.5;
}

/* 헤드라인 리스트 */
.headline-list {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--border);
}
.headline-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.headline-list li {
	padding: 6px 0;
	padding-left: 12px;
	position: relative;
}
.headline-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--point);
}
.headline-list li a {
	font-size: 13px;
	color: var(--text);
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.headline-list li a:hover { color: var(--point); }

/* 사이드 섹션 (디자인 5) */
.side-section {
	margin-bottom: 25px;
}
.side-article {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-light);
}
.side-article:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}
.side-article a {
	display: flex;
	gap: 10px;
}
.side-article .thumb-wrap {
	width: 90px;
	flex-shrink: 0;
}
.side-article .text-wrap {
	flex: 1;
	min-width: 0;
}
.side-article strong {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	display: block;
	margin-bottom: 3px;
	color: var(--text);
	transition: color var(--transition);
}
.side-article a:hover strong { color: var(--point); }
.side-article .desc {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.4;
}

/* 하단 2단 (최신기사 + 많이 본 뉴스) */
.bottom-dual {
	display: flex;
	gap: 25px;
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid var(--border);
}
.bottom-left {
	flex: 1;
	min-width: 0;
	padding-right: 25px;
	border-right: 1px solid var(--border);
}
.bottom-right {
	width: 280px;
	flex-shrink: 0;
}

/* 최신기사 한줄 리스트 */
.latest-news-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.latest-news-list li {
	border-bottom: 1px solid var(--border-light);
}
.latest-news-list li:last-child { border-bottom: 0; }
.latest-news-list li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}
.latest-news-list li .date {
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
}
.latest-news-list li strong {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	min-width: 0;
	color: var(--text);
	transition: color var(--transition);
}
.latest-news-list li a:hover strong { color: var(--point); }

/* 많이 본 뉴스 랭킹 */
.popular-ranking {
	list-style: none;
	padding: 0;
	margin: 0;
}
.popular-ranking .rank-item {
	border-bottom: 1px solid var(--border-light);
}
.popular-ranking .rank-item:last-child { border-bottom: 0; }
.popular-ranking .rank-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}
.popular-ranking .rank-item em {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	font-size: 12px;
	font-weight: 700;
	font-style: normal;
	color: var(--text-muted);
	background: #eee;
	border-radius: 2px;
}
.popular-ranking .rank-item.top em {
	background: var(--point);
	color: #fff;
}
.popular-ranking .rank-item span {
	flex: 1;
	font-size: 13px;
	min-width: 0;
	color: var(--text);
	line-height: 1.4;
	transition: color var(--transition);
}
.popular-ranking .rank-item a:hover span { color: var(--point); }

/* no_img */
#section01 div.no_img,
#section02 div.no_img,
#section03 div.no_img,
#section04 div.no_img {
	background: #f0f0f0 url(/images/C/common/no_img.png) no-repeat center center;
	background-size: 40%;
}


/* =============================================
   Section 03 : 포토 갤러리
   ============================================= */
.photo-section {
	background: #1e1e1e;
	padding: 30px 0 40px;
}
.photo-section .section-title.light {
	border-bottom-color: #444;
}
.photo-section .section-title.light h2 {
	color: #fff;
}
.photo-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.photo-card {
	width: calc(25% - 9px);
}
.photo-card a { display: block; }
.photo-card .photo-thumb {
	overflow: hidden;
	margin-bottom: 8px;
}
.photo-card .photo-thumb div {
	transition: transform 0.35s ease;
}
.photo-card a:hover .photo-thumb div {
	transform: scale(1.06);
}
.photo-card strong {
	font-size: 13px;
	font-weight: 500;
	color: #bbb;
	line-height: 1.5;
	transition: color var(--transition);
}
.photo-card a:hover strong { color: #fff; }


/* ---- Responsive ---- */
@media (max-width: 960px) {
	.top-news-grid { flex-direction: column; }
	.top-right {
		width: 100%;
		flex-direction: row;
		gap: 15px;
	}
	.top-sub-item { flex: 1; }

	.sub-sections { flex-direction: column; }
	.sub-left {
		padding-right: 0;
		border-right: 0;
		padding-bottom: 20px;
		border-bottom: 1px solid var(--border);
	}
	.sub-right { width: 100%; }

	.photo-card { width: calc(33.333% - 8px); }

	.bottom-dual { flex-direction: column; }
	.bottom-left {
		padding-right: 0;
		border-right: 0;
		padding-bottom: 20px;
		border-bottom: 1px solid var(--border);
	}
	.bottom-right { width: 100%; }
}

@media (max-width: 768px) {
	#section02 > .inner { flex-direction: column; }
	.content-area {
		padding-right: 0;
	}

	.article-grid .article-item {
		width: calc(50% - 8px);
	}

	.photo-card { width: calc(50% - 6px); }
}

@media (max-width: 480px) {
	.top-right {
		flex-direction: column;
	}
	.article-grid .article-item {
		width: 100%;
	}
	.photo-card { width: 100%; }
}