/* Elementor Project Showcase Tabs - Frontend Styles */

.epst-wrapper {
	display: flex;
	flex-direction: row-reverse; /* keeps text RTL while forcing tabs-col (1st in DOM) to the LEFT and preview-col to the RIGHT */
	align-items: stretch;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
	direction: rtl;
}

.epst-wrapper * {
	box-sizing: border-box;
}

/* ===================== TABS COLUMN ===================== */
.epst-tabs-col {
	width: 34%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.epst-tabs-list {
	display: flex;
	flex-direction: column;
}

.epst-tab-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	cursor: pointer;
	background-color: #ffffff;
	border-bottom: 1px solid #e6e8ee;
	transition: background-color 0.35s ease;
}

.epst-tab-item:first-child {
	border-top-left-radius: 6px;
}

.epst-tab-thumb {
	flex: 0 0 auto;
	width: 90px;
	height: 90px;
	border-radius: 6px;
	overflow: hidden;
}

.epst-tab-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.epst-tab-item:hover .epst-tab-thumb img {
	transform: scale(1.06);
}

.epst-tab-text {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
}

.epst-tab-number {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #a3a9b7;
	margin-bottom: 6px;
	letter-spacing: 0.5px;
}

.epst-tab-title {
	margin: 0 0 6px 0;
	font-size: 17px;
	font-weight: 700;
	color: #1c2333;
	line-height: 1.4;
}

.epst-tab-subtitle {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #7c8393;
	line-height: 1.6;
}

.epst-tab-item.active {
	background-color: #1b2a63;
}

.epst-tab-item.active .epst-tab-title {
	color: #ffffff;
}

.epst-tab-item.active .epst-tab-subtitle {
	color: #c6cbe0;
}

.epst-tab-item.active .epst-tab-number {
	color: #ffffff;
}

/* View all button */
.epst-view-all-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: #12141c;
	color: #ffffff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 18px 20px;
	transition: background-color 0.3s ease;
}

.epst-view-all-btn:hover {
	background-color: #2f6fed;
	color: #ffffff;
}

.epst-btn-arrow {
	transform: rotate(90deg);
	flex-shrink: 0;
}

/* ===================== PREVIEW COLUMN ===================== */
.epst-preview-col {
	width: 66%;
	position: relative;
}

.epst-preview-panel {
	display: none;
	width: 100%;
	height: 100%;
	animation: epstFadeIn 0.5s ease;
}

.epst-preview-panel.active {
	display: block;
}

@keyframes epstFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.epst-preview-image {
	position: relative;
	width: 100%;
	min-height: 520px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #cfd3da;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

/* Badge */
.epst-badge {
	position: absolute;
	top: 24px;
	left: 24px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: rgba(255, 255, 255, 0.92);
	color: #1c2333;
	padding: 9px 16px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 500;
	width: fit-content;
}

.epst-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: #2f6fed;
	flex-shrink: 0;
}

/* Info bar */
.epst-info-bar {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 24px;
	background-color: rgba(10, 14, 26, 0.72);
	backdrop-filter: blur(6px);
}

.epst-info-content {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
}

.epst-info-title {
	margin: 0 0 6px 0;
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.4;
}

.epst-info-text {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #b9c0d4;
	line-height: 1.6;
}

.epst-info-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #2f6fed;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: 6px;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.epst-info-btn:hover {
	background-color: #1c2333;
	color: #ffffff;
}

/* Testimonial */
.epst-testimonial {
	position: relative;
	background-color: #ffffff;
	padding: 26px 30px;
	border: 1px solid #eef0f4;
	border-top: none;
}

.epst-quote-icon {
	position: absolute;
	top: 24px;
	left: 30px;
	color: #2f6fed;
	opacity: 0.9;
}

.epst-testimonial-author {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 700;
	color: #1c2333;
	padding-left: 50px;
}

.epst-testimonial-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.9;
	color: #5b6172;
	padding-left: 50px;
}

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

/* Tablet */
@media (max-width: 1024px) {
	.epst-tabs-col {
		width: 38%;
	}
	.epst-preview-col {
		width: 62%;
	}
	.epst-preview-image {
		min-height: 440px;
	}
	.epst-tab-item {
		padding: 16px 18px;
		gap: 12px;
	}
	.epst-tab-thumb {
		width: 70px;
		height: 70px;
	}
	.epst-tab-title {
		font-size: 15px;
	}
	.epst-info-bar {
		padding: 16px 18px;
	}
	.epst-info-title {
		font-size: 15px;
	}
	.epst-info-btn {
		padding: 10px 16px;
		font-size: 13px;
	}
}

/* Small tablet / large mobile */
@media (max-width: 767px) {
	.epst-wrapper {
		flex-direction: column;
	}
	.epst-tabs-col,
	.epst-preview-col {
		width: 100%;
	}
	.epst-preview-col {
		order: -1;
		margin-bottom: 18px;
	}
	.epst-tabs-list {
		flex-direction: row;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.epst-tabs-list::-webkit-scrollbar {
		display: none;
	}
	.epst-tab-item {
		flex: 0 0 auto;
		flex-direction: column;
		align-items: flex-start;
		width: 200px;
		border-bottom: none;
		border-left: 1px solid #e6e8ee;
	}
	.epst-tab-item:last-child {
		border-left: none;
	}
	.epst-tab-thumb {
		width: 100%;
		height: 110px;
		margin-bottom: 12px;
	}
	.epst-tab-text {
		text-align: right;
		width: 100%;
	}
	.epst-preview-image {
		min-height: 320px;
	}
	.epst-info-bar {
		flex-wrap: wrap;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.epst-tab-item {
		width: 165px;
		padding: 14px;
	}
	.epst-tab-title {
		font-size: 14px;
	}
	.epst-tab-subtitle {
		font-size: 12px;
	}
	.epst-preview-image {
		min-height: 260px;
	}
	.epst-badge {
		top: 14px;
		left: 14px;
		padding: 7px 12px;
		font-size: 12px;
	}
	.epst-info-bar {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px;
	}
	.epst-info-btn {
		align-self: stretch;
		text-align: center;
	}
	.epst-testimonial {
		padding: 20px;
	}
	.epst-testimonial-author,
	.epst-testimonial-text {
		padding-left: 0;
		padding-top: 30px;
	}
	.epst-quote-icon {
		top: 16px;
		left: 20px;
	}
	.epst-view-all-btn {
		padding: 15px;
		font-size: 14px;
	}
}
