/* ==========================================================================
   ESTONE CUSTOM TECHNOLOGY GRID SECTION STYLESHEET
   ========================================================================== */

/* Full Screen Edge-to-Edge Container Breakout */
.estone-custom-tech-grid-wrapper {
	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: #f1f5f9;
	padding: 4.5rem 3rem;
	overflow: hidden;
	color: #000000;
	box-sizing: border-box;
}

/* Gutenberg Admin Block Editor Canvas Containment ONLY */
.editor-styles-wrapper .estone-custom-tech-grid-wrapper,
.block-editor-block-list__layout .estone-custom-tech-grid-wrapper,
.block-editor-block-list__block .estone-custom-tech-grid-wrapper,
.block-editor-iframe__html .estone-custom-tech-grid-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	left: auto !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.estone-custom-tech-grid-wrapper * {
	box-sizing: border-box;
}

/* Inner Container */
.estone-techgrid-inner-container {
	margin: 0 auto;
	width: 100%;
}

/* Header Area (Optional Tagline & Title) */
.estone-techgrid-header-area {
	width: 100%;
	margin-bottom: 2.75rem;
	text-align: center;
}

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

.estone-techgrid-title {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.15;
	color: #0c1a30;
	margin: 0 0 0.75rem 0;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.estone-techgrid-subtitle {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #475569;
	margin: 0 auto;
	max-width: 800px;
}

/* 3x3 Main Grid */
.estone-techgrid-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	width: 100%;
}

/* Card Container */
.estone-techgrid-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border: 1px solid #e2e8f0;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	text-decoration: none;
	text-align: center;
	height: 100%;
}

.estone-techgrid-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
	border-color: #cbd5e1;
}

/* Image Wrap */
.estone-techgrid-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0c1a30;
}

.estone-techgrid-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	color: transparent;
	font-size: 0;
}

.estone-techgrid-card:hover .estone-techgrid-img {
	transform: scale(1.06);
}

/* Bottom Title Bar */
.estone-techgrid-title-bar {
	padding: 1.25rem 1rem;
	background: #ffffff;
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex-grow: 1;
}

.estone-techgrid-card-title {
	font-size: 1.02rem;
	font-weight: 700;
	color: #0c1a30;
	margin: 0;
	line-height: 1.35;
	transition: color 0.25s ease;
	text-align: center;
}

.estone-techgrid-card:hover .estone-techgrid-card-title {
	color: #003875;
}

/* Admin Block Editor Canvas Specific Overrides */
.editor-styles-wrapper .estone-techgrid-grid,
.block-editor-block-list__layout .estone-techgrid-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.25rem !important;
	width: 100% !important;
}

.editor-styles-wrapper .estone-techgrid-title-bar {
	padding: 1rem 0.75rem !important;
	min-height: 60px !important;
}

.editor-styles-wrapper .estone-techgrid-card-title {
	font-size: 0.92rem !important;
	line-height: 1.3 !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.estone-techgrid-grid,
	.editor-styles-wrapper .estone-techgrid-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 1.5rem !important;
	}
}

@media (max-width: 640px) {
	.estone-custom-tech-grid-wrapper {
		padding: 3.5rem 1.5rem;
	}
	.estone-techgrid-grid,
	.editor-styles-wrapper .estone-techgrid-grid {
		grid-template-columns: 1fr !important;
		gap: 1.25rem !important;
	}
	.estone-techgrid-title {
		font-size: 2rem;
	}
}
