/* Breadcrumb styles */
.blog-category-breadcrumb {
	display: flex;
	font-size: 12px;
	color: #777;
	margin-top: 16px;
	padding-top: 8px;
	padding-bottom: 8px;
	align-items: center;
}
.blog-category-breadcrumb .blog-category-link {
	color: #383838;
}
.blog-category-breadcrumb .blog-category-divider {
	padding-right: 7px;
	padding-left: 7px;
	color: #d1d1d1;
}

/* Blog posts */
.custom-blog-posts {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.custom-blog-post {
	display: flex;
	flex-direction: row;
	gap: 40px;
}

.custom-blog-post-thumbnail {
	position: relative;
	overflow: hidden;
	max-width: 300px;
	max-height: 200px;
	display: flex;
	align-items: center;
	border-radius: 8px;
}

.custom-blog-post-thumbnail a {
	width: 100%;
	height: 100%;
}

.custom-blog-post-thumbnail img {
	transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
	filter: brightness(100%);
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.custom-blog-post-thumbnail:hover img {
	transform: scale(1.1);
	filter: brightness(85%);
}

.custom-blog-post-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: rgba(21, 21, 21, 0.7);
	color: #fff;
	padding: 0px 14px;
	font-size: 12px;
	line-height: 24px;
	border-radius: 50px;
	font-weight: 800;
	font-family: Open Sans, sans-serif;
}

.custom-blog-post-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.custom-blog-post-title {
	color: #151515;
	font-family: Open Sans, sans-serif;
	font-size: 22px;
	line-height: 32px;
	font-weight: 700;
	margin: 0 0 22px 0;
}

.custom-blog-post-title a {
	color: inherit;
	text-decoration: none;
}

.custom-blog-post-title:hover a {
	text-decoration: underline;
}

.custom-blog-post-excerpt {
	font-size: 14px;
	line-height: 24px;
	color: #777;
	margin: 0 0 12px 0;
}

.custom-blog-post-meta {
	font-size: 12px;
	color: #777;
	display: flex;
	gap: 16px;
	align-items: center;
}

.custom-blog-post-meta img {
	border-radius: 100%;
	margin-right: -10px;
}

.custom-blog-post-author {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #777;
}

.custom-blog-post-date {
	display: flex;
	align-items: center;
	gap: 4px;
}

.custom-blog-post-author:after,
.custom-blog-post-date:after {
	content: "";
	transform: translateX(5px);
	opacity: 0.3;
	width: 1px;
	height: 12px;
	background-color: #777;
}

.custom-blog-post-date:after {
	transform: translateX(7px);
}

.custom-blog-post-readtime {
	display: flex;
	align-items: center;
	gap: 4px;
}

.custom-blog-post-date svg,
.custom-blog-post-readtime svg {
	width: 14px;
	fill: #777;
}

/* Category list styles */
.blog-category-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
}
.blog-category-item a:hover {
	border-color: #d1d1d1;
	box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0);
	outline: 0;
}
.blog-category-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	border: solid 1px #e6e6e6;
	padding: 8px 20px;
	border-radius: 8px;
	width: 100%;
	color: inherit;
}
.blog-category-item a:hover .category-color-line {
	width: 32px !important;
}
.category-color-line {
	transition: width 0.2s ease-in-out;
}
.blog-category-name {
	color: #151515;
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
}
.category-arrow {
	transition: opacity 0.2s ease, transform 0.2s ease;
	margin-left: auto; /* pushes arrow to the right */
}
.blog-category-item a:hover .category-arrow {
	opacity: 0.5 !important;
	transform: translate3d(0, 0, 0) !important;
}

/* Tag list styles */
.blog-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.blog-tag-item {
	position: relative;
	display: block;
	overflow: hidden;
	height: 24px;
	padding: 3px 8px;
	border: solid 1px #e6e6e6;
	border-radius: 4px;
	background-color: #fff;
	-webkit-transition: color 200ms ease, border-color 200ms ease,
		background-color 200ms ease;
	transition: color 200ms ease, border-color 200ms ease,
		background-color 200ms ease;
	color: #151515;
	font-size: 10px;
	line-height: 16px;
	font-weight: 600;
	text-transform: uppercase;
}

.blog-tag-item:hover {
	background: var(--e-global-color-primary, #00c853); /* green default */
	border-color: var(--e-global-color-primary, #00c853);
	color: #fff;
}

/* Pagination styles */
.ajax-pagination {
	display: flex;
	gap: 4px;
	margin-top: 2rem;
}
.ajax-pagination a,
.ajax-pagination span {
	padding: 2px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	font-family: Open Sans, sans-serif;
}
.ajax-pagination a:hover,
.ajax-pagination a.active {
	background: var(--e-global-color-primary);
	color: #fff;
	border-color: var(--e-global-color-primary);
	font-weight: bold;
}
.ajax-pagination .current {
	background: var(--e-global-color-primary);
	color: #fff;
	border-color: var(--e-global-color-primary);
}
.ajax-loader {
	text-align: center;
	font-size: 14px;
	color: #666;
	margin-top: 1rem;
	display: none;
}
.ajax-loader::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	border: 2px solid #ccc;
	border-top: 2px solid var(--e-global-color-primary);
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	vertical-align: middle;
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

