/* Blog Listing & Details Styles */

/* ========================================
   TEXT UTILITIES (Define first)
   ======================================== */
.fb-clamp2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fb-clamp3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.italic-gradient {
	font-style: italic;
	background: linear-gradient(90deg, #8b5cf6, #22d3ee);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
#blog-main,
.blog-listing-main {
	background: #0a0a0f !important;
	min-height: 100vh;
	color: #f5f5f7 !important;
	padding: 0;
	width: 100%;
	overflow-x: hidden;
}

/* ========================================
   HEADER SECTION (Blog Listing)
   ======================================== */
.blog-header {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 32px 36px;
	width: 100%;
	box-sizing: border-box;
	background: #0a0a0f !important;
}

.header-tag {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.header-tag-bar {
	width: 3px;
	height: 14px;
	background: linear-gradient(180deg, #7c3aed, #22d3ee);
	border-radius: 2px;
}

.header-tag-text {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #a78bfa !important;
	text-transform: uppercase;
}

.blog-header h1 {
	font-family: var(--font-heading), sans-serif;
	font-weight: 800;
	font-size: 44px;
	line-height: 1.1;
	margin: 0 0 16px;
	color: #fff !important;
	letter-spacing: -0.02em;
}

.blog-header h1 .italic-gradient {
	font-style: italic;
	/*background: linear-gradient(90deg, #8b5cf6, #22d3ee) !important;
	-webkit-background-clip: text;
	background-clip: text;*/
	color: transparent !important;
}

.blog-header p {
	font-size: 17.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.95) !important;
	max-width: 600px;
	margin: 0;
}

/* ========================================
   FEATURED POST
   ======================================== */
.featured-post {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px 40px;
	width: 100%;
	box-sizing: border-box;
	background: #0a0a0f !important;
}

.featured-card {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 0;
	background: #12141c !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.2s, transform 0.2s;
}

.featured-card:hover {
	border-color: rgba(255, 255, 255, 0.20) !important;
}

.featured-image {
	aspect-ratio: 16/10;
	background: linear-gradient(135deg, #7c3aed, #3b82f6);
}

.featured-content {
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #12141c !important;
}

.category-badge {
	align-self: flex-start;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(59, 130, 246, 0.15) !important;
	color: #60a5fa !important;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.featured-title {
	font-size: 24px;
	font-weight: 800;
	color: #fff !important;
	line-height: 1.25;
	margin-bottom: 12px;
}

.featured-excerpt {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.95) !important;
	line-height: 1.6;
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.featured-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.author-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed, #3b82f6) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #fff !important;
	flex: none;
}

.author-info {
	font-size: 13px;
	color: rgba(255, 255, 255, 1.0) !important;
}

/* ========================================
   SEARCH & FILTERS
   ======================================== */
.search-filters {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px 8px;
	width: 100%;
	box-sizing: border-box;
	background: #0a0a0f !important;
}

.search-box {
	position: relative;
	margin-bottom: 18px;
	width: 100%;
}

.search-box svg {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: rgba(255, 255, 255, 1.0) !important;
}

.search-input {
	width: 100%;
	display: block;
	background: #12141c !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 12px;
	padding: 15px 18px 15px 46px;
	color: #fff !important;
	font-size: 14.5px;
	font-family: var(--font-body), system-ui, sans-serif;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.search-input:focus {
	border-color: rgba(255, 255, 255, 0.20) !important;
	background: #12141c !important;
	color: #fff !important;
}

.search-input::placeholder {
	color: rgba(255, 255, 255, 1.0) !important;
}

.filter-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 10px;
	margin-bottom: 6px;
	scroll-behavior: smooth;
}

.filter-chips::-webkit-scrollbar {
	height: 4px;
}

.filter-chips::-webkit-scrollbar-track {
	background: transparent;
}

.filter-chips::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
}

.chip {
	background: transparent;
	color: rgba(255, 255, 255, 1.0);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 13px;
	font-weight: 500;
	padding: 9px 16px;
	border-radius: 999px;
	white-space: nowrap;
	cursor: pointer;
	flex: none;
	transition: all 0.2s;
}

.chip:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.20);
}

.chip.active {
	background: linear-gradient(90deg, #7c3aed, #22d3ee);
	color: #fff;
	border: 1px solid transparent;
	font-weight: 600;
}

.result-count {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 1.0);
	margin-bottom: 24px;
}

.result-count-value {
	color: #fff;
	font-weight: 700;
}

/* ========================================
   BLOG GRID
   ======================================== */
.blog-grid-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px 40px;
	width: 100%;
	box-sizing: border-box;
	background: #0a0a0f !important;
}

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

.blog-card {
	text-decoration: none;
	background: #12141c !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.2s;
	color: inherit !important;
}

.blog-card:hover {
	border-color: rgba(255, 255, 255, 0.20) !important;
	transform: translateY(-3px);
}

.blog-card-image {
	aspect-ratio: 16/9;
	background: linear-gradient(135deg, #7c3aed, #3b82f6);
}

.blog-card-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-category {
	align-self: flex-start;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.blog-title {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	line-height: 1.35;
	margin-bottom: 8px;
}

.blog-excerpt {
	font-size: 13px;
	color: rgba(255, 255, 255, 1.0);
	line-height: 1.55;
	margin-bottom: 16px;
	flex: 1;
}

.blog-card-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.95);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 14px;
}

.small-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed, #3b82f6);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 700;
	color: #fff;
	flex: none;
}

.no-results {
	text-align: center;
	padding: 60px 20px;
	color: rgba(255, 255, 255, 1.0);
	font-size: 14.5px;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px 90px;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: transparent;
	color: rgba(255, 255, 255, 1.0);
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 13px;
}

.pagination a:hover:not(.page-numbers.current) {
	background: rgba(255, 255, 255, 0.06);
}

.pagination .page-numbers.current,
.pagination .page-numbers.current:hover {
	background: linear-gradient(90deg, #7c3aed, #3b82f6);
	border: none;
	color: #fff;
}

.pagination .next,
.pagination .prev {
	width: auto;
	padding: 0 12px;
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 960px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.featured-card {
		grid-template-columns: 1fr;
	}

	.featured-image {
		aspect-ratio: 16/10;
	}
}

@media (max-width: 620px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}

	.blog-header h1 {
		font-size: 28px;
	}

	.featured-title {
		font-size: 18px;
	}

	.filter-chips {
		gap: 6px;
	}

	.chip {
		font-size: 12px;
		padding: 8px 14px;
	}
}
