/* ===================================================
   SF Art Map — Blog / News Section
   Magazine-style layout with featured posts
   =================================================== */


/* ── Featured Post ──────────────────────────────── */
.news-featured {
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 30px;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
}

.news-featured-image {
	width: 100%;
	height: 480px;
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
	display: block;
	transition: transform 0.3s;
}

.news-featured-image:hover {
	transform: scale(1.02);
}

.news-badge-featured {
	position: absolute;
	top: 20px;
	left: 20px;
}

.news-featured-content {
	padding: 20px 0;
}

.news-category-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--primary-red);
	margin-bottom: 15px;
	transition: opacity 0.2s;
}

.news-category-link:hover {
	opacity: 0.7;
}

.news-featured-title {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 20px;
}

.news-featured-title a {
	color: var(--text-color);
	transition: color 0.2s;
}

.news-featured-title a:hover {
	color: var(--primary-red);
}

.news-featured-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #888;
	margin-bottom: 20px;
}

.news-meta-sep {
	color: var(--medium-gray);
}

.news-reading-time {
	color: #888;
}

.news-featured-excerpt {
	font-size: 17px;
	line-height: 1.65;
	color: #555;
	margin-bottom: 25px;
}

.news-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--primary-red);
	color: var(--white);
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--border-radius);
	transition: background 0.2s;
}

.news-read-more:hover {
	background: var(--dark-red);
	color: var(--white);
}

/* ── Posts Grid ─────────────────────────────────── */
.news-grid-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 30px 80px;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 30px;
}

.news-card {
	background: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-card-image {
	display: block;
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.news-category-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	background: var(--primary-red);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 20px;
}

.news-card-content {
	padding: 20px;
}

.news-card-title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 12px 0;
}

.news-card-title a {
	color: var(--text-color);
	transition: color 0.2s;
}

.news-card-title a:hover {
	color: var(--primary-red);
}

.news-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #999;
	margin-bottom: 12px;
}

.news-card-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
}

/* ── Pagination ─────────────────────────────────── */
.news-pagination {
	margin-top: 50px;
	text-align: center;
}

.news-pagination ul {
	display: inline-flex;
	list-style: none;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.news-pagination li {
	margin: 0;
}

.news-pagination a,
.news-pagination span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	justify-content: center;
	border: 1.5px solid var(--medium-gray);
	border-radius: var(--border-radius);
	font-size: 14px;
	font-weight: 500;
	color: var(--text-color);
	transition: all 0.2s;
}

.news-pagination a:hover {
	border-color: var(--primary-red);
	background: #fff5f5;
	color: var(--primary-red);
}

.news-pagination .current {
	background: var(--primary-red);
	border-color: var(--primary-red);
	color: var(--white);
}

.news-pagination .prev,
.news-pagination .next {
	padding: 0 16px;
}

/* ── No Results ─────────────────────────────────── */
.news-no-results {
	padding: 80px 20px;
	text-align: center;
	max-width: 480px;
	margin: 0 auto;
}

.news-no-results h3 {
	font-size: 24px;
	margin: 20px 0 10px;
	color: var(--text-color);
}

.news-no-results p {
	font-size: 16px;
	color: #888;
	line-height: 1.6;
}

.news-no-results a {
	color: var(--primary-red);
	text-decoration: underline;
}

/* ══════════════════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════════════════ */

.single-post-article {
	background: var(--white);
}

/* ── Post Header ────────────────────────────────── */
.single-post-header {
	background: var(--light-gray);
	padding: 40px 30px 50px;
}

.single-post-header-inner {
	max-width: 840px;
	margin: 0 auto;
}

.post-breadcrumb {
	margin-bottom: 25px;
}

.breadcrumb-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--primary-red);
	transition: opacity 0.2s;
}

.breadcrumb-link:hover {
	opacity: 0.7;
}

.post-category-badge {
	display: inline-block;
	padding: 6px 14px;
	background: var(--primary-red);
	color: var(--white);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 20px;
	margin-bottom: 20px;
	transition: background 0.2s;
}

.post-category-badge:hover {
	background: var(--dark-red);
	color: var(--white);
}

.single-post-title {
	font-size: 52px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 30px;
	color: var(--text-color);
}

.single-post-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.post-meta-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.post-meta-author img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.post-author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.post-author-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-color);
}

.post-date {
	font-size: 14px;
	color: #888;
}

.post-meta-stats {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 14px;
	color: #888;
}

.post-reading-time,
.post-comments-count {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ── Featured Image ─────────────────────────────── */
.single-post-featured-image {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0;
}

.post-hero-image {
	width: 100%;
	height: auto;
	max-height: 600px;
	object-fit: cover;
}

.post-image-caption {
	max-width: 840px;
	margin: 0 auto;
	padding: 15px 30px;
	font-size: 14px;
	color: #888;
	font-style: italic;
	text-align: center;
}

/* ── Post Content ───────────────────────────────── */
.single-post-content {
	max-width: 840px;
	margin: 0 auto;
	padding: 50px 30px;
}

.post-content-inner {
	font-size: 18px;
	line-height: 1.75;
	color: var(--text-color);
}

.post-content-inner p {
	margin-bottom: 24px;
}

.post-content-inner h2 {
	font-size: 32px;
	font-weight: 700;
	margin: 40px 0 20px;
	line-height: 1.3;
}

.post-content-inner h3 {
	font-size: 26px;
	font-weight: 600;
	margin: 32px 0 16px;
	line-height: 1.35;
}

.post-content-inner h4 {
	font-size: 22px;
	font-weight: 600;
	margin: 28px 0 14px;
}

.post-content-inner ul,
.post-content-inner ol {
	margin: 24px 0;
	padding-left: 30px;
}

.post-content-inner li {
	margin-bottom: 10px;
}

.post-content-inner blockquote {
	margin: 32px 0;
	padding: 24px 30px;
	background: var(--light-gray);
	border-left: 4px solid var(--primary-red);
	font-size: 20px;
	font-style: italic;
	line-height: 1.65;
	color: #555;
}

.post-content-inner img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 32px 0;
}

.post-content-inner a {
	color: var(--primary-red);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: opacity 0.2s;
}

.post-content-inner a:hover {
	opacity: 0.7;
}

/* WordPress Gallery Support */
.post-content-inner .wp-block-gallery,
.post-content-inner .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin: 32px 0;
}

.post-content-inner .wp-block-image figure,
.post-content-inner .gallery-item {
	margin: 0;
}

.post-content-inner .gallery-item img {
	margin: 0;
	cursor: pointer;
	transition: opacity 0.2s;
}

.post-content-inner .gallery-item img:hover {
	opacity: 0.85;
}

/* ── Tags ───────────────────────────────────────── */
.post-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--medium-gray);
}

.post-tags svg {
	color: #999;
}

.post-tag {
	padding: 6px 14px;
	background: var(--light-gray);
	color: var(--text-color);
	font-size: 13px;
	font-weight: 500;
	border-radius: 20px;
	transition: background 0.2s, color 0.2s;
}

.post-tag:hover {
	background: var(--primary-red);
	color: var(--white);
}

/* ── Share Buttons ──────────────────────────────── */
.post-share {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid var(--medium-gray);
}

.post-share-label {
	font-size: 14px;
	font-weight: 600;
	color: #888;
}

.post-share-buttons {
	display: flex;
	gap: 10px;
}

.share-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--light-gray);
	color: var(--text-color);
	transition: all 0.2s;
	border: none;
	cursor: pointer;
}

.share-btn:hover {
	transform: translateY(-2px);
}

.share-twitter:hover { background: #1DA1F2; color: var(--white); }
.share-facebook:hover { background: #1877F2; color: var(--white); }
.share-email:hover { background: var(--dark-gray); color: var(--white); }
.share-copy:hover { background: var(--primary-red); color: var(--white); }

/* ── Author Bio ─────────────────────────────────── */
.post-author-bio {
	max-width: 840px;
	margin: 0 auto;
	padding: 0 30px 40px;
}

.author-bio-inner {
	display: flex;
	gap: 20px;
	padding: 30px;
	background: var(--light-gray);
	border-radius: 8px;
}

.author-bio-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	flex-shrink: 0;
}

.author-bio-content {
	flex: 1;
}

.author-bio-name {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 10px;
	color: var(--text-color);
}

.author-bio-text {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	margin: 0;
}

/* ── Related Posts ──────────────────────────────── */
.related-posts {
	background: var(--light-gray);
	padding: 60px 30px;
}

.related-posts-inner {
	max-width: 1400px;
	margin: 0 auto;
}

.related-posts-title {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 40px;
	color: var(--text-color);
}

.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.related-post-card {
	background: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

.related-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.related-post-image {
	display: block;
	width: 100%;
	height: 200px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.related-post-content {
	padding: 20px;
}

.related-post-title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 10px;
}

.related-post-title a {
	color: var(--text-color);
	transition: color 0.2s;
}

.related-post-title a:hover {
	color: var(--primary-red);
}

.related-post-date {
	font-size: 13px;
	color: #999;
}

/* ── Comments Section ───────────────────────────── */
.post-comments-section {
	max-width: 840px;
	margin: 0 auto;
	padding: 60px 30px 80px;
}

.post-comments-inner {
	padding: 40px;
	background: var(--light-gray);
	border-radius: 8px;
}

/* ══════════════════════════════════════════════════
   ARCHIVE PAGES
   ══════════════════════════════════════════════════ */

.archive-hero {
	background: var(--light-gray);
	padding: 50px 30px;
	border-bottom: 1px solid var(--medium-gray);
}

.archive-hero-inner {
	max-width: 900px;
	margin: 0 auto;
}

.archive-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	margin-bottom: 20px;
	color: #888;
}

.archive-breadcrumb a {
	color: var(--primary-red);
}

.breadcrumb-sep {
	color: var(--medium-gray);
}

.breadcrumb-current {
	color: #888;
}

.archive-title {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 15px;
	color: var(--text-color);
}

.archive-description {
	font-size: 17px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
}

.archive-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 14px;
	color: #888;
}

.archive-count {
	padding: 5px 12px;
	background: var(--white);
	border-radius: 20px;
	font-weight: 600;
}

.archive-filters .news-filters-inner {
	justify-content: space-between;
}

.archive-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 16px;
	color: var(--primary-red);
	font-size: 14px;
	font-weight: 600;
	border: 1.5px solid var(--medium-gray);
	border-radius: var(--border-radius);
	transition: all 0.2s;
}

.archive-back-link:hover {
	background: #fff5f5;
	border-color: var(--primary-red);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.news-featured {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.news-featured-image {
		height: 380px;
	}

	.news-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 25px;
	}

	.single-post-title {
		font-size: 38px;
	}

	.news-filters {
		top: var(--header-h-mobile);
	}
}

@media (max-width: 768px) {
	.news-hero {
		padding: 40px 20px;
	}

	.news-hero-title {
		font-size: 32px;
	}

	.news-hero-subtitle {
		font-size: 16px;
	}

	.news-filters {
		padding: 15px 20px;
	}

	.news-filters-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.news-search-form {
		max-width: none;
	}

	.news-filter-dropdown select {
		width: 100%;
	}

	.news-featured {
		padding: 0 20px;
		margin: 30px auto;
	}

	.news-featured-title {
		font-size: 28px;
	}

	.news-grid-wrapper {
		padding: 30px 20px 60px;
	}

	.news-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.single-post-header {
		padding: 30px 20px 40px;
	}

	.single-post-title {
		font-size: 32px;
	}

	.single-post-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.single-post-content {
		padding: 40px 20px;
	}

	.post-content-inner {
		font-size: 17px;
	}

	.post-content-inner h2 {
		font-size: 26px;
	}

	.author-bio-inner {
		flex-direction: column;
		padding: 25px;
	}

	.related-posts {
		padding: 40px 20px;
	}

	.related-posts-title {
		font-size: 26px;
	}

	.related-posts-grid {
		grid-template-columns: 1fr;
	}

	.post-comments-section {
		padding: 40px 20px 60px;
	}

	.post-comments-inner {
		padding: 25px;
	}

	.archive-hero {
		padding: 35px 20px;
	}

	.archive-title {
		font-size: 32px;
	}
}