/*
Theme Name: easyeaters Child
Theme URI: https://easy-eaters.com/
Description: Child theme for easyeaters.
Author: Aware Creative
Author URI: https://easy-eaters.com/
Template: easyeaters
Version: 0.1.0
Text Domain: easyeaters-child
*/

/* ============================================
   BLOG PAGE STYLES
   ============================================ */

/* -- Blog wrapper -- */
.blog-wrapper {
	background-color: #f6f5f2;
	padding-top: 100px;
	padding-bottom: 80px;
	font-family: Poppins, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* -- Blog page header -- */
.blog-page-header {
	text-align: center;
	margin-bottom: 50px;
	padding: 0 20px;
}

.blog-page-header h1 {
	font-family: Poppins, sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 45px;
	color: #333;
	margin-bottom: 12px;
}

.blog-page-header p {
	font-size: 16px;
	line-height: 26px;
	color: #6b7280;
	max-width: 600px;
	margin: 0 auto;
}

/* -- Blog layout grid -- */
.blog-layout {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

@media (min-width: 1024px) {
	.blog-layout {
		flex-direction: row;
		gap: 40px;
		align-items: flex-start;
	}
}

/* -- Posts grid -- */
.blog-posts-grid {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 768px) {
	.blog-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* -- Post card -- */
.blog-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* -- Card image -- */
.blog-card__image-link {
	display: block;
	aspect-ratio: 4/3;
	overflow: hidden;
	position: relative;
	background-color: #f3f4f6;
}

.blog-card__image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image-link img {
	transform: scale(1.05);
}

.blog-card__image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #36b660;
	color: #fff;
	font-weight: 700;
	font-size: 20px;
}

/* -- Card body -- */
.blog-card__body {
	padding: 22px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* -- Category badge -- */
.blog-card__category {
	margin-bottom: 10px;
}

.blog-card__category a {
	font-size: 11px;
	font-weight: 600;
	color: #1f9646;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-card__category a:hover {
	text-decoration: underline;
}

/* -- Card title -- */
.blog-card__title {
	font-family: Poppins, sans-serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 26px;
	color: #333;
	margin-bottom: 10px;
}

.blog-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-card__title a:hover {
	color: #1f9646;
}

/* -- Card excerpt -- */
.blog-card__excerpt {
	font-size: 14px;
	line-height: 22px;
	color: #6b7280;
	margin-bottom: 18px;
}

/* -- Card footer -- */
.blog-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid #f3f4f6;
	margin-top: auto;
}

.blog-card__date {
	font-size: 13px;
	color: #9ca3af;
}

.blog-card__read-more {
	font-size: 14px;
	font-weight: 700;
	color: #1f9646;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: color 0.2s ease;
}

.blog-card__read-more:hover {
	color: #c1dc82;
}

.blog-card__read-more svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* -- Pagination -- */
.blog-pagination {
	grid-column: 1 / -1;
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

.blog-pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover {
	background: #1f9646;
	color: #fff;
	border-color: #1f9646;
}

.blog-pagination .page-numbers.current {
	background: #1f9646;
	color: #fff;
	border-color: #1f9646;
}

.blog-pagination .prev,
.blog-pagination .next {
	width: auto;
	padding: 0 16px;
}

/* -- No posts -- */
.blog-no-posts {
	grid-column: 1 / -1;
	background: #fff;
	border-radius: 20px;
	padding: 50px 30px;
	text-align: center;
	border: 1px solid #e5e7eb;
}

.blog-no-posts h3 {
	font-family: Poppins, sans-serif;
	font-weight: 700;
	font-size: 22px;
	color: #333;
	margin-bottom: 10px;
}

.blog-no-posts p {
	color: #6b7280;
	font-size: 16px;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.blog-sidebar {
	width: 100%;
	background: #fff;
	border-radius: 20px;
	padding: 30px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	gap: 30px;
}

@media (min-width: 1024px) {
	.blog-sidebar {
		width: 360px;
		min-width: 360px;
		position: sticky;
		top: 120px;
	}
}

/* -- Widget heading -- */
.blog-sidebar .widget h3 {
	font-family: Poppins, sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #333;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 3px solid #c1dc82;
}

/* -- Search widget -- */
.blog-search-form {
	position: relative;
	display: flex;
}

.blog-search-form .search-field {
	width: 100%;
	padding: 12px 45px 12px 16px;
	font-size: 14px;
	font-family: Poppins, sans-serif;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s ease;
	color: #333;
}

.blog-search-form .search-field:focus {
	border-color: #1f9646;
}

.blog-search-form .search-submit {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s ease;
}

.blog-search-form .search-submit:hover {
	color: #1f9646;
}

.blog-search-form .search-submit svg {
	width: 18px;
	height: 18px;
}

/* -- Categories widget -- */
.blog-categories-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-categories-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #6b7280;
	transition: color 0.15s ease;
}

.blog-categories-list li:hover {
	color: #1f9646;
}

.blog-categories-list li a {
	color: inherit;
	text-decoration: none;
}

.blog-categories-list .cat-count {
	background: #f3f4f6;
	color: #6b7280;
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 20px;
	font-weight: 500;
}

/* -- Recent posts widget -- */
.blog-recent-posts {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-recent-posts li {
	display: flex;
	gap: 14px;
	align-items: center;
}

.blog-recent-posts .recent-post__thumb {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f9fafb;
}

.blog-recent-posts .recent-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-recent-posts .recent-post__info {
	display: flex;
	flex-direction: column;
}

.blog-recent-posts .recent-post__title {
	font-size: 14px;
	line-height: 19px;
	font-weight: 700;
	color: #333;
	text-decoration: none;
	transition: color 0.15s ease;
}

.blog-recent-posts .recent-post__title:hover {
	color: #1f9646;
}

.blog-recent-posts .recent-post__date {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 3px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
	.blog-wrapper {
		padding-top: 60px;
		padding-bottom: 50px;
	}

	.blog-page-header {
		margin-bottom: 30px;
	}

	.blog-page-header h1 {
		font-size: 28px;
		line-height: 36px;
	}

	.blog-page-header p {
		font-size: 15px;
	}

	.blog-layout {
		padding: 0 16px;
	}

	.blog-card__body {
		padding: 18px 20px;
	}

	.blog-sidebar {
		padding: 24px;
	}
}

@media (max-width: 480px) {
	.blog-wrapper {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.blog-page-header h1 {
		font-size: 24px;
		line-height: 32px;
	}

	.blog-layout {
		padding: 0 12px;
		gap: 30px;
	}

	.blog-card__body {
		padding: 16px;
	}

	.blog-sidebar {
		padding: 20px;
	}
}

/* ============================================
   SINGLE POST PAGE STYLES
   ============================================ */

.single-post-wrapper {
	background-color: #f6f5f2;
	padding-top: 100px;
	padding-bottom: 80px;
	font-family: Poppins, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.single-post-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.single-post-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
}

.single-post-meta-category {
	margin-bottom: 15px;
	text-align: center;
}

.single-post-meta-category a {
	font-size: 13px;
	font-weight: 700;
	color: #1f9646;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.single-post-meta-category a:hover {
	text-decoration: underline;
}

.single-post-title {
	font-size: 36px;
	line-height: 46px;
	font-weight: 700;
	color: #333;
	text-align: center;
	margin-bottom: 15px;
}

.single-post-meta-date {
	font-size: 14px;
	color: #9ca3af;
	text-align: center;
	margin-bottom: 40px;
}

.single-post-featured-image {
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.single-post-content {
	font-size: 17px;
	line-height: 28px;
	color: #4b5563;
	margin-bottom: 50px;
}

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

.single-post-content h2,
.single-post-content h3 {
	font-weight: 700;
	color: #333;
	margin-top: 40px;
	margin-bottom: 16px;
}

.single-post-content h2 {
	font-size: 26px;
	line-height: 34px;
}

.single-post-content h3 {
	font-size: 22px;
	line-height: 30px;
}

.single-post-navigation {
	border-top: 1px solid #e5e7eb;
	padding-top: 30px;
	margin-top: 50px;
}

.single-post-navigation .nav-links {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (min-width: 640px) {
	.single-post-navigation .nav-links {
		flex-direction: row;
		justify-content: space-between;
	}
	.single-post-navigation .nav-previous,
	.single-post-navigation .nav-next {
		width: 48%;
	}
}

.single-post-navigation a {
	text-decoration: none;
	color: #333;
	display: block;
	padding: 15px 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	transition: all 0.25s ease;
}

.single-post-navigation a:hover {
	border-color: #1f9646;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.single-post-navigation .nav-direction {
	font-size: 12px;
	font-weight: 700;
	color: #1f9646;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.single-post-navigation .nav-title {
	font-size: 15px;
	font-weight: 600;
	display: block;
	margin-top: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 767px) {
	.single-post-wrapper {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	.single-post-title {
		font-size: 28px;
		line-height: 36px;
	}
	.single-post-content {
		font-size: 16px;
		line-height: 26px;
	}
}

