/* EArk Blog & Editorial Styles
   Crisp square geometry, var(--eark-primary, #1677ff) primary blue, var(--eark-secondary, #00c4b4) accent teal,
   and focused editorial reading hierarchy matching EArk theme.
*/

/* Blog Archive / Category Hero */
.blog-hero {
	position: relative;
	background: linear-gradient(180deg, #eef5ff 0%, #f7f9fc 65%, #ffffff 100%);
	padding: 56px 24px 44px;
	text-align: center;
	border-bottom: 1px solid #e7ebf3;
	margin-bottom: 40px;
}
.blog-hero-inner {
	max-width: 760px;
	margin: 0 auto;
}
.blog-hero h1 {
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #1d2129;
	margin: 0 0 12px;
}
.blog-hero p {
	font-size: 15.5px;
	color: #4e5969;
	line-height: 1.7;
	margin: 0;
}

/* Featured Post (First post in archive) */
.eark-featured-post {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 40px;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-radius: 0;
	overflow: hidden;
	margin: 0 auto 40px;
	max-width: 1200px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.05);
	transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.eark-featured-post:hover {
	border-color: #cfe0ff;
	box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
	transform: translateY(-2px);
}
.eark-featured-media {
	height: 100%;
	min-height: 360px;
	background: linear-gradient(135deg, #e8f1ff 0%, #f3f0ff 55%, #e7f7ff 100%);
}
.eark-featured-media a { display: block; height: 100%; }
.eark-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.eark-featured-content {
	padding: 32px 40px 32px 0;
}
.eark-post-meta {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	display: flex;
	align-items: center;
	gap: 8px;
}
.eark-post-meta span {
	color: #86909c;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}
.eark-featured-content h2 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin: 0 0 14px;
}
.eark-featured-content h2 a { color: #1d2129; text-decoration: none; transition: color 0.15s ease; }
.eark-featured-content h2 a:hover { color: var(--eark-primary, #1677ff); }
.eark-featured-content p {
	font-size: 15px;
	color: #4e5969;
	line-height: 1.75;
	margin: 0 0 24px;
}

/* Standard Blog Grid */
.eark-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto 64px;
}
.eark-blog-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
	transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.eark-blog-card:hover {
	border-color: #cfe0ff;
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
	transform: translateY(-2px);
}
.eark-blog-media {
	height: 200px;
	background: linear-gradient(135deg, #e8f1ff 0%, #f3f0ff 55%, #e7f7ff 100%);
	overflow: hidden;
}
.eark-blog-media a { display: block; height: 100%; }
.eark-blog-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.eark-blog-card:hover .eark-blog-media img {
	transform: scale(1.03);
}
.eark-blog-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.eark-blog-content h3 {
	font-size: 18px;
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.4;
	margin: 0 0 10px;
}
.eark-blog-content h3 a { color: #1d2129; text-decoration: none; transition: color 0.15s ease; }
.eark-blog-content h3 a:hover { color: var(--eark-primary, #1677ff); }
.eark-blog-content p {
	font-size: 14px;
	color: #4e5969;
	line-height: 1.7;
	margin: 0 0 20px;
	flex: 1;
}
.eark-blog-footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f1f4f9;
}
.eark-read-more {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.eark-read-more::after {
	content: "\2192";
	transition: transform 0.15s ease;
}
.eark-read-more:hover::after {
	transform: translateX(3px);
}

/* Pagination */
.eark-pagination {
	text-align: center;
	margin: 40px 0 80px;
}
.eark-pagination .nav-links {
	display: inline-flex;
	gap: 8px;
}
.eark-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #e7ebf3;
	border-radius: 0;
	background: #ffffff;
	color: #4e5969;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.15s ease;
}
.eark-pagination .page-numbers:hover {
	border-color: var(--eark-primary, #1677ff);
	color: var(--eark-primary, #1677ff);
}
.eark-pagination .page-numbers.current {
	background: var(--eark-primary, #1677ff);
	border-color: var(--eark-primary, #1677ff);
	color: #ffffff;
}

/* ==========================================================================
   Single Post Reading Layout
   ========================================================================== */
.site-main.eark-single-post {
	padding: 0 0 72px;
	max-width: none;
	overflow: visible;
}

.post-hero {
	background: linear-gradient(180deg, #eef5ff 0%, #f8faff 55%, #ffffff 100%);
	border-bottom: 1px solid #eef0f4;
	padding: 44px 24px 40px;
	margin: 0 0 44px;
}

.post-hero-inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: left;
}

.post-breadcrumb {
	font-size: 13px;
	color: #86909c;
	margin: 0 0 18px;
}
.post-breadcrumb a {
	color: var(--eark-primary, #1677ff);
	text-decoration: none;
}
.post-breadcrumb a:hover {
	text-decoration: underline;
}
.post-breadcrumb span {
	margin: 0 6px;
	color: #c0c6d0;
}
.post-breadcrumb .is-current {
	margin: 0;
	color: #86909c;
}

.post-hero-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	margin-bottom: 14px;
}
.post-hero-cat a {
	display: inline-block;
	padding: 2px 10px;
	background: #e8f2ff;
	color: var(--eark-primary, #1677ff);
	font-weight: 600;
	font-size: 12px;
	text-decoration: none;
	letter-spacing: 0.02em;
}
.post-hero-cat a:hover {
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
}

.post-hero-title {
	font-size: 40px;
	font-weight: 750;
	line-height: 1.22;
	letter-spacing: -0.025em;
	color: #1d2129;
	margin: 0 0 16px;
}

.post-hero-lead {
	font-size: 17px;
	line-height: 1.7;
	color: #4e5969;
	margin: 0 0 24px;
}

.post-author-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 18px;
	border-top: 1px solid #e7ebf3;
}
.post-author-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 0;
	border: 1px solid #d6e4ff;
	display: block;
}
.post-author-info {
	text-align: left;
}
.post-author-name {
	display: block;
	font-size: 14px;
	font-weight: 650;
	color: #1d2129;
	line-height: 1.3;
}
.post-author-role {
	display: block;
	font-size: 12.5px;
	color: #86909c;
}

.post-hero-image {
	max-width: 1040px;
	margin: 0 auto 48px;
	padding: 0 24px;
}
.post-hero-image img {
	width: 100%;
	height: auto;
	max-height: 540px;
	object-fit: cover;
	display: block;
	border: 1px solid #e7ebf3;
	box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.post-content-container {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px;
}
.post-content-container .entry-content {
	font-size: 16px;
	line-height: 1.85;
}
.post-content-container .entry-content > p:first-of-type {
	font-size: 17px;
	color: #1d2129;
}
.post-content-container .alignwide {
	margin-left: calc(50% - 480px);
	margin-right: calc(50% - 480px);
	max-width: 960px;
	width: auto;
}
.post-content-container .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

/* Tags */
.post-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #eef0f4;
}
.post-tags-label {
	font-size: 13px;
	font-weight: 600;
	color: #86909c;
	margin-right: 4px;
}
.post-tag-chip {
	display: inline-block;
	padding: 4px 12px;
	background: #f7f9fc;
	border: 1px solid #e7ebf3;
	color: #4e5969;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.15s ease;
}
.post-tag-chip:hover {
	border-color: var(--eark-primary, #1677ff);
	color: var(--eark-primary, #1677ff);
	background: #f2f7ff;
}

/* Author Bio Box */
.post-author-bio {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	background: #f7f9fc;
	border: 1px solid #e7ebf3;
	border-left: 3px solid var(--eark-primary, #1677ff);
	padding: 24px 28px;
	margin: 44px 0;
}
.post-author-bio-avatar img {
	width: 64px;
	height: 64px;
	border-radius: 0;
	display: block;
}
.post-author-bio-kicker {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--eark-primary, #1677ff);
	margin-bottom: 4px;
}
.post-author-bio-content h4 {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 650;
	color: #1d2129;
}
.post-author-bio-content p {
	margin: 0;
	font-size: 14px;
	color: #4e5969;
	line-height: 1.65;
}

/* Previous / Next Post Navigation */
.post-prev-next {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 44px 0 0;
	padding-top: 28px;
	border-top: 1px solid #eef0f4;
}
.post-nav-item {
	display: flex;
	flex-direction: column;
	padding: 16px 18px;
	background: #ffffff;
	border: 1px solid #e7ebf3;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.post-nav-item:empty {
	display: none;
}
.post-nav-item:hover {
	border-color: #b9d4ff;
	background: #f8fbff;
}
.post-nav-item.is-next {
	text-align: right;
}
.post-nav-label {
	font-size: 12px;
	font-weight: 600;
	color: #86909c;
	margin-bottom: 6px;
}
.post-nav-item a {
	font-size: 14.5px;
	font-weight: 600;
	color: #1d2129;
	text-decoration: none;
	line-height: 1.4;
}
.post-nav-item a:hover {
	color: var(--eark-primary, #1677ff);
}

/* Related Posts Section */
.post-related-section {
	background: #f7f9fc;
	border-top: 1px solid #eef0f4;
	border-bottom: 1px solid #eef0f4;
	padding: 56px 24px;
	margin-top: 56px;
}
.post-related-inner {
	max-width: 1200px;
	margin: 0 auto;
}
.post-related-header {
	margin-bottom: 28px;
}
.post-related-kicker {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--eark-primary, #1677ff);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}
.post-related-header h2 {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #1d2129;
	margin: 0;
}
.post-related-section .eark-blog-grid {
	margin-bottom: 0;
}

/* Comments & Reply Form (Modern EArk UI) */
.post-comments-wrap {
	max-width: 800px;
	margin: 64px auto 0;
	padding: 0 24px;
}
.comments-area {
	background: #ffffff;
	border: 1px solid #e7ebf3;
	border-radius: 8px;
	padding: 40px;
	box-shadow: 0 4px 16px rgba(16, 24, 40, 0.02);
}
.comments-title,
.comment-reply-title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #1d2129;
	margin: 0 0 24px;
}
.comment-list {
	list-style: none;
	margin: 0 0 48px;
	padding: 0;
}
.comment-list .comment {
	padding: 24px 0;
	border-bottom: 1px solid #eef0f4;
}
.comment-list .comment:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.comment-list .children {
	list-style: none;
	margin: 16px 0 0 0;
	padding-left: 24px;
	border-left: 2px solid #eef0f4;
}
.comment-list .children .comment {
	padding-top: 16px;
	padding-bottom: 0;
	border-bottom: none;
}
.comment-body {
	position: relative;
}
.comment-author {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}
.comment-author img {
	border-radius: 50%;
	width: 48px;
	height: 48px;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}
.comment-author .fn {
	font-size: 15px;
	font-weight: 650;
	color: #1d2129;
	text-decoration: none;
}
.comment-author .fn a {
	color: #1d2129;
	text-decoration: none;
}
.comment-author .fn a:hover {
	color: var(--eark-primary, #1677ff);
}
.comment-metadata {
	font-size: 12.5px;
	color: #86909c;
	margin-top: 2px;
}
.comment-metadata a {
	color: #86909c;
	text-decoration: none;
}
.comment-metadata a:hover {
	color: var(--eark-primary, #1677ff);
}
.comment-metadata .edit-link {
	margin-left: 8px;
	color: #c0c6d0;
}
.comment-content {
	padding-left: 60px;
}
.comment-content p {
	font-size: 15px;
	color: #4e5969;
	line-height: 1.7;
	margin: 0 0 12px;
}
.reply {
	padding-left: 60px;
}
.comment-reply-link {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 650;
	color: var(--eark-primary, #1677ff);
	text-decoration: none;
	background: #f2f7ff;
	padding: 4px 12px;
	border-radius: 12px;
	transition: background 0.15s ease, color 0.15s ease;
}
.comment-reply-link:hover {
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
}
.reply-icon {
	margin-right: 4px;
	font-weight: 400;
}

/* Form */
.comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.comment-form-comment,
.comment-form-url {
	grid-column: 1 / -1;
}
.comment-notes,
.logged-in-as {
	grid-column: 1 / -1;
	font-size: 13.5px;
	color: #64748b;
	margin: 0 0 18px;
	background: #f8fafc;
	padding: 12px 16px;
	border-radius: 6px;
	border: 1px solid #eef0f4;
}
.logged-in-as a {
	color: var(--eark-primary, #1677ff);
	font-weight: 500;
	text-decoration: none;
}
.logged-in-as a:hover {
	text-decoration: underline;
}
.comment-form label {
	display: block;
	font-size: 13px;
	font-weight: 650;
	color: #1d2129;
	margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #d9e1ec;
	border-radius: 6px;
	background: #fdfdfd;
	font-family: inherit;
	font-size: 14.5px;
	color: #1d2129;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.comment-form textarea {
	resize: vertical;
	min-height: 120px;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--eark-primary, #1677ff);
	box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
	background: #ffffff;
}
.comment-form .comment-form-cookies-consent {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 12px;
}
.comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
	color: #64748b;
	font-size: 13px;
}
.comment-form .form-submit {
	grid-column: 1 / -1;
	margin: 0;
}
.comment-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 28px;
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 650;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(22, 119, 255, 0.2);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.comment-form button[type="submit"]:hover {
	background: var(--eark-primary-dark, #0e5fe0);
	box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
	transform: translateY(-1px);
}

@media (max-width: 768px) {
	.eark-featured-post {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.eark-featured-media { min-height: 240px; }
	.eark-featured-content { padding: 24px; }
	.post-hero { padding: 32px 20px; margin-bottom: 32px; }
	.post-hero-title { font-size: 28px; }
	.post-hero-image { padding: 0; margin-bottom: 32px; }
	.post-hero-image img { border-left: 0; border-right: 0; }
	.post-content-container .alignwide { margin-left: 0; margin-right: 0; width: 100%; max-width: 100%; }
	.post-prev-next { grid-template-columns: 1fr; }
	.post-nav-item.is-next { text-align: left; }
	.post-author-bio { flex-direction: column; }
	.comments-area { padding: 20px; }
	.comment-form { grid-template-columns: 1fr; }
	.comment-content, .reply { padding-left: 0; }
}
