/**
 * Learn From Best Widget Styles
 */

/* Widget Container */
.lfb-widget {
	width: 100%;
	padding: 48px 0;
}

/* Section Title */
.lfb-section-title {
	font-family: var(--iabt-font-family);
	font-size: var(--iabt-h2);
	font-weight: var(--iabt-font-bold);
	line-height: var(--iabt-line-height-heading);
	color: var(--iabt-text-heading);
	text-align: center;
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Tabs Navigation */
.lfb-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	justify-content: center;
}

.lfb-tab-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	gap: 4px;
	background-color: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 200px;
	max-width: 200px;
	text-align: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lfb-tab-button:hover {
	transform: scale(0.95);
}

.lfb-tab-button.active {
	background-color: transparent;
	border: none;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lfb-tab-icon {
	width: 100%;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lfb-tab-icon img {
	width: auto;
	height: 100% !important;
	object-fit: contain;
}

.lfb-tab-title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
	flex-grow: 1;
	text-wrap: nowrap;
}

/* Tabs Content */
.lfb-tabs-content {
	position: relative;
	min-height: 400px;
	transition: height 0.4s ease;
	overflow: hidden;
}

.lfb-tab-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lfb-tab-content.active {
	opacity: 1;
	visibility: visible;
	animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lfb-tab-content-inner {
	display: flex;
	gap: 40px;
	/* min-height: 400px; */
	align-items: center;
	justify-content: center;
	max-width: 1200px;
	padding: 0 20px 36px 20px;
	margin: 0 auto;
}

.lfb-tab-content-inner.reverse {
	flex-direction: row-reverse;
}

.lfb-tab-image {
	flex: 0 1 auto;
	max-width: 40%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lfb-tab-image img {
	max-width: 100%;
	height: 100%;
	max-height: 400px;
	display: block;
	border-radius: 8px;
	object-fit: contain;
}

.lfb-tab-text {
	flex: 1;
	display: flex;
	align-items: center;
}

.lfb-tab-description {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	width: 100%;
}

.lfb-tab-description p:last-child {
	margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.lfb-tabs-nav {
		gap: 8px;
	}

	.lfb-tab-button {
		padding: 12px 16px;
	}

	.lfb-tab-icon {
		width: 100%;
		height: 35px;
	}

	.lfb-tab-title {
		font-size: 12px;
	}

	.lfb-tab-content-inner {
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.lfb-tabs-nav {
		gap: 8px;
		margin-bottom: 25px;
	}

	.lfb-tab-button {
		padding: 10px 12px;
		gap: 5px;
	}

	.lfb-tab-icon {
		width: 100%;
		height: 30px;
	}

	.lfb-tab-title {
		font-size: 12px;
	}

	.lfb-tab-content-inner {
		flex-direction: column !important;
		gap: 20px;
	}

	.lfb-tab-content-inner.reverse {
		flex-direction: column !important;
	}

	.lfb-tab-image {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.lfb-tab-text {
		text-align: center;
	}

	.lfb-tab-description {
		font-size: 13px;
	}

	.lfb-section-title {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.lfb-tabs-nav {
		gap: 5px;
	}

	.lfb-tab-button {
		min-width: 60px;
		max-width: 100px;
		padding: 8px 10px;
	}

	.lfb-tab-icon {
		width: 100%;
		height: 25px;
	}

	.lfb-tab-title {
		font-size: 12px;
	}

	.lfb-tab-description {
		font-size: 13px;
	}

	.lfb-section-title {
		font-size: 20px;
	}
}

/* Elementor Editor Compatibility */
.elementor-widget-learn-from-best .elementor-widget-container {
	overflow: visible;
}
