/* ==========================================================================
   ESTONE TECHNOLOGY SHOWCASE SECTION STYLESHEET
   ========================================================================== */

/* Full Screen Edge-to-Edge Container Breakout */
.estone-technology-wrapper,
.wp-block-estone-technology-showcase {
	position: relative;
	width: 100vw !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #ffffff;
	padding-top: 3rem !important;
	padding-bottom: 0px !important;
	padding-left: 3rem !important;
	padding-right: 3rem !important;
	margin-bottom: 0px !important;
	overflow: hidden;
	color: #000000;
	box-sizing: border-box;
	border: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-right: none !important;
	outline: none !important;
	box-shadow: none !important;
}

/* 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%;
}

/* Header & Flex layout for Top Button */
.estone-tech-header-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	margin-bottom: 1.5rem;
	gap: 2rem;
}

.estone-tech-title-area {
	flex-grow: 1;
	max-width: 100%;
}

.estone-tech-tagline {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #003875;
	margin: 0 0 0.5rem 0;
	display: block;
}

.estone-tech-title {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.15;
	color: #0c1a30;
	margin: 0 0 1rem 0;
	letter-spacing: -0.02em;
}

.estone-tech-subtitle {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #475569;
	margin: 0;
}

/* CTA "Let's Connect" Button style - Hidden as per user request */
.estone-tech-cta-wrap,
.estone-tech-cta-btn {
	display: none !important;
}

/* Main Layout Flex Grid */
.estone-tech-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 3.5rem;
	align-items: stretch;
	width: 100%;
}

/* Left Column: Interactive Showcase */
.estone-tech-left-col {
	flex: 1 1 520px;
	min-width: 320px;
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
}

.estone-tech-showcase-container {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 480px;
	flex-grow: 1;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
	background: #ffffff;
}

/* Main background picture with crossfade support */
.estone-tech-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.35s ease, transform 0.8s 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);
}

/* 6 Circular Feature Badges Overlay (Top Right of Left Showcase Box) */
.estone-tech-badges-overlay {
	position: absolute;
	top: 10%;
	right: 6%;
	z-index: 15;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 16px;
	pointer-events: none;
}

.estone-tech-badge-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.estone-tech-badge-circle {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1.5px solid #0088ff;
	background: rgba(4, 25, 52, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	margin-bottom: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
	transition: all 0.3s ease;
}

.estone-tech-badge-circle svg {
	width: 24px;
	height: 24px;
	stroke: #ffffff;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.estone-tech-badge-label {
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* 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: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(12, 26, 48, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #003875;
	flex-shrink: 0;
	border: 1px solid rgba(12, 26, 48, 0.08);
}

.estone-tech-card-icon-wrap img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.estone-tech-card-icon-wrap svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.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 450px;
	min-width: 320px;
	width: 100%;
}

.estone-tech-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Item styling */
.estone-tech-list-item {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.25rem;
	background: #ffffff;
	border: 1px 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 {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background-color: transparent;
	transition: background-color 0.25s ease;
}

.estone-tech-item-icon-wrap {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	flex-shrink: 0;
	transition: all 0.25s ease;
}

.estone-tech-item-icon-wrap img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.estone-tech-item-icon-wrap svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.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 */
.estone-tech-list-item:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.estone-tech-list-item.is-active {
	border: 1.5px solid #c90000 !important;
	background: #ffffff !important;
	box-shadow: 0 4px 15px rgba(201, 0, 0, 0.12);
}

.estone-tech-list-item.is-active::before {
	display: none !important;
}

.estone-tech-list-item.is-active .estone-tech-item-icon-wrap {
	background: #003875;
	border-color: #003875;
	color: #ffffff;
}

.estone-tech-list-item.is-active .estone-tech-item-icon-wrap img {
	filter: brightness(0) invert(1);
}

.estone-tech-list-item.is-active .estone-tech-item-title {
	color: #0c1a30;
	font-weight: 700;
}

/* 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: 1100px) {
	.estone-tech-left-col,
	.estone-tech-right-col {
		flex: 1 1 100%;
	}
}

@media (max-width: 768px) {
	.estone-technology-wrapper {
		padding: 3.5rem 1.5rem;
	}
	.estone-tech-header-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}
	.estone-tech-title-area {
		max-width: 100%;
	}
	.estone-tech-title {
		font-size: 2rem;
	}
}

@media (max-width: 600px) {
	.estone-tech-showcase-container {
		aspect-ratio: 16 / 15;
		min-height: 400px;
	}
	.estone-tech-card-overlay {
		bottom: 14px;
		left: 14px;
		right: 14px;
		padding: 0.95rem;
		gap: 0.75rem;
	}
	.estone-tech-card-title {
		font-size: 0.95rem;
	}
	.estone-tech-card-desc {
		font-size: 0.8rem;
		-webkit-line-clamp: 2;
	}
	.estone-tech-hotspot-circle {
		width: 36px;
		height: 36px;
	}
	.estone-tech-hotspot-icon {
		width: 16px;
		height: 16px;
	}
	.estone-tech-hotspot-circle::after {
		inset: -4px;
	}
}

/* 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);
}
