/* Main page section 6 (News) */

.main-news {
	background: #ffffff;
	padding: 6rem 0;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.news-container {
	max-width: 80%;
	width: 100%;
	margin: 0 auto;
	padding: 0 5rem;
}

.news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 3.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 3px solid #101828;
}

.news-title {
	font-size: 6.5rem;
	font-weight: 700;
	color: #101828;
	margin: 0;
	line-height: 1.4;
	font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif;
	letter-spacing: -0.06rem;
}

.news-content {
	padding: 0;
}

.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 2px solid black;
}

.news-item {
	display: flex;
	align-items: flex-start;
	gap: 3rem;
	padding: 2.25rem 0;
	border-bottom: 1px solid #e5e7eb;
	transition: all 0.3s ease;
}

.news-item:hover {
	background: #f9fafb;
	padding-left: 1rem;
	cursor: pointer;
}

.news-item:last-child {
	border-bottom: none;
}

.news-number {
	font-size: 2.5rem;
	font-weight: 700;
	color: #101828;
	min-width: 5rem;
	text-align: center;
	flex-shrink: 0;
}

.news-title-text {
	font-size: 2.5rem;
	font-weight: 500;
	color: #101828;
	margin: 0;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-empty {
	text-align: center;
	font-size: 1.125rem;
	color: #6b7280;
	padding: 3rem 0;
	margin: 0;
}

/* Pagination */
.news-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 3rem;
	padding-top: 2.5rem;
	gap: 0.25rem;
}

.news-pagination nav ul {
	display: flex !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0.25rem !important;
	flex-wrap: wrap;
	justify-content: center;
}

.news-pagination li {
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.news-pagination .page-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 3.75rem !important;
	height: 3.75rem !important;
	padding: 0 0.75rem !important;
	border: 1px solid #ccc !important;
	border-radius: 50% !important;
	color: #333 !important;
	text-decoration: none !important;
	font-size: 1.275rem !important;
	font-weight: 500 !important;
	transition: all 0.3s ease !important;
	background: #fff !important;
	margin: 0 !important;
}

.news-pagination .page-link:hover {
	border-color: #999 !important;
	color: #333 !important;
	background: #f5f5f5 !important;
}

.news-pagination .page-item.active .page-link {
	background: #000 !important;
	border-color: #000 !important;
	color: #fff !important;
}

/* 양쪽 끝 버튼(«, ») - active 상태에서도 색 유지 */
.news-pagination ul li:nth-child(1) .page-link,
.news-pagination ul li:nth-child(1).active .page-link,
.news-pagination ul li:nth-last-child(1) .page-link,
.news-pagination ul li:nth-last-child(1).active .page-link {
	background: #fff !important;
	border-color: #ccc !important;
	color: #333 !important;
	border: none !important;
}

/* 이전/다음 버튼(‹, ›) - 보더 제거 */
.news-pagination .page-link.prev-page,
.news-pagination .page-link.next-page {
	border: none !important;
	background: #fff !important;
	color: #333 !important;
}

/* 반응형: 태블릿 */
@media (max-width: 1024px) {
	.news-container {
		padding: 0 3.75rem;
	}

	.news-header {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 3.75rem;
		gap: 2rem;
	}

	.news-title {
		font-size: 4rem;
	}

	.news-item {
		gap: 2rem;
		padding: 2rem 0;
	}

	.news-number {
		font-size: 1.5rem;
		min-width: 4rem;
	}

	.news-title-text {
		font-size: 1rem;
	}
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
	.main-news {
		height: auto;
		width: 100%;
		padding: 3rem 2rem;
	}

	.news-container {
		padding: 0;
	}

	.news-header {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 2.5rem;
		gap: 1.5rem;
	}

	.news-title {
		font-size: 3rem;
	}

	.news-view-btn {
		padding: 0.75rem 1.5rem;
		font-size: 0.8rem;
	}

	/* 모바일 페이지네이션 - 1.1배 크기 */
	.news-pagination .page-link {
		min-width: 2.75rem !important;
		height: 2.75rem !important;
		padding: 0 0.55rem !important;
		font-size: 0.935rem !important;
	}

	.news-item {
		gap: 1rem;
		padding: 1.5rem 0;
	}

	.news-item img {
		width: 100%;
		height: auto;
		max-width: 100%;
	}

	.news-number {
		font-size: 1.25rem;
		min-width: 3rem;
	}

	.news-title-text {
		font-size: 0.95rem;
		-webkit-line-clamp: 2;
	}

	.news-pagination nav ul {
		gap: 0.25rem;
	}

	.news-pagination .page-link {
		width: 2rem;
		height: 2rem;
		font-size: 0.8rem;
	}

	.news-view-btn {
		background: white;
	}
}
