/* ============================================================
   single_news.css — News Detail Page Styles
   Red-House WordPress Theme
   ============================================================ */

/* ---------- Page Wrapper ---------- */
.news-detail-wrap {
	background-color: #0a3d20;
	min-height: 60vh;
}

.news-detail-inner {
	background-color: #0a3d20;
}

/* ---------- Main Body Container ---------- */
.news-detail-body {
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #0a3d20;
}

.news-detail-row {
	display: flex;
	align-items: flex-start;
}

.news-detail-row > .col-md-3 {
	flex: 0 0 25%;
	max-width: 25%;
}

.news-detail-row > .col-md-9 {
	flex: 0 0 75%;
	max-width: 75%;
}
/* ============================================================
   LEFT SIDEBAR — Reuse news.css styles
   (sidebar already styled in news.css)
   ============================================================ */

/* ============================================================
   RIGHT SECTION — Article Detail
   ============================================================ */
.news-detail-section {
	padding: 0 0 0 10px;
}

.news-detail-container {
	padding: 0;
	overflow: hidden;
}

/* ---------- Article Title ---------- */
.news-detail-title {
	text-align: center;
	padding: 20px 20px 0 20px;
}

.news-detail-title h1 {
	font-family: Arial, sans-serif;
	font-size: 24px;
	font-weight: bold;
	line-height: 1.8em;
	margin: 0;
	padding: 0;
}

/* ---------- Article Meta ---------- */
.news-detail-meta {
	text-align: center;
	padding: 8px 20px 12px 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-family: Arial, sans-serif;
	font-size: 13px;
	color: #999;
	line-height: 1.7em;
}

.news-meta-views,
.news-meta-author,
.news-meta-date {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.news-meta-value {
	color: #666;
}

/* ---------- Social Share ---------- */
.news-detail-share {
	text-align: center;
	padding: 12px 20px;
	border-bottom: 1px solid #eee;
}

.share-btn {
	display: inline-block;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	margin: 0 5px 6px 0;
	text-align: center;
	line-height: 30px;
	vertical-align: middle;
	cursor: pointer;
	transition: opacity 0.2s ease-in;
	text-decoration: none;
}

.share-btn:hover {
	opacity: 0.75;
}

/* Facebook */
.share-btn-facebook {
	background-color: #4267b2;
}

/* Twitter */
.share-btn-twitter {
	background-color: #000;
}

/* Line */
.share-btn-line {
	background-color: #00c300;
}

/* WeChat */
.share-btn-wechat {
	background-color: #4ec034;
}

/* LinkedIn */
.share-btn-linkedin {
	background-color: #0077b5;
}

/* Pinterest */
.share-btn-pinterest {
	background-color: #cb2027;
}

/* Social share icons (CSS-only icons) */
.share-btn-facebook .share-icon-facebook,
.share-btn-twitter .share-icon-twitter,
.share-btn-line .share-icon-line,
.share-btn-wechat .share-icon-wechat,
.share-btn-linkedin .share-icon-linkedin,
.share-btn-pinterest .share-icon-pinterest {
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	background-size: cover;
}

/* ---------- WeChat QR Popup ---------- */
.news-wechat-qr-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	justify-content: center;
	align-items: center;
}

.news-wechat-qr-overlay[style*="block"] {
	display: flex;
}

.news-wechat-qr-box {
	position: relative;
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	text-align: center;
	min-width: 200px;
}

.news-wechat-qr-title {
	font-family: Arial, sans-serif;
	font-size: 14px;
	color: #333;
	font-weight: bold;
	margin-bottom: 12px;
}

.news-wechat-qr-close {
	position: absolute;
	top: 8px;
	right: 12px;
	font-size: 22px;
	color: #999;
	cursor: pointer;
	line-height: 1;
}

.news-wechat-qr-close:hover {
	color: #333;
}

/* ---------- Article Content ---------- */
.news-detail-content {
	padding: 20px 30px 30px 30px;
	word-break: break-word;
	font-family: Arial, sans-serif;
	font-size: 14px;
	line-height: 1.7em;
}

.news-detail-content img {
	max-width: 100%;
	height: auto;
}

.news-detail-content a {
	color: #1f69ad;
	text-decoration: none;
}

.news-detail-content a:hover {
	color: #f6931b;
	text-decoration: underline;
}

/* ---------- Previous / Next Navigation ---------- */
.news-detail-pager {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.news-pager-prev,
.news-pager-next {
	margin-bottom: 10px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	line-height: 1.8em;
}

.news-pager-next {
	text-align: right;
}

.news-pager-label {
	color: #999;
	margin-right: 6px;
}

.news-pager-prev a,
.news-pager-next a {
	display: inline-block;
	max-width: 70%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
	color: #1f69ad;
	text-decoration: none;
	font-weight: normal;
}

.news-pager-prev a:hover,
.news-pager-next a:hover {
	color: #f6931b;
	text-decoration: none;
}

/* Fix clearfix */
.fix::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------- Overflow helper ---------- */
.overflow {
	overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
	.news-detail-row {
		flex-direction: column;
	}

	.news-sidebar,
	.news-detail-section {
		width: 100%;
		padding: 0 10px;
	}

	.news-sidebar {
		margin-bottom: 20px;
	}
}

@media (max-width: 767px) {
	.news-detail-body {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.news-detail-title {
		padding: 16px 15px 0 15px;
	}

	.news-detail-title h1 {
		font-size: 20px;
		line-height: 1.6em;
	}

	.news-detail-meta {
		padding: 8px 15px 10px 15px;
		gap: 4px 12px;
		font-size: 12px;
	}

	.news-detail-share {
		padding: 10px 15px;
	}

	.share-btn {
		width: 28px;
		height: 28px;
		line-height: 28px;
		margin: 0 3px 4px 0;
	}

	.news-detail-content {
		padding: 16px 15px 24px 15px;
		font-size: 14px;
	}

	.news-detail-pager {
		margin-top: 20px;
		padding-top: 16px;
	}

	.news-pager-prev,
	.news-pager-next {
		font-size: 13px;
	}

	.news-pager-prev a,
	.news-pager-next a {
		max-width: 100%;
	}
}
