/* ==========================================================================
   Tabassom About Section – base styles
   All colors / sizes below are overridable from the Elementor Style tab.
   ========================================================================== */

.tbs-about {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 64px;
	direction: rtl;
}

.tbs-about__content {
	flex: 1 1 320px;
	min-width: 0;
	text-align: start;
}

.tbs-about__media {
	position: relative;
	flex: 0 0 auto;
	width: 45%;
	min-width: 0;
}

/* Order ------------------------------------------------------------------ */

.tbs-about--media-first .tbs-about__media {
	order: 1;
}

.tbs-about--media-first .tbs-about__content {
	order: 2;
}

.tbs-about--content-first .tbs-about__content {
	order: 1;
}

.tbs-about--content-first .tbs-about__media {
	order: 2;
}

.tbs-about--no-media .tbs-about__content {
	flex: 1 1 100%;
}

/* Badge ------------------------------------------------------------------ */

.tbs-about__badge-wrap {
	margin-bottom: 20px;
}

.tbs-about__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background-color: #e7f5ec;
	color: #2e8b57;
	font-size: 13px;
	line-height: 1.6;
}

.tbs-about__badge-dot {
	display: inline-block;
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: #34a853;
}

.tbs-about__badge-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.tbs-about__badge-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Title ------------------------------------------------------------------ */

.tbs-about__title {
	margin: 0 0 18px;
	color: #16324f;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.6;
}

.tbs-about__title a {
	color: inherit;
	text-decoration: none;
}

/* Description ------------------------------------------------------------ */

.tbs-about__desc {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 34px;
}

.tbs-about__desc p {
	margin: 0;
	color: #5c6b7f;
	font-size: 15px;
	line-height: 2;
}

/* Feature boxes ---------------------------------------------------------- */

.tbs-about__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.tbs-about__feature {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 16px 20px;
	border: 1px solid #eef1f5;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.tbs-about__feature--link {
	cursor: pointer;
}

.tbs-about__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #22a35a;
	font-size: 14px;
	line-height: 1;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.tbs-about__feature-icon svg {
	width: 14px;
	height: 14px;
	fill: #22a35a;
	transition: fill 0.25s ease;
}

.tbs-about__feature-text {
	color: #2c3e50;
	font-size: 14px;
	line-height: 1.7;
}

/* Media ------------------------------------------------------------------ */

.tbs-about__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100%;
	height: 600px;
	border-radius: 24px;
	background-image: linear-gradient(170deg, #e7ecfa 0%, #f7f8fc 100%);
	text-decoration: none;
}

.tbs-about__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.tbs-about__placeholder {
	padding: 0 20px;
	color: #8e9aab;
	font-size: 14px;
	text-align: center;
}

/* Floating stat card ----------------------------------------------------- */

.tbs-about__stat {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	border-radius: 16px;
	background-color: #fff;
	box-shadow: 0 18px 40px rgba(16, 24, 40, 0.1);
	transform: translate(
		calc(var(--tbs-stat-x, 0px) + var(--tbs-stat-center, 0px)),
		var(--tbs-stat-y, 0px)
	);
}

.tbs-about__stat--bl {
	bottom: 0;
	left: 0;
}

.tbs-about__stat--br {
	bottom: 0;
	right: 0;
}

.tbs-about__stat--tl {
	top: 0;
	left: 0;
}

.tbs-about__stat--tr {
	top: 0;
	right: 0;
}

.tbs-about__stat--bc {
	bottom: 0;
	left: 50%;
	--tbs-stat-center: -50%;
}

.tbs-about__stat--tc {
	top: 0;
	left: 50%;
	--tbs-stat-center: -50%;
}

.tbs-about__stat-number {
	flex: 0 0 auto;
	color: #16324f;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.tbs-about__stat-label {
	color: #6b7a8d;
	font-size: 13px;
	line-height: 1.7;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {

	.tbs-about {
		flex-direction: column;
		align-items: stretch;
	}

	.tbs-about__content,
	.tbs-about__media {
		flex: 1 1 auto;
	}

	.tbs-about--stack-content .tbs-about__content {
		order: 1;
	}

	.tbs-about--stack-content .tbs-about__media {
		order: 2;
	}

	.tbs-about--stack-media .tbs-about__media {
		order: 1;
	}

	.tbs-about--stack-media .tbs-about__content {
		order: 2;
	}
}

@media (max-width: 767px) {

	.tbs-about__stat--hide-mobile {
		display: none;
	}
}
