/**
 * Single article — CoinGape-style layout.
 */

.sn-single {
	background: var(--snf-bg);
	color: var(--snf-text);
	padding: 32px 0 0;
}

/* Breadcrumbs */
.sn-breadcrumb {
	margin-bottom: 20px;
}

.sn-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none !important;
	font-size: 13px;
}

.sn-breadcrumb__list li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.sn-breadcrumb__item a {
	color: var(--snf-muted);
	text-decoration: none;
	transition: color 0.2s;
}

section.sn-single-related .container-xxl {
    max-width: 1183px;
}
.sn-breadcrumb__item a:hover {
	color: var(--snf-blue);
}

.sn-breadcrumb__item span {
	color: var(--snf-text);
	font-weight: 500;
}

.sn-breadcrumb__sep {
	padding: 0 10px;
	color: var(--snf-muted);
}

.sn-single__container {
	max-width: var(--snf-max);
}

.sn-single__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 32px;
	align-items: start;
}

.sn-single__row > .col-lg-8,
.sn-single__row > .col-lg-4 {
	width: 100%;
	max-width: 100%;
}

@media (max-width: 991.98px) {
	.sn-single__row {
		grid-template-columns: 1fr;
	}
}

/* Header */
.sn-single__title {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	margin: 0 0 20px;
}

.sn-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--snf-border);
}

.sn-single__byline {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.sn-single__avatar {
	display: inline-flex;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--snf-bg-alt);
}

.sn-single__avatar--placeholder {
	background: linear-gradient(135deg, #1c3a52, #2f9fe0);
}

.sn-single__avatar-img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.sn-single__author {
	font-weight: 600;
	color: #fff;
	font-size: 14px;
}

.sn-single__date {
	font-size: 13px;
	color: var(--snf-muted);
}

.sn-single__date::before {
	content: "·";
	margin: 0 8px;
	color: var(--snf-muted);
}

.sn-single__share {
	display: flex;
	gap: 8px;
}

.sn-single__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--snf-border);
	border-radius: 50%;
	background: var(--snf-bg-alt);
	color: var(--snf-muted);
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.sn-single__share-link:hover {
	border-color: var(--snf-blue);
	color: var(--snf-blue);
}

/* Featured image */
.sn-single__featured {
	margin: 0 0 28px;
	border-radius: 4px;
	overflow: hidden;
}

.sn-single__featured-img {
	width: 100%;
	height: auto;
	display: block;
}

/* In This Article */
.sn-single-summary {
	margin-bottom: 28px;
	padding: 20px 24px;
	background: rgba(28, 138, 219, 0.12);
	border: 1px solid rgba(47, 159, 224, 0.45);
	border-radius: 4px;
}

.sn-single-summary__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--snf-heading);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sn-single-summary__list {
	margin: 0;
	padding-left: 20px;
	color: var(--snf-text);
	font-size: 15px;
	line-height: 1.6;
}

.sn-single-summary__list li {
	margin-bottom: 6px;
}

.sn-single-summary__list li:last-child {
	margin-bottom: 0;
}

/* Body content */
.sn-single__content {
	font-size: 17px;
	line-height: 1.75;
}

.sn-single__content p {
	margin-bottom: 1.25em;
}

.sn-single__content a {
	color: var(--snf-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sn-single__content h2,
.sn-single__content h3,
.sn-single__content h4 {
	font-family: "Playfair Display", Georgia, serif;
	color: #fff;
	font-weight: 700;
	margin: 1.75em 0 0.75em;
}

.sn-single__content h2 {
	font-size: 1.5rem;
}

.sn-single__content h3 {
	font-size: 1.25rem;
}

.sn-single__content img,
.sn-single__content figure {
	max-width: 100%;
	height: auto;
	margin: 1.5em 0;
	border-radius: 4px;
}

.sn-single__content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-left: 3px solid var(--snf-blue);
	background: var(--snf-bg-alt);
	color: var(--snf-muted);
}

.sn-single__content ul,
.sn-single__content ol {
	margin-bottom: 1.25em;
	padding-left: 1.5em;
}

.sn-single__content table {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	font-size: 15px;
}

.sn-single__content table th,
.sn-single__content table td {
	padding: 12px 16px;
	border: 1px solid var(--snf-border);
	text-align: left;
	vertical-align: top;
}

.sn-single__content table th {
	background: var(--snf-bg-alt);
	color: #fff;
	font-weight: 700;
}

.sn-single__content table tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.02);
}

/* CTA box */
.sn-single-cta {
	margin: 32px 0;
	padding: 24px;
	background: var(--snf-bg-alt);
	border: 1px solid var(--snf-border);
	border-radius: 4px;
}

.sn-single-cta__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}

.sn-single-cta__list {
	margin: 0 0 20px;
	padding-left: 20px;
	color: var(--snf-text);
}

.sn-single-cta__btn {
	display: inline-block;
	padding: 12px 28px;
	background: var(--snf-blue);
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	border-radius: 4px;
	transition: opacity 0.2s;
}

.sn-single-cta__btn:hover {
	opacity: 0.9;
}

/* Tags */
.sn-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--snf-border);
}

.sn-single__tag {
	display: inline-block;
	padding: 8px 16px;
	background: rgba(28, 138, 219, 0.2);
	border: 1px solid rgba(28, 138, 219, 0.5);
	border-radius: 999px;
	color: var(--snf-blue) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s;
}

.sn-single__tag:hover {
	background: rgba(28, 138, 219, 0.35);
}

/* Sidebar */
.sn-single__sidebar {
	top: 24px;
}

.sn-single-widget--toc {
	margin-bottom: 20px;
}

.sn-single-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sn-single-toc__item {
	margin-bottom: 10px;
}

.sn-single-toc__item--sub {
	padding-left: 14px;
}

.sn-single-toc__link {
	display: block;
	font-size: 13px;
	line-height: 1.45;
	color: var(--snf-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.sn-single-toc__link:hover {
	color: var(--snf-blue);
}

.sn-single-widget {
	margin-bottom: 24px;
	padding: 20px;
	background: var(--snf-bg-alt);
	border: 1px solid var(--snf-border);
	border-radius: 4px;
}

.sn-single-widget__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.sn-single-widget__text {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--snf-muted);
}

.sn-single-widget__link-btn {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--snf-blue);
	text-decoration: none;
}

.sn-single-widget__link-btn:hover {
	text-decoration: underline;
}

.sn-single-widget__news-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sn-single-widget__news-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
}

.sn-single-widget__news-item:hover .sn-single-widget__news-title {
	color: var(--snf-blue);
}

.sn-single-widget__news-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--snf-bg);
}

.sn-single-widget__news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sn-single-widget__news-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a2a3a, #2f9fe0);
}

.sn-single-widget__news-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--snf-text);
	transition: color 0.2s;
}

.sn-single-widget__partners {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sn-single-widget__partner {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.sn-single-widget__partner-logo {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.sn-single-widget__partner-logo img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.sn-single-widget__partner-name {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	min-width: 60px;
}

.sn-single-widget__partner-btn {
	padding: 6px 12px;
	background: var(--snf-blue);
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 4px;
	white-space: nowrap;
}

.sn-single-widget__social-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sn-single-widget__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--snf-border);
	border-radius: 50%;
	color: var(--snf-muted);
	transition: color 0.2s, border-color 0.2s;
}

.sn-single-widget__social-link:hover {
	color: var(--snf-blue);
	border-color: var(--snf-blue);
}

.sn-single-widget--stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.sn-single-widget__stat-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
}

.sn-single-widget__stat-label {
	font-size: 12px;
	color: var(--snf-muted);
}

.sn-single-widget__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sn-single-widget__input {
	padding: 12px 14px;
	border: 1px solid var(--snf-border);
	border-radius: 4px;
	background: var(--snf-bg);
	color: #fff;
	font-size: 14px;
}

.sn-single-widget__input::placeholder {
	color: var(--snf-muted);
}

.sn-single-widget__submit {
	padding: 14px;
	border: 0;
	border-radius: 4px;
	background: var(--snf-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s;
}

.sn-single-widget__submit:hover {
	opacity: 0.9;
}

/* Related articles */
.sn-single-related {
	margin-top: 48px;
	padding: 48px 0 56px;
	border-top: 1px solid var(--snf-border);
}

.sn-single-related__heading {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 28px;
}

.sn-single-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.sn-single-related__card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.sn-single-related__card:hover .sn-single-related__title {
	color: var(--snf-blue);
}

.sn-single-related__media {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 12px;
	background: var(--snf-bg);
}

.sn-single-related__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.sn-single-related__card:hover .sn-single-related__media img {
	transform: scale(1.03);
}

.sn-single-related__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #152535, #2f9fe0);
}

.sn-single-related__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	transition: color 0.2s;
}

/* Responsive */
@media (max-width: 991.98px) {
	.sn-single__sidebar {
		position: static !important;
		top: auto;
	}

	.sn-single-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575.98px) {
	.sn-single {
		padding-top: 20px;
	}

	.sn-single-related__grid {
		grid-template-columns: 1fr;
	}

	.sn-single__meta {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Light theme overrides */
html.sn-theme-light .sn-single__title,
html.sn-theme-light .sn-single__author,
html.sn-theme-light .sn-single-widget__title,
html.sn-theme-light .sn-single-related__title,
html.sn-theme-light .sn-single-related__heading,
html.sn-theme-light .sn-single-cta__title,
html.sn-theme-light .sn-single__content h2,
html.sn-theme-light .sn-single__content h3 {
	color: #111;
}

html.sn-theme-light .sn-single-widget__stat-value,
html.sn-theme-light .sn-single-widget__partner-name {
	color: #111;
}

html.sn-theme-light .sn-single-widget__input {
	background: #fff;
	color: #111;
}
