/* ==========================================================================
   ESTONE RELATED SOLUTIONS SECTION STYLESHEET
   ========================================================================== */

/* Frontend Full Screen Edge-to-Edge Container Breakout */
.estone-solutions-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;
	padding: 4rem 3rem;
	overflow: hidden;
	box-sizing: border-box;
}

/* Gutenberg Admin Block Editor Canvas Containment ONLY */
.editor-styles-wrapper .estone-solutions-wrapper,
.block-editor-block-list__layout .estone-solutions-wrapper,
.block-editor-block-list__block .estone-solutions-wrapper,
.block-editor-iframe__html .estone-solutions-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	left: auto !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.estone-solutions-wrapper * {
	box-sizing: border-box;
}

/* Inner Container */
.estone-sol-inner-container {
	margin: 0 auto;
	width: 100%;
}

/* Header */
.estone-sol-header {
	width: 100%;
	margin-bottom: 1.5rem;
}

.estone-sol-title {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.25;
	word-wrap: break-word;
	color: #1e293b;
}

/* Card Grid */
.estone-sol-grid {
	display: grid;
	gap: 1.5rem;
	width: 100%;
	align-items: flex-start;
}

/* Card Styling */
.estone-solutions-wrapper .estone-sol-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.estone-solutions-wrapper .estone-sol-card-link {
	text-decoration: none;
	display: block;
	width: 100%;
	color: inherit;
}

.estone-solutions-wrapper .estone-sol-img-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	background: transparent !important;
	padding: 0 !important;
}

.estone-solutions-wrapper .estone-sol-img {
	width: 100%;
	height: 260px;
	display: block;
	object-fit: cover;
	transition: transform 0.45s ease;
	border-radius: 4px;
}

.estone-solutions-wrapper .estone-sol-card:hover .estone-sol-img {
	transform: scale(1.04);
}

/* Dark Bottom Gradient Overlay */
.estone-solutions-wrapper .estone-sol-overlay {
	position: absolute !important;
	inset: 0 !important;
	background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 80%, rgba(0,0,0,0.85) 100%) !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease;
	z-index: 1 !important;
}

/* Overlay Card Title */
.estone-solutions-wrapper .estone-sol-card-title {
	position: absolute !important;
	bottom: 1.1rem !important;
	left: 1.1rem !important;
	right: 1.1rem !important;
	margin: 0 !important;
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif !important;
	font-size: 15.5px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	line-height: 1.35 !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
	z-index: 2 !important;
}

/* Interactive Canvas Image Picker Helper */
.estone-sol-canvas-img-picker {
	cursor: pointer;
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.estone-sol-canvas-img-picker:hover::after {
	content: 'Click to Upload Custom Image';
	position: absolute;
	inset: 0;
	background: rgba(0, 56, 117, 0.75);
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	z-index: 10;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
	.estone-sol-title {
		font-size: 1.5rem;
	}
	.estone-sol-card-title {
		font-size: 15px !important;
	}
}

@media (max-width: 992px) {
	.estone-sol-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 768px) {
	.estone-sol-title {
		font-size: 1.35rem;
	}
}

@media (max-width: 600px) {
	.estone-solutions-wrapper {
		padding: 2.5rem 1.25rem;
	}

	.estone-sol-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 480px) {
	.estone-sol-title {
		font-size: 1.2rem;
	}
	.estone-sol-card-title {
		font-size: 14.5px !important;
	}
}

