/* ==========================================================================
   Egg Break Product Processing Steps Widget Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.elementor-widget-egg_break_processing_steps,
.elementor-widget-egg_break_processing_steps > .elementor-widget-container,
.egg-break-processing-steps-section {
	display: block;
	width: 100%;
	transform: none !important;
	perspective: none !important;
	filter: none !important;
	backdrop-filter: none !important;
	will-change: auto !important;
	contain: none !important;
	overflow: visible !important;
}

/* Ensure GSAP pin-spacer holds full width and background without collapsing */
.pin-spacer {
	box-sizing: border-box;
	background: inherit;
}

.egg-break-processing-steps-wrapper {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   TOP FEATURED IMAGES SECTION
   ========================================================================== */
.egg-break-steps-featured-images {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 40px;
	z-index: 10;
	transition: margin-top 0.3s ease;
}

.egg-break-featured-img-wrap {
	position: relative;
	width: 48%;
	max-width: 560px;
	height: 280px;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	background-color: #EAEAEA;
}

.egg-break-step-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
	transform: scale(1.03);
}

.egg-break-step-img.active-img {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

/* ==========================================================================
   SECTION HEADER & NAV BUTTONS
   ========================================================================== */
.egg-break-steps-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
}

.egg-break-steps-title {
	font-family: 'Inter', sans-serif;
	font-size: 34px;
	font-weight: 800;
	color: #1A1A1A;
	margin: 0;
	text-align: center;
}

.theme-dark .egg-break-steps-title {
	color: #FFFFFF;
}

.egg-break-steps-nav {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	gap: 10px;
	z-index: 15;
}

.egg-break-nav-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #E23F97;
	background-color: transparent;
	color: #E23F97;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s ease;
}

.egg-break-nav-btn:hover {
	background-color: #E23F97;
	color: #FFFFFF;
	transform: scale(1.08);
}

/* ==========================================================================
   TIMELINE TRACK & SLIDABLE COLUMNS
   ========================================================================== */
.egg-break-timeline-track-outer {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 20px 16px;
	box-sizing: border-box;
}

.egg-break-timeline-track-inner {
	position: relative;
	width: 100%;
}

/* Horizontal Timeline Progress Line */
.egg-break-timeline-bar-bg {
	position: absolute;
	top: 13px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #E23F97;
	z-index: 1;
}

.theme-dark .egg-break-timeline-bar-bg {
	background-color: #EEEEEE;
}

.egg-break-timeline-fill {
	display: none !important;
}

/* Slidable Steps Container */
.egg-break-steps-columns-wrap {
	position: relative;
	display: flex;
	gap: 28px;
	width: 100%;
	z-index: 5;
	transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.egg-break-step-col {
	flex: 0 0 calc(25% - 21px);
	max-width: calc(25% - 21px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-sizing: border-box;
}

/* Step Badge Sitting on Line */
.egg-break-step-badge-wrap {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
	z-index: 10;
}

.step-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #333333;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	transition: all 0.3s ease;
}

.theme-dark .step-badge {
	background-color: #FFFFFF;
	color: #333333;
}

.step-active .step-badge {
	background-color: #E23F97 !important;
	color: #FFFFFF !important;
	transform: scale(1.15);
	box-shadow: 0 0 14px rgba(226, 63, 151, 0.5);
}

/* Step Card & Content */
.egg-break-step-card {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-sizing: border-box;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Step Icon Box */
.egg-break-step-icon-wrap {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 1px solid #CCCCCC;
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.step-active .egg-break-step-icon-wrap {
	border-color: #E23F97;
}

.step-icon-img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.step-icon-placeholder {
	width: 24px;
	height: 24px;
	background-color: #DDDDDD;
	border-radius: 50%;
}

/* Step Title & Description (Free Width & Fixed Height Alignment matching Figma) */
.egg-break-step-text-wrap {
	width: auto;
	max-width: none; /* Free width allowing text to expand naturally without premature line breaks */
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
}

.step-title {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #333333;
	margin: 0;
	line-height: 23px;
	letter-spacing: 0%;
	min-height: 46px; /* Reserves 2 lines height budget to prevent shifting lower elements */
	transition: color 0.3s ease;
}

.theme-dark .step-title {
	color: #FFFFFF;
}

.step-active .step-title {
	color: #E23F97 !important;
}

.step-desc {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: #333333;
	margin: 0;
	line-height: 23px;
	letter-spacing: 0%;
}

.theme-dark .step-desc {
	color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   PRESET 1: MINIMAL (SIDE ICON LAYOUT MATCHING REFERENCE IMAGE 1)
   ========================================================================== */
.preset-minimal .egg-break-step-card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
}

.preset-minimal .egg-break-step-icon-wrap {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
}

.preset-minimal .step-title {
	min-height: auto;
}

/* ==========================================================================
   PRESET 2: WHITE CURVED CARDS (INSTANCE 3 BOX STYLE)
   ========================================================================== */
.preset-white-curved-cards .egg-break-step-card {
	background: #FFFFFF;
	border-radius: 24px;
	padding: 24px 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
	height: 100%;
}

.preset-white-curved-cards .step-title {
	color: #222222;
	min-height: auto;
	margin-bottom: 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.preset-white-curved-cards .step-active .step-title {
	color: #E23F97 !important;
}

.preset-white-curved-cards .step-desc {
	color: #555555 !important;
	font-size: 13.5px;
	line-height: 1.45;
}

.preset-white-curved-cards .step-active .egg-break-step-card {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(226, 63, 151, 0.15);
	border-color: rgba(226, 63, 151, 0.3);
}

/* Hide step icons when hide-card-icons class is applied */
.hide-card-icons .egg-break-step-icon-wrap {
	display: none !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
	.egg-break-step-col {
		flex: 0 0 calc(33.333% - 19px);
		max-width: calc(33.333% - 19px);
	}
	.egg-break-featured-img-wrap {
		height: 220px;
	}
}

@media (max-width: 768px) {
	.egg-break-steps-featured-images {
		flex-direction: column;
		align-items: center;
	}
	.egg-break-featured-img-wrap {
		width: 100%;
		max-width: 100%;
		height: 200px;
	}
	.egg-break-steps-columns-wrap {
		flex-direction: column;
		gap: 24px;
	}
	.egg-break-step-col {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.egg-break-step-text-wrap {
		max-width: 100%;
	}
	.step-title {
		min-height: auto; /* Allow natural single-column height on mobile devices */
	}
	.egg-break-timeline-bar-bg {
		display: none;
	}
}
