/* ============================================================
   BLOG STYLESHEET — Archive & Single Post Design
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. BLOG ARCHIVE PAGE
   ──────────────────────────────────────────────────────────── */

/* Header */
.blog-archive-header {
	background: linear-gradient(135deg, #004D40 0%, #007A81 60%, #009098 100%);
	padding: 5.5rem 0 5rem;
	text-align: center;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.blog-archive-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 10% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
	                  radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
	pointer-events: none;
}

.blog-archive-eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 0.3rem 1.1rem;
	border-radius: 9999px;
	margin-bottom: 1.1rem;
}

.blog-archive-title {
	font-family: var(--font-title);
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.15;
	margin: 0 0 0.8rem;
	letter-spacing: -0.01em;
}

.blog-archive-subtitle {
	font-family: var(--font-body);
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.88);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Grid & Container */
.blog-archive-container {
	padding: 5rem 0 6rem;
}

.blog-archive-grid,
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 4rem;
}

@media (max-width: 960px) {
	.blog-archive-grid,
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 600px) {
	.blog-archive-grid,
	.blog-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* Card layout (post-card) */
.post-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(0, 144, 152, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(0, 80, 90, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-card__image-link {
	display: block;
	position: relative;
	height: 220px;
	overflow: hidden;
	background-color: #f3f4f6;
}

.post-card__image-link::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
}

.post-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card__image {
	transform: scale(1.05);
}

.post-card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}

.post-card__category {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 0.25rem;
}

.post-card__title {
	font-family: var(--font-title);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.post-card__title a {
	color: var(--secondary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.post-card__title a:hover {
	color: var(--primary);
}

.post-card__excerpt {
	font-family: var(--font-body);
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.6;
	flex: 1;
	margin-bottom: 0.75rem;
}

/* Pagination links */
.blog-pagination {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.blog-pagination .pagination {
	display: flex;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
}

.blog-pagination .nav-links {
	display: flex;
	gap: 0.4rem;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	min-width: 42px;
	padding: 0 0.5rem;
	border-radius: 8px;
	border: 1px solid rgba(0, 144, 152, 0.15);
	background: #ffffff;
	color: var(--secondary);
	font-family: var(--font-body);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.blog-pagination .page-numbers.current {
	background: var(--primary);
	color: #ffffff;
	border-color: var(--primary);
}

.blog-pagination .page-numbers:hover:not(.current) {
	border-color: var(--primary);
	color: var(--primary);
	background: rgba(0, 144, 152, 0.03);
}

.no-posts-found {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--text-muted);
	font-family: var(--font-body);
	padding: 4rem 0;
}


/* ────────────────────────────────────────────────────────────
   2. SINGLE POST DETAILS PAGE
   ──────────────────────────────────────────────────────────── */

.site-main--singular {
	padding-top: 110px; /* Offset for absolute header only */
}

/* Breadcrumb customization */
.site-main--singular .breadcrumb {
	margin-bottom: 2rem;
}

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.83rem;
}

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

.breadcrumb__item a:hover {
	color: var(--primary);
}

.breadcrumb__item::after {
	content: '/';
	margin-left: 0.5rem;
	color: rgba(0,0,0,0.15);
}

.breadcrumb__item:last-child::after,
.breadcrumb__item.is-current::after {
	display: none;
}

.breadcrumb__item.is-current {
	color: var(--primary);
	font-weight: 600;
	max-width: 320px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Post Container Layout */
article.single-post-premium {
	margin: -5rem auto 5rem; /* pull up into the header slightly or keep flat if desired. Let's make it sit below the nav cleanly */
	margin-top: 2rem;
	width: 100%;
}

/* Header */
.single-post-premium__header {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 5%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 3rem;
}

.single-post-premium__header-content {
	max-width: 800px;
	margin-bottom: 2.5rem;
}

.single-post-premium__category {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
	background: var(--primary);
	padding: 0.4rem 1.2rem;
	border-radius: 9999px;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 10px rgba(0, 144, 152, 0.3);
}

.single-post-premium__title {
	font-family: var(--font-title);
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	font-weight: 800;
	color: var(--secondary);
	line-height: 1.15;
	margin: 0 0 1.5rem;
	letter-spacing: -0.02em;
}

/* Meta Data row */
.single-post-premium__meta .post-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--text-muted);
}

.post-meta__divider {
	color: rgba(0, 0, 0, 0.15);
}

.post-meta__category {
	font-weight: 600;
	color: var(--primary);
}

.post-meta__read-time {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #ffffff;
	padding: 0.3rem 0.8rem;
	border-radius: 20px;
	border: 1px solid rgba(0,0,0,0.05);
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.post-meta__read-time::before {
	content: '⏱️';
	font-size: 0.9em;
}

/* Featured Image */
.single-post-premium__featured {
	width: 100%;
	height: 60vh;
	min-height: 400px;
	max-height: 700px;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
	position: relative;
	margin: 0;
}

.single-post-premium__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.single-post-premium__featured:hover .single-post-premium__image {
	transform: scale(1.02);
}

/* Spacer if no image */
.single-post-premium__no-image-spacer {
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
	border-radius: 4px;
	margin-top: 1rem;
}

/* Post Body Container */
.single-post-premium__body {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 5%;
	background: transparent;
}

/* Main Content Text Area */
.single-post-premium__content {
	padding: 1rem 0 3rem;
	font-family: var(--font-body);
	font-size: 1.1rem;
	line-height: 1.85;
	color: #374151;
}

@media (max-width: 768px) {
	.single-post-premium__content {
		font-size: 1.05rem;
	}
	.single-post-premium__featured {
		height: 40vh;
		min-height: 300px;
		border-radius: 16px;
	}
}

/* Content typography styling */
.single-post-premium__content p {
	margin-bottom: 2rem;
}

.single-post-premium__content h2 {
	font-family: var(--font-title);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--secondary);
	margin: 3rem 0 1.5rem;
	line-height: 1.3;
}

.single-post-premium__content h3 {
	font-family: var(--font-title);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--secondary);
	margin: 2.5rem 0 1.25rem;
	line-height: 1.35;
}

.single-post-premium__content ul,
.single-post-premium__content ol {
	margin-bottom: 2rem;
	padding-left: 1.5rem;
}

.single-post-premium__content li {
	margin-bottom: 0.8rem;
}

.single-post-premium__content blockquote {
	margin: 3rem 0;
	padding: 1.5rem 2rem;
	border-left: 4px solid var(--primary);
	background: #ffffff;
	border-radius: 0 16px 16px 0;
	font-size: 1.25rem;
	font-style: italic;
	color: var(--secondary);
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.single-post-premium__content blockquote p:last-child {
	margin-bottom: 0;
}

/* Post footer tags */
.single-post-premium__footer {
	padding: 2rem 0 0;
	border-top: 1px solid rgba(0,144,152,0.15);
	margin-top: 2rem;
}

.single-post-premium__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.single-post-premium__tags a {
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
	background: #ffffff;
	border: 1px solid #e5e7eb;
	padding: 0.4rem 1.1rem;
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.single-post-premium__tags a:hover {
	background: var(--primary);
	color: #ffffff;
	border-color: var(--primary);
	box-shadow: 0 4px 10px rgba(0, 144, 152, 0.2);
}

