#blogHero {
	position: relative;
	height: 300px;
	width: 100%;
	/* Generated Press Pass Image */
	background:
		linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.9)),
		url('/imgs/metal_press_hero_logo_v2_1771362132299.webp') bottom/cover fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 50px;
}

#blogHeroOverlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 0.9) 100%);
	backdrop-filter: blur(5px);
}

#blogHeroContent {
	position: relative;
	z-index: 2;
	text-align: center;
	width: 90%;
	max-width: 800px;
}

#blogHeroContent h1 {
	font-size: 3.5rem;
	font-weight: 900;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: -1px;
	margin-bottom: 10px;
}

#blogHeroContent p {
	color: #aaa;
	font-size: 1.2rem;
}

#blogMainLayout {
	width: 95%;
	max-width: 1400px;
	margin: 0 auto 100px;
	gap: 40px;
}

#blogPostsWrapper {
	flex: 1;
}

#postsList {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* Wide Cinematic Blog Card */
.blogWideCard {
	background: rgba(30, 30, 30, 0.6);
	backdrop-filter: blur(15px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	min-height: 200px;
	display: flex;
	width: 100%;
}

.blogWideCard:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	border-color: rgba(96, 125, 139, 0.6);
}

.blogCardInner {
	width: 100%;
	text-decoration: none;
	color: inherit;
	display: flex;
	height: 100%;
}

.blogCardThumbnail {
	width: 300px;
	min-width: 300px;
	height: 200px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.blogDateBadge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(96, 125, 139, 0.9);
	color: #fff;
	padding: 5px 12px;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: bold;
	backdrop-filter: blur(5px);
	z-index: 2;
}

.blogCardContent {
	flex: 1;
	padding: 30px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
}

.blogCardTitle {
	margin: 0;
	font-size: 1.7rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.blogWideCard:hover .blogCardTitle {
	color: #90a4ae;
}

.blogCardMeta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.blogCategory {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: #607d8b;
	font-weight: 800;
	letter-spacing: 1.5px;
}

.dot {
	width: 4px;
	height: 4px;
	background: #444;
	border-radius: 50%;
}

.readTime {
	font-size: 0.8rem;
	color: #666;
	font-weight: 500;
}

.blogCardFooter {
	margin-top: 5px;
	display: flex;
	align-items: center;
}

.viewArticle {
	font-size: 0.9rem;
	font-weight: 700;
	color: #888;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all 0.3s ease;
}

.blogWideCard:hover .viewArticle {
	color: #fff;
	transform: translateX(8px);
}

/* Sidebar */
#blogSidebar {
	width: 350px;
	position: sticky;
	top: 100px;
}

.filterCard {
	background: rgba(30, 30, 30, 0.6);
	backdrop-filter: blur(15px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.filterTitle {
	align-items: center;
	gap: 12px;
	margin-bottom: 25px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding-bottom: 15px;
}

.filterTitle h3 {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 1.1rem;
	color: #fff;
}

.searchField {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 30px;
	padding: 8px 15px;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	border: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.searchField:focus-within {
	border-color: rgba(96, 125, 139, 0.5);
}

.searchField input {
	background: transparent;
	border: none;
	color: #fff;
	width: 100%;
}

.searchField input:focus {
	outline: none;
}

.scrollFilterList {
	max-height: 400px;
	overflow-y: auto;
	padding-right: 5px;
}

.scrollFilterList::-webkit-scrollbar {
	width: 4px;
}

.scrollFilterList::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

.filterItem {
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.filterItem:hover {
	opacity: 0.8;
}

.filterCheckbox {
	display: none;
}

.customCheck {
	width: 18px;
	height: 18px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	position: relative;
	transition: all 0.3s ease;
}

.filterCheckbox:checked+.customCheck {
	background: #607d8b;
	border-color: #607d8b;
}

.filterCheckbox:checked+.customCheck:after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.itemName {
	font-size: 0.9rem;
	color: #aaa;
}

.filterCheckbox:checked~.itemName {
	color: #fff;
	font-weight: 500;
}

/* --- ACCORDION & COLLAPSIBLE SECTIONS --- */
.filterSection {
	margin-bottom: 5px !important;
}

.filterHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 5px;
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.3s ease;
}

.filterHeader:hover {
	background: rgba(255, 255, 255, 0.03);
}

.filterHeader .sectionLabel {
	margin-bottom: 0px !important;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
}

.filterHeader .chevron {
	transition: transform 0.3s ease;
	opacity: 0.5;
}

.filterSection.active .chevron {
	transform: rotate(180deg);
	opacity: 1;
}

.collapsibleContent {
	max-height: 0;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	padding: 0 5px;
}

.filterSection.active .collapsibleContent {
	max-height: 1000px;
	opacity: 1;
	padding: 10px 5px 20px 5px;
}

/* --- MOBILE DRAWER SYSTEM --- */
@media screen and (max-width: 1100px) {
	#blogMainLayout {
		flex-direction: column !important;
	}

	#blogSidebar {
		position: fixed !important;
		top: 0 !important;
		right: -100% !important;
		width: 320px !important;
		height: 100vh !important;
		z-index: 10000 !important;
		transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
		margin-bottom: 0 !important;
		overflow-y: auto !important;
		background: #111 !important;
		box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8) !important;
		display: block !important;
	}

	#blogSidebar.show-filters {
		right: 0 !important;
	}

	.filterCard {
		background: transparent !important;
		box-shadow: none !important;
		border: none !important;
		padding: 30px 20px !important;
	}

	#sidebarHeader {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		margin-bottom: 30px !important;
	}

	#mobileFilterToggle {
		display: flex !important;
		position: fixed !important;
		bottom: 100px !important;
		right: 25px !important;
		background: linear-gradient(135deg, #78909c 0%, #455a64 100%) !important;
		color: #fff !important;
		padding: 14px 28px !important;
		border-radius: 50px !important;
		gap: 12px !important;
		align-items: center !important;
		z-index: 11000 !important;
		box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(96, 125, 139, 0.4) !important;
		font-weight: 700 !important;
		cursor: pointer !important;
		border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
		animation: toggle-pulse 3s infinite ease-in-out !important;
		letter-spacing: 0.5px !important;
		transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
	}

	body.filters-open #mobileFilterToggle {
		display: none !important;
	}

	#mobileFilterToggle:active {
		transform: scale(0.9) !important;
	}

	@keyframes toggle-pulse {
		0% { box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(96, 125, 139, 0.6); }
		70% { box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 0 15px rgba(96, 125, 139, 0); }
		100% { box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(96, 125, 139, 0); }
	}

	.mobileOnly {
		display: block !important;
	}

	#closeFilters {
		cursor: pointer !important;
	}

	.scrollFilterList {
		max-height: 40vh !important;
	}
}

#mobileFilterToggle {
	display: none;
}

.mobileOnly {
	display: none;
}

@media screen and (max-width: 700px) {
	.blogWideCard {
		flex-direction: column;
		min-height: auto;
	}

	.blogCardInner {
		flex-direction: column;
	}

	.blogCardThumbnail {
		width: 100%;
		height: 220px;
	}

	.blogCardContent {
		padding: 25px 20px;
		gap: 12px;
	}

	#blogHeroContent h1 {
		font-size: 2.5rem;
	}
}