/* ==========================================================================
   PAO PEVIL GOTHIC — DARK ENGRAVING STYLESHEET
   ========================================================================== */
:root {
	--g-bg: #0e0d0b;
	--g-header-bg: #000000;
	--g-text: #d6d1c7;
	--g-heading: #f4f0e8;
	--g-muted: #9a9386;
	--g-border: #3a3630;
	--g-accent: #c9b99a;
	--g-container: 1180px;
	--g-hero-h: 340px;
	--g-body-size: 18px;
	--g-font-body: "Bookerly", "Noto Serif", Georgia, serif;
	--g-font-gothic: "UnifrakturMaguntia", "Cinzel", serif;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
}

body {
	margin: 0;
	background-color: var(--g-bg);
	color: var(--g-text);
	font-family: var(--g-font-body);
	font-size: var(--g-body-size);
	line-height: 1.72;
}

a {
	color: var(--g-heading);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
	color: var(--g-accent);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: top;
}

.gothic-container {
	width: 100%;
	max-width: var(--g-container);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ==========================================================================
   HEADER BAR & GOTHIC BRANDING
   ========================================================================== */
#gothic-header {
	background-color: var(--g-header-bg);
	border-bottom: 1px solid var(--g-border);
	position: relative;
	z-index: 100;
}

.gothic-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 98px;
	padding-top: 14px;
	padding-bottom: 14px;
	gap: 24px;
}

.gothic-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.gothic-cross-emblem {
	flex-shrink: 0;
}

.gothic-brand-text-group {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gothic-brand-title {
	font-family: var(--g-font-gothic);
	font-size: 42px;
	line-height: 1;
	color: var(--g-heading);
	letter-spacing: 0.02em;
}

.gothic-brand-subtitle {
	position: relative;
	display: inline-block;
	margin-top: 6px;
	padding: 0 12px;
	font-size: 13px;
	font-style: italic;
	color: var(--g-text);
	letter-spacing: 0.04em;
}

.gothic-brand-subtitle::before,
.gothic-brand-subtitle::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 34px;
	height: 1px;
	background-color: var(--g-border);
}

.gothic-brand-subtitle::before { right: 100%; }
.gothic-brand-subtitle::after  { left: 100%; }

/* Navigation */
#gothic-nav {
	display: flex;
	align-items: center;
	gap: 26px;
}

#gothic-nav ul.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 28px;
}

#gothic-nav ul.menu > li {
	position: relative;
}

#gothic-nav ul.menu > li > a {
	font-size: 15px;
	color: var(--g-heading);
	padding: 8px 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

#gothic-nav ul.menu > li.menu-item-has-children > a::after {
	content: "▾";
	font-size: 11px;
	color: var(--g-muted);
}

#gothic-nav ul.menu > li > a:hover,
#gothic-nav ul.menu > li.current-menu-item > a {
	color: var(--g-accent);
}

#gothic-nav ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background-color: #090807;
	border: 1px solid var(--g-border);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	z-index: 200;
}

#gothic-nav ul.menu > li:hover > ul.sub-menu {
	display: block;
}

#gothic-nav ul.sub-menu li a {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
	color: var(--g-text);
}

#gothic-nav ul.sub-menu li a:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: var(--g-heading);
}

.gothic-search-toggle,
.gothic-mobile-toggle {
	background: none;
	border: 0;
	color: var(--g-heading);
	cursor: pointer;
	padding: 6px;
	display: inline-flex;
	align-items: center;
}

.gothic-mobile-toggle {
	display: none;
}

.gothic-search-bar {
	background-color: #090807;
	border-top: 1px solid var(--g-border);
	padding: 14px 0;
}

.gothic-header-searchform {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gothic-header-searchform input {
	flex: 1;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--g-border);
	color: var(--g-heading);
	font-family: var(--g-font-body);
	font-size: 16px;
	padding: 6px 4px;
	outline: none;
}

.gothic-search-close {
	background: none;
	border: 0;
	color: var(--g-muted);
	font-size: 26px;
	cursor: pointer;
}

/* ==========================================================================
   HERO BANNER KHẮC GỖ
   ========================================================================== */
.gothic-hero-banner {
	position: relative;
	width: 100%;
	height: var(--g-hero-h);
	background-color: #161411;
	background-size: cover;
	background-position: center center;
	border-bottom: 1px solid var(--g-border);
	overflow: hidden;
}

.gothic-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(14, 13, 11, 0.25) 0%, rgba(14, 13, 11, 0.15) 55%, rgba(0, 0, 0, 0.72) 100%);
}

.gothic-hero-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	padding-top: 38px;
}

.gothic-hero-motto-box {
	text-align: center;
}

.gothic-hero-motto {
	font-family: "Cinzel", var(--g-font-body);
	font-size: 20px;
	letter-spacing: 0.24em;
	color: var(--g-heading);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.gothic-hero-cross {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
	padding: 0 14px;
	color: var(--g-heading);
}

.gothic-hero-cross::before,
.gothic-hero-cross::after {
	content: "";
	position: absolute;
	top: 42%;
	width: 68px;
	height: 1px;
	background-color: rgba(244, 240, 232, 0.45);
}

.gothic-hero-cross::before { right: 100%; }
.gothic-hero-cross::after  { left: 100%; }

/* ==========================================================================
   BỐ CỤC CHÍNH 2 CỘT (70% FEED / 30% SIDEBAR)
   ========================================================================== */
.gothic-layout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 48px;
	padding-top: 44px;
	padding-bottom: 64px;
}

/* Thẻ bài viết ngang kiểu Engraving */
.gothic-post-card {
	display: grid;
	grid-template-columns: 235px minmax(0, 1fr);
	gap: 32px;
	padding-bottom: 34px;
	margin-bottom: 34px;
	border-bottom: 1px solid var(--g-border);
	align-items: start;
}

.gothic-card-thumb {
	border: 1px solid rgba(244, 240, 232, 0.55);
	padding: 3px;
	background-color: #090807;
}

.gothic-engraving-img {
	width: 100%;
	display: block;
	filter: grayscale(100%) contrast(1.08);
	transition: filter 0.3s ease;
}

.gothic-post-card:hover .gothic-engraving-img {
	filter: grayscale(70%) contrast(1.12);
}

.gothic-card-kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 8px;
}

.gothic-card-kicker a,
.gothic-card-kicker span:first-child {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--g-accent);
}

.gothic-kicker-line {
	display: inline-block;
	width: 56px;
	height: 1px;
	background-color: var(--g-border);
}

.gothic-card-title {
	margin: 0 0 12px;
	font-size: 31px;
	font-weight: 400;
	line-height: 1.24;
	color: var(--g-heading);
}

.gothic-card-title a {
	color: var(--g-heading);
}

.gothic-card-title a:hover {
	color: var(--g-accent);
}

.gothic-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: var(--g-muted);
	margin-bottom: 14px;
}

.gothic-card-meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gothic-card-meta .meta-sep {
	color: var(--g-border);
}

.gothic-card-excerpt p {
	margin: 0 0 16px;
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--g-text);
}

.gothic-read-more {
	display: inline-block;
	font-size: 15px;
	color: var(--g-heading);
	padding-bottom: 3px;
	border-bottom: 1px solid var(--g-border);
}

.gothic-read-more:hover {
	color: var(--g-accent);
	border-color: var(--g-accent);
}

/* ==========================================================================
   SIDEBAR CỘT PHẢI
   ========================================================================== */
.gothic-widget {
	margin-bottom: 32px;
}

/* Hộp trích dẫn Kinh Thánh */
.gothic-quote-box {
	border: 1px solid var(--g-border);
	background-color: rgba(255, 255, 255, 0.015);
	padding: 24px 22px;
	text-align: center;
}

.gothic-quote-box blockquote {
	margin: 0;
}

.gothic-quote-box p {
	margin: 0 0 12px;
	font-size: 15.5px;
	font-style: italic;
	line-height: 1.65;
	color: var(--g-heading);
}

.gothic-quote-box cite {
	font-size: 13.5px;
	font-style: italic;
	color: var(--g-muted);
}

/* Ô tìm kiếm Sidebar */
.gothic-sidebar-searchform {
	display: flex;
	align-items: center;
	border: 1px solid var(--g-border);
	background-color: #090807;
	padding: 4px 10px;
}

.gothic-search-input {
	flex: 1;
	background: transparent;
	border: 0;
	color: var(--g-heading);
	font-family: var(--g-font-body);
	font-size: 15px;
	padding: 8px 6px;
	outline: none;
}

.gothic-search-submit {
	background: none;
	border: 0;
	color: var(--g-heading);
	cursor: pointer;
	padding: 6px;
}

/* Tiêu đề Widget DANH MỤC */
.gothic-widget-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	font-family: "Cinzel", var(--g-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--g-heading);
}

.gothic-widget-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: var(--g-border);
}

.gothic-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gothic-cat-list li {
	margin-bottom: 10px;
}

.gothic-cat-list a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	color: var(--g-text);
}

.gothic-cat-list a:hover {
	color: var(--g-heading);
}

.gothic-cross-bullet {
	color: var(--g-muted);
	font-size: 14px;
}

.gothic-cat-count {
	color: var(--g-muted);
	font-size: 14.5px;
}

.gothic-sidebar-art-frame {
	border: 1px solid rgba(244, 240, 232, 0.5);
	padding: 3px;
}

/* ==========================================================================
   TRANG CHI TIẾT BÀI VIẾT (SINGLE) & DROPCAP
   ========================================================================== */
.gothic-single-container {
	max-width: 820px;
	padding-top: 48px;
	padding-bottom: 64px;
}

.gothic-single-header {
	text-align: center;
	padding-bottom: 24px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--g-border);
}

.gothic-single-cat {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--g-accent);
	margin-bottom: 10px;
}

.gothic-single-title {
	margin: 0 0 14px;
	font-size: 34px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--g-heading);
}

.gothic-single-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
	font-style: italic;
	color: var(--g-muted);
}

.gothic-single-featured {
	margin: 0 0 32px;
	border: 1px solid var(--g-border);
	padding: 4px;
}

.gothic-entry-content p {
	text-align: justify;
	margin: 0 0 24px;
}

.pao-has-dropcap > p:first-of-type::first-letter {
	font-family: "Rosecaps", var(--g-font-gothic);
	float: left;
	font-size: 4.4rem;
	line-height: 0.76;
	margin-right: 14px;
	margin-top: 0.1em;
	color: var(--g-accent);
}

.gothic-donate-box {
	margin: 40px 0;
	padding: 26px 20px;
	border-top: 1px solid var(--g-border);
	border-bottom: 1px solid var(--g-border);
	text-align: center;
	font-style: italic;
}

.gothic-donate-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 9px 26px;
	border: 1px solid var(--g-accent);
	color: var(--g-accent);
	font-style: normal;
	font-size: 14px;
	letter-spacing: 0.12em;
}

.gothic-donate-btn:hover {
	background-color: var(--g-accent);
	color: #000000;
}

.gothic-share-bar {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0;
}

.gothic-share-bar a {
	padding: 6px 14px;
	border: 1px solid var(--g-border);
	font-size: 13px;
	color: var(--g-text);
}

.gothic-share-bar a:hover {
	border-color: var(--g-accent);
	color: var(--g-heading);
}

/* ==========================================================================
   ARCHIVE, PAGINATION, 404 & FOOTER
   ========================================================================== */
.gothic-archive-header {
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--g-border);
}

.gothic-archive-title {
	margin: 0;
	font-size: 30px;
	font-weight: 400;
	color: var(--g-heading);
}

.gothic-archive-desc {
	margin-top: 12px;
	font-size: 16px;
	color: var(--g-muted);
}

.gothic-pagination ul.page-numbers {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	gap: 8px;
}

.gothic-pagination li a,
.gothic-pagination li span {
	display: inline-block;
	padding: 6px 13px;
	border: 1px solid var(--g-border);
	font-size: 14px;
}

.gothic-pagination li span.current {
	border-color: var(--g-accent);
	color: var(--g-accent);
}

.gothic-404-wrap {
	text-align: center;
	padding: 70px 24px;
}

.gothic-404-code {
	font-family: var(--g-font-gothic);
	font-size: 86px;
	color: var(--g-heading);
	line-height: 1;
}

.gothic-404-search {
	max-width: 400px;
	margin: 24px auto;
}

#gothic-footer {
	background-color: var(--g-header-bg);
	border-top: 1px solid var(--g-border);
	padding: 26px 0;
	font-size: 14px;
	color: var(--g-muted);
}

.gothic-footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

/* Mobile Drawer */
#gothic-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 270px;
	background-color: #090807;
	border-left: 1px solid var(--g-border);
	padding: 54px 24px 24px;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	z-index: 1200;
}

#gothic-mobile-drawer.is-open {
	transform: translateX(0);
}

#gothic-drawer-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 1150;
}

#gothic-drawer-backdrop.is-open {
	display: block;
}

.gothic-drawer-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: 0;
	color: var(--g-heading);
	font-size: 28px;
	cursor: pointer;
}

.gothic-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gothic-mobile-menu li {
	border-bottom: 1px solid var(--g-border);
}

.gothic-mobile-menu li a {
	display: block;
	padding: 12px 0;
	font-size: 15px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media screen and (max-width: 960px) {
	.gothic-layout-grid {
		grid-template-columns: 1fr;
	}

	#gothic-nav ul.menu {
		display: none;
	}

	.gothic-mobile-toggle {
		display: inline-flex;
	}
}

@media screen and (max-width: 640px) {
	.gothic-brand-title {
		font-size: 32px;
	}

	.gothic-post-card {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.gothic-card-title {
		font-size: 25px;
	}

	.gothic-hero-banner {
		height: 220px;
	}

	.gothic-hero-motto {
		font-size: 15px;
		letter-spacing: 0.16em;
	}
}

/* ==========================================================================
   AUTHOR BOX (ABIO-STYLE-4)
   ========================================================================== */
.post-author.abio-style-4 {
	margin-top: 80px !important;
	margin-bottom: 24px !important;
	padding: 20px 26px 26px !important;
	border: 1px solid var(--g-accent) !important;
	background-color: rgba(255, 255, 255, 0.015) !important;
	text-align: center !important;
	overflow: visible !important;
}

.post-author.abio-style-4 .author-img {
	display: block !important;
	float: none !important;
	margin: -72px 0 15px !important;
}

.post-author.abio-style-4 .author-img img {
	display: inline-block !important;
	vertical-align: top !important;
	width: 100px !important;
	height: 100px !important;
	border-radius: 50% !important;
	border: 2px solid var(--g-accent) !important;
	background-color: var(--g-bg) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65) !important;
	filter: grayscale(100%) contrast(1.08);
}

.post-author.abio-style-4 .author-content {
	margin-left: 0 !important;
}

.post-author.abio-style-4 .author-content h5 {
	margin: 0 0 10px !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
}

.post-author.abio-style-4 .author-content h5 a {
	color: var(--g-heading) !important;
}

.post-author.abio-style-4 .author-content p {
	margin: 0 !important;
	font-size: 15.5px !important;
	line-height: 1.7 !important;
	color: var(--g-text) !important;
	text-align: center !important;
}

/* ==========================================================================
   KHUNG TRÍCH DẪN GÓC TRÒN LÕM TRONG BÀI VIẾT (POST BLOCKQUOTE)
   ========================================================================== */
.gothic-entry-content blockquote,
.gothic-entry-content .wp-block-quote {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 48px auto;
	padding: 30px 34px 24px;
	border: 1px solid var(--g-accent);
	background-color: var(--g-bg);
	text-align: center;
	color: var(--g-heading);
	overflow: visible;
}

/* Nhãn tên tác giả / nguồn trích dẫn nằm đè lên cạnh viền trên */
.gothic-entry-content blockquote cite,
.gothic-entry-content .wp-block-quote cite {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: var(--g-bg);
	color: var(--g-accent);
	padding: 0 14px;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
	max-width: calc(100% - 56px);
	overflow: hidden;
	text-overflow: ellipsis;
	z-index: 3;
}

/* Nội dung đoạn trích bên trong */
.gothic-entry-content blockquote p,
.gothic-entry-content .wp-block-quote p {
	margin: 0 0 12px;
	padding-top: 4px;
	font-size: 18px;
	font-style: italic;
	line-height: 1.7;
	text-align: center !important;
	color: var(--g-heading);
}

.gothic-entry-content blockquote p:last-of-type,
.gothic-entry-content .wp-block-quote p:last-of-type {
	margin-bottom: 0;
}

/* 4 góc tròn lõm (Inverted Circular Corners) */
.pao-q-corner {
	position: absolute;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid transparent;
	transform: rotate(-45deg);
	background-color: var(--g-bg);
	pointer-events: none;
	z-index: 2;
}

.pao-q-lt {
	top: -16px;
	left: -16px;
	border-bottom-color: var(--g-accent);
}

.pao-q-rt {
	top: -16px;
	right: -16px;
	border-left-color: var(--g-accent);
}

.pao-q-lb {
	bottom: -16px;
	left: -16px;
	border-right-color: var(--g-accent);
}

.pao-q-rb {
	bottom: -16px;
	right: -16px;
	border-top-color: var(--g-accent);
}

@media screen and (max-width: 640px) {
	.gothic-entry-content blockquote,
	.gothic-entry-content .wp-block-quote {
		margin: 40px auto;
		padding: 26px 22px 20px;
	}

	.gothic-entry-content blockquote cite,
	.gothic-entry-content .wp-block-quote cite {
		font-size: 14.5px;
		padding: 0 10px;
	}

	.gothic-entry-content blockquote p,
	.gothic-entry-content .wp-block-quote p {
		font-size: 16.5px;
	}
}