/*! Widget Extend - Posts Styling */

/* Grid container */
.elementor-extend-posts {
	display: grid;
	grid-template-columns: repeat(var(--e-posts-columns, 3), 1fr);
	gap: var(--e-posts-row-gap, 35px) var(--e-posts-column-gap, 30px);
}

/* Single post item */
.elementor-extend-posts__item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Thumbnail */
.elementor-extend-posts__thumbnail-link {
	display: block;
	text-decoration: none;
	line-height: 0;
	overflow: hidden;
}

.elementor-extend-posts__thumbnail {
	position: relative;
	padding-bottom: var(--e-posts-image-ratio, 66%);
	overflow: hidden;
}

.elementor-extend-posts__thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.3s;
}

/* Image position variants - Responsive Support */

/* Desktop (Base) */
.elementor-extend-posts--thumbnail-left .elementor-extend-posts__item { flex-direction: row; }
.elementor-extend-posts--thumbnail-left .elementor-extend-posts__thumbnail-link { flex-shrink: 0; width: var(--e-posts-thumbnail-width, 40%); margin-right: 20px; }
.elementor-extend-posts--thumbnail-left .elementor-extend-posts__thumbnail { padding-bottom: 100%; }

.elementor-extend-posts--thumbnail-right .elementor-extend-posts__item { flex-direction: row-reverse; }
.elementor-extend-posts--thumbnail-right .elementor-extend-posts__thumbnail-link { flex-shrink: 0; width: var(--e-posts-thumbnail-width, 40%); margin-left: 20px; }
.elementor-extend-posts--thumbnail-right .elementor-extend-posts__thumbnail { padding-bottom: 100%; }

.elementor-extend-posts--thumbnail-top .elementor-extend-posts__item { flex-direction: column; }
.elementor-extend-posts--thumbnail-top .elementor-extend-posts__thumbnail-link { width: 100%; margin-right: 0; margin-left: 0; }

.elementor-extend-posts--thumbnail-none .elementor-extend-posts__thumbnail-link { display: none; }

/* Tablet */
@media (max-width: 1024px) {
	.elementor-extend-posts-tablet--thumbnail-left .elementor-extend-posts__item { flex-direction: row !important; }
	.elementor-extend-posts-tablet--thumbnail-left .elementor-extend-posts__thumbnail-link { display: block !important; flex-shrink: 0 !important; width: var(--e-posts-thumbnail-width, 40%) !important; margin-right: 20px !important; margin-left: 0 !important; }
	.elementor-extend-posts-tablet--thumbnail-left .elementor-extend-posts__thumbnail { padding-bottom: 100% !important; }

	.elementor-extend-posts-tablet--thumbnail-right .elementor-extend-posts__item { flex-direction: row-reverse !important; }
	.elementor-extend-posts-tablet--thumbnail-right .elementor-extend-posts__thumbnail-link { display: block !important; flex-shrink: 0 !important; width: var(--e-posts-thumbnail-width, 40%) !important; margin-left: 20px !important; margin-right: 0 !important; }
	.elementor-extend-posts-tablet--thumbnail-right .elementor-extend-posts__thumbnail { padding-bottom: 100% !important; }

	.elementor-extend-posts-tablet--thumbnail-top .elementor-extend-posts__item { flex-direction: column !important; }
	.elementor-extend-posts-tablet--thumbnail-top .elementor-extend-posts__thumbnail-link { display: block !important; width: 100% !important; margin-right: 0 !important; margin-left: 0 !important; }

	.elementor-extend-posts-tablet--thumbnail-none .elementor-extend-posts__thumbnail-link { display: none !important; }
}

/* Mobile */
@media (max-width: 767px) {
	.elementor-extend-posts-mobile--thumbnail-left .elementor-extend-posts__item { flex-direction: row !important; }
	.elementor-extend-posts-mobile--thumbnail-left .elementor-extend-posts__thumbnail-link { display: block !important; flex-shrink: 0 !important; width: var(--e-posts-thumbnail-width, 40%) !important; margin-right: 20px !important; margin-left: 0 !important; }
	.elementor-extend-posts-mobile--thumbnail-left .elementor-extend-posts__thumbnail { padding-bottom: 100% !important; }

	.elementor-extend-posts-mobile--thumbnail-right .elementor-extend-posts__item { flex-direction: row-reverse !important; }
	.elementor-extend-posts-mobile--thumbnail-right .elementor-extend-posts__thumbnail-link { display: block !important; flex-shrink: 0 !important; width: var(--e-posts-thumbnail-width, 40%) !important; margin-left: 20px !important; margin-right: 0 !important; }
	.elementor-extend-posts-mobile--thumbnail-right .elementor-extend-posts__thumbnail { padding-bottom: 100% !important; }

	.elementor-extend-posts-mobile--thumbnail-top .elementor-extend-posts__item { flex-direction: column !important; }
	.elementor-extend-posts-mobile--thumbnail-top .elementor-extend-posts__thumbnail-link { display: block !important; width: 100% !important; margin-right: 0 !important; margin-left: 0 !important; }

	.elementor-extend-posts-mobile--thumbnail-none .elementor-extend-posts__thumbnail-link { display: none !important; }
}

/* Text / Content area */
.elementor-extend-posts__text {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 15px 0;
}

/* Title */
.elementor-extend-posts__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.elementor-extend-posts__title a {
	color: inherit;
	text-decoration: none;
}

.elementor-extend-posts__title a:hover {
	color: inherit;
}

/* Meta data */
.elementor-extend-posts__meta-data {
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	color: #818a91;
	margin-bottom: 10px;
	line-height: 1.5;
}

.elementor-extend-posts__meta-data span {
	display: inline-flex;
	align-items: center;
}

.elementor-extend-posts__meta-data span + span:before {
	content: "///";
	margin: 0 0.5em;
}

/* Excerpt */
.elementor-extend-posts__excerpt {
	margin-bottom: 15px;
}

.elementor-extend-posts__excerpt p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

/* Read more */
a.elementor-extend-posts__read-more {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	color: #6ec1e4;
	margin-top: auto;
}

a.elementor-extend-posts__read-more:hover {
	text-decoration: underline;
}

/* Box style */
.elementor-extend-posts--box .elementor-extend-posts__item {
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.elementor-extend-posts--box .elementor-extend-posts__text {
	padding: 20px;
}

/* Pagination */
.elementor-extend-posts__pagination {
	grid-column: 1 / -1;
	text-align: center;
	margin-top: 20px;
}

.elementor-extend-posts__pagination .page-numbers {
	display: inline-block;
	text-decoration: none;
	transition: all 0.2s;
}

.elementor-extend-posts__pagination .page-numbers.dots {
	cursor: default;
}

.elementor-extend-posts__pagination .elementor-extend-posts__load-more.is-loading {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Nothing found */
.elementor-extend-posts__nothing-found {
	grid-column: 1 / -1;
	text-align: center;
	font-size: 16px;
	color: #818a91;
	padding: 40px 0;
}

/* Responsive */
/* The responsive layout is handled via the --e-posts-columns variable defined in the widget's PHP file. */
