/* News Styles */

.news-section {
	padding: 60px 60px;
	background: #f7f9fb;
	min-height: calc(100vh - 200px);
}

.news-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	align-items: start;
}

/* News List Container */
.news-list-container {
	background: #ffffff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(15, 31, 47, 0.08);
}

/* News Tabs */
.news-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid rgba(15, 31, 47, 0.1);
	margin-bottom: 30px;
}

.news-tab {
	padding: 12px 24px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 1rem;
	font-weight: 500;
	color: #3a5972;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	margin-bottom: -2px;
}

.news-tab:hover {
	color: #0b6efd;
}

.news-tab.active {
	color: #0b6efd;
	border-bottom-color: #0b6efd;
	font-weight: 600;
}

/* News Articles */
.news-articles {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.news-article {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 30px;
	padding: 30px 0;
	border-bottom: 1px solid rgba(15, 31, 47, 0.1);
	position: relative;
	transition: all 0.3s ease;
}

.news-article:last-child {
	border-bottom: none;
}

.news-article:hover {
	background: rgba(11, 110, 253, 0.02);
	padding-left: 10px;
	padding-right: 10px;
	margin-left: -10px;
	margin-right: -10px;
	border-radius: 8px;
}

/* Timeline Date */
.news-date {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	padding-right: 20px;
}

.news-date-box {
	background: #f7f9fb;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 0.9rem;
	color: #3a5972;
	font-weight: 500;
	white-space: nowrap;
}

.news-timeline {
	position: absolute;
	right: 0;
	top: 50px;
	bottom: -30px;
	width: 2px;
	background: #e0e6eb;
}

.news-timeline-dot {
	position: absolute;
	right: -4px;
	top: 50px;
	width: 10px;
	height: 10px;
	background: #0b6efd;
	border-radius: 50%;
	border: 2px solid #ffffff;
}

/* News Content Wrapper */
.news-content-wrapper {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
}

/* News Image */
.news-image-wrapper {
	position: relative;
	width: 200px;
	height: 200px;
	border-radius: 8px;
	overflow: hidden;
	background: #f7f9fb;
	cursor: pointer;
	flex-shrink: 0;
}

.news-image-wrapper:hover .news-image-overlay {
	opacity: 1;
}

.news-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.news-image-wrapper:hover .news-image {
	transform: scale(1.05);
}

.news-image-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	background: linear-gradient(to top, rgba(11, 110, 253, 0.9) 0%, rgba(11, 110, 253, 0.7) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.news-image-wrapper:hover .news-image-overlay {
	opacity: 1;
}

.news-image-overlay .icon-search {
	color: #ffffff;
	font-size: 1.5rem;
}

/* News Content */
.news-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.news-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #0f1f2f;
	margin: 0 0 12px 0;
	line-height: 1.5;
	cursor: pointer;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-title:hover {
	color: #0b6efd;
}

.news-excerpt {
	font-size: 0.9rem;
	line-height: 1.8;
	color: #3a5972;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.news-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 0.9rem;
	color: #6b8499;
}

.news-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: color 0.3s ease;
}

.news-meta-item:hover {
	color: #0b6efd;
}

.news-meta-item .icon {
	font-size: 1rem;
}

.news-read-more {
	color: #0b6efd;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.news-read-more:hover {
	color: #0a5ed9;
	text-decoration: underline;
}

.news-meta-item.news-read-more {
	cursor: pointer;
}

/* Sidebar */
.news-sidebar {
	position: sticky;
	top: 120px;
}

.sidebar-section {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(15, 31, 47, 0.08);
	border: 1px solid rgba(15, 31, 47, 0.08);
}

.sidebar-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #0f1f2f;
	margin: 0 0 20px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #0b6efd;
}

.search-box {
	display: flex;
	gap: 8px;
}

.search-input {
	width: 80%;
	flex: 1;
	padding: 12px 16px;
	border: 1px solid rgba(15, 31, 47, 0.15);
	border-radius: 8px;
	font-size: 0.95rem;
	color: #0f1f2f;
	transition: all 0.3s ease;
	outline: none;
}

.search-input:focus {
	border-color: #0b6efd;
	box-shadow: 0 0 0 3px rgba(11, 110, 253, 0.1);
}

.search-input::placeholder {
	color: #9ba8b5;
}

.search-btn {
	padding: 12px 16px;
	background: #0b6efd;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	min-width: 48px;
	flex-shrink: 0;
	box-sizing: border-box;
}

.search-btn .icon-search {
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-btn .icon-search::before {
	width: 20px;
	height: 20px;
}

.search-btn:hover {
	background: #0a5ed9;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(11, 110, 253, 0.3);
}

.category-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.category-item {
	margin-bottom: 8px;
}

.category-link {
	display: block;
	padding: 8px 12px;
	color: #3a5972;
	text-decoration: none;
	border-radius: 6px;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	position: relative;
	padding-left: 28px;
}

.category-link::before {
	content: "■";
	position: absolute;
	left: 12px;
	color: #0b6efd;
	font-size: 0.6rem;
	line-height: 1.8;
}

.category-link:hover {
	background: rgba(11, 110, 253, 0.08);
	color: #0b6efd;
	padding-left: 32px;
}

.category-link.active {
	background: rgba(11, 110, 253, 0.12);
	color: #0b6efd;
	font-weight: 600;
}

/* Latest News List */
.latest-news-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.latest-news-item {
	padding: 12px 0;
	border-bottom: 1px solid rgba(15, 31, 47, 0.1);
}

.latest-news-item:last-child {
	border-bottom: none;
}

.latest-news-link {
	display: block;
	color: #3a5972;
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.6;
	transition: color 0.3s ease;
	margin-bottom: 8px;
}

.latest-news-link:hover {
	color: #0b6efd;
}

.latest-news-date {
	font-size: 0.8rem;
	color: #9ba8b5;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.news-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.news-sidebar {
		position: static;
		order: -1;
	}

	.news-article {
		grid-template-columns: 100px 1fr;
		gap: 20px;
	}

	.news-content-wrapper {
		grid-template-columns: 150px 1fr;
		gap: 20px;
	}

	.news-image-wrapper {
		width: 150px;
		height: 150px;
	}
}

@media (max-width: 768px) {
	.news-section {
		padding: 40px 0;
	}

	.news-list-container {
		padding: 20px;
	}

	.news-tabs {
		flex-wrap: wrap;
		gap: 8px;
	}

	.news-tab {
		padding: 8px 16px;
		font-size: 0.9rem;
	}

	.news-article {
		grid-template-columns: 80px 1fr;
		gap: 16px;
	}

	.news-content-wrapper {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.news-date-box {
		font-size: 0.8rem;
		padding: 8px 12px;
	}

	.news-timeline {
		top: 40px;
	}

	.news-timeline-dot {
		top: 40px;
	}

	.news-image-wrapper {
		width: 100%;
		height: auto;
		padding-top: 56.25%;
		position: relative;
	}

	.news-image {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	.search-input {
		width: 100%;
	}
}

