/* ==========================================================================
   ESTONE NEWS SHOWCASE SECTION STYLESHEET
   ========================================================================== */

/* Full Screen Edge-to-Edge Container Breakout */
.estone-news-showcase-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: linear-gradient(135deg, #eef7fc 0%, #f8fafc 100%);
	padding: 4.5rem 3rem;
	overflow: hidden;
	color: #000000;
	box-sizing: border-box;
}

/* Gutenberg Admin Block Editor Canvas Containment ONLY */
.editor-styles-wrapper .estone-news-showcase-wrapper,
.block-editor-block-list__layout .estone-news-showcase-wrapper,
.block-editor-block-list__block .estone-news-showcase-wrapper,
.block-editor-iframe__html .estone-news-showcase-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	left: auto !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.estone-news-showcase-wrapper * {
	box-sizing: border-box;
}

/* Inner Container */
.estone-news-inner-container {
	margin: 0 auto;
	width: 100%;
}

/* Header Area */
.estone-news-header-area {
	width: 100%;
	margin-bottom: 2.5rem;
}

.estone-news-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-news-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-news-subtitle {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #475569;
	margin: 0;
	max-width: 800px;
}

/* Main Layout CSS Grid (Guarantees Side-By-Side without Overlapping) */
.estone-news-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 1.5rem;
	align-items: stretch;
	width: 100%;
}

/* Hero Position Left Swap */
.estone-news-grid.hero-pos-left {
	grid-template-columns: 1fr 1.35fr;
}

/* Left Column: 2x2 Grid for 4 Small Cards */
.estone-news-left-col {
	width: 100%;
	min-width: 0;
}

.estone-news-cards-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.15rem;
	height: 100%;
}

/* Small News Card Item */
.estone-news-card {
	display: flex;
	gap: 0.85rem;
	background: #ffffff;
	padding: 0.85rem;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	border: 1px solid #e2e8f0;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	text-decoration: none;
	height: 100%;
	align-items: center;
	min-width: 0;
	overflow: hidden;
}

.estone-news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
	border-color: #cbd5e1;
}

.estone-news-card-img-wrap {
	width: 95px;
	height: 78px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	background: #f1f5f9;
}

.estone-news-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
	color: transparent;
	font-size: 0;
}

.estone-news-card:hover .estone-news-card-img {
	transform: scale(1.08);
}

.estone-news-card-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
	height: 100%;
	min-width: 0;
}

.estone-news-card-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: #0c1a30;
	line-height: 1.35;
	margin: 0 0 0.35rem 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.25s ease;
}

.estone-news-card:hover .estone-news-card-title {
	color: #003875;
}

.estone-news-card-date {
	display: inline-block;
	padding: 3px 9px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.72rem;
	font-weight: 500;
	border-radius: 4px;
	align-self: flex-start;
	line-height: 1;
	border: 1px solid #e2e8f0;
	white-space: nowrap;
}

/* Right Column: Featured Hero Card */
.estone-news-right-col {
	width: 100%;
	min-width: 0;
	display: flex;
}

.estone-news-hero-card {
	position: relative;
	width: 100%;
	min-height: 380px;
	height: 100%;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	text-decoration: none;
	background: #0c1a30;
}

.estone-news-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	color: transparent;
	font-size: 0;
}

.estone-news-hero-card:hover .estone-news-hero-img {
	transform: scale(1.05);
}

.estone-news-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(12, 26, 48, 0.95) 0%, rgba(12, 26, 48, 0.45) 55%, rgba(0, 0, 0, 0) 100%);
	z-index: 5;
}

.estone-news-hero-content {
	position: relative;
	z-index: 10;
	padding: 1.75rem 1.5rem;
}

.estone-news-hero-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.38;
	margin: 0 0 1rem 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	transition: color 0.25s ease;
}

.estone-news-hero-card:hover .estone-news-hero-title {
	color: #60a5fa;
}

.estone-news-hero-date {
	display: inline-block;
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 4px;
	line-height: 1;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* Admin Block Editor Canvas Specific Overrides (Side-By-Side Grid Scaling) */
.editor-styles-wrapper .estone-news-grid,
.block-editor-block-list__layout .estone-news-grid {
	display: grid !important;
	grid-template-columns: 1.35fr 1fr !important;
	gap: 1rem !important;
	align-items: stretch !important;
	width: 100% !important;
}

.editor-styles-wrapper .estone-news-grid.hero-pos-left,
.block-editor-block-list__layout .estone-news-grid.hero-pos-left {
	grid-template-columns: 1fr 1.35fr !important;
}

.editor-styles-wrapper .estone-news-left-col,
.block-editor-block-list__layout .estone-news-left-col {
	width: 100% !important;
	min-width: 0 !important;
}

.editor-styles-wrapper .estone-news-right-col,
.block-editor-block-list__layout .estone-news-right-col {
	width: 100% !important;
	min-width: 0 !important;
}

.editor-styles-wrapper .estone-news-cards-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 0.75rem !important;
}

.editor-styles-wrapper .estone-news-card {
	padding: 0.65rem !important;
	gap: 0.65rem !important;
}

.editor-styles-wrapper .estone-news-card-img-wrap {
	width: 70px !important;
	height: 60px !important;
}

.editor-styles-wrapper .estone-news-card-title {
	font-size: 0.8rem !important;
	line-height: 1.3 !important;
}

.editor-styles-wrapper .estone-news-hero-card {
	min-height: 320px !important;
}

.editor-styles-wrapper .estone-news-hero-content {
	padding: 1.25rem 1rem !important;
}

.editor-styles-wrapper .estone-news-hero-title {
	font-size: 1.05rem !important;
	line-height: 1.35 !important;
	margin-bottom: 0.75rem !important;
}

/* Responsive Styles for Frontend */
@media (max-width: 1024px) {
	.estone-news-grid,
	.editor-styles-wrapper .estone-news-grid {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
	}
	.estone-news-title {
		font-size: 2.15rem;
	}
}

/* Mobile (0px - 768px) - Exact match with reference screenshot */
@media (max-width: 768px) {
	.estone-news-showcase-wrapper {
		padding: 40px 16px !important;
	}

	.estone-news-header-area {
		margin-bottom: 16px !important;
	}

	.estone-news-tagline {
		font-size: 13px !important;
		color: #0084ff !important;
		font-weight: 700 !important;
		letter-spacing: 0.12em !important;
		margin-bottom: 6px !important;
	}

	.estone-news-title {
		font-size: 24px !important;
		line-height: 1.2 !important;
		color: #0c1a30 !important;
		font-weight: 800 !important;
		margin-bottom: 8px !important;
	}

	.estone-news-subtitle {
		font-size: 13.5px !important;
		color: #64748b !important;
		line-height: 1.5 !important;
		margin: 0 !important;
	}

	.estone-news-grid {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		gap: 14px !important;
	}

	/* 1. Featured Hero Card at TOP (Order 1) */
	.estone-news-right-col {
		order: 1 !important;
		width: 100% !important;
		margin-bottom: 4px !important;
	}

	.estone-news-hero-card {
		min-height: 310px !important;
		height: 310px !important;
		border-radius: 8px !important;
		overflow: hidden !important;
		position: relative !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: flex-end !important;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
	}

	.estone-news-hero-img {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		object-position: center center !important;
	}

	.estone-news-hero-overlay {
		position: absolute !important;
		inset: 0 !important;
		background: linear-gradient(to top, rgba(12, 26, 48, 0.95) 0%, rgba(12, 26, 48, 0.45) 55%, rgba(0, 0, 0, 0) 100%) !important;
		z-index: 5 !important;
	}

	.estone-news-hero-content {
		position: relative !important;
		z-index: 10 !important;
		padding: 18px 16px !important;
	}

	.estone-news-hero-title {
		font-size: 14px !important;
		font-weight: 700 !important;
		color: #ffffff !important;
		line-height: 1.35 !important;
		margin: 0 0 8px 0 !important;
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
	}

	.estone-news-hero-date {
		display: inline-block !important;
		padding: 4px 10px !important;
		background: rgba(255, 255, 255, 0.15) !important;
		border: 1px solid rgba(255, 255, 255, 0.4) !important;
		border-radius: 4px !important;
		color: #ffffff !important;
		font-size: 11px !important;
	}

	/* 2. Four Small News Cards Stacked Below (Order 2) */
	.estone-news-left-col {
		order: 2 !important;
		width: 100% !important;
	}

	.estone-news-cards-grid {
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
		width: 100% !important;
	}

	.estone-news-card {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 12px !important;
		background: #ffffff !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 8px !important;
		padding: 10px 12px !important;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
		text-decoration: none !important;
		min-width: 0 !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.estone-news-card-img-wrap {
		width: 80px !important;
		height: 68px !important;
		min-width: 80px !important;
		border-radius: 6px !important;
		overflow: hidden !important;
		flex-shrink: 0 !important;
		background: #f1f5f9 !important;
	}

	.estone-news-card-img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		display: block !important;
	}

	.estone-news-card-content {
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
		flex-grow: 1 !important;
		min-width: 0 !important;
	}

	.estone-news-card-title {
		font-size: 12.5px !important;
		font-weight: 700 !important;
		color: #0c1a30 !important;
		line-height: 1.35 !important;
		margin: 0 0 4px 0 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
	}

	.estone-news-card-date {
		font-size: 11px !important;
		color: #64748b !important;
		padding: 0 !important;
		background: transparent !important;
		border: none !important;
		font-weight: 500 !important;
		line-height: 1.2 !important;
	}
}


