/* News Detail Page Styles */
.news-header {
	padding: 3rem 0;
	background-color: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	margin-top: 4rem;
}

.news-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: var(--text-secondary);
	flex-wrap: wrap;
}

.news-meta i {
	margin-right: 0.25rem;
}

.news-type-badge {
	background-color: var(--accent-color);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-weight: bold;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.news-title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
	color: var(--text-primary);
	line-height: 1.2;
	position: relative;
	padding-bottom: 0.5rem;
}

.news-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 80px;
	height: 4px;
	background-color: var(--accent-color);
	border-radius: 2px;
}

.news-author {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 0;
}

.author-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--accent-color);
}

.author-name {
	font-weight: bold;
	margin-bottom: 0.25rem;
	color: var(--text-primary);
	font-size: 1rem;
}

.author-title {
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.news-content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.news-content-wrapper {
		flex-direction: row;
		gap: 4rem;
	}

	.news-main-content {
		flex: 3;
	}

	.news-sidebar {
		flex: 1;
		position: sticky;
		top: 6rem;
		align-self: flex-start;
		max-height: calc(100vh - 7rem);
		overflow-y: auto;
	}
}

.news-image {
	margin: 2rem 0;
	position: relative;
}

.news-image img {
	width: 100%;
	border-radius: 0.75rem;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease;
}

.news-image img:hover {
	transform: scale(1.01);
}

.news-image p {
	text-align: center;
	font-size: 0.9rem;
	color: var(--text-tertiary);
	margin-top: 0.5rem;
}

.news-text {
	line-height: 1.7;
	color: var(--text-secondary);
	font-size: 1rem;
}

.news-text h2 {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 2rem 0 1.5rem;
	color: var(--text-primary);
	position: relative;
	padding-bottom: 0.5rem;
	scroll-margin-top: 6rem;
}

.news-text h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background-color: var(--accent-color);
	border-radius: 2px;
}

.news-text h3 {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 1.5rem 0 1rem;
	color: var(--text-primary);
}

.news-text h4 {
	font-size: 1.2rem;
	font-weight: 500;
	margin: 1.25rem 0 0.75rem;
	color: var(--text-primary);
}

.news-text p {
	margin-bottom: 1.25rem;
	line-height: 1.7;
	color: var(--text-secondary);
}

.news-text ul,
.news-text ol {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

.news-text li {
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.news-table {
	margin: 2rem 0;
	overflow-x: auto;
}

.news-table table {
	width: 100%;
	border-collapse: collapse;
	background-color: var(--card-bg);
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.news-table th {
	background-color: var(--accent-color);
	color: white;
	padding: 0.75rem 1rem;
	text-align: left;
	font-weight: 500;
}

.news-table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-secondary);
}

.news-table tr:last-child td {
	border-bottom: none;
}

.news-table tr:hover td {
	background-color: var(--bg-tertiary);
}

/* Highlight Box */
.highlight-takeaways {
	background-color: var(--card-bg);
	border-left: 4px solid var(--accent-color);
	padding: 1.5rem;
	margin: 2rem 0;
	border-radius: 0 0.375rem 0.375rem 0;
	box-shadow: var(--shadow);
}

.highlight-takeaways .title {
	font-weight: 600;
	color: var(--accent-color);
	margin-bottom: 0.5rem;
}

.highlight-takeaways ul {
	padding-left: 1.5rem;
}

.highlight-takeaways li {
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

/* Sidebar Styles */
.news-sidebar {
	display: none;
}

.sidebar-card {
	background-color: var(--card-bg);
	border-radius: 0.75rem;
	padding: 1.5rem;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
	margin-bottom: 1.5rem;
	transition: transform 0.3s ease;
}

.sidebar-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	color: var(--text-primary);
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--accent-color);
}

.author-info {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

.author-info img {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--accent-color);
}

.author-info h4 {
	font-weight: bold;
	margin-bottom: 0.25rem;
	font-size: 1rem;
}

.author-info p {
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

.sidebar-card ul {
	padding-left: 0;
	list-style: none;
}

.sidebar-card li {
	margin-bottom: 0.75rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.sidebar-card a {
	color: var(--text-secondary);
	transition: color var(--transition-speed);
}

.sidebar-card a:hover {
	color: var(--accent-color);
}

.related-news {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--border-color);
	transition: transform 0.2s ease;
}

.related-news:hover {
	transform: translateX(5px);
}

.related-news:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.related-news h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.related-news p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 0;
}

/* Mobile Sidebar Content */
.mobile-sidebar-content {
	display: block;
	margin-top: 2rem;
}

@media (min-width: 1024px) {
	.mobile-sidebar-content {
		display: none;
	}

	.news-sidebar {
		display: block;
	}
}

/* Action Buttons */
.action-buttons {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.btn-secondary,
.btn-accent {
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	transition: all var(--transition-speed);
}

.btn-secondary {
	background-color: var(--bg-tertiary);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.btn-secondary:hover {
	background-color: var(--bg-secondary);
	transform: translateY(-2px);
}

.btn-accent {
	background-color: var(--accent-color);
	color: white;
	border: 1px solid var(--accent-color);
}

.btn-accent:hover {
	background-color: var(--accent-color-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
	.news-header {
		padding: 2.5rem 0;
		margin-top: 3.5rem;
	}

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

@media (max-width: 640px) {
	.news-header {
		padding: 2rem 0;
		margin-top: 3rem;
	}

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

	.news-meta {
		font-size: 0.85rem;
		gap: 0.75rem;
	}

	.news-author {
		gap: 1rem;
	}

	.author-avatar {
		width: 45px;
		height: 45px;
	}

	.author-name {
		font-size: 0.95rem;
	}

	.author-title {
		font-size: 0.8rem;
	}

	.news-text h2 {
		font-size: 1.5rem;
		margin: 1.75rem 0 1.25rem;
		scroll-margin-top: 5.5rem;
	}

	.news-text h3 {
		font-size: 1.25rem;
	}

	.action-buttons {
		flex-direction: column;
	}

	.btn-secondary,
	.btn-accent {
		width: 100%;
		text-align: center;
		justify-content: center;
	}
}

/* Fix for iOS scrolling */
@supports (-webkit-touch-callout: none) {
	.news-sidebar {
		position: -webkit-sticky;
	}
}

.no-news-placeholder {
	grid-column: 1 / -1;
	background-color: var(--card-bg);
	border-radius: 0.75rem;
	padding: 3rem 2rem;
	text-align: center;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	max-width: 1200px;
	margin: 2rem auto;
	width: 100%;
}

.placeholder-icon {
	font-size: 3.5rem;
	color: var(--accent-color);
	margin-bottom: 1.5rem;
	opacity: 0.85;
}

.no-news-placeholder h3 {
	font-size: 1.75rem;
	font-weight: bold;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.no-news-placeholder p {
	color: var(--text-secondary);
	margin-bottom: 1rem;
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 800px;
}

.scroll-hint {
	margin-top: 1.5rem;
	font-weight: 500;
	color: var(--accent-color);
}

.placeholder-arrow {
	margin-top: 1.5rem;
	font-size: 1.5rem;
	color: var(--accent-color);
	animation: bounce 2s infinite;
}

@keyframes bounce {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-15px);
	}

	60% {
		transform: translateY(-7px);
	}
}

/* Video Cards */
.video-card {
	background-color: var(--card-bg);
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease;
}

.video-thumbnail {
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
}

.video-thumbnail iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.video-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-color);
	font-size: 1.5rem;
	opacity: 0.9;
	transition: all 0.3s ease;
}

.video-info {
	padding: 1.25rem;
}

.video-info h4 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.video-info p {
	margin: 0.25rem 0;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.video-description {
	margin-top: 0.5rem !important;
	font-size: 0.95rem !important;
	color: var(--text-secondary);
}