/* ── News detail (single post) ── */
.site-single-post {
	background: #fff;
}

.news-detail {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	background: #fff;
	padding: 72px 0 100px;
	box-sizing: border-box;
}

.news-detail__inner {
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ── Title ── */
.news-detail__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 48px;
	text-align: center;
}

.news-detail__title-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	line-height: 1;
}

.news-detail__title-bg {
	display: block;
	max-width: 100%;
	font-family: var(--font-bold);
	font-size: 90px;
	font-weight: 700;
	line-height: 1.05;
	color: #000;
	opacity: .06;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	user-select: none;
}

.news-detail__title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	margin: 0;
	width: 90%;
	max-width: 1100px;
	font-family: var(--font-bold);
	font-size: 46px;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.news-detail__line {
	display: block;
	width: 44px;
	height: 5px;
	margin: 6px 0 18px;
	background: #111d5c;
	flex-shrink: 0;
}

.news-detail__date {
	display: block;
	font-family: var(--font-medium);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: #8a8f98;
}

/* ── Editor content ── */
.news-detail__content {
	margin: 0 0 64px;
	font-family: var(--font-light);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.9;
	color: #333;
	text-align: justify;
	word-break: break-word;
}

.news-detail__content > *:first-child {
	margin-top: 0;
}

.news-detail__content > *:last-child {
	margin-bottom: 0;
}

.news-detail__content p {
	margin: 0 0 1.2em;
}

.news-detail__content h1,
.news-detail__content h2,
.news-detail__content h3,
.news-detail__content h4,
.news-detail__content h5,
.news-detail__content h6 {
	margin: 1.4em 0 .6em;
	font-family: var(--font-bold);
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	text-align: left;
}

.news-detail__content h2 { font-size: 28px; }
.news-detail__content h3 { font-size: 22px; }
.news-detail__content h4 { font-size: 18px; }

.news-detail__content ul,
.news-detail__content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
	text-align: left;
}

.news-detail__content li {
	margin-bottom: .4em;
}

.news-detail__content a {
	color: #111d5c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.news-detail__content a:hover {
	color: #2685f9;
}

.news-detail__content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.2em auto;
}

.news-detail__content blockquote {
	margin: 1.4em 0;
	padding: 12px 20px;
	border-left: 4px solid #111d5c;
	background: #f7f8fb;
	color: #555;
	text-align: left;
}

.news-detail__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
}

.news-detail__content th,
.news-detail__content td {
	border: 1px solid #dce3ec;
	padding: 10px 12px;
	text-align: left;
}

/* ── Gallery carousel ── */
.news-gallery {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
}

.news-gallery__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.news-gallery__track {
	display: flex;
	gap: 20px;
	will-change: transform;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.news-gallery__slide {
	flex: 0 0 calc((100% - 40px) / 3);
	width: calc((100% - 40px) / 3);
	max-width: calc((100% - 40px) / 3);
	margin: 0;
	overflow: hidden;
	background: #e8eef5;
}

.news-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 420 / 280;
	object-fit: cover;
	transition: transform .4s ease;
}

.news-gallery__slide:hover img {
	transform: scale(1.04);
}

.news-gallery__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 64px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111d5c;
	cursor: pointer;
	transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.news-gallery__arrow:hover {
	color: #2685f9;
	transform: scale(1.08);
}

.news-gallery__arrow:disabled,
.news-gallery.is-static .news-gallery__arrow {
	opacity: .28;
	cursor: default;
	pointer-events: none;
	transform: none;
}

/* ── Prev / Next pager ── */
.news-detail__pager {
	margin-top: 72px;
}

.site-single-post .article-pager {
	gap: 1px;
	background: #d5dbe8;
	border: 1px solid #d5dbe8;
}

.site-single-post .pager-link {
	background: #fff;
	padding: 24px 28px;
	transition: background .25s ease, color .25s ease;
}

.site-single-post .pager-link:hover {
	background: #111d5c;
	text-decoration: none;
}

.site-single-post .pager-dir {
	font-family: var(--font-medium);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #111d5c;
	transition: color .25s ease;
}

.site-single-post .pager-title {
	font-family: var(--font-medium);
	font-size: 15px;
	font-weight: 500;
	color: #333;
	line-height: 1.4;
	transition: color .25s ease;
}

.site-single-post .pager-link:hover .pager-dir,
.site-single-post .pager-link:hover .pager-title {
	color: #fff;
}

.site-single-post .pager-link.is-empty {
	background: #f5f6f9;
}

.site-single-post .pager-link.is-empty .pager-dir {
	color: #8a8f98;
}

.site-single-post .pager-link.is-empty .pager-title {
	color: #9aa0a8;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
	.news-detail__title-bg {
		font-size: 64px;
	}

	.news-detail__title {
		font-size: 34px;
	}

	.news-gallery__slide {
		flex: 0 0 calc((100% - 20px) / 2);
		width: calc((100% - 20px) / 2);
		max-width: calc((100% - 20px) / 2);
	}
}

@media (max-width: 768px) {
	.news-detail {
		padding: 48px 0 64px;
	}

	.news-detail__head {
		margin-bottom: 32px;
	}

	.news-detail__title-bg {
		font-size: 40px;
	}

	.news-detail__title {
		font-size: 26px;
		width: 96%;
	}

	.news-detail__line {
		width: 36px;
		height: 4px;
		margin: 4px 0 14px;
	}

	.news-detail__date {
		font-size: 14px;
	}

	.news-detail__content {
		margin-bottom: 40px;
		font-size: 15px;
		line-height: 1.8;
	}

	.news-gallery {
		gap: 10px;
	}

	.news-gallery__track {
		gap: 12px;
	}

	.news-gallery__slide {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.news-gallery__arrow {
		width: 28px;
		height: 48px;
	}

	.news-gallery__arrow svg {
		width: 12px;
		height: 22px;
	}

	.news-detail__pager {
		margin-top: 48px;
	}
}

@media (max-width: 480px) {
	.news-detail__title-bg {
		font-size: 28px;
	}

	.news-detail__title {
		font-size: 20px;
	}
}
