/**
 * Single post: hero, meta + share, nội dung 8 cột, sidebar liên quan.
 */

.fc-single-post-page {
	padding-top: 0;
}

/* —— Hero —— */
.fc-single-hero {
	position: relative;
	background-color: #1a1f2e;
	background-size: cover;
	background-position: center;
	padding: clamp(2.5rem, 8vw, 4.5rem) 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
}

.fc-single-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(8, 12, 28, 0.82) 0%, rgba(25, 35, 60, 0.55) 50%, rgba(8, 12, 28, 0.78) 100%);
}

.fc-single-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 1100px;
}

.fc-single-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.15rem, 2.8vw, 1.65rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.04em;
	color: #fff;
}

.fc-single-hero__rule {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	margin: 0 auto 1rem;
}

.fc-single-hero__rule-blue {
	display: inline-block;
	width: 48px;
	height: 4px;
	background: #003399;
}

.fc-single-hero__rule-red {
	display: inline-block;
	width: 48px;
	height: 4px;
	background: #e31b23;
}

.fc-single-hero__crumb {
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.95);
}

.fc-single-hero__crumb a {
	color: #fff;
	text-decoration: none;
}

.fc-single-hero__crumb a:hover {
	text-decoration: underline;
}

.fc-single-hero__sep {
	margin: 0 0.35rem;
	opacity: 0.85;
}

.fc-single-hero__current {
	opacity: 0.95;
}

/* —— Body —— */
.fc-single-post-body {
	padding-top: 2rem;
	padding-bottom: 3rem;
}

.fc-single-post-row {
	align-items: flex-start;
}

.fc-single-meta-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 0.85rem 0 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	color: #6b7280;
}

.fc-single-meta-bar__sep {
	margin: 0 0.5rem;
	opacity: 0.6;
}

.fc-single-meta-bar__share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
}

.fc-single-meta-bar__share-label {
	font-weight: 600;
	color: #374151;
}

.fc-single-meta-bar__share .fc-single-share-icons,
.fc-single-meta-bar__share .social-icons {
	margin: 0 !important;
}

.fc-single-meta-bar__share .social-icons a,
.fc-single-meta-bar__share .icon.button {
	width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	line-height: 32px !important;
	font-size: 14px !important;
}

.fc-single-featured-wrap {
	margin-bottom: 1.75rem;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fc-single-featured-img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}

.fc-single-entry {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #333;
}

.fc-single-entry p {
	margin-bottom: 1rem;
}

/* —— Sidebar related —— */
.fc-single-post-aside {
	position: sticky;
	top: calc(var(--flatsome--header-height, 80px) + 1rem);
}

.fc-related-sidebar {
	padding-left: 0.5rem;
}

.fc-related-sidebar__title {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #111;
}

.fc-related-sidebar__rule {
	display: flex;
	margin-bottom: 1.25rem;
}

.fc-related-sidebar__rule-blue {
	width: 36px;
	height: 3px;
	background: #003399;
}

.fc-related-sidebar__rule-red {
	width: 36px;
	height: 3px;
	background: #e31b23;
}

.fc-related-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-related-sidebar__item {
	margin-bottom: 0.85rem;
}

.fc-related-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0.75rem;
	padding: 0.65rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fc-related-card:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

.fc-related-card__thumb {
	flex: 0 0 88px;
	width: 88px;
	max-height: 72px;
	border-radius: 4px;
	overflow: hidden;
	background: #eef0f3;
}

.fc-related-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 64px;
}

.fc-related-card__placeholder {
	display: block;
	width: 100%;
	min-height: 64px;
	background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.fc-related-card__title {
	flex: 1 1 auto;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.4;
	color: #a01010;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media screen and (max-width: 849px) {
	.fc-single-post-aside {
		position: static;
		margin-top: 2.5rem;
	}

	.fc-related-sidebar {
		padding-left: 0;
	}
}
