/* Blog template styles */

.ebiro-section {
	background: #ffffff;
	padding: 24px!important;
	margin-bottom: 32px;
}

.ebiro-section__title {
	color: #000000;
	margin: 0 0 16px;
	font-weight: 600;
	position: relative;
}

.ebiro-section__title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 60px;
	height: 3px;
	background: #93d419;
}

.ebiro-section__title::before {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 60px;
	right: 0;
	height: 3px;
	background: #e0e0e0;
}

/* Page hero */
.ebiro-page-hero__media img {
	display: block;
	width: 100%;
	height: auto;
}

/* Featured */
.ebiro-featured__grid {
	display: flex;
	gap: 24px;
	align-items: stretch;
	position: relative; /* allow overlay to cover entire block */
	margin-top: 40px;
}

.ebiro-featured__media {
	flex: 0 0 50%;
	max-width: 50%;
}

.ebiro-featured__content {
	flex: 1 1 auto;
	max-width: 50%;
}

.ebiro-featured__title {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 3rem;
	font-weight: 800;
}

.ebiro-featured__excerpt {
	margin-bottom: 16px;
	font-size: 1.2rem;
}

.ebiro-link-reset {
	text-decoration: none;
	color: inherit;
}

.ebiro-button {
	display: inline-block;
	padding: 10px 16px;
	background: #58AB35;
	color: #ffffff;
	text-decoration: none;
	transition: all 0.3s ease;
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.ebiro-button:hover {
	background: #4a8f2d;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(88, 171, 53, 0.3);
	text-decoration: none;
}

.ebiro-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(88, 171, 53, 0.3);
}


/* Latest posts grid */
.ebiro-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ebiro-card {
	background: #fff;
	display: flex;
	flex-direction: column;
	position: relative; /* allow overlay to cover entire card */
}

/* full-card overlay anchor */
.ebiro-card__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

/* featured full-block overlay anchor */
.ebiro-featured__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

.ebiro-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Post preview thumbnails (3:2 crop) */
.ebiro-card__thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.ebiro-featured__thumb-link {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.ebiro-featured__thumb-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ebiro-card__title {
	margin: 12px 0 8px;
	font-size: 1.5rem;
	font-weight: 800;
}

.ebiro-card__excerpt {
	margin-bottom: 12px;
}

@media (max-width: 960px) {
	.ebiro-posts__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Featured stack */
	.ebiro-featured__grid {
		flex-direction: column;
		gap: 16px;
		margin-top: 24px;
	}
	.ebiro-featured__media,
	.ebiro-featured__content {
		flex: 1 1 auto;
		max-width: 100%;
	}
	.ebiro-featured__title {
		font-size: 2rem;
		line-height: 1.2;
	}
	.ebiro-featured__excerpt {
		font-size: 1rem;
	}
	.ebiro-featured__thumb-link {
		width: 100%;
	}

	/* Categories grid tweaks */
	.ebiro-category-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 12px;
	}
	.ebiro-category-grid__item {
		padding: 12px;
	}

	/* Pagination touch targets */
	.paging-navigation .loop-pagination {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	.paging-navigation .loop-pagination a,
	.paging-navigation .loop-pagination span {
		display: inline-block;
		padding: 10px 14px;
		margin: 4px 4px;
		font-size: 0.95rem;
		line-height: 1.2;
	}
	.pagination {
		margin-left: auto;
		margin-right: auto;
		width: auto;
	}
	.pagination a,
	.pagination span {
		min-width: 40px;
		text-align: center;
	}

	/* Single Modern comfortable padding & scale */
	.ebiro-post__header { padding: 0!important; }
	.ebiro-post__content { padding: 0 16px; }
	.ebiro-post__title { font-size: 2.2rem; }
	.ebiro-post__meta { gap: 16px; }
}

@media (max-width: 600px) {
	.ebiro-posts__grid {
		grid-template-columns: 1fr;
	}
}

/* Categories Grid */
.ebiro-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.ebiro-category-grid__item {
	background: #f8f8f8;
	padding: 16px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.ebiro-category-grid__item:hover {
	background: #f0f0f0;
}

.ebiro-category-grid__item a {
	display: block;
	text-decoration: none;
	color: #333;
	font-weight: 500;
}

.ebiro-category-grid__count {
	color: #666;
	font-weight: normal;
}

/* Single Post Styles */
.ebiro-post {
	position: relative;
	overflow: hidden;
}

.ebiro-post__hero {
	margin: -24px -24px 32px -24px;
	position: relative;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ebiro-post__hero-media {
	position: relative;
	overflow: hidden;
}

.ebiro-post__hero-media img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.ebiro-post__hero:hover .ebiro-post__hero-media img {
	transform: scale(1.02);
}

.ebiro-post__header {
	margin-bottom: 32px;
	padding: 0 24px;
}

.ebiro-post__title {
	font-size: 2.8rem;
	font-weight: 800;
	margin: 0 0 24px;
	line-height: 1.1;
	color: #1a1a1a;
	letter-spacing: -0.02em;
}

.ebiro-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 32px;
	padding: 20px 0;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.95rem;
	color: #666;
}

.ebiro-post__meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #f8f9fa;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.ebiro-post__meta-item:hover {
	background: #e9ecef;
	transform: translateY(-1px);
}

.ebiro-post__meta-icon {
	color: #58AB35;
	flex-shrink: 0;
}

.ebiro-post__meta-item a {
	color: #333;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.ebiro-post__meta-item a:hover {
	color: #58AB35;
}

.ebiro-post__content {
	font-size: 1.15rem;
	line-height: 1.75;
	color: #2c3e50;
	max-width: 100%;
	padding: 0 24px;
}

.ebiro-post__content p {
	margin-bottom: 1.8rem;
	text-align: justify;
}

.ebiro-post__content h2,
.ebiro-post__content h3,
.ebiro-post__content h4 {
	margin: 2.5rem 0 1.2rem;
	color: #1a1a1a;
	font-weight: 700;
	line-height: 1.3;
}

.ebiro-post__content h2 {
	font-size: 2rem;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 0.5rem;
}

.ebiro-post__content h3 {
	font-size: 1.6rem;
}

.ebiro-post__content h4 {
	font-size: 1.4rem;
}

.ebiro-post__content blockquote {
	margin: 2.5rem 0;
	padding: 1.5rem 2rem;
	border-left: 4px solid #58AB35;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	font-style: italic;
	border-radius: 0 8px 8px 0;
	position: relative;
}

.ebiro-post__content blockquote::before {
	content: '"';
	position: absolute;
	top: -10px;
	left: 20px;
	font-size: 4rem;
	color: #58AB35;
	opacity: 0.3;
	font-family: serif;
}

.ebiro-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 2rem 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebiro-post__content img:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ebiro-post__content ul,
.ebiro-post__content ol {
	margin: 1.5rem 0;
	padding-left: 2rem;
}

.ebiro-post__content li {
	margin-bottom: 0.5rem;
}

.ebiro-post__content strong {
	font-weight: 700;
	color: #1a1a1a;
}

.ebiro-post__content em {
	font-style: italic;
	color: #666;
}

.ebiro-post__content code {
	background: #f8f9fa;
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.9em;
	color: #e74c3c;
}

.ebiro-post__content pre {
	background: #2c3e50;
	color: #ecf0f1;
	padding: 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
	margin: 2rem 0;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.9rem;
	line-height: 1.5;
}

.ebiro-post__tags {
	margin-top: 32px;
	padding: 20px 24px;
	border-top: 1px solid #f0f0f0;
}

.ebiro-post__tags a {
	display: inline-block;
	padding: 6px 12px;
	margin: 4px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	color: #666;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid #e9ecef;
}

.ebiro-post__tags a:hover {
	background: linear-gradient(135deg, #58AB35 0%, #4a8f2d 100%);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(88, 171, 53, 0.3);
	border-color: #58AB35;
}

.ebiro-post__edit-link {
	margin-top: 32px;
	padding: 20px 24px;
	border-top: 1px solid #f0f0f0;
	text-align: center;
}

.ebiro-post__edit-link a {
	color: #666;
	text-decoration: none;
	font-size: 0.9rem;
	padding: 8px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.ebiro-post__edit-link a:hover {
	color: #58AB35;
	border-color: #58AB35;
	background: #f8f9fa;
}

/* Author Section */
.ebiro-author__grid {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.ebiro-author__avatar {
	flex: 0 0 80px;
}

.ebiro-author__avatar img {
	border-radius: 50%;
	width: 80px;
	height: 80px;
}

.ebiro-author__content {
	flex: 1 1 auto;
}

.ebiro-author__name {
	margin: 0 0 12px;
	font-size: 1.3rem;
	font-weight: 600;
	color: #000000;
}

.ebiro-author__bio {
	margin-bottom: 16px;
	line-height: 1.6;
	color: #666;
}

/* Post Navigation */
.ebiro-post-navigation {
	margin: 48px 0;
}

.ebiro-post-navigation__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: stretch;
}

.ebiro-post-navigation__item {
	padding: 24px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 16px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border: 1px solid #e9ecef;
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ebiro-post-navigation__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.ebiro-post-navigation__item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #58AB35 0%, #4a8f2d 100%);
}

.ebiro-post-navigation__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #58AB35;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.ebiro-post-navigation__label::before {
	content: '←';
	font-size: 1.2rem;
	font-weight: bold;
}

.ebiro-post-navigation__next .ebiro-post-navigation__label::before {
	content: '→';
}

.ebiro-post-navigation__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.ebiro-post-navigation__item:hover .ebiro-post-navigation__title {
	color: #58AB35;
}

.ebiro-post-navigation__next {
	text-align: right;
	justify-self: end;
}

/* When only next post exists, align it to the right */
.ebiro-post-navigation__grid:has(.ebiro-post-navigation__next:only-child) {
	grid-template-columns: 1fr;
}

.ebiro-post-navigation__grid:has(.ebiro-post-navigation__next:only-child) .ebiro-post-navigation__next {
	justify-self: end;
}

/* When only previous post exists, align it to the left */
.ebiro-post-navigation__grid:has(.ebiro-post-navigation__prev:only-child) {
	grid-template-columns: 1fr;
}

.ebiro-post-navigation__grid:has(.ebiro-post-navigation__prev:only-child) .ebiro-post-navigation__prev {
	justify-self: start;
}

/* Responsive Design */
@media (max-width: 768px) {
	.ebiro-post__hero {
		margin: -24px -24px 24px -24px;
	}
	
	.ebiro-post__title {
		font-size: 2.2rem;
		margin-bottom: 20px;
	}
	
	.ebiro-post__meta {
		flex-direction: column;
		gap: 12px;
		padding: 16px 0;
	}
	
	.ebiro-post__meta-item {
		justify-content: center;
	}
	
	.ebiro-post__content {
		font-size: 1.1rem;
		line-height: 1.7;
	}
	
	.ebiro-post__content h2 {
		font-size: 1.8rem;
	}
	
	.ebiro-post__content h3 {
		font-size: 1.5rem;
	}
	
	.ebiro-post__content h4 {
		font-size: 1.3rem;
	}
	
	.ebiro-post__content blockquote {
		padding: 1.2rem 1.5rem;
		margin: 2rem 0;
	}
	
	.ebiro-post__content blockquote::before {
		font-size: 3rem;
		top: -8px;
		left: 15px;
	}
	
	.ebiro-author__grid {
		flex-direction: column;
		text-align: center;
	}
	
	.ebiro-author__avatar {
		align-self: center;
	}
	
	.ebiro-post-navigation__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.ebiro-post-navigation__next {
		text-align: left;
	}
}

@media (max-width: 480px) {
	.ebiro-section {
		padding: 0!important;
	}

	.ebiro-post__title {
		font-size: 1.8rem;
		padding: 0!important;
	}
	
	.ebiro-post__meta {
		gap: 8px;
		padding: 12px 0;
	}
	
	.ebiro-post__meta-item {
		padding: 6px 10px;
		font-size: 0.9rem;
	}
	
	.ebiro-post__content {
		font-size: 1rem;
		line-height: 1.6;
		padding: 0;
	}
	
	.ebiro-post__content p {
		margin-bottom: 1.5rem;
		text-align: left;
	}
	
	.ebiro-post__content h2 {
		font-size: 1.6rem;
	}
	
	.ebiro-post__content h3 {
		font-size: 1.4rem;
	}
	
	.ebiro-post__content h4 {
		font-size: 1.2rem;
	}
}

/* Modern Comments Section */
.ebiro-comments {
	margin-top: 48px;
}

.ebiro-comments__title {
	color: #1a1a1a;
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 32px!important;
	position: relative;
}


.ebiro-comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebiro-comment {
	background: #ffffff;
	border: 1px solid #e9ecef;
	margin-bottom: 24px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	transition: box-shadow 0.3s ease;
}

.ebiro-comment:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ebiro-comment__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.ebiro-comment__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.ebiro-comment__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ebiro-comment__meta {
	flex: 1;
}

.ebiro-comment__author {
	font-weight: 600;
	color: #1a1a1a;
	font-size: 1rem;
	margin: 0 0 4px 0;
}

.ebiro-comment__date {
	color: #666;
	font-size: 0.9rem;
	margin: 0;
}

.ebiro-comment__content {
	color: #2c3e50;
	line-height: 1.6;
	margin: 0;
}

.ebiro-comment__content p {
	margin-bottom: 12px;
}

.ebiro-comment__content p:last-child {
	margin-bottom: 0;
}

.ebiro-comment__reply {
	margin-top: 16px;
}

.ebiro-comment__reply-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #f8f9fa;
	color: #58AB35;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid #e9ecef;
}

.ebiro-comment__reply-link:hover {
	background: #58AB35;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(88, 171, 53, 0.3);
}

/* Comment Form */
.ebiro-comment-form {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 32px;
	margin-top: 32px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	max-width: 100%;
	width: 100%;
}

.ebiro-comment-form__title {
	color: #1a1a1a;
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 24px;
	text-align: left;
}

.ebiro-comment-form__field {
	margin-bottom: 20px;
}

.ebiro-comment-form__label {
	display: block;
	font-weight: 500;
	color: #333;
	margin-bottom: 8px;
	font-size: 0.95rem;
}

.ebiro-comment-form__input,
.ebiro-comment-form__textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.2s ease;
	background: #ffffff;
	color: #333;
}

.ebiro-comment-form__input:focus,
.ebiro-comment-form__textarea:focus {
	outline: none;
	border-color: #58AB35;
	box-shadow: 0 0 0 3px rgba(88, 171, 53, 0.1);
}

.ebiro-comment-form__textarea {
	resize: vertical;
	min-height: 120px;
	font-family: inherit;
}

.ebiro-comment-form__submit {
	background: linear-gradient(135deg, #58AB35 0%, #4a8f2d 100%);
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ebiro-comment-form__submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(88, 171, 53, 0.3);
}

.ebiro-comment-form__submit:active {
	transform: translateY(0);
}

/* Comment Form Field Layout */
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url {
	display: inline-block;
	width: 32%;
	margin-right: 2%;
	vertical-align: top;
}

#respond .comment-form-url {
	margin-right: 0;
}

#respond .comment-form-comment {
	width: 100%;
	clear: both;
	margin-top: 20px;
}

@media (max-width: 768px) {
	#respond .comment-form-author,
	#respond .comment-form-email,
	#respond .comment-form-url {
		display: block;
		width: 100%;
		margin-right: 0;
		margin-bottom: 20px;
	}
	
	.ebiro-comment-form {
		padding: 24px;
		margin-top: 24px;
	}
	
	#respond .form-submit {
		text-align: center;
	}
}

/* Comment Navigation */
.ebiro-comment-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 32px 0;
	padding: 16px 0;
	border-top: 1px solid #e9ecef;
	border-bottom: 1px solid #e9ecef;
}

.ebiro-comment-navigation .nav-previous,
.ebiro-comment-navigation .nav-next {
	float: none;
	width: auto;
}

.ebiro-comment-navigation a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #f8f9fa;
	color: #333;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid #e9ecef;
}

.ebiro-comment-navigation a:hover {
	background: #58AB35;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(88, 171, 53, 0.3);
}

.ebiro-comment-navigation__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #f8f9fa;
	color: #333;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid #e9ecef;
}

.ebiro-comment-navigation__link:hover {
	background: #58AB35;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(88, 171, 53, 0.3);
}

@media (max-width: 768px) {
	.ebiro-category-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}
	
	.ebiro-category-grid__item {
		padding: 12px;
	}
	
	.ebiro-post-navigation__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.ebiro-post-navigation__next {
		text-align: left;
	}
	
	.ebiro-comment {
		padding: 16px;
	}
	
	.ebiro-comment-form {
		padding: 24px;
	}
	
	.ebiro-comment__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.ebiro-comment__avatar {
		width: 40px;
		height: 40px;
	}
}