/**
 * Asmorix blog index — magazine layout matching design reference.
 * Homepage Elementor #blog tweaks kept below.
 */

/* ===== Blog posts page (body.blog) ===== */
body.blog .breadcumb-area,
body.blog .toptech-blog-index > .container > .row > .sidebar-right,
body.home.blog .breadcumb-area {
	display: none !important;
}

/*
 * Transparent sticky header on blog has no dark hero behind it.
 * scrollToFixed also collapses wrapper height to 0 — restore solid header.
 */
body.blog .toptech-main-menu.transprent-menu,
body.blog .toptech-main-menu.transprent-menu.scroll-to-fixed-fixed {
	height: auto !important;
	min-height: 72px !important;
	background: #fff !important;
	box-shadow: 0 1px 0 rgba(4, 20, 36, 0.08);
	overflow: visible !important;
}

body.blog .toptech-main-menu.transprent-menu .trp_nav_area {
	background: #fff !important;
}

body.blog .toptech-main-menu.transprent-menu .toptech_menu > ul > li > a,
body.blog .toptech-main-menu.transprent-menu .em-navbar-nav > li > a {
	color: #111 !important;
}

body.blog .toptech-main-menu.transprent-menu .toptech_menu > ul > li > a:hover,
body.blog .toptech-main-menu.transprent-menu .toptech_menu > ul > li.current-menu-item > a,
body.blog .toptech-main-menu.transprent-menu .toptech_menu > ul > li.current_page_parent > a {
	color: #0c5adb !important;
}

body.blog .toptech-main-menu.transprent-menu .toptech_menu > ul > li > a::after,
body.blog .toptech-main-menu.transprent-menu .toptech_menu > ul > li > a::before {
	color: #111 !important;
	border-color: #111 !important;
}

/* Spacer when sticky header is fixed — only ONE slot via scrollToFixed placeholder */
body.blog .asmorix-blog-header-spacer {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.blog,
body.blog .site-main,
body.blog #page {
	background: #fff;
}

body.blog .asm-blog {
	padding: 16px 0 64px;
	background: #fff;
}

body.blog .asm-blog .container {
	max-width: 1180px;
}

/* Hero: featured + side list */
.asm-blog-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 36px 40px;
	align-items: start;
	margin-bottom: 56px;
}

.asm-blog-hero__media {
	display: block;
	border-radius: 22px;
	overflow: hidden;
	background: #f3f4f6;
	aspect-ratio: 16 / 10;
}

.asm-blog-hero__media img,
.asm-blog-hero__img,
.asm-blog-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 22px;
}

.asm-blog-ph {
	background: linear-gradient(135deg, #e8eef8 0%, #f5f7fb 50%, #dde7f7 100%);
	min-height: 100%;
}

.asm-blog-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 14px;
}

.asm-blog-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: #1a1a1a;
	color: #fff !important;
	font-family: "Nunito", "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	text-transform: none;
}

.asm-blog-pill:hover,
.asm-blog-pill:focus {
	background: #0c5adb;
	color: #fff !important;
	text-decoration: none !important;
}

.asm-blog-hero__title {
	margin: 0;
	font-family: "Nunito", "Poppins", sans-serif;
	font-size: clamp(22px, 2.1vw, 28px);
	font-weight: 800;
	line-height: 1.28;
	color: #111;
	letter-spacing: -0.02em;
}

.asm-blog-hero__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.asm-blog-hero__title a:hover {
	color: #0c5adb !important;
}

/* Side list */
.asm-blog-hero__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 2px;
}

.asm-blog-side {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 14px 16px;
	align-items: start;
}

.asm-blog-side__thumb {
	display: block;
	width: 112px;
	height: 78px;
	border-radius: 14px;
	overflow: hidden;
	background: #f3f4f6;
	flex-shrink: 0;
}

.asm-blog-side__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
}

.asm-blog-side__title {
	margin: 0 0 6px;
	font-family: "Nunito", "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: #111;
}

.asm-blog-side__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.asm-blog-side__title a:hover {
	color: #0c5adb !important;
}

.asm-blog-side__by {
	margin: 0;
	font-family: "Nunito", "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: #8b93a1;
}

/* Featured Articles grid */
.asm-blog-featured__heading {
	margin: 0 0 28px;
	font-family: "Nunito", "Poppins", sans-serif;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #111;
	line-height: 1.15;
}

.asm-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 28px;
}

.asm-blog-card__media {
	position: relative;
	display: block;
	border-radius: 22px;
	overflow: hidden;
	background: #f3f4f6;
	aspect-ratio: 16 / 10;
}

.asm-blog-card__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.asm-blog-card__media img,
.asm-blog-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 22px;
	transition: transform 0.35s ease;
}

.asm-blog-card:hover .asm-blog-card__media img {
	transform: scale(1.03);
}

.asm-blog-pills--overlay {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 14px;
	margin: 0;
	z-index: 2;
}

.asm-blog-pills--overlay .asm-blog-pill {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.asm-blog-card__title {
	margin: 16px 0 0;
	font-family: "Nunito", "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #111;
}

.asm-blog-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.asm-blog-card__title a:hover {
	color: #0c5adb !important;
}

.asm-blog-pagination {
	margin-top: 48px;
	text-align: center;
}

.asm-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	margin: 0 4px;
	padding: 0 12px;
	border-radius: 10px;
	font-family: "Nunito", sans-serif;
	font-weight: 700;
	color: #111 !important;
	background: #f3f5f8;
	text-decoration: none !important;
}

.asm-blog-pagination .page-numbers.current,
.asm-blog-pagination .page-numbers:hover {
	background: #0c5adb;
	color: #fff !important;
}

.asm-blog-empty {
	padding: 48px 0;
	text-align: center;
	color: #667085;
}

/* Responsive */
@media (max-width: 991px) {
	body.blog .asm-blog {
		padding: 12px 0 48px;
	}

	.asm-blog-hero {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-bottom: 40px;
	}

	.asm-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 18px;
	}

	.asm-blog-side {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.asm-blog-side__thumb {
		width: 96px;
		height: 68px;
	}
}

@media (max-width: 640px) {
	.asm-blog-grid {
		grid-template-columns: 1fr;
	}

	.asm-blog-hero__title {
		font-size: 22px;
	}

	.asm-blog-featured__heading {
		font-size: 26px;
		margin-bottom: 20px;
	}

	.asm-blog-side__title {
		font-size: 15px;
	}
}

/* ===== Homepage Elementor Latest Blog section (unchanged) ===== */
.elementor-9936 #blog,
.elementor-9936 .elementor-element-530daf8 {
	padding-top: 45px !important;
	margin-top: 0 !important;
}
.elementor-9936 #blog .elementor-element-188cfd2 > .elementor-widget-container,
.elementor-9936 #blog .elementor-element-51e6cd3 > .elementor-widget-container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
.elementor-9936 #blog .elementor-element-188cfd2 .section-title.style14 .title {
	margin-top: 14px !important;
}
body.elementor-page-9936 #blog,
body.elementor-page-9936 .elementor-element-530daf8 {
	padding-top: 45px !important;
	margin-top: 0 !important;
}
body.elementor-page-9936 #blog .elementor-element-188cfd2 > .elementor-widget-container,
body.elementor-page-9936 #blog .elementor-element-51e6cd3 > .elementor-widget-container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
body.elementor-page-9936 #blog .elementor-element-188cfd2 .section-title.style14 .title {
	margin-top: 14px !important;
}
