/* ==========================================================================
   PRINTR BLOG — blog.css
   Styles ONLY the new blog-specific elements (grid, cards, single post,
   related posts). General site styling (header/footer/buttons/colors)
   should already exist in style.css (copied from the static site).
   ========================================================================== */

:root {
	--printr-text: #000;
	--printr-muted: #3e3e3e;
	--printr-border: #e5e5e5;
	--printr-blue: #1aa6e0;
}

/* ---------- Blog hero (archive page title) ---------- */
.blog-hero-banner {
	text-align: center;
	padding: 30px 20px 30px;
}

.blog-hero-banner h1 {
	font-size: 56px;
	font-weight: 700;
	margin-bottom: 14px;
	color: #000;
}

.blog-hero-subtitle {
	max-width: 640px;
	margin: 0 auto;
	color: var(--printr-muted);
	font-size: 16px;
	line-height: 1.6;
}

/* ---------- Blog grid (archive page) ---------- */
.blog-grid-section {
	padding: 30px 20px 80px;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 50px 40px;
	max-width: 1200px;
}

.blog-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.blog-card-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 4px;
	background: #f2f2f2;
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image img {
	transform: scale(1.04);
}

.blog-card-title {
	margin-top: 18px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--printr-text);
}

.blog-pagination {
	margin-top: 50px;
	display: flex;
	justify-content: center;
	gap: 16px;
}

.blog-pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--printr-border);
	border-radius: 4px;
	text-decoration: none;
	color: var(--printr-text);
}

.blog-pagination .page-numbers.current {
	background: var(--printr-blue);
	color: #fff;
	border-color: var(--printr-blue);
}

/* ---------- Single blog post ---------- */
.single-blog-post {
	padding: 50px 20px 0;
}

.single-blog-narrow {
	max-width: 820px;
}

.single-post-title {
	font-size: 50px;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 18px;
	text-align: center; /* Centered alignment */
	color: #000;
}


.single-post-meta {
	color: var(--printr-muted);
	font-size: 14px;
	margin-bottom: 28px;
	text-align: center; /* Centered alignment */
}

.single-post-meta .meta-divider {
	margin: 0 8px;
}

.single-post-featured-image {
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 36px;
}

.single-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.single-post-content {
	font-size: 16px;
	line-height: 1.8;
	color: #3e3e3e;
}

.single-post-content h2 {
	font-size: 36px;
	font-weight: 700;
	margin: 16px 0 10px;
	color: #000;
	line-height: 1.3;
}

.single-post-content h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 32px 0 12px;
}

.single-post-content p {
	margin-bottom: 18px;
}

.single-post-content ul,
.single-post-content ol {
	margin: 0 0 20px 22px;
}

.single-post-content li {
	margin-bottom: 8px;
}

.single-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
}

.single-post-content table th,
.single-post-content table td {
	border: 1px solid var(--printr-border);
	padding: 12px 16px;
	text-align: left;
}

.single-post-content table th {
	background: #fafafa;
	font-weight: 700;
}

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

.single-post-content a {
	color: var(--printr-blue);
	text-decoration: underline;
}

/* ---------- Custom Image Arrow Bullets ---------- */

/* Remove default dots and reset padding */
.single-post-content ul {
	list-style: none;
	margin: 0 0 20px 0;
	padding-left: 0;
}

/* Position the list items relative and make room for the arrow image */
.single-post-content li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
}

/* Align the arrow.png parallel to the first line of text */
.single-post-content li::before {
	content: "";
	position: absolute;
	left: 0;
	/* Aligns the arrow with the first line rather than the center of the block */
	top: 10px; 
	transform: none; /* Removed the centering transform */
	width: 12px;
	height: 12px;
	background-image: url('../images/arrow.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* ---------- Related blogs (bottom of single post) ---------- */
.related-blogs-section {
	background: #f7f7f5;
	margin-top: 70px;
	padding: 60px 20px;
}

.related-blogs-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto 30px;

	/* Adds the divider line seen in image_b715bf.jpg */
	border-bottom: 2px solid var(--printr-border); 
	padding-bottom: 16px; /* Adds clean spacing between the text and the line */
}


.related-blogs-header h2 {
	font-size: 40px;
	font-weight: 700;
	color: #000;
}

.browse-all-link {
	color: var(--printr-blue);
	font-weight: 600;
	text-decoration: none;
	font-size: 15px;
}

.related-blogs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	max-width: 1200px;
	margin: 0 auto;
}

.related-card .blog-card-title {
	font-size: 16px;
	margin-top: 14px;
	color: #000;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
	.related-blogs-grid {
		grid-template-columns: 1fr;
	}
	.blog-hero-banner h1 {
		font-size: 38px;
	}
	.single-post-title {
		font-size: 28px;
	}

	/* Adjust content headings like the one in image_b702a3.png */
	.single-post-content h2 {
		font-size: 28px;
		line-height: 44px;
	}

	.related-blogs-header h2 {

			font-size: 28px;
		line-height: 44px;
	}
}

/* ==========================================================================
   CATEGORY & AUTHOR ARCHIVE PAGES
   ========================================================================== */

/* ---------- Archive hero banner (category title) ---------- */
.archive-hero-banner {
	padding: 50px 20px 30px;
	border-bottom: 1px solid var(--printr-border);
	margin-bottom: 40px;
}

.archive-eyebrow {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--printr-blue);
	font-weight: 600;
	margin-bottom: 8px;
}

.archive-hero-banner h1 {
	font-size: 40px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #000;
}

.archive-description {
	color: var(--printr-muted);
	font-size: 16px;
	max-width: 600px;
}

/* ---------- Archive body — grid + sidebar layout ---------- */
.archive-body-section {
	padding: 0 20px 80px;
}

.archive-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 60px;
	align-items: start;
}

.archive-blog-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 40px 32px;
}

/* Small category label above card title */
.blog-card-category {
	font-size: 12px;
	color: var(--printr-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 14px 0 6px;
}

/* Placeholder when no featured image is set */
.blog-card-img-placeholder {
	width: 100%;
	height: 100%;
	background: #efefef;
}

/* ---------- Sidebar ---------- */
.blog-sidebar {
	position: sticky;
	top: 30px;
}

.sidebar-block {
	margin-bottom: 44px;
}

.sidebar-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #000;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--printr-border);
}

.sidebar-heading-bar {
	display: inline-block;
	width: 4px;
	height: 18px;
	background: var(--printr-blue);
	border-radius: 2px;
	flex-shrink: 0;
}

/* Recent posts list */
.sidebar-recent-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-recent-item {
	border-bottom: 1px solid var(--printr-border);
	padding: 14px 0;
}

.sidebar-recent-item:last-child {
	border-bottom: none;
}

.sidebar-recent-link {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: #000;
}

.sidebar-recent-link:hover .sidebar-recent-title {
	color: var(--printr-blue);
}

.sidebar-recent-thumb {
	width: 80px;
	height: 60px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 4px;
	background: #f2f2f2;
}

.sidebar-recent-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sidebar-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: #e8e8e8;
}

.sidebar-recent-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #000;
	transition: color 0.2s;
}

/* Category list */
.sidebar-category-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-category-item {
	border-bottom: 1px solid var(--printr-border);
}

.sidebar-category-item:last-child {
	border-bottom: none;
}

.sidebar-category-item a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	text-decoration: none;
	color: #3e3e3e;
	font-size: 14px;
	transition: color 0.2s;
}

.sidebar-category-item a:hover,
.sidebar-category-item.current-cat a {
	color: var(--printr-blue);
	font-weight: 600;
}

.sidebar-cat-count {
	color: var(--printr-muted);
	font-size: 13px;
}

/* ---------- Author archive ---------- */
.author-hero-section {
	padding: 50px 20px 40px;
	border-bottom: 1px solid var(--printr-border);
}

.author-page-heading {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 30px;
	color: #000;
}

.author-bio-card {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	max-width: 860px;
}

.author-bio-avatar {
	flex-shrink: 0;
}

.author-avatar-img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.author-bio-name {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #000;
}

.author-bio-text {
	font-size: 15px;
	line-height: 1.7;
	color: #3e3e3e;
	margin-bottom: 14px;
}

.author-bio-links {
	display: flex;
	gap: 16px;
}

.author-social-link {
	font-size: 14px;
	color: var(--printr-blue);
	text-decoration: underline;
}

/* Author posts — 3 columns */
.author-posts-section {
	padding: 50px 20px 80px;
}

.author-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 28px;
}

/* No posts message */
.no-posts {
	padding: 40px 0;
	color: var(--printr-muted);
	font-size: 16px;
}

/* Author & category links in single post meta */
.single-post-meta a {
    color: var(--printr-muted);
    text-decoration: none;
}
.single-post-meta a:hover {
    color: var(--printr-blue);
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.archive-layout {
		grid-template-columns: 1fr;
	}
	.blog-sidebar {
		position: static;
	}
	.author-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 700px) {
	.archive-blog-grid,
	.author-posts-grid {
		grid-template-columns: 1fr;
	}
	.author-bio-card {
		flex-direction: column;
	}
	.archive-hero-banner h1,
	.author-page-heading {
		font-size: 26px;
	}
}

/* Author social buttons */
.author-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.author-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid var(--printr-border);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #3e3e3e;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.author-social-btn:hover {
    border-color: var(--printr-blue);
    color: var(--printr-blue);
}