/* ==========================================================================
   CUSTOM BENGALI FONTS
   ========================================================================== */

/* Heading Font — Li Sabbir Sorolota Unicode */
@font-face {
	font-family: 'Li Sabbir Sorolota';
	src: url('../fonts/sabbir.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* Body Font — Li Purno Pran Unicode */
@font-face {
	font-family: 'Li Purno Pran';
	src: url('../fonts/purno.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   BanglaTrick — Main Stylesheet
   Homepage + Blog + Archive + Shared Components
   ========================================================================== */

/* ==========================================================================
   1. Reset & Variables
   ========================================================================== */
:root {
	--primary: #1677FF;
	--primary-hover: #0958d9;
	--primary-soft: rgba(22, 119, 255, 0.08);
	--text: #1f2937;
	--heading: #111827;
	--muted: #6b7280;
	--border: #e5e7eb;
	--background: #ffffff;
	--surface: #f8fafc;
	--warning: #d97706;
	--warning-bg: #fef3c7;
	--info: #0369a1;
	--info-bg: #e0f2fe;
	--radius: 8px;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	--container: 1200px;

	/* Fonts */
	--font-heading: 'Li Sabbir Sorolota', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
	--font-body: 'Li Purno Pran', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-body);
	color: var(--text);
	background-color: var(--background);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 16px;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--primary);
}

a:focus-visible, button:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: 3px;
}

button {
	font-family: inherit;
	cursor: pointer;
}

input, textarea, select {
	font-family: inherit;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.3;
	font-weight: 600;
	color: var(--heading);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; margin-bottom: 16px; }
h3 { font-size: 1.125rem; }

.text-muted { color: var(--muted); font-size: 0.875rem; }
.text-primary { color: var(--primary); }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
	width: 100%;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--primary);
	color: white;
	padding: 8px 16px;
	z-index: 1000;
	transition: top 0.2s;
}
.skip-link:focus { top: 0; color: white; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
	border-bottom: 1px solid var(--border);
	background: var(--background);
	z-index: 100;
}
.site-header.is-sticky {
	position: sticky;
	top: 0;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	gap: 12px;
}

.brand {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.brand-name {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary);
	letter-spacing: -0.5px;
	line-height: 1.1;
}
.brand-tagline {
	font-family: var(--font-body);
	font-size: 0.75rem;
	color: var(--muted);
	margin-top: -4px;
	line-height: 1;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-height: 50px;
}
.custom-logo-link img,
.custom-logo {
	max-height: 50px;
	width: auto;
	height: auto;
	display: block;
}

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

.icon-btn {
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text);
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover {
	background: var(--surface);
	border-color: var(--primary);
	color: var(--primary);
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.main-nav {
	display: none;
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}

.nav-list {
	display: flex;
	list-style: none;
	gap: 8px;
	overflow-x: auto;
	padding: 12px 0;
	scrollbar-width: none;
	margin: 0;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-link {
	display: block;
	padding: 6px 12px;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--text);
	border-radius: var(--radius);
	white-space: nowrap;
}
.nav-link:hover,
.nav-link.active,
.current-menu-item > .nav-link {
	background: var(--primary);
	color: white;
}

.nav-list .sub-menu { display: none; }

/* ==========================================================================
   6. Mobile Menu
   ========================================================================== */
.mobile-menu {
	position: fixed;
	top: 64px;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--background);
	z-index: 99;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	padding: 24px 16px;
	overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-nav-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}
.mobile-nav-link {
	display: block;
	padding: 12px 16px;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}
.mobile-nav-link:hover,
.mobile-nav-list .current-menu-item > .mobile-nav-link {
	background: var(--surface);
	border-color: var(--primary);
	color: var(--primary);
}

body.menu-open { overflow: hidden; }

/* ==========================================================================
   7. Search Bar
   ========================================================================== */
.search-container {
	display: none;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}
.search-container.is-visible { display: block; }

.search-form {
	display: flex;
	gap: 8px;
}
.search-input {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 1rem;
	font-family: var(--font-body);
	background: var(--background);
	min-width: 0;
}
.search-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-primary {
	background: var(--primary);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	font-size: 0.9375rem;
	display: inline-block;
}
.btn-primary:hover {
	background: var(--primary-hover);
	color: white;
}

/* ==========================================================================
   8. Ad Slots
   ========================================================================== */
.ad-slot {
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 0.875rem;
	margin: 24px 0;
	min-height: 90px;
	width: 100%;
	text-align: center;
	padding: 12px;
}
.ad-slot-sidebar { min-height: 250px; }

/* ==========================================================================
   9. Main Layout (Legacy — kept for compatibility)
   ========================================================================== */
.content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 24px 0;
}

.main-content {
	flex: 1;
	min-width: 0;
}

/* ==========================================================================
   10. Section Header (Legacy)
   ========================================================================== */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 8px;
	padding-left: 8px;
	border-bottom: 2px solid var(--primary);
}
.section-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
}

/* ==========================================================================
   11. Featured Section (Homepage)
   ========================================================================== */
.featured-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.featured-main {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--background);
}

.featured-main .featured-link {
	display: block;
	width: 100%;
	color: inherit;
}
.featured-main .featured-link:hover {
	color: inherit;
}
.featured-main .featured-link h3 {
	font-family: var(--font-heading);
	color: var(--heading);
	transition: color 0.2s;
}
.featured-main .featured-link:hover h3 {
	color: var(--primary);
}

.featured-main img {
	width: 100%;
	height: 250px;
	object-fit: cover;
}
.featured-content {
	padding: 16px;
	background: var(--background);
}

.featured-side {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

/* -------- Side Card (Featured small card) -------- */
.side-card {
	display: flex;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--background);
	transition: border-color 0.2s;
	min-width: 0;
	overflow: hidden;
	max-width: 100%;
	box-sizing: border-box;
}
.side-card:hover { border-color: var(--primary); }

.side-card-link {
	display: flex;
	gap: 12px;
	width: 100%;
	min-width: 0;
	color: inherit;
	align-items: flex-start;
	text-decoration: none;
}
.side-card-link:hover {
	color: inherit;
}
.side-card-link:hover h3 {
	color: var(--primary);
}

.side-card-thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	display: block;
	border-radius: 6px;
	overflow: hidden;
	background: var(--surface);
}
.side-card-thumb img,
.side-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}

.side-card-content {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow: hidden;
}

.side-card-cat {
	display: block;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	line-height: 1;
}

.side-card-cat .category-badge {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.6875rem;
	padding: 2px 7px;
	line-height: 1.4;
	vertical-align: top;
}

.side-card-content h3 {
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.35;
	color: var(--heading);
	transition: color 0.2s;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
	min-width: 0;
}
.side-card-content h3 a {
	color: inherit;
	text-decoration: none;
	display: inline;
}

.side-card-content .post-meta {
	margin: 0;
	font-size: 0.75rem;
	color: var(--muted);
	flex-wrap: wrap;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
}

@media (max-width: 380px) {
	.side-card {
		padding: 10px;
		gap: 10px;
	}
	.side-card-thumb {
		flex: 0 0 64px;
		width: 64px;
		height: 64px;
	}
	.side-card-content h3 {
		font-size: 0.875rem;
	}
	.side-card-cat .category-badge {
		font-size: 0.625rem;
		padding: 2px 6px;
	}
}

@media (max-width: 320px) {
	.side-card {
		padding: 8px;
		gap: 8px;
	}
	.side-card-thumb {
		flex: 0 0 56px;
		width: 56px;
		height: 56px;
	}
	.side-card-content h3 {
		font-size: 0.8125rem;
		-webkit-line-clamp: 3;
	}
}

/* ==========================================================================
   12. Home / Blog / Archive — 2-Column Layout
   ========================================================================== */

.bt-home-wrap {
	padding: 24px 16px 56px;
}

.bt-home-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
}

@media (min-width: 1024px) {
	.bt-home-grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 32px;
	}
}

.bt-home-main {
	min-width: 0;
}

/* ==========================================================================
   13. UNIQUE SECTION TITLE — with accent bar & pill
   ========================================================================== */

.bt-section-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
	padding: 0 0 14px;
	border-bottom: 2px solid var(--border);
	flex-wrap: wrap;
}

/* Left accent bar + gradient underline */
.bt-section-head::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	height: 2px;
	width: 80px;
	background: linear-gradient(90deg, var(--primary), var(--primary-hover));
	border-radius: 2px;
}

.bt-section-title {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
	padding-left: 14px;
	color: var(--heading);
	font-family: var(--font-heading);
	line-height: 1.3;
	letter-spacing: -0.2px;
}

/* Vertical bar accent */
.bt-section-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 22px;
	background: linear-gradient(180deg, var(--primary), var(--primary-hover));
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(22, 119, 255, 0.3);
}

@media (min-width: 768px) {
	.bt-section-title { font-size: 1.375rem; }
	.bt-section-title::before { height: 26px; width: 5px; }
}

.bt-section-title svg {
	color: var(--primary);
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* ==========================================================================
   14. Sections spacing
   ========================================================================== */
.bt-home-section {
	margin-bottom: 40px;
}
.bt-home-section:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   15. Featured Grid (Refined)
   ========================================================================== */
.bt-home-main .featured-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 768px) {
	.bt-home-main .featured-grid {
		grid-template-columns: 2fr 1fr;
		gap: 20px;
	}
}

/* ==========================================================================
   16. Post List — 2-Column Grid (Latest Blog)
   ========================================================================== */

.bt-home-main .post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.bt-home-main .post-list {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

/* ==========================================================================
   17. Post Card — VERTICAL, clean, professional
   ========================================================================== */

.bt-home-main .post-card {
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.bt-home-main .post-card:hover {
	border-color: var(--primary);
	box-shadow: 0 10px 28px rgba(22, 119, 255, 0.08);
	transform: translateY(-3px);
}

.bt-home-main .post-card-link {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	text-decoration: none;
	color: inherit;
	height: 100%;
	flex: 1;
}

/* Post card image */
.bt-home-main .post-card img {
	width: 100%;
	height: 200px;              /* size একই থাকবে */
	object-fit: cover;           /* ← এটা কে করুন */
	object-position: center;     /* center এ focus */
	background: var(--surface); /* letterbox area তে background */
	display: block;
}
@media (min-width: 1024px) {
	.bt-home-main .post-card img {
		height: 220px;
	}
}
.bt-home-main .post-card:hover img {
	transform: scale(1.05);
}

/* Post card body */
.bt-home-main .post-card-body {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	flex: 1;
}
@media (min-width: 1024px) {
	.bt-home-main .post-card-body {
		padding: 18px 20px;
	}
}

/* Post card title */
.bt-home-main .post-card h3 {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	color: var(--heading);
	transition: color 0.2s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}
@media (min-width: 1024px) {
	.bt-home-main .post-card h3 {
		font-size: 1.0625rem;
	}
}
.bt-home-main .post-card:hover h3 {
	color: var(--primary);
}

/* Excerpt */
.bt-home-main .post-card .excerpt {
	font-size: 0.875rem;
	color: var(--muted);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

/* Post meta at bottom */
.bt-home-main .post-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 0.75rem;
	color: var(--muted);
	margin-top: auto;
	padding-top: 6px;
}
.bt-home-main .post-meta .category-badge {
	font-size: 0.6875rem;
	padding: 3px 10px;
	font-weight: 700;
	border-radius: 4px;
}

/* ==========================================================================
   18. Archive Header — Clean & Unique
   ========================================================================== */

.bt-archive-header {
	position: relative;
	margin-bottom: 28px;
	padding: 22px 24px 20px 26px;
	background: linear-gradient(135deg, rgba(22, 119, 255, 0.06), rgba(22, 119, 255, 0.02));
	border: 1px solid var(--border);
	border-left: 4px solid var(--primary);
	border-radius: 12px;
	overflow: hidden;
}

.bt-archive-header::before {
	content: '';
	position: absolute;
	right: -20px;
	top: -20px;
	width: 100px;
	height: 100px;
	background: radial-gradient(circle, var(--primary-soft), transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.bt-archive-title {
	position: relative;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	color: var(--heading);
	font-family: var(--font-heading);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.bt-archive-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 26px;
	background: linear-gradient(180deg, var(--primary), var(--primary-hover));
	border-radius: 4px;
}

@media (min-width: 768px) {
	.bt-archive-title { font-size: 1.75rem; }
	.bt-archive-title::before { height: 30px; width: 6px; }
}

.bt-archive-description {
	position: relative;
	font-size: 0.9375rem;
	color: var(--muted);
	margin-top: 10px;
	line-height: 1.65;
	max-width: 720px;
}
.bt-archive-description a {
	color: var(--primary);
	text-decoration: underline;
}

/* Old compatibility */
.archive-header,
.page-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--primary);
}
.archive-title,
.page-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}
.archive-description {
	font-size: 0.9375rem;
	color: var(--muted);
	margin-top: 8px;
	line-height: 1.6;
	font-family: var(--font-body);
}
.search-query { color: var(--primary); }
.search-count {
	font-size: 0.9375rem;
	color: var(--muted);
	margin-top: 8px;
}

/* ==========================================================================
   19. Sidebar (in 2-column layout)
   ========================================================================== */

.bt-home-grid .sidebar {
	display: flex !important;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

@media (min-width: 1024px) {
	.bt-home-grid .sidebar {
		position: sticky;
		top: 90px;
		max-height: calc(100vh - 110px);
		overflow-y: auto;
	}
}

.bt-home-grid .sidebar .widget {
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 18px;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.bt-home-grid .sidebar .widget:hover {
	border-color: var(--primary);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.bt-home-grid .sidebar .widget-title {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 16px;
	padding: 0 0 10px 12px;
	border-bottom: none;
	color: var(--heading);
	font-family: var(--font-heading);
}
.bt-home-grid .sidebar .widget-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 4px;
	height: 18px;
	background: linear-gradient(180deg, var(--primary), var(--primary-hover));
	border-radius: 4px;
}
.bt-home-grid .sidebar .widget-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), transparent);
	border-radius: 2px;
}

/* Popular post widget */
.bt-home-grid .popular-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	align-items: flex-start;
}
.bt-home-grid .popular-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.bt-home-grid .popular-item a {
	text-decoration: none;
	color: inherit;
	display: flex;
	gap: 12px;
	width: 100%;
}
.bt-home-grid .popular-item img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}
.bt-home-grid .popular-item h4 {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 4px;
	color: var(--heading);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bt-home-grid .popular-item:hover h4 {
	color: var(--primary);
}

/* Category list widget */
.bt-home-grid .category-list li a {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.9375rem;
	text-decoration: none;
	color: var(--text);
	transition: color 0.15s, padding-left 0.15s;
}
.bt-home-grid .category-list li:last-child a {
	border-bottom: none;
}
.bt-home-grid .category-list li a:hover {
	color: var(--primary);
	padding-left: 6px;
}

/* ==========================================================================
   20. Pagination — Modern
   ========================================================================== */

.bt-home-main .pagination,
.bt-home-main .home-pagination {
	margin-top: 32px;
	display: flex;
	justify-content: center;
}
.bt-home-main .pagination ul,
.bt-home-main .home-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	justify-content: center;
}
.bt-home-main .pagination li a,
.bt-home-main .pagination li span,
.bt-home-main .home-pagination li a,
.bt-home-main .home-pagination li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	transition: all 0.15s;
}
.bt-home-main .pagination li a:hover,
.bt-home-main .home-pagination li a:hover {
	background: var(--primary-soft);
	border-color: var(--primary);
	color: var(--primary);
}
.bt-home-main .pagination li span.current,
.bt-home-main .home-pagination li span.current {
	background: var(--primary);
	border-color: var(--primary);
	color: white;
}

/* ==========================================================================
   21. Legacy Post List & Cards (fallback for archive etc.)
   ========================================================================== */

.post-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.post-card {
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--background);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.post-card:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow);
}

.post-card-link {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	color: inherit;
}
.post-card-link:hover {
	color: inherit;
}
.post-card-link:hover h3 {
	color: var(--primary);
}

.post-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}
.post-card-body {
	flex: 1;
	min-width: 0;
}
.post-card h3 {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	margin-bottom: 8px;
	line-height: 1.4;
	color: var(--heading);
	transition: color 0.2s;
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--muted);
	margin-bottom: 8px;
	flex-wrap: wrap;
	font-family: var(--font-body);
}
.category-badge {
	background: var(--primary-soft);
	color: var(--primary);
	padding: 2px 8px;
	border-radius: 4px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.75rem;
	display: inline-block;
}
.category-badge:hover { color: var(--primary); }

.excerpt {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--muted);
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   22. No Results
   ========================================================================== */
.no-results {
	text-align: center;
	padding: 32px;
	color: var(--muted);
	font-size: 1rem;
	display: none;
}
.no-results.not-found {
	display: block;
	padding: 48px 16px;
}

/* ==========================================================================
   23. Sidebar (Legacy fallback)
   ========================================================================== */
.sidebar {
	display: none;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	min-width: 0;
}
.widget-title {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
	color: var(--heading);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.widget ul li {
	padding: 6px 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.9375rem;
}
.widget ul li:last-child { border-bottom: none; }

.popular-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}
.popular-item {
	display: flex;
	gap: 12px;
	min-width: 0;
}
.popular-item img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}
.popular-item h4 {
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--heading);
}

.category-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}
.category-list li a {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.9375rem;
	font-family: var(--font-body);
	transition: color 0.2s, padding-left 0.2s;
}
.category-list li:last-child a { border-bottom: none; }
.category-list li a:hover {
	color: var(--primary);
	padding-left: 4px;
}

.about-widget p {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--muted);
	line-height: 1.6;
}

/* ==========================================================================
   24. Footer
   ========================================================================== */
.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding: 48px 0 24px;
	margin-top: 48px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	margin-bottom: 32px;
}
.footer-col h4 {
	font-family: var(--font-heading);
	font-size: 1rem;
	margin-bottom: 16px;
	color: var(--heading);
}
.footer-brand {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 12px;
}
.footer-tagline {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--muted);
	line-height: 1.6;
}
.footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
}
.footer-links a {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--muted);
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 24px;
	text-align: center;
	font-size: 0.875rem;
	color: var(--muted);
	font-family: var(--font-body);
}

.footer-widget-title {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--heading);
}

/* ==========================================================================
   25. Tags & Pagination (legacy)
   ========================================================================== */
.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 24px 0;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.tag-link {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 3px 9px;
	border-radius: 4px;
	color: var(--muted);
}
.tag-link:hover {
	color: var(--primary);
	border-color: var(--primary);
}

.pagination ul,
.home-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 24px;
	padding: 0;
}
.pagination li a,
.pagination li span,
.home-pagination li a,
.home-pagination li span {
	padding: 7px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 0.875rem;
	background: var(--background);
	display: inline-block;
	font-family: var(--font-body);
}
.pagination li span.current,
.home-pagination li span.current {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

/* ==========================================================================
   26. Comments (legacy blog comments)
   ========================================================================== */
.comments-area {
	margin: 32px 0;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}
.comments-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	margin-bottom: 20px;
}
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.comment-list ol.children {
	list-style: none;
	margin-left: 24px;
	padding: 0;
}
.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}
.comment-author {
	font-weight: 600;
	margin-bottom: 6px;
}
.comment-meta {
	font-size: 0.8125rem;
	color: var(--muted);
	margin-bottom: 10px;
}
.comment-content { font-size: 0.9375rem; }
.comment-respond {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond input[type="number"],
.comment-respond textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 1rem;
	margin-bottom: 12px;
	background: var(--background);
}
.comment-respond input:focus,
.comment-respond textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-soft);
}
.comment-respond label {
	display: block;
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 6px;
}
.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}
.comment-form-cookies-consent input { width: auto; margin: 0; }
.comment-form-cookies-consent label { margin: 0; }

/* ==========================================================================
   27. WordPress core alignment classes
   ========================================================================== */
.alignleft {
	float: left;
	margin: 4px 20px 20px 0;
}
.alignright {
	float: right;
	margin: 4px 0 20px 20px;
}
.aligncenter {
	display: block;
	margin: 20px auto;
}
.wp-caption {
	max-width: 100%;
	margin-bottom: 16px;
}
.wp-caption-text {
	font-size: 0.8125rem;
	color: var(--muted);
	text-align: center;
	padding-top: 6px;
	font-style: italic;
}
.screen-reader-text {
	position: absolute;
	left: -9999px;
}

/* ==========================================================================
   28. Responsive Breakpoints
   ========================================================================== */

@media (min-width: 768px) {
	h1 { font-size: 1.75rem; }
	h2 { font-size: 1.5rem; }

	.main-nav { display: block; }
	.menu-toggle { display: none; }

	.featured-grid {
		grid-template-columns: 2fr 1fr;
	}
	.featured-main img { height: 320px; }

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.content-wrapper {
		flex-direction: row;
		align-items: flex-start;
	}
	.main-content {
		flex: 1;
		min-width: 0;
	}
	.sidebar {
		display: flex;
		width: 300px;
		flex-shrink: 0;
		position: sticky;
		top: 80px;
		max-height: calc(100vh - 100px);
		overflow-y: auto;
	}

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

@media (min-width: 1280px) {
	.container { padding: 0 24px; }
}

/* ==========================================================================
   29. Mobile refinements (< 640px)
   ========================================================================== */
@media (max-width: 639px) {
	.bt-home-wrap {
		padding: 16px 12px 40px;
	}
	.bt-home-main .post-card img {
		height: 180px;
	}
	.bt-home-main .post-card-body {
		padding: 14px 16px;
	}
	.bt-home-main .post-card h3 {
		font-size: 0.9375rem;
	}
	.bt-section-title {
		font-size: 1.125rem;
		padding-left: 12px;
	}
	.bt-section-title::before {
		width: 3px;
		height: 18px;
	}
	.bt-home-grid .sidebar .widget {
		padding: 14px;
	}
	.bt-archive-header {
		padding: 16px 16px 14px 18px;
	}
	.bt-archive-title {
		font-size: 1.25rem;
	}
}

/* ==========================================================================
   30. Tablet refinements (768-1023)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
	.bt-home-grid .sidebar {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
}

/* ==========================================================================
   31. Ultimate SVG safety net for buttons
   ========================================================================== */
button svg,
.bt-qa-vote-btn svg,
.bt-qa-home-vote-btn svg,
.bt-qa-best-btn svg {
	pointer-events: none;
	flex-shrink: 0;
}
button svg:not([fill]),
.bt-qa-vote-btn svg:not([fill]) {
	fill: none;
	stroke: currentColor;
}

/* ==========================================================================
   32. Breadcrumb (kept for backward compatibility)
   ========================================================================== */
.breadcrumb {
	padding: 14px 0;
	font-size: 0.8125rem;
	color: var(--muted);
}
.breadcrumb ol {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.breadcrumb li {
	display: inline-flex !important;
	align-items: center;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.breadcrumb li::before,
.breadcrumb li::marker {
	display: none !important;
	content: none !important;
}
.breadcrumb li + li::before {
	content: '›' !important;
	display: inline-block !important;
	margin: 0 6px 0 0 !important;
	color: var(--muted);
	opacity: 0.6;
	line-height: 1;
}
.breadcrumb a {
	color: var(--muted);
	text-decoration: none;
}
.breadcrumb a:hover {
	color: var(--primary);
}
.breadcrumb li[aria-current="page"] {
	color: var(--text);
	font-weight: 500;
}