/* ==========================================================================
   ESTONE TECHNOLOGY SHOWCASE SECTION STYLESHEET
   ========================================================================== */

/* Full Screen Edge-to-Edge Container Breakout */
.estone-technology-wrapper {
	position: relative;
	width: 100vw !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	background: #ffffff;
	padding: 4.5rem 3rem;
	overflow: hidden;
	color: #000000;
	box-sizing: border-box;
}

/* Gutenberg Admin Block Editor Canvas Containment ONLY */
.editor-styles-wrapper .estone-technology-wrapper,
.block-editor-block-list__layout .estone-technology-wrapper,
.block-editor-block-list__block .estone-technology-wrapper,
.block-editor-iframe__html .estone-technology-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	left: auto !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.estone-technology-wrapper * {
	box-sizing: border-box;
}

/* Inner Container */
.estone-tech-inner-container {
	margin: 0 auto;
	width: 100%;
}

/* Title Area on Right Column */
.estone-tech-right-col .estone-tech-title-area,
.estone-tech-title-area {
	width: 100%;
	margin-bottom: 1.65rem;
	border-left: none !important;
	padding-left: 0 !important;
	text-align: left;
	box-sizing: border-box;
}

.estone-tech-tagline {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #0056b3;
	margin: 0 0 0.35rem 0;
	display: block;
}

.estone-tech-title {
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1.15;
	color: #0c1a30;
	margin: 0 0 0.65rem 0;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.estone-tech-subtitle {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #475569;
	margin: 0;
	font-weight: 500;
}

/* Main Layout Flex Grid */
.estone-tech-grid {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(20px, 2vw, 36px);
	align-items: stretch !important;
	width: 100%;
}

/* Left Column: Interactive Showcase */
.estone-tech-left-col {
	flex: 1.22 1 520px;
	min-width: 320px;
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-self: stretch !important;
	height: auto;
}

.estone-tech-showcase-container {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100%;
	flex: 1 1 auto;
	border-radius: 12px;
	overflow: hidden;
	background: #091424;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
}

/* Main background picture with crossfade support */
.estone-tech-main-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: opacity 0.35s ease;
	opacity: 1;
}

.estone-tech-main-img.is-swapping {
	opacity: 0.15;
}

.estone-tech-showcase-container:hover .estone-tech-main-img {
	transform: scale(1.02);
}

/* Hotspots overlay */
.estone-tech-hotspots-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
}

/* Hotspot Point with toggle visibility support */
.estone-tech-hotspot {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 20;
	display: none;
	opacity: 0;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	transition: opacity 0.35s ease, transform 0.3s ease;
}

.estone-tech-hotspot.is-visible {
	display: flex;
	opacity: 1;
}

/* Outer Pulsing Glow */
.estone-tech-hotspot-circle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(12, 26, 48, 0.65);
	border: 2px solid #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
	transition: all 0.3s ease;
}

.estone-tech-hotspot-circle::after {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	animation: estone-tech-pulse 2s infinite ease-out;
	pointer-events: none;
}

.estone-tech-hotspot-icon {
	color: #ffffff;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.estone-tech-hotspot-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.estone-tech-hotspot-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.estone-tech-hotspot-label {
	margin-top: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
	letter-spacing: 0.02em;
	transition: color 0.3s ease;
}

/* Active & Hover states for Hotspots */
.estone-tech-hotspot:hover .estone-tech-hotspot-circle,
.estone-tech-hotspot.is-active .estone-tech-hotspot-circle {
	background: #003875;
	border-color: #0088ff;
	box-shadow: 0 0 25px rgba(0, 136, 255, 0.6);
	transform: scale(1.1);
}

.estone-tech-hotspot:hover .estone-tech-hotspot-label,
.estone-tech-hotspot.is-active .estone-tech-hotspot-label {
	color: #0088ff;
}

/* Bottom Glassmorphism Detail Card Overlay */
.estone-tech-card-overlay {
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
	z-index: 30;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 8px;
	padding: 1.15rem 1.25rem;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	max-height: 48%;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	transform: translateY(0);
	opacity: 1;
}

.estone-tech-card-overlay.is-updating {
	transform: translateY(10px);
	opacity: 0;
}

.estone-tech-card-icon-wrap {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	background: #f0f7ff !important;
	border: 1px solid #d0e3ff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #003875 !important;
	flex-shrink: 0;
}

.estone-tech-card-icon-wrap img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	display: block;
	filter: none !important;
}

.estone-tech-card-icon-wrap svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: #003875 !important;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	display: block;
}

.estone-tech-card-content {
	flex-grow: 1;
}

.estone-tech-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0c1a30;
	margin: 0 0 0.25rem 0;
}

.estone-tech-card-desc {
	font-size: 0.85rem;
	line-height: 1.45;
	color: #475569;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Right Column: Key Features List */
.estone-tech-right-col {
	flex: 1 1 410px;
	min-width: 320px;
	width: 100%;
}

.estone-tech-list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Item styling */
.estone-tech-list-item {
	display: flex;
	align-items: center;
	gap: 1.15rem;
	padding: 0.72rem 1.1rem;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.estone-tech-list-item::before {
	display: none;
}

.estone-tech-item-icon-wrap {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	background: #f0f7ff;
	border: 1px solid #d0e3ff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #003875;
	flex-shrink: 0;
	transition: all 0.25s ease;
}

.estone-tech-item-icon-wrap img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	transition: all 0.25s ease;
}

.estone-tech-item-icon-wrap svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: #003875;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.estone-tech-item-content {
	flex-grow: 1;
}

.estone-tech-item-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0c1a30;
	margin: 0 0 0.15rem 0;
	transition: color 0.25s ease;
}

.estone-tech-item-desc {
	font-size: 0.88rem;
	line-height: 1.45;
	color: #64748b;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Hover and active states for list items -> EXACT RED BORDER AS IN SCREENSHOT */
.estone-tech-list-item:hover,
.estone-tech-list-item.is-active {
	border-color: #c40808 !important;
	border-width: 1.5px !important;
	background: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(196, 8, 8, 0.08);
}

.estone-tech-list-item:hover .estone-tech-item-icon-wrap,
.estone-tech-list-item.is-active .estone-tech-item-icon-wrap {
	background: #fef2f2 !important;
	border-color: #fecaca !important;
	color: #c40808 !important;
}

.estone-tech-list-item:hover .estone-tech-item-icon-wrap svg,
.estone-tech-list-item.is-active .estone-tech-item-icon-wrap svg {
	stroke: #c40808 !important;
}

.estone-tech-list-item:hover .estone-tech-item-icon-wrap img,
.estone-tech-list-item.is-active .estone-tech-item-icon-wrap img {
	filter: none !important;
}

.estone-tech-list-item:hover .estone-tech-item-title,
.estone-tech-list-item.is-active .estone-tech-item-title {
	color: #0c1a30;
}

/* Keyframes pulse animation */
@keyframes estone-tech-pulse {
	0% {
		transform: scale(0.95);
		opacity: 0.8;
	}
	50% {
		transform: scale(1.15);
		opacity: 0.4;
	}
	100% {
		transform: scale(1.35);
		opacity: 0;
	}
}

/* Admin Block Editor Canvas Specific Overrides */
.editor-styles-wrapper .estone-tech-grid,
.block-editor-block-list__layout .estone-tech-grid {
	gap: 2.5rem;
}

.editor-styles-wrapper .estone-tech-left-col,
.block-editor-block-list__layout .estone-tech-left-col {
	flex: 1 1 100%;
	width: 100%;
}

.editor-styles-wrapper .estone-tech-right-col,
.block-editor-block-list__layout .estone-tech-right-col {
	flex: 1 1 100%;
	width: 100%;
}

.editor-styles-wrapper .estone-tech-showcase-container {
	min-height: 460px;
	aspect-ratio: 16 / 11;
}

/* Responsive Styles for Frontend */
@media (max-width: 1024px) {
	.estone-tech-left-col,
	.estone-tech-right-col {
		flex: 1 1 100%;
	}
}

/* Mobile (0px - 768px) - Exact match with reference screenshot */
@media (max-width: 768px) {
	.estone-technology-wrapper {
		padding: 40px 16px !important;
	}

	.estone-tech-grid {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		gap: 16px !important;
	}

	/* Flatten right column so its children (title and list) become direct flex children of grid */
	.estone-tech-right-col {
		display: contents !important;
	}

	/* 1. Title Area at TOP (Order 1) */
	.estone-tech-title-area {
		order: 1 !important;
		width: 100% !important;
		margin-bottom: 8px !important;
		text-align: left !important;
	}

	.estone-tech-tagline {
		font-size: 13px !important;
		color: #0084ff !important;
		font-weight: 700 !important;
		letter-spacing: 0.12em !important;
		margin-bottom: 6px !important;
	}

	.estone-tech-title {
		font-size: 24px !important;
		line-height: 1.2 !important;
		color: #0c1a30 !important;
		font-weight: 800 !important;
		margin-bottom: 8px !important;
	}

	.estone-tech-subtitle {
		font-size: 13.5px !important;
		color: #64748b !important;
		line-height: 1.5 !important;
		margin: 0 !important;
	}

	/* 2. Interactive Showcase Card in MIDDLE (Order 2) */
	.estone-tech-left-col {
		order: 2 !important;
		width: 100% !important;
		flex: 1 1 100% !important;
		min-width: 0 !important;
		margin-bottom: 8px !important;
	}

	.estone-tech-showcase-container {
		min-height: 360px !important;
		height: 360px !important;
		border-radius: 10px !important;
		position: relative !important;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
		overflow: hidden !important;
	}

	.estone-tech-main-img {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		object-position: center center !important;
	}

	.estone-tech-card-overlay {
		position: absolute !important;
		bottom: 14px !important;
		left: 14px !important;
		right: 14px !important;
		background: rgba(255, 255, 255, 0.94) !important;
		backdrop-filter: blur(8px) !important;
		-webkit-backdrop-filter: blur(8px) !important;
		border-radius: 8px !important;
		padding: 12px 14px !important;
		display: flex !important;
		align-items: center !important;
		gap: 12px !important;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
		z-index: 15 !important;
		box-sizing: border-box !important;
	}

	.estone-tech-card-icon-wrap {
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		border-radius: 6px !important;
		background: #eef7fc !important;
		border: 1.5px solid #0056b3 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		color: #0056b3 !important;
		flex-shrink: 0 !important;
	}

	.estone-tech-card-icon-wrap svg {
		width: 22px !important;
		height: 22px !important;
		stroke: #0056b3 !important;
	}

	.estone-tech-card-title {
		font-size: 13.5px !important;
		font-weight: 700 !important;
		color: #0c1a30 !important;
		margin: 0 0 2px 0 !important;
		line-height: 1.3 !important;
	}

	.estone-tech-card-desc {
		font-size: 11.5px !important;
		line-height: 1.4 !important;
		color: #475569 !important;
		margin: 0 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
	}

	/* 3. 7 Features Stacked Cleanly Below (Order 3) */
	.estone-tech-list {
		order: 3 !important;
		width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 9px !important;
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.estone-tech-list-item {
		display: flex !important;
		align-items: center !important;
		gap: 12px !important;
		background: #ffffff !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 8px !important;
		padding: 12px 14px !important;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
		margin: 0 !important;
		box-sizing: border-box !important;
		cursor: pointer !important;
		transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
	}

	.estone-tech-list-item.is-active {
		border-color: #0056b3 !important;
		box-shadow: 0 3px 12px rgba(0, 86, 179, 0.12) !important;
	}

	.estone-tech-item-icon-wrap {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		border-radius: 6px !important;
		background: #f8fafc !important;
		border: 1px solid #e2e8f0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		color: #0c1a30 !important;
		flex-shrink: 0 !important;
	}

	.estone-tech-item-icon-wrap svg {
		width: 18px !important;
		height: 18px !important;
		stroke: #0c1a30 !important;
	}

	.estone-tech-item-content {
		flex-grow: 1 !important;
		min-width: 0 !important;
	}

	.estone-tech-item-title {
		font-size: 13.5px !important;
		font-weight: 600 !important;
		color: #0c1a30 !important;
		margin: 0 !important;
		line-height: 1.3 !important;
		white-space: normal !important;
	}

	.estone-tech-item-desc {
		display: none !important;
	}
}


/* Click to edit icon styling in Editor */
.estone-tech-icon-clickable {
	cursor: pointer !important;
	position: relative !important;
	transition: all 0.2s ease !important;
}

.estone-tech-icon-clickable:hover {
	outline: 2px dashed #003875 !important;
	outline-offset: 2px !important;
	transform: scale(1.05);
}

.estone-icon-edit-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 16px;
	height: 16px;
	background: #003875;
	color: #ffffff;
	border-radius: 50%;
	font-size: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	opacity: 0.8;
}

.estone-tech-icon-clickable:hover .estone-icon-edit-badge {
	opacity: 1;
	transform: scale(1.2);
}
