/* ==========================================================================
   Bytecode Magazine - Editorial Theme Stylesheet
   ========================================================================== */

:root {
	--bm-accent: #f84643;
	--bm-bg: #ffffff;
	--bm-surface: #f6f7f9;
	--bm-border: #e8e8e8;
	--bm-heading: #292929;
	--bm-text: #67737e;
	--bm-muted: #8e9ba7;
	--bm-footer-mid: #191919;
	--bm-footer-bot: #111111;
	--bm-font-body: 'Oxygen', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--bm-font-heading: 'Encode Sans Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--bm-radius: 3px;
	--bm-transition: 0.2s ease;
}

[data-theme="dark"] {
	--bm-bg: #121417;
	--bm-surface: #1b1f24;
	--bm-border: #2a2f37;
	--bm-heading: #f3f4f6;
	--bm-text: #c2cad3;
	--bm-muted: #93a0ad;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--bm-bg);
	color: var(--bm-text);
	font-family: var(--bm-font-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--bm-transition);
}

a:hover {
	color: var(--bm-accent);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	color: var(--bm-heading);
	font-family: var(--bm-font-heading);
	font-weight: 700;
	line-height: 1.25;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bm-container {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Buttons & Utility */
.bm-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--bm-radius);
	background-color: var(--bm-accent);
	color: #ffffff;
	font-family: var(--bm-font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity var(--bm-transition), transform var(--bm-transition);
}

.bm-btn-primary:hover {
	color: #ffffff;
	opacity: 0.9;
}

.bm-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bm-heading);
	cursor: pointer;
	border-radius: var(--bm-radius);
}

.bm-icon-btn:hover {
	color: var(--bm-accent);
	background-color: var(--bm-surface);
}

/* ==========================================================================
   3-Row Editorial Header
   ========================================================================== */

.bm-topbar {
	background-color: var(--bm-accent);
	color: #ffffff;
	font-size: 13px;
}

.bm-topbar-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 36px;
}

.bm-ticker-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	font-family: var(--bm-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding-right: 12px;
	border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.bm-ticker-viewport {
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
}

.bm-ticker-track {
	display: inline-flex;
	gap: 36px;
	animation: bmTicker 38s linear infinite;
}

.bm-ticker-viewport:hover .bm-ticker-track {
	animation-play-state: paused;
}

.bm-ticker-item {
	color: #ffffff;
	font-weight: 400;
}

.bm-ticker-item:hover {
	color: #ffffff;
	text-decoration: underline;
}

@keyframes bmTicker {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Middle Header */
.bm-header-middle {
	position: relative;
	border-bottom: 1px solid var(--bm-border);
	background-color: var(--bm-bg);
}

.bm-header-middle-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 86px;
}

.bm-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.bm-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 4px;
	background-color: var(--bm-accent);
	color: #ffffff;
	font-family: var(--bm-font-heading);
	font-size: 24px;
	font-weight: 700;
}

.bm-brand-text {
	display: flex;
	flex-direction: column;
}

.bm-brand-text strong {
	color: var(--bm-heading);
	font-family: var(--bm-font-heading);
	font-size: 24px;
	line-height: 1.05;
}

.bm-brand-text small {
	color: var(--bm-muted);
	font-size: 11px;
}

.bm-primary-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.bm-nav-list {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-nav-list > li {
	position: relative;
}

.bm-nav-list > li > a {
	display: inline-block;
	padding: 10px 2px;
	color: var(--bm-heading);
	font-family: var(--bm-font-heading);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.bm-nav-list > li.current-menu-item > a,
.bm-nav-list > li > a:hover {
	color: var(--bm-accent);
}

.bm-nav-list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	padding: 8px 0;
	margin: 0;
	list-style: none;
	background-color: var(--bm-bg);
	border: 1px solid var(--bm-border);
	border-top: 2px solid var(--bm-accent);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	z-index: 40;
}

.bm-nav-list > li:hover > .sub-menu {
	display: block;
}

.bm-nav-list .sub-menu a {
	display: block;
	padding: 7px 16px;
	font-size: 14px;
	color: var(--bm-heading);
}

.bm-nav-list .sub-menu a:hover {
	color: var(--bm-accent);
	background-color: var(--bm-surface);
}

.bm-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bm-header-socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bm-header-socials a {
	color: var(--bm-heading);
	opacity: 0.75;
}

.bm-header-socials a:hover {
	color: var(--bm-accent);
	opacity: 1;
}

.bm-search-drawer {
	padding: 16px 0;
	border-top: 1px solid var(--bm-border);
	background-color: var(--bm-surface);
}

.bm-search-form {
	display: flex;
	gap: 10px;
}

.bm-search-input,
.search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--bm-border);
	border-radius: var(--bm-radius);
	background-color: var(--bm-bg);
	color: var(--bm-heading);
	font-family: inherit;
	font-size: 14px;
}

/* Subheader */
.bm-subheader {
	border-bottom: 1px solid var(--bm-border);
	background-color: var(--bm-bg);
	font-size: 13px;
}

.bm-subheader-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
	gap: 12px;
}

.bm-subheader-left,
.bm-subheader-right {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bm-subnav-list {
	display: flex;
	align-items: center;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-live-date {
	color: var(--bm-muted);
	font-size: 12px;
}

.bm-icon-sun { display: none; }
[data-theme="dark"] .bm-icon-moon { display: none; }
[data-theme="dark"] .bm-icon-sun { display: inline-flex; }

/* Off-Canvas Drawer */
.bm-offcanvas {
	position: fixed;
	inset: 0;
	z-index: 999;
	pointer-events: none;
	visibility: hidden;
}

.bm-offcanvas.is-open {
	pointer-events: auto;
	visibility: visible;
}

.bm-offcanvas-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.bm-offcanvas.is-open .bm-offcanvas-backdrop {
	opacity: 1;
}

.bm-offcanvas-panel {
	position: relative;
	z-index: 2;
	width: 310px;
	max-width: 85vw;
	height: 100%;
	background: var(--bm-bg);
	border-right: 1px solid var(--bm-border);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.bm-offcanvas.is-open .bm-offcanvas-panel {
	transform: translateX(0);
}

.bm-offcanvas-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--bm-border);
	font-family: var(--bm-font-heading);
	font-size: 20px;
	color: var(--bm-heading);
}

.bm-offcanvas-body {
	padding: 20px;
	overflow-y: auto;
}

.bm-mobile-nav ul {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
}

.bm-mobile-nav li a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid var(--bm-border);
	font-family: var(--bm-font-heading);
	font-weight: 700;
	color: var(--bm-heading);
}

/* ==========================================================================
   Shared Editorial Section Headers & Badges
   ========================================================================== */

.bm-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 22px;
	border-bottom: 2px solid var(--bm-accent);
}

.bm-section-tab {
	margin: 0;
	padding: 6px 14px;
	background-color: var(--bm-accent);
	color: #ffffff;
	font-family: var(--bm-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.bm-section-view-all {
	padding-bottom: 6px;
	font-family: var(--bm-font-heading);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--bm-muted);
}

.bm-section-view-all:hover {
	color: var(--bm-accent);
}

.bm-cat-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bm-cat-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 2px;
	color: #ffffff;
	font-family: var(--bm-font-heading);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.bm-cat-badge:hover {
	color: #ffffff;
	opacity: 0.9;
}

.bm-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--bm-muted);
	font-size: 12px;
}

.bm-meta-sep {
	opacity: 0.5;
}

.bm-thumb-placeholder {
	width: 100%;
	height: 100%;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2d323b 0%, #191c22 100%);
	color: rgba(255, 255, 255, 0.35);
	font-family: var(--bm-font-heading);
	font-size: 42px;
	font-weight: 700;
}

/* ==========================================================================
   Homepage Row 1: Hero 1+4 Grid & Category Strip
   ========================================================================== */

.bm-fp-row-1 {
	padding: 28px 0 10px;
}

.bm-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 36px;
}

.bm-hero-left {
	min-height: 460px;
}

.bm-hero-right {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 6px;
}

.bm-card-overlay {
	position: relative;
	height: 100%;
	min-height: 227px;
	overflow: hidden;
	border-radius: 2px;
	background-color: #191919;
}

.bm-card-overlay.is-hero-primary {
	min-height: 460px;
}

.bm-card-overlay .bm-card-media-link {
	position: absolute;
	inset: 0;
}

.bm-card-overlay img,
.bm-card-overlay .bm-thumb-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.bm-card-overlay:hover img {
	transform: scale(1.04);
}

.bm-overlay-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.85) 100%);
}

.bm-overlay-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 20px;
	z-index: 2;
	color: #ffffff;
}

.bm-card-overlay .bm-card-title {
	margin: 10px 0 6px;
	color: #ffffff;
	font-size: 19px;
	line-height: 1.25;
}

.bm-card-overlay.is-hero-primary .bm-card-title {
	font-size: 28px;
}

.bm-card-overlay .bm-card-title a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.bm-card-overlay .bm-card-excerpt {
	margin: 0 0 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.bm-card-overlay .bm-post-meta {
	color: rgba(255, 255, 255, 0.8);
}

/* Category Strip */
.bm-category-strip {
	margin-bottom: 34px;
}

.bm-cat-cards-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.bm-cat-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bm-border);
	border-radius: var(--bm-radius);
	overflow: hidden;
	background-color: var(--bm-surface);
	transition: transform var(--bm-transition);
}

.bm-cat-card:hover {
	transform: translateY(-2px);
}

.bm-cat-card-media {
	height: 150px;
	overflow: hidden;
}

.bm-cat-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bm-cat-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
}

.bm-cat-card-footer h3 {
	margin: 0;
	font-size: 16px;
}

.bm-cat-card-footer span {
	font-size: 12px;
	color: var(--bm-muted);
}

/* ==========================================================================
   Row 2: Asymmetric Main (822px) + Sidebar (378px)
   ========================================================================== */

.bm-fp-row-2,
.bm-archive-page,
.bm-page-template,
.bm-404-page {
	padding: 24px 0 60px;
}

.bm-single-page {
	padding: 0 0 64px;
	background-color: var(--bm-surface);
}

.bm-content-sidebar-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 48px;
	align-items: start;
}

.bm-mag-section,
.bm-latest-articles {
	margin-bottom: 42px;
}

/* Grid Card */
.bm-card-grid .bm-card-media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--bm-radius);
	margin-bottom: 14px;
	background-color: var(--bm-surface);
}

.bm-card-grid .bm-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.bm-card-grid:hover .bm-card-media img {
	transform: scale(1.03);
}

.bm-media-badges {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
}

.bm-card-grid .bm-card-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.28;
}

.bm-card-grid .bm-card-excerpt {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--bm-text);
}

.bm-card-footer-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.bm-read-more {
	font-family: var(--bm-font-heading);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--bm-accent);
}

/* Split 1+4 Section */
.bm-split-1-4-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 26px;
}

/* Top 2 + Bottom 2x2 Section */
.bm-top2-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 24px;
}

.bm-bottom4-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 24px;
}

/* Latest Articles 2-Column Grid */
.bm-posts-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px 26px;
}

/* Compact Horizontal Card */
.bm-compact-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bm-card-compact {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.bm-compact-thumb {
	position: relative;
	flex: 0 0 104px;
	height: 74px;
	overflow: visible;
	border-radius: var(--bm-radius);
	background-color: var(--bm-surface);
}

.bm-compact-thumb img,
.bm-compact-thumb .bm-thumb-placeholder {
	width: 100%;
	height: 100%;
	min-height: 74px;
	object-fit: cover;
	border-radius: var(--bm-radius);
}

.bm-compact-thumb .bm-thumb-placeholder {
	font-size: 22px;
}

.bm-rank-badge {
	position: absolute;
	top: -7px;
	left: -7px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--bm-accent);
	color: #ffffff;
	font-family: var(--bm-font-heading);
	font-size: 12px;
	font-weight: 700;
	border: 2px solid var(--bm-bg);
}

.bm-compact-title {
	margin: 0 0 5px;
	font-size: 15px;
	line-height: 1.3;
}

/* Pagination */
.bm-pagination {
	margin-top: 34px;
}

.bm-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--bm-border);
	border-radius: var(--bm-radius);
	font-family: var(--bm-font-heading);
	font-weight: 700;
	color: var(--bm-heading);
}

.bm-pagination .page-numbers.current,
.bm-pagination a.page-numbers:hover {
	background-color: var(--bm-accent);
	border-color: var(--bm-accent);
	color: #ffffff;
}

/* ==========================================================================
   Sidebar & Custom Magazine Widgets
   ========================================================================== */

.bm-sidebar {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.bm-widget-header {
	margin-bottom: 18px;
}

.bm-social-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.bm-social-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--bm-border);
	border-radius: var(--bm-radius);
	background-color: var(--bm-bg);
}

.bm-social-card:hover {
	border-color: var(--bm-accent);
}

.bm-social-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.bm-social-meta strong {
	font-size: 13px;
	color: var(--bm-heading);
}

.bm-social-meta small {
	font-size: 11px;
	color: var(--bm-muted);
}

/* Tabs Widget */
.bm-tabs-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 2px solid var(--bm-accent);
	margin-bottom: 16px;
}

.bm-tab-btn {
	padding: 8px 12px;
	border: 0;
	background: var(--bm-surface);
	color: var(--bm-heading);
	font-family: var(--bm-font-heading);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.bm-tab-btn.is-active {
	background-color: var(--bm-accent);
	color: #ffffff;
}

/* Newsletter Widget */
.bm-newsletter-box {
	padding: 22px;
	border: 1px solid var(--bm-border);
	border-top: 3px solid var(--bm-accent);
	border-radius: var(--bm-radius);
	background-color: var(--bm-surface);
}

.bm-newsletter-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.bm-newsletter-head h3 {
	margin: 0;
	font-size: 20px;
}

.bm-newsletter-icon {
	color: var(--bm-accent);
	display: inline-flex;
}

.bm-newsletter-desc {
	margin: 0 0 14px;
	font-size: 13px;
}

.bm-newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bm-newsletter-form input[type="email"] {
	padding: 10px 12px;
	border: 1px solid var(--bm-border);
	border-radius: var(--bm-radius);
	background-color: var(--bm-bg);
	color: var(--bm-heading);
}

.bm-nl-terms {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--bm-muted);
}

.bm-nl-status {
	font-size: 13px;
	font-weight: 700;
	color: #16a34a;
}

/* Category List Widget */
.bm-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-cat-list li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--bm-border);
	font-size: 14px;
}

.bm-cat-count {
	color: var(--bm-muted);
	font-size: 12px;
}

/* ==========================================================================
   Single Post Hero Banner, Breadcrumb Pill, Overlapping Structured Card & TOC
   ========================================================================== */

.bm-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	font-size: 12px;
	color: var(--bm-muted);
}

/* Full-Width Dark Editorial Hero Header */
.bm-single-hero {
	position: relative;
	padding: 46px 0 96px;
	background-color: #131820;
	background-size: cover;
	background-position: center;
	color: #ffffff;
	text-align: center;
	overflow: hidden;
}

.bm-single-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 19, 27, 0.86) 0%, rgba(14, 19, 27, 0.94) 100%);
	backdrop-filter: blur(2px);
}

.bm-single-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 900px;
}

.bm-hero-breadcrumb-pill {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
}

.bm-hero-breadcrumb-pill .bm-breadcrumbs {
	margin: 0;
	justify-content: center;
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
}

.bm-hero-breadcrumb-pill .bm-breadcrumbs a {
	color: rgba(255, 255, 255, 0.88);
}

.bm-hero-breadcrumb-pill .bm-breadcrumbs a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.bm-hero-breadcrumb-pill .bm-bc-current {
	color: #fbbf24;
	font-weight: 600;
}

.bm-hero-cat-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.bm-hero-cat-wrap .bm-cat-badge {
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 11px;
	letter-spacing: 0.7px;
	box-shadow: 0 4px 14px rgba(248, 70, 67, 0.35);
}

.bm-single-hero-title {
	margin: 0 auto 14px;
	max-width: 820px;
	color: #ffffff;
	font-size: 40px;
	line-height: 1.15;
}

.bm-single-hero-excerpt {
	margin: 0 auto 18px;
	max-width: 720px;
	color: rgba(226, 232, 240, 0.86);
	font-size: 15px;
	line-height: 1.55;
}

.bm-single-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: rgba(203, 213, 225, 0.85);
	font-size: 13px;
}

/* Overlapping Content Card & Sidebar Card */
.bm-single-body-wrap {
	position: relative;
	z-index: 3;
	margin-top: -52px;
}

.bm-single-card {
	background-color: var(--bm-bg);
	border: 1px solid var(--bm-border);
	border-radius: 8px;
	padding: 36px 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.bm-single-sidebar-wrap .bm-widget {
	background-color: var(--bm-bg);
	border: 1px solid var(--bm-border);
	border-radius: 8px;
	padding: 22px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.bm-single-title {
	margin: 12px 0;
	font-size: 36px;
	line-height: 1.18;
}

.bm-single-media {
	margin: 22px 0;
}

.bm-single-featured-img {
	width: 100%;
	border-radius: var(--bm-radius);
}

.bm-media-caption {
	margin-top: 6px;
	font-size: 12px;
	color: var(--bm-muted);
	text-align: center;
}

/* Structured Table of Contents */
.bm-toc-box {
	margin: 24px 0 32px;
	padding: 20px 24px;
	border: 1px solid var(--bm-border);
	border-left: 4px solid var(--bm-accent);
	border-radius: 6px;
	background-color: var(--bm-surface);
}

.bm-toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--bm-border);
}

.bm-toc-title {
	font-family: var(--bm-font-heading);
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--bm-heading);
}

.bm-toc-count {
	font-size: 12px;
	font-weight: 700;
	color: var(--bm-accent);
}

.bm-toc-list {
	margin: 0;
	padding-left: 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 24px;
}

.bm-toc-list li {
	font-size: 14px;
	line-height: 1.4;
}

.bm-toc-list a {
	color: var(--bm-heading);
	text-decoration: none;
}

.bm-toc-list a:hover {
	color: var(--bm-accent);
	text-decoration: underline;
}

/* Structured Article Typography, Tables & FAQ Cards */
.bm-entry-content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--bm-text);
}

.bm-entry-content h2 {
	margin: 2em 0 0.7em;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bm-border);
	font-size: 26px;
	scroll-margin-top: 24px;
}

.bm-entry-content h3 {
	margin: 1.5em 0 0.55em;
	font-size: 20px;
}

.bm-entry-content h4 {
	margin: 1.25em 0 0.5em;
	font-size: 17px;
}

.bm-entry-content p {
	margin: 0 0 1.3em;
}

.bm-entry-content ul,
.bm-entry-content ol {
	margin: 0 0 1.4em;
	padding-left: 24px;
}

.bm-entry-content li {
	margin-bottom: 0.55em;
}

.bm-entry-content strong {
	color: var(--bm-heading);
}

.bm-entry-content a {
	color: var(--bm-accent);
	text-decoration: underline;
}

.bm-entry-content blockquote {
	margin: 24px 0;
	padding: 16px 22px;
	border-left: 4px solid var(--bm-accent);
	background-color: var(--bm-surface);
	font-style: italic;
}

.bm-table-wrap {
	width: 100%;
	overflow-x: auto;
	margin: 24px 0;
	border: 1px solid var(--bm-border);
	border-radius: 6px;
}

.bm-entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.bm-entry-content thead th {
	background-color: #191f28;
	color: #ffffff;
	font-family: var(--bm-font-heading);
	font-weight: 700;
	text-align: left;
	padding: 12px 14px;
	border-bottom: 2px solid var(--bm-accent);
}

.bm-entry-content tbody td,
.bm-entry-content tbody th {
	padding: 11px 14px;
	border-bottom: 1px solid var(--bm-border);
	vertical-align: top;
}

.bm-entry-content tbody tr:nth-child(even) {
	background-color: var(--bm-surface);
}

.bm-faq-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 16px;
}

.bm-faq-card {
	padding: 18px 22px;
	border: 1px solid var(--bm-border);
	border-left: 3px solid var(--bm-accent);
	border-radius: 6px;
	background-color: var(--bm-surface);
}

.bm-faq-card .bm-faq-q {
	margin: 0 0 8px;
	font-size: 18px;
	color: var(--bm-heading);
}

.bm-faq-card .bm-faq-a p:last-child {
	margin-bottom: 0;
}

.bm-entry-content pre,
.bm-entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	background-color: var(--bm-surface);
	border-radius: 3px;
}

.bm-entry-content pre {
	padding: 14px 16px;
	overflow-x: auto;
}

.bm-single-footer {
	margin: 28px 0;
	padding: 18px 0;
	border-top: 1px solid var(--bm-border);
	border-bottom: 1px solid var(--bm-border);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bm-post-tags,
.bm-share-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.bm-tags-label,
.bm-share-label {
	font-family: var(--bm-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	color: var(--bm-heading);
}

.bm-tag-pill,
.bm-share-btn {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border: 1px solid var(--bm-border);
	border-radius: 2px;
	background: var(--bm-surface);
	color: var(--bm-heading);
	font-size: 12px;
	cursor: pointer;
}

.bm-tag-pill:hover,
.bm-share-btn:hover {
	border-color: var(--bm-accent);
	color: var(--bm-accent);
}

.bm-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 32px;
}

.bm-post-nav-next {
	text-align: right;
}

.bm-nav-dir {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: var(--bm-muted);
	margin-bottom: 4px;
}

.bm-post-nav a {
	font-family: var(--bm-font-heading);
	font-weight: 700;
	font-size: 16px;
	color: var(--bm-heading);
}

.bm-author-box {
	padding: 26px;
	border: 1px solid var(--bm-border);
	border-radius: var(--bm-radius);
	background-color: var(--bm-surface);
	text-align: center;
	margin-bottom: 36px;
}

.bm-author-avatar img {
	margin: 0 auto 12px;
	border-radius: 50%;
}

.bm-author-name {
	margin-bottom: 8px;
	font-size: 20px;
}

.bm-author-name a {
	color: var(--bm-accent);
}

.bm-author-bio {
	margin: 0 auto;
	max-width: 580px;
	font-size: 14px;
}

.bm-related-posts {
	margin-bottom: 36px;
}

.bm-related-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.bm-related-grid-3 .bm-card-title {
	font-size: 16px;
}

/* Comments */
.comments-area {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--bm-border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--bm-border);
	border-radius: var(--bm-radius);
	background-color: var(--bm-bg);
	color: var(--bm-heading);
}

.comment-form .submit {
	padding: 10px 22px;
	border: 0;
	border-radius: var(--bm-radius);
	background-color: var(--bm-heading);
	color: var(--bm-bg);
	font-family: var(--bm-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.comment-form .submit:hover {
	background-color: var(--bm-accent);
	color: #ffffff;
}

/* 404 */
.bm-404-box {
	padding: 48px 28px;
	border: 1px solid var(--bm-border);
	background-color: var(--bm-surface);
	text-align: center;
}

.bm-404-code {
	display: block;
	font-family: var(--bm-font-heading);
	font-size: 72px;
	font-weight: 700;
	color: var(--bm-accent);
	line-height: 1;
	margin-bottom: 12px;
}

/* ==========================================================================
   Dark 3-Column Footer + Back-to-Top
   ========================================================================== */

.bm-footer {
	color: #b7bec6;
	font-size: 14px;
}

.bm-footer-middle {
	background-color: var(--bm-footer-mid);
	padding: 48px 0;
}

.bm-footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
}

.bm-footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	color: #ffffff;
	font-family: var(--bm-font-heading);
	font-size: 22px;
}

.bm-footer-widget-title {
	color: #ffffff;
	font-size: 18px;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bm-accent);
}

.bm-footer .bm-compact-title,
.bm-footer .bm-cat-list a {
	color: #e5e7eb;
}

.bm-footer .bm-cat-list li a {
	border-bottom-color: #2e2e2e;
}

.bm-footer .bm-rank-badge {
	border-color: var(--bm-footer-mid);
}

.bm-footer-socials {
	display: flex;
	gap: 12px;
	margin-top: 14px;
}

.bm-footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 3px;
	background: #262626;
	color: #ffffff;
}

.bm-footer-socials a:hover {
	background: var(--bm-accent);
}

.bm-footer-bottom {
	background-color: var(--bm-footer-bot);
	padding: 18px 0;
	font-size: 13px;
}

.bm-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bm-copyright {
	margin: 0;
}

.bm-footer-nav {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 3px;
	background-color: var(--bm-accent);
	color: #ffffff;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 90;
}

.bm-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
	.bm-content-sidebar-wrap {
		grid-template-columns: 1fr;
	}

	.bm-hero-grid {
		grid-template-columns: 1fr;
	}

	.bm-hero-left,
	.bm-card-overlay.is-hero-primary {
		min-height: 360px;
	}

	.bm-cat-cards-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.bm-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.bm-primary-nav,
	.bm-header-socials,
	.bm-live-date {
		display: none;
	}

	.bm-hero-right,
	.bm-split-1-4-grid,
	.bm-top2-grid,
	.bm-bottom4-grid,
	.bm-posts-grid-2,
	.bm-related-grid-3,
	.bm-post-nav,
	.bm-footer-grid {
		grid-template-columns: 1fr;
	}

	.bm-cat-cards-4,
	.bm-toc-list {
		grid-template-columns: 1fr;
	}

	.bm-single-hero {
		padding: 32px 0 72px;
	}

	.bm-single-hero-title,
	.bm-single-title {
		font-size: 27px;
	}

	.bm-single-card {
		padding: 22px 18px;
	}
}
