/* ==========================================================================
   ESTONE TECH BLOG BANNER SECTION STYLESHEET
   ========================================================================== */

/* Full Screen Edge-to-Edge Container Breakout */
.estone-tech-blog-banner-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: 5rem 3rem;
	overflow: hidden;
	color: #000000;
	box-sizing: border-box;
}

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

.estone-tech-blog-banner-wrapper * {
	box-sizing: border-box;
}

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

/* Multiple Banner Slider Styles */
.estone-techbanner-slider-container {
	position: relative;
	width: 100%;
}

.estone-techbanner-slides-track {
	position: relative;
	width: 100%;
}

.estone-techbanner-slide {
	display: none;
	width: 100%;
	opacity: 0;
	transition: opacity 0.4s ease-in-out;
}

.estone-techbanner-slide.active {
	display: block;
	opacity: 1;
}

/* Split 2-Column Grid Layout */
.estone-techbanner-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	width: 100%;
}

/* Image Placement Left Swap */
.estone-techbanner-grid.image-pos-left .estone-techbanner-img-col {
	order: -1;
}

.estone-techbanner-grid.image-pos-left .estone-techbanner-text-col {
	order: 1;
}

/* Text Column */
.estone-techbanner-text-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.estone-techbanner-title {
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
	font-size: 2.75rem;
	font-weight: 700;
	color: #0c1a30;
	line-height: 1.18;
	margin: 0 0 1.25rem 0;
	letter-spacing: -0.02em;
}

.estone-techbanner-desc {
	font-size: 1.05rem;
	line-height: 1.65;
	color: #475569;
	margin: 0 0 2rem 0;
}

/* CTA Button */
.estone-techbanner-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.75rem 1.85rem;
	border-radius: 9999px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #0c1a30;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	cursor: pointer;
}

.estone-techbanner-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	transition: transform 0.3s ease;
}

.estone-techbanner-btn:hover {
	background: #0c1a30;
	color: #ffffff;
	border-color: #0c1a30;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(12, 26, 48, 0.18);
}

.estone-techbanner-btn-icon img,
.estone-techbanner-btn-icon svg {
	display: inline-block;
	vertical-align: middle;
	transition: transform 0.3s ease;
}

.estone-techbanner-btn:hover .estone-techbanner-btn-icon,
.estone-techbanner-btn:hover .estone-techbanner-btn-icon img,
.estone-techbanner-btn:hover .estone-techbanner-btn-icon svg {
	transform: translate(3px, -3px);
}

/* Image Column */
.estone-techbanner-img-col {
	width: 100%;
	display: flex;
	justify-content: center;
}

.estone-techbanner-img-wrap {
	width: 100%;
	height: 480px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
	position: relative;
	background: #f1f5f9;
	margin: 0 auto;
	transition: all 0.3s ease;
}

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

.estone-techbanner-img-wrap:hover .estone-techbanner-img {
	transform: scale(1.04);
}

/* Slider Dots Navigation */
.estone-tbanner-dots-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 2rem;
}

.estone-tbanner-dot-btn {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background: #cbd5e1;
	cursor: pointer;
	padding: 0;
	transition: all 0.25s ease;
	outline: none;
}

.estone-tbanner-dot-btn.active,
.estone-tbanner-dot-btn:hover {
	background: #003875;
	transform: scale(1.2);
}

/* Prev / Next Nav Arrows */
.estone-tbanner-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #0f172a;
	font-size: 1.1rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.25s ease;
	z-index: 5;
	outline: none;
}

.estone-tbanner-prev {
	left: -20px;
}

.estone-tbanner-next {
	right: -20px;
}

.estone-tbanner-nav-btn:hover {
	background: #003875;
	color: #ffffff;
	border-color: #003875;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
	.estone-techbanner-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.estone-techbanner-grid.image-pos-left .estone-techbanner-img-col {
		order: 0;
	}

	.estone-techbanner-title {
		font-size: 2.25rem;
	}

	.estone-techbanner-img-wrap {
		height: 360px;
	}
}

@media (max-width: 768px) {
	/* The renderer writes the editor's desktop values inline on these
	   elements (wrapper padding, grid gap, 44px title, 340px image), and an
	   inline style outranks a plain rule - which is why none of the mobile
	   sizing below was reaching the page. Marked !important so the mobile
	   card actually applies; desktop (>768px) keeps the editor values. */
	.estone-tech-blog-banner-wrapper {
		padding: 3rem 1.5rem !important;
	}

	/* Stacked card: image on top, then title, copy and button. */
	.estone-techbanner-grid {
		grid-template-columns: 1fr !important;
		gap: 1.75rem !important;
	}

	.estone-techbanner-grid .estone-techbanner-img-col,
	.estone-techbanner-grid.image-pos-left .estone-techbanner-img-col {
		order: -1 !important;
	}

	.estone-techbanner-grid .estone-techbanner-text-col,
	.estone-techbanner-grid.image-pos-left .estone-techbanner-text-col {
		order: 1 !important;
	}

	.estone-techbanner-title {
		font-size: 1.85rem !important;
	}
	.estone-techbanner-desc {
		font-size: 0.98rem;
	}

	/* A fixed height cannot hold a crop across widths (230px reads 1.5:1 at
	   375px but 3:1 at 768px). Drive it from the ratio instead so the framing
	   stays the same on every phone; desktop keeps the editor's fixed height. */
	.estone-techbanner-img-wrap {
		height: auto !important;
		aspect-ratio: 2 / 1;
	}

	.estone-tbanner-prev {
		left: 8px;
	}

	.estone-tbanner-next {
		right: 8px;
	}

	.estone-tbanner-nav-btn {
		width: 38px;
		height: 38px;
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.estone-tech-blog-banner-wrapper {
		padding: 2.5rem 1rem !important;
	}
	.estone-techbanner-grid {
		gap: 1.4rem !important;
	}
	.estone-techbanner-title {
		font-size: 1.45rem !important;
		margin-bottom: 0.85rem;
	}
	.estone-techbanner-desc {
		font-size: 0.92rem;
		margin-bottom: 1.5rem;
	}
	.estone-techbanner-btn {
		font-size: 0.88rem;
		padding: 0.65rem 1.4rem;
	}
	.estone-techbanner-img-wrap {
		height: auto !important;
		aspect-ratio: 2 / 1;
	}
	.estone-tbanner-nav-btn {
		width: 32px;
		height: 32px;
		font-size: 0.85rem;
	}
}


