/* WeTheme Blog Carousel */
.wetheme-blog-carousel {
	position: relative;
	direction: rtl;
	width: 100%;
	box-sizing: border-box;
}

/* Header */
.wetheme-blog-carousel .blbc-header {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 24px;
}

.wetheme-blog-carousel .blbc-title {
	margin: 0;
	flex-shrink: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	color: #35425a;
}

.wetheme-blog-carousel .blbc-header-line {
	flex: 1 1 auto;
	height: 1px;
	min-width: 24px;
	background-color: #e3e3e3;
}

.wetheme-blog-carousel .blbc-view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 500;
	color: #8a8a8a;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.wetheme-blog-carousel .blbc-view-all:hover {
	color: #35425a;
}

.wetheme-blog-carousel .blbc-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.wetheme-blog-carousel .blbc-arrow svg {
	display: block;
}

/* Slider + side nav */
.wetheme-blog-carousel .blbc-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.wetheme-blog-carousel .blbc-slider--has-arrows {
	padding: 0 4px;
}

.wetheme-blog-carousel .blbc-carousel-inner {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.wetheme-blog-carousel .blbc-swiper {
	overflow: hidden;
	width: 100%;
}

.wetheme-blog-carousel .blbc-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.wetheme-blog-carousel .blbc-swiper .swiper-slide {
	height: auto;
	display: flex;
	box-sizing: border-box;
	flex: 0 0 auto;
	flex-shrink: 0;
	width: auto;
}

/* Pixel mode slide widths (pure CSS — no inline !important blocks) */
@media (max-width: 767px) {
	.wetheme-blog-carousel .blbc-swiper[data-pixel-mode-mobile="true"] .swiper-slide {
		width: var(--blbc-pixel-width-mobile, 260px);
		max-width: var(--blbc-pixel-width-mobile, 260px);
		flex: 0 0 var(--blbc-pixel-width-mobile, 260px);
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.wetheme-blog-carousel .blbc-swiper[data-pixel-mode-tablet="true"] .swiper-slide {
		width: var(--blbc-pixel-width-tablet, 280px);
		max-width: var(--blbc-pixel-width-tablet, 280px);
		flex: 0 0 var(--blbc-pixel-width-tablet, 280px);
	}
}

@media (min-width: 1024px) {
	.wetheme-blog-carousel .blbc-swiper[data-pixel-mode-desktop="true"] .swiper-slide {
		width: var(--blbc-pixel-width-desktop, 320px);
		max-width: var(--blbc-pixel-width-desktop, 320px);
		flex: 0 0 var(--blbc-pixel-width-desktop, 320px);
	}
}

/* Pre-init slide width (before Swiper JS runs, count-based mode only) */
.wetheme-blog-carousel .blbc-swiper[data-pixel-mode-mobile="false"]:not(.blbc-swiper--ready) .swiper-slide {
	width: calc(
		(100% - (var(--blbc-space-mobile, 12px) * (var(--blbc-slides-mobile, 1) - 1)))
		/ var(--blbc-slides-mobile, 1)
	);
}

@media (min-width: 768px) {
	.wetheme-blog-carousel .blbc-swiper[data-pixel-mode-tablet="false"]:not(.blbc-swiper--ready) .swiper-slide {
		width: calc(
			(100% - (var(--blbc-space-tablet, 16px) * (var(--blbc-slides-tablet, 2) - 1)))
			/ var(--blbc-slides-tablet, 2)
		);
	}
}

@media (min-width: 1024px) {
	.wetheme-blog-carousel .blbc-swiper[data-pixel-mode-desktop="false"]:not(.blbc-swiper--ready) .swiper-slide {
		width: calc(
			(100% - (var(--blbc-space-desktop, 20px) * (var(--blbc-slides-desktop, 3) - 1)))
			/ var(--blbc-slides-desktop, 3)
		);
	}
}

.wetheme-blog-carousel .blbc-side-nav {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background-color: #35425a;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 2;
}

.wetheme-blog-carousel .blbc-side-nav:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.wetheme-blog-carousel .blbc-side-nav.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
	transform: none;
}

/* Responsive arrow visibility */
@media (min-width: 1024px) {
	.wetheme-blog-carousel[data-arrows-desktop="false"] .blbc-side-nav {
		display: none !important;
	}

	.wetheme-blog-carousel[data-arrows-desktop="false"] .blbc-slider--has-arrows {
		padding: 0;
		gap: 0;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.wetheme-blog-carousel[data-arrows-tablet="false"] .blbc-side-nav {
		display: none !important;
	}

	.wetheme-blog-carousel[data-arrows-tablet="false"] .blbc-slider--has-arrows {
		padding: 0;
		gap: 0;
	}
}

@media (max-width: 767px) {
	.wetheme-blog-carousel[data-arrows-mobile="false"] .blbc-side-nav {
		display: none !important;
	}

	.wetheme-blog-carousel[data-arrows-mobile="false"] .blbc-slider--has-arrows {
		padding: 0;
		gap: 0;
	}
}

/* Card */
.wetheme-blog-carousel .blbc-card {
	width: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ebebeb;
	border-radius: 24px;
	overflow: hidden;
	box-sizing: border-box;
	min-height: 100%;
}

.wetheme-blog-carousel .blbc-thumb {
	display: block;
	padding: 12px 12px 0;
	text-decoration: none;
	height: 220px;
}

.wetheme-blog-carousel .blbc-thumb-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 16px;
	background-color: #ebebeb;
}

.wetheme-blog-carousel .blbc-body {
	padding: 16px 18px 10px;
	flex: 1 1 auto;
}

.wetheme-blog-carousel .blbc-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.85;
	color: #555;
	text-align: right;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3.7em;
}

.wetheme-blog-carousel .blbc-date {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 400;
	color: #9a9a9a;
	text-align: right;
}

.wetheme-blog-carousel .blbc-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 22px;
	border-top: 1px solid #ebebeb;
	margin-top: auto;
}

.wetheme-blog-carousel .blbc-readmore {
	font-size: 14px;
	font-weight: 500;
	color: #35425a;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.wetheme-blog-carousel .blbc-readmore:hover {
	opacity: 0.75;
}

.wetheme-blog-carousel .blbc-card-footer .blbc-arrow {
	color: #35425a;
}

.wetheme-blog-carousel .blbc-empty {
	padding: 24px;
	text-align: center;
	color: #888;
	width: 100%;
}

/* Pagination */
.wetheme-blog-carousel .blbc-pagination {
	position: relative;
	margin-top: 22px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.wetheme-blog-carousel .blbc-pagination.swiper-pagination-lock,
.wetheme-blog-carousel .blbc-pagination.swiper-pagination-hidden {
	display: flex !important;
	opacity: 1;
}

.wetheme-blog-carousel .blbc-pagination .swiper-pagination-bullet:only-child {
	display: inline-block !important;
}

.wetheme-blog-carousel .blbc-pagination.swiper-pagination-bullets {
	width: 100%;
}

.wetheme-blog-carousel .blbc-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	border-radius: 50%;
	background-color: #d5d5d5;
	opacity: 1;
	transition: width 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.wetheme-blog-carousel .blbc-pagination .swiper-pagination-bullet-active {
	width: 28px;
	height: 8px;
	border-radius: 999px;
	background-color: #35425a;
}

/* Tablet */
@media (max-width: 1023px) {
	.wetheme-blog-carousel .blbc-header {
		margin-bottom: 20px;
		gap: 14px;
	}

	.wetheme-blog-carousel .blbc-title {
		font-size: 18px;
	}

	.wetheme-blog-carousel .blbc-view-all {
		font-size: 13px;
	}

	.wetheme-blog-carousel .blbc-slider {
		gap: 10px;
	}

	.wetheme-blog-carousel .blbc-slider--has-arrows {
		padding: 0 2px;
	}

	.wetheme-blog-carousel .blbc-side-nav {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.wetheme-blog-carousel .blbc-thumb {
		padding: 10px 10px 0;
	}

	.wetheme-blog-carousel .blbc-thumb-img {
		border-radius: 14px;
	}

	.wetheme-blog-carousel .blbc-body {
		padding: 14px 16px 8px;
	}

	.wetheme-blog-carousel .blbc-excerpt {
		font-size: 13px;
		line-height: 1.75;
		min-height: 3.5em;
	}

	.wetheme-blog-carousel .blbc-date {
		margin-top: 10px;
		font-size: 12px;
	}

	.wetheme-blog-carousel .blbc-card-footer {
		padding: 18px 16px;
	}

	.wetheme-blog-carousel .blbc-readmore {
		font-size: 13px;
	}

	.wetheme-blog-carousel .blbc-pagination {
		margin-top: 18px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.wetheme-blog-carousel .blbc-header {
		flex-wrap: wrap;
		margin-bottom: 16px;
		gap: 10px 12px;
	}

	.wetheme-blog-carousel .blbc-title {
		font-size: 16px;
		max-width: 100%;
	}

	.wetheme-blog-carousel .blbc-header-line {
		order: 3;
		flex: 1 1 100%;
		min-width: 0;
	}

	.wetheme-blog-carousel .blbc-view-all {
		margin-inline-start: auto;
		font-size: 12px;
		gap: 4px;
	}

	.wetheme-blog-carousel .blbc-arrow svg {
		width: 12px;
		height: 12px;
	}

	.wetheme-blog-carousel .blbc-slider {
		gap: 8px;
	}

	.wetheme-blog-carousel .blbc-side-nav {
		width: 34px;
		height: 34px;
		font-size: 16px;
	}

	.wetheme-blog-carousel .blbc-thumb {
		padding: 8px 8px 0;
	}

	.wetheme-blog-carousel .blbc-thumb-img {
		border-radius: 12px;
	}

	.wetheme-blog-carousel .blbc-body {
		padding: 12px 14px 6px;
	}

	.wetheme-blog-carousel .blbc-excerpt {
		font-size: 13px;
		line-height: 1.7;
		min-height: 3.4em;
		-webkit-line-clamp: 3;
	}

	.wetheme-blog-carousel .blbc-date {
		margin-top: 8px;
		font-size: 12px;
	}

	.wetheme-blog-carousel .blbc-card-footer {
		padding: 14px;
		gap: 8px;
	}

	.wetheme-blog-carousel .blbc-readmore {
		font-size: 13px;
	}

	.wetheme-blog-carousel .blbc-pagination {
		margin-top: 16px;
		gap: 6px;
	}

	.wetheme-blog-carousel .blbc-pagination .swiper-pagination-bullet {
		width: 7px;
		height: 7px;
	}

	.wetheme-blog-carousel .blbc-pagination .swiper-pagination-bullet-active {
		width: 22px;
		height: 7px;
	}
}

/* Small phones */
@media (max-width: 480px) {
	.wetheme-blog-carousel .blbc-header {
		gap: 8px;
	}

	.wetheme-blog-carousel .blbc-title {
		font-size: 15px;
	}

	.wetheme-blog-carousel .blbc-view-all {
		font-size: 11px;
	}

	.wetheme-blog-carousel .blbc-side-nav {
        display: none;
	}

	.wetheme-blog-carousel .blbc-excerpt {
		-webkit-line-clamp: 2;
		min-height: 3.4em;
	}

	.wetheme-blog-carousel .blbc-card-footer {
		padding: 12px;
	}
}
