/**
 * Gratis Tabs - Stepper style (numbered circles + vertical line)
 * Targets .gratis-tabs on Elementor Nested Tabs widget
 */

/* Main layout: heading left, content right */
.gratis-tabs .e-n-tabs {
	display: flex;
	flex-direction: row;
	gap: 0;
	align-items: flex-start;
	min-width: 0;
}

.gratis-tabs .e-n-tabs-heading {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	flex-wrap: nowrap;
	gap: 0;
	width: max-content;
	min-width: 220px;
	max-width: 380px;
	padding-right: 24px;
}

.gratis-tabs .e-n-tabs-content {
	flex-grow: 1;
	min-width: 0;
	padding: 24px 0 24px 24px;
	border-left: none;
}

/* Reset default tab title styling - number aur heading same straight line */
.gratis-tabs .e-n-tab-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	padding-left: 0;
	padding-right: 0;
	background: transparent !important;
	border: none;
	border-radius: 0;
	width: 100%;
	text-align: left;
	justify-content: flex-start;
	min-height: 52px;
}

/* Numbered circle - fixed width taake sab numbers ek hi vertical line pe */
.gratis-tabs .e-n-tab-title::before {
	content: attr(data-tab-index);
	flex-shrink: 0;
	width: 32px;
	min-width: 32px;
	height: 32px;
	box-sizing: border-box;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	line-height: 1;
	font-family: inherit;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Vertical line - circles ke center se (16px) */
.gratis-tabs .e-n-tab-title::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 32px;
	width: 2px;
	height: calc(100% - 16px);
	background-color: #d5d8dc;
	z-index: -1;
}

.gratis-tabs .e-n-tab-title:last-child::after {
	display: none;
}

/* Inactive tab: grey circle, lighter grey text (2nd pic) */
.gratis-tabs .e-n-tab-title[aria-selected="false"]::before {
	background-color: #a0a0a0;
	color: #fff;
}

.gratis-tabs .e-n-tab-title[aria-selected="false"] .e-n-tab-title-text,
.gratis-tabs .e-n-tab-title[aria-selected="false"] {
	color: #6c757d !important;
	font-weight: 400;
}

/* Active tab: blue circle, bold black text */
.gratis-tabs .e-n-tab-title[aria-selected="true"]::before {
	background-color: #1976d2;
	color: #fff;
}

.gratis-tabs .e-n-tab-title[aria-selected="true"] .e-n-tab-title-text,
.gratis-tabs .e-n-tab-title[aria-selected="true"] {
	color: #212529 !important;
	font-weight: 700;
}

/* Hover for inactive tabs */
.gratis-tabs .e-n-tab-title[aria-selected="false"]:hover::before {
	background-color: #757575;
}

.gratis-tabs .e-n-tab-title[aria-selected="false"]:hover .e-n-tab-title-text {
	color: #424242 !important;
}

/* Tab title text - heading in one line (2nd pic style), straight */
.gratis-tabs .e-n-tab-title-text {
	flex: 1;
	min-width: 0;
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
	align-self: center;
	white-space: nowrap;
}

/* Content area: main heading + blue sub-heading (match 2nd image) */
.gratis-tabs .e-n-tabs-content .elementor-heading-title {
	margin-top: 0;
	margin-bottom: 0.5em;
}

.gratis-tabs .e-n-tabs-content .e-con.e-active .elementor-widget-heading:first-of-type .elementor-heading-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #212529;
	margin-bottom: 0.35em;
}

.gratis-tabs .e-n-tabs-content .e-con.e-active .elementor-widget-heading:nth-of-type(2) .elementor-heading-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1976d2;
	margin-bottom: 0.75em;
}

.gratis-tabs .e-n-tabs-content .e-con.e-active .elementor-widget-text-editor,
.gratis-tabs .e-n-tabs-content .e-con.e-active .elementor-widget-text-editor p {
	color: #6c757d;
	line-height: 1.6;
	font-size: 1rem;
}

/* Mobile: stack layout, allow heading wrap on small screens */
@media (max-width: 767px) {
	.gratis-tabs.e-n-tabs-mobile .e-n-tabs {
		flex-direction: column;
	}

	.gratis-tabs .e-n-tabs-heading {
		width: 100%;
		max-width: 100%;
		padding-right: 0;
	}

	.gratis-tabs .e-n-tab-title-text {
		white-space: normal;
	}

	.gratis-tabs .e-n-tabs-content {
		padding-left: 0;
		padding-top: 16px;
	}
}
