/**
 * Modern Single Post Styles
 * 
 * Beautiful, responsive design for blog post pages
 * with enhanced typography, spacing, and UI elements.
 * Optimized for CLS and LCP performance.
 */

/* ============================================
   CLS & LCP Optimizations
   ============================================ */

/* Prevent layout shifts from fonts */
.modern-post-title,
.modern-entry-content {
	font-display: swap;
}

/* Reserve space for dynamic content */
.modern-post-meta,
.modern-author-box,
.modern-tag-pills {
	contain: layout style;
}

/* Optimize rendering performance */
.modern-featured-image-wrapper,
.modern-entry-content img {
	will-change: transform;
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
}

/* ============================================
   Container & Layout
   ============================================ */

.modern-single-post {
	margin-bottom: 0;
}

.modern-post-wrapper {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 10px;
	box-sizing: border-box;
}

/* Ensure proper layout when sidebar is present - don't override GeneratePress layout */
body:not(.no-sidebar) .modern-post-wrapper {
	max-width: 100%;
}

/* Make sure our wrapper doesn't break the sidebar layout */
.single .content-area .modern-post-wrapper {
	max-width: 100%;
}

/* Ensure sidebar is visible and properly displayed */
.single .widget-area,
.single .sidebar,
.single .is-right-sidebar,
.single .is-left-sidebar,
.single [class*="right-sidebar"],
.single [class*="left-sidebar"] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Don't interfere with GeneratePress's content area width calculations */
/* GeneratePress handles the width automatically based on sidebar layout */

/* Ensure inside-article doesn't break layout */
.single .inside-article {
	max-width: 100%;
}

/* Grid Container */
.grid-container {
	max-width: -webkit-fill-available;
}

/* Hide default GeneratePress featured images on single posts */
.modern-single-post .featured-image,
.modern-single-post .post-image,
.modern-single-post .page-header-image {
	display: none !important;
}

/* ============================================
   Featured Image
   ============================================ */

.modern-featured-image-wrapper {
	position: relative;
	width: 100%;
	margin-top: 1.5rem;
	margin-bottom: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	/* CLS Prevention: Reserve space with aspect-ratio */
	aspect-ratio: 16 / 9;
	/* Fallback for older browsers */
	height: 0;
	padding-bottom: 56.25%; /* 9/16 = 0.5625 */
	contain: layout style paint;
	will-change: contents;
}

/* Modern browsers with aspect-ratio support */
@supports (aspect-ratio: 16 / 9) {
	.modern-featured-image-wrapper {
		height: auto;
		padding-bottom: 0;
	}
}

.modern-featured-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
	/* Prevent layout shift during load */
	background-color: #f1f5f9;
	/* Optimize image rendering */
	image-rendering: auto;
	/* LCP optimization */
	content-visibility: auto;
}

.modern-featured-image-wrapper:hover .modern-featured-image {
	transform: scale(1.02);
}

/* ============================================
   Entry Header
   ============================================ */

.modern-entry-header {
	margin-bottom: 1.5rem;
}

/* Category Badges */
.modern-post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 1.5rem;
	margin-bottom: 2rem;
	justify-content: center;
}

.modern-category-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modern-category-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
	color: #ffffff;
	text-decoration: none;
}

/* Post Title - Modern Design */
.modern-post-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 1rem 0;
	color: #1a202c;
	letter-spacing: -0.02em;
	text-transform: capitalize;
	position: relative;
	padding-bottom: 0.5rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	transition: all 0.3s ease;
}

.modern-post-title::first-letter {
	text-transform: uppercase;
	font-size: 1.1em;
}

.modern-post-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 4px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 2px;
}

/* Post Meta */
.modern-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding: 0;
}

.modern-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: #64748b;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.01em;
	position: relative;
	padding: 0.375rem 0.75rem;
	margin: 0;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(139, 92, 246, 0.02) 100%);
	border: 1px solid rgba(102, 126, 234, 0.08);
	border-radius: 20px;
	backdrop-filter: blur(8px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: default;
}

.modern-meta-item::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

.modern-meta-item:hover {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
	border-color: rgba(102, 126, 234, 0.2);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.modern-meta-item:hover::before {
	opacity: 1;
}

.modern-meta-item:not(:last-child)::after {
	display: none;
}

.modern-meta-item svg {
	flex-shrink: 0;
	color: #667eea;
	width: 17px;
	height: 17px;
	opacity: 0.85;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	filter: drop-shadow(0 1px 2px rgba(102, 126, 234, 0.15));
}

.modern-meta-item:hover svg {
	opacity: 1;
	transform: scale(1.12) rotate(2deg);
	filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.25));
}

.modern-meta-text {
	color: #475569;
	font-weight: 500;
	letter-spacing: -0.01em;
	transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-meta-item:hover .modern-meta-text {
	color: #1e293b;
}

.modern-meta-item time {
	color: inherit;
	font-weight: inherit;
}

.modern-meta-avatar {
	border-radius: 50%;
	width: 30px;
	height: 30px;
	object-fit: cover;
	border: 2.5px solid #ffffff;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15), 0 0 0 2px rgba(102, 126, 234, 0.08);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.modern-meta-avatar::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea, #8b5cf6);
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

.modern-author-link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
	color: #64748b;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0.375rem 0.75rem;
	margin: 0;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(139, 92, 246, 0.02) 100%);
	border: 1px solid rgba(102, 126, 234, 0.08);
	border-radius: 20px;
	backdrop-filter: blur(8px);
	position: relative;
}

.modern-author-link::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

.modern-author-link:hover {
	color: #667eea;
	text-decoration: none;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(139, 92, 246, 0.06) 100%);
	border-color: rgba(102, 126, 234, 0.25);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.18), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.modern-author-link:hover::before {
	opacity: 1;
}

.modern-author-link:hover .modern-meta-avatar {
	border-color: #ffffff;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25), 0 0 0 3px rgba(102, 126, 234, 0.12);
	transform: scale(1.08);
}

.modern-author-link:hover .modern-meta-avatar::after {
	opacity: 0.2;
}

.modern-author-link .modern-meta-text {
	color: inherit;
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* Tag Pills */
.modern-tag-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.modern-tag-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.75rem;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.3s ease;
	border: 1px solid #e2e8f0;
}

.modern-tag-pill svg {
	flex-shrink: 0;
	color: #667eea;
}

.modern-tag-pill:hover {
	background: #667eea;
	color: #ffffff;
	border-color: #667eea;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
	text-decoration: none;
}

.modern-tag-pill:hover svg {
	color: #ffffff;
}

/* ============================================
   Entry Content
   ============================================ */

.modern-entry-content {
	font-size: 1.125rem;
	line-height: 1.9;
	color: #334155;
	margin-bottom: 3rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	letter-spacing: 0.01em;
}

.modern-entry-content p {
	margin-bottom: 1rem;
	color: #475569;
	font-size: 1.125rem;
	line-height: 1.9;
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	word-spacing: 0.05em;
	transition: color 0.3s ease;
}

.modern-entry-content p:first-of-type {
	font-size: 1.25rem;
	line-height: 1.85;
	color: #1e293b;
	font-weight: 400;
	letter-spacing: 0.02em;
	margin-bottom: 1.25rem;
}

.modern-entry-content p:last-of-type {
	margin-bottom: 0;
}

/* Modern Heading Styles */
.modern-entry-content h1,
.modern-entry-content h2,
.modern-entry-content h3,
.modern-entry-content h4,
.modern-entry-content h5,
.modern-entry-content h6 {
	font-weight: 700;
	line-height: 30px;
	margin-top: 5px;
	margin-bottom: 5px;
	color: #1a202c;
	text-transform: capitalize;
	position: relative;
	padding-left: 0.75rem;
	padding-bottom: 0.5rem;
	border-left: 4px solid transparent;
	transition: all 0.3s ease;
}

.modern-entry-content h1::first-letter,
.modern-entry-content h2::first-letter,
.modern-entry-content h3::first-letter,
.modern-entry-content h4::first-letter,
.modern-entry-content h5::first-letter,
.modern-entry-content h6::first-letter {
	text-transform: uppercase;
	font-size: 1.15em;
	color: #667eea;
	font-weight: 800;
}

.modern-entry-content h1 {
	font-size: 2.5rem;
	border-left-color: #667eea;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
	padding: 0.75rem 1rem;
	border-radius: 8px;
	margin-left: -1rem;
	margin-right: -1rem;
}

.modern-entry-content h2 {
	font-size: 2rem;
	border-left-color: #667eea;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
	padding: 0.625rem 0.875rem;
	border-radius: 6px;
	margin-left: -0.875rem;
	margin-right: -0.875rem;
}

.modern-entry-content h3 {
	font-size: 1.75rem;
	border-left-color: #764ba2;
	padding-left: 0.875rem;
}

.modern-entry-content h4 {
	font-size: 18px;
	border-left-color: #764ba2;
	padding-left: 0.875rem;
	font-weight: bolder;
}

.modern-entry-content h5 {
	font-size: 1.25rem;
	border-left-color: #a78bfa;
	padding-left: 0.75rem;
}

.modern-entry-content h6 {
	font-size: 1.125rem;
	border-left-color: #a78bfa;
	padding-left: 0.75rem;
	font-weight: 600;
}

/* Hover effects for headings */
.modern-entry-content h1:hover,
.modern-entry-content h2:hover,
.modern-entry-content h3:hover,
.modern-entry-content h4:hover {
	border-left-width: 6px;
	padding-left: calc(1rem - 2px);
	transform: translateX(4px);
}

.modern-entry-content h1:hover {
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.modern-entry-content h2:hover {
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* Modern List Styles - Enhanced Design */
.modern-entry-content ul,
.modern-entry-content ol {
	margin: 2rem 0;
	padding-left: 0;
	list-style: none;
	position: relative;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
	padding: 1.5rem 1rem;
	border-radius: 12px;
	border: 1px solid rgba(102, 126, 234, 0.1);
}

.modern-entry-content ul {
	counter-reset: list-counter;
}

.modern-entry-content ul li {
	position: relative;
	padding: 0.75rem 0 0.75rem 2.75rem;
	margin-bottom: 10px;
	color: #334155;
	line-height: 30px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-left: 5px solid transparent;
	background: rgb(255 255 255 / 50%);
	border-radius: 8px;
	padding-left: 45px;
	padding-right: 10px;
	padding-top: 10px;
	padding-bottom: 5px;
}

.modern-entry-content ul li:last-child {
	margin-bottom: 0;
}

.modern-entry-content ul li::before {
	content: '✓';
	position: absolute;
	left: 8px;
	top: 10px;
	width: 28px;
	height: 28px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform: rotate(0deg) scale(1);
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.modern-entry-content ul li:hover {
	border-left-color: #667eea;
	padding-left: 50px;
	background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
	border-radius: 8px;
	margin-left: -0.5rem;
	margin-right: -0.5rem;
	transform: translateX(6px);
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
	border-left-width: 5px;
}

.modern-entry-content ul li:hover::before {
	transform: rotate(360deg) scale(1.15);
	box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Nested unordered lists */
.modern-entry-content ul ul,
.modern-entry-content ol ol {
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
	margin-left: 1.5rem;
	background: rgba(118, 75, 162, 0.03);
	border: 1px solid rgba(118, 75, 162, 0.08);
	padding: 1rem 0.75rem;
}

.modern-entry-content ul ul li {
	background: rgba(255, 255, 255, 0.4);
}

.modern-entry-content ul ul li::before {
	content: '▶';
	background: linear-gradient(135deg, #764ba2 0%, #a78bfa 100%);
	width: 24px;
	height: 24px;
	font-size: 0.7rem;
	top: 0.7rem;
	left: 0.4rem;
	border: 2px solid rgba(255, 255, 255, 0.25);
}

.modern-entry-content ul ul ul li::before {
	content: '●';
	background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
	width: 20px;
	height: 20px;
	font-size: 0.55rem;
	top: 0.65rem;
	left: 0.45rem;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.25);
}

/* Ordered lists - Enhanced numbered style */
.modern-entry-content ol {
	counter-reset: ordered-counter;
}

.modern-entry-content ol li {
	position: relative;
	padding: 0.75rem 0 0.75rem 3.5rem;
	margin-bottom: 0.75rem;
	color: #334155;
	line-height: 1.85;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-left: 3px solid transparent;
	counter-increment: ordered-counter;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	padding-left: 3.75rem;
	padding-right: 1rem;
	padding-top: 0.875rem;
	padding-bottom: 0.875rem;
}

.modern-entry-content ol li:last-child {
	margin-bottom: 0;
}

.modern-entry-content ol li::before {
	content: counter(ordered-counter);
	position: absolute;
	left: 0.5rem;
	top: 0.75rem;
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9375rem;
	box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid rgba(255, 255, 255, 0.3);
	transform: rotate(0deg);
}

.modern-entry-content ol li:hover {
	border-left-color: #667eea;
	padding-left: 4rem;
	background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
	border-radius: 8px;
	margin-left: -0.5rem;
	margin-right: -0.5rem;
	transform: translateX(6px);
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
	border-left-width: 4px;
}

.modern-entry-content ol li:hover::before {
	transform: scale(1.15) rotate(-8deg);
	box-shadow: 0 8px 28px rgba(102, 126, 234, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Nested ordered lists */
.modern-entry-content ol ol {
	counter-reset: ordered-counter-nested;
	background: rgba(118, 75, 162, 0.03);
	border: 1px solid rgba(118, 75, 162, 0.08);
	padding: 1rem 0.75rem;
}

.modern-entry-content ol ol li {
	counter-increment: ordered-counter-nested;
	padding-left: 3.25rem;
	background: rgba(255, 255, 255, 0.4);
}

.modern-entry-content ol ol li::before {
	content: counter(ordered-counter-nested, lower-alpha);
	background: linear-gradient(135deg, #764ba2 0%, #a78bfa 100%);
	width: 32px;
	height: 32px;
	font-size: 0.875rem;
	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	left: 0.4rem;
	top: 0.7rem;
	box-shadow: 0 3px 10px rgba(118, 75, 162, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modern-entry-content ol ol ol li::before {
	content: counter(ordered-counter-nested, lower-roman);
	background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
	width: 30px;
	height: 30px;
	font-size: 0.8125rem;
	border-radius: 7px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	left: 0.45rem;
	top: 0.65rem;
	box-shadow: 0 3px 10px rgba(167, 139, 250, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* List items with links */
.modern-entry-content li a {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	border-bottom: 2px solid rgba(102, 126, 234, 0.2);
	padding-bottom: 2px;
	background: linear-gradient(120deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
	padding: 0.2em 0.4em;
	border-radius: 4px;
	display: inline-block;
}

.modern-entry-content li a:hover {
	color: #764ba2;
	border-bottom-color: #764ba2;
	text-decoration: none;
	background: linear-gradient(120deg, rgba(118, 75, 162, 0.15) 0%, rgba(118, 75, 162, 0.08) 100%);
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(118, 75, 162, 0.2);
}

/* List spacing improvements */
.modern-entry-content ul + p,
.modern-entry-content ol + p,
.modern-entry-content p + ul,
.modern-entry-content p + ol {
	margin-top: 1.5rem;
}

/* Enhanced list container effects */
.modern-entry-content ul:not(:last-child),
.modern-entry-content ol:not(:last-child) {
	margin-bottom: 2.5rem;
}

/* List item focus states for accessibility */
.modern-entry-content li:focus-within {
	outline: 2px solid rgba(102, 126, 234, 0.5);
	outline-offset: 4px;
	border-radius: 6px;
}

/* Smooth entrance animation for lists */
@keyframes listItemFadeIn {
	from {
		opacity: 0;
		transform: translateX(-10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.modern-entry-content ul li,
.modern-entry-content ol li {
	animation: listItemFadeIn 0.4s ease-out;
}

.modern-entry-content ul li:nth-child(1) { animation-delay: 0.05s; }
.modern-entry-content ul li:nth-child(2) { animation-delay: 0.1s; }
.modern-entry-content ul li:nth-child(3) { animation-delay: 0.15s; }
.modern-entry-content ul li:nth-child(4) { animation-delay: 0.2s; }
.modern-entry-content ul li:nth-child(5) { animation-delay: 0.25s; }
.modern-entry-content ul li:nth-child(n+6) { animation-delay: 0.3s; }

.modern-entry-content ol li:nth-child(1) { animation-delay: 0.05s; }
.modern-entry-content ol li:nth-child(2) { animation-delay: 0.1s; }
.modern-entry-content ol li:nth-child(3) { animation-delay: 0.15s; }
.modern-entry-content ol li:nth-child(4) { animation-delay: 0.2s; }
.modern-entry-content ol li:nth-child(5) { animation-delay: 0.25s; }
.modern-entry-content ol li:nth-child(n+6) { animation-delay: 0.3s; }

/* Modern Text Elements */
.modern-entry-content strong,
.modern-entry-content b {
	font-weight: 700;
	color: #1a202c;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
	padding: 0.15em 0.3em;
	border-radius: 4px;
}

.modern-entry-content em,
.modern-entry-content i {
	font-style: italic;
	color: #475569;
	font-weight: 500;
}

.modern-entry-content mark {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	color: #92400e;
	padding: 0.15em 0.3em;
	border-radius: 4px;
	font-weight: 500;
}

.modern-entry-content a {
	color: #667eea;
	text-decoration: none;
	border-bottom: 2px solid rgba(102, 126, 234, 0.3);
	padding-bottom: 2px;
	transition: all 0.3s ease;
	font-weight: 500;
	position: relative;
}

.modern-entry-content a:hover {
	color: #764ba2;
	border-bottom-color: #764ba2;
	border-bottom-width: 3px;
	padding-bottom: 1px;
}

.modern-entry-content a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	transition: width 0.3s ease;
}

.modern-entry-content a:hover::after {
	width: 100%;
}

.modern-entry-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid #667eea;
	background: #f8fafc;
	border-radius: 8px;
	font-style: italic;
	color: #475569;
}

.modern-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 2rem auto;
	display: block;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	/* CLS Prevention */
	object-fit: contain;
	/* Prevent layout shift during load */
	background-color: #f8fafc;
	/* Optimize rendering */
	image-rendering: auto;
}

	/* Ensure images with width/height attributes don't cause CLS */
.modern-entry-content img[width][height] {
	height: auto;
	max-width: 100%;
	display: block;
}

/* Center images that don't fit the container width */
.modern-entry-content figure,
.modern-entry-content .wp-block-image,
.modern-entry-content .aligncenter,
.modern-entry-content .alignnone {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.modern-entry-content figure img,
.modern-entry-content .wp-block-image img {
	margin-left: auto;
	margin-right: auto;
}

.modern-entry-content code {
	background: #f1f5f9;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-size: 0.9em;
	color: #e11d48;
}

.modern-entry-content pre {
	background: #1e293b;
	color: #e2e8f0;
	padding: 1rem;
	border-radius: 12px;
	overflow-x: auto;
	margin: 1.5rem 0;
}

.modern-entry-content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

/* Enhanced Modern Table Styles */
.modern-entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 2.5rem 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
	background: #ffffff;
	border: 2px solid rgba(102, 126, 234, 0.1);
	position: relative;
}

.modern-entry-content table::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #a78bfa 100%);
}

.modern-entry-content table thead {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	position: relative;
}

.modern-entry-content table thead::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.modern-entry-content table thead th {
	padding: 1rem 1.25rem;
	text-align: left;
	font-weight: 700;
	font-size: 0.9375rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffffff;
	border-bottom: none;
	position: relative;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.modern-entry-content table thead th:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 20%;
	bottom: 20%;
	width: 1px;
	background: rgba(255, 255, 255, 0.2);
}

.modern-entry-content table thead th:hover {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.modern-entry-content table thead th:first-child {
	border-top-left-radius: 16px;
}

.modern-entry-content table thead th:last-child {
	border-top-right-radius: 16px;
}

.modern-entry-content table tbody tr {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-bottom: 1px solid rgba(226, 232, 240, 0.6);
	position: relative;
}

.modern-entry-content table tbody tr:last-child {
	border-bottom: none;
}

.modern-entry-content table tbody tr:last-child td:first-child {
	border-bottom-left-radius: 16px;
}

.modern-entry-content table tbody tr:last-child td:last-child {
	border-bottom-right-radius: 16px;
}

.modern-entry-content table tbody tr:hover {
	background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
	transform: translateX(4px) scale(1.002);
	box-shadow: inset 4px 0 0 #667eea, 0 4px 16px rgba(102, 126, 234, 0.15);
	border-left: 4px solid #667eea;
	margin-left: -4px;
	z-index: 1;
}

.modern-entry-content table tbody tr:nth-child(even) {
	background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
}

.modern-entry-content table tbody tr:nth-child(even):hover {
	background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.modern-entry-content table tbody td {
	padding: 1rem 1.25rem;
	color: #334155;
	font-size: 0.9375rem;
	line-height: 1.7;
	border-right: 1px solid rgba(226, 232, 240, 0.5);
	transition: all 0.3s ease;
	position: relative;
}

.modern-entry-content table tbody td:last-child {
	border-right: none;
}

.modern-entry-content table tbody tr:hover td {
	color: #1a202c;
	font-weight: 500;
}

.modern-entry-content table tbody td strong,
.modern-entry-content table tbody td b {
	color: #667eea;
	font-weight: 700;
}

.modern-entry-content table tfoot {
	background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
	border-top: 3px solid rgba(102, 126, 234, 0.2);
	position: relative;
}

.modern-entry-content table tfoot::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.3) 50%, transparent 100%);
}

.modern-entry-content table tfoot td {
	padding: 1rem 1.25rem;
	font-weight: 700;
	color: #1a202c;
	font-size: 0.9375rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Table animations and effects */
@keyframes tableRowFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modern-entry-content table tbody tr {
	animation: tableRowFadeIn 0.4s ease-out;
}

.modern-entry-content table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.modern-entry-content table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.modern-entry-content table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.modern-entry-content table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.modern-entry-content table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.modern-entry-content table tbody tr:nth-child(n+6) { animation-delay: 0.3s; }

/* Table cell hover effects */
.modern-entry-content table tbody td:hover {
	background: rgba(102, 126, 234, 0.05);
	color: #667eea;
	font-weight: 600;
}

/* Table links */
.modern-entry-content table a {
	color: #667eea;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(102, 126, 234, 0.3);
	transition: all 0.3s ease;
}

.modern-entry-content table a:hover {
	color: #764ba2;
	border-bottom-color: #764ba2;
}

/* Responsive tables - Desktop (default table layout) */
@media (min-width: 769px) {
	.modern-entry-content table {
		display: table;
		white-space: normal;
		width: 100%;
	}

	.modern-entry-content table thead th,
	.modern-entry-content table tbody td,
	.modern-entry-content table tfoot td {
		white-space: normal;
	}

	.modern-entry-content .wp-block-table::after,
	.modern-entry-content .table-wrapper::after {
		display: none;
	}
}

/* Table wrapper for better mobile experience */
.modern-entry-content .wp-block-table,
.modern-entry-content .table-wrapper {
	overflow-x: auto;
	margin: 2.5rem 0;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.modern-entry-content .wp-block-table table,
.modern-entry-content .table-wrapper table {
	margin: 0;
	border-radius: 16px;
}

/* Page Links */
.modern-page-links {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e2e8f0;
}

.modern-page-links-title {
	font-weight: 600;
	color: #1a202c;
	margin-right: 1rem;
}

.modern-page-links .page-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin: 0.25rem;
	background: #f1f5f9;
	color: #667eea;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.modern-page-links .page-link:hover {
	background: #667eea;
	color: #ffffff;
	text-decoration: none;
}

/* ============================================
   Author Box
   ============================================ */

.modern-author-box {
	margin-top: 2.5rem;
	padding: 1.25rem;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 16px;
	border: 1px solid #e2e8f0;
}

.modern-author-box-inner {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

.modern-author-avatar-link {
	flex-shrink: 0;
	display: block;
}

.modern-author-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.modern-author-avatar-link:hover .modern-author-avatar {
	transform: scale(1.05);
}

.modern-author-info {
	flex: 1;
}

.modern-author-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
}

.modern-author-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a202c;
	text-decoration: none;
	transition: color 0.3s ease;
}

.modern-author-name:hover {
	color: #667eea;
	text-decoration: none;
}

.modern-author-label {
	font-size: 0.875rem;
	color: #64748b;
	background: #ffffff;
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-weight: 500;
}

.modern-author-description {
	color: #475569;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.modern-author-link-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.25rem;
	background: #667eea;
	color: #ffffff;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.9375rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modern-author-link-button:hover {
	background: #764ba2;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
	text-decoration: none;
}

.modern-author-link-button svg {
	transition: transform 0.3s ease;
}

.modern-author-link-button:hover svg {
	transform: translateX(4px);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and Small Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
	.modern-post-wrapper {
		padding: 0 20px;
	}

	.modern-post-title {
		font-size: 2.5rem;
	}

	.modern-entry-content {
		font-size: 1.0625rem;
	}

	.modern-entry-content p {
		font-size: 1.0625rem;
	}

	.modern-related-posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.wp-tts-container {
		padding: 1.25rem;
	}

	.wp-tts-controls {
		flex-wrap: wrap;
		gap: 1rem;
	}
}

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
	.modern-post-wrapper {
		padding: 0 30px;
	}

	.modern-post-title {
		font-size: 3rem;
	}

	.modern-entry-content {
		font-size: 1.125rem;
		max-width: 100%;
	}

	.modern-related-posts-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}

	.wp-tts-container {
		padding: 1.5em;
	}
}

@media (max-width: 768px) {
	.modern-post-wrapper {
		padding: 0 15px;
		margin-left: 8px;
	}

	.modern-featured-image-wrapper {
		margin-bottom: 2rem;
		border-radius: 12px;
		margin-top: 1rem;
	}

	.modern-post-title {
		font-size: 2rem;
		margin-bottom: 1rem;
		padding-bottom: 0.75rem;
		line-height: 1.3;
	}

	.modern-post-title::after {
		width: 40px;
		height: 3px;
	}

	.modern-post-meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.5rem;
		margin-bottom: 1.25rem;
	}

	.modern-meta-item,
	.modern-author-link {
		width: auto;
		flex: 0 0 auto;
		justify-content: center;
		padding: 0.4rem 0.75rem;
		font-size: 0.8125rem;
		min-height: auto;
	}

	.modern-meta-item svg {
		width: 14px;
		height: 14px;
		flex-shrink: 0;
	}

	.modern-meta-avatar {
		width: 24px;
		height: 24px;
		flex-shrink: 0;
	}

	.modern-meta-text {
		font-size: 0.8125rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 120px;
	}

	.modern-meta-share {
		width: auto;
		flex: 0 0 auto;
		justify-content: center;
		margin-left: auto;
	}

	.modern-post-categories {
		margin: 1rem 0;
		gap: 0.5rem;
	}

	.modern-category-badge {
		font-size: 0.8125rem;
		padding: 0.4rem 0.875rem;
	}

	.modern-tag-pills {
		margin-top: 1.5rem;
		margin-bottom: 1.5rem;
		gap: 0.5rem;
	}

	.modern-tag-pill {
		font-size: 0.8125rem;
		padding: 0.35rem 0.75rem;
	}

	.modern-entry-content {
		font-size: 1rem;
		line-height: 1.8;
	}

	.modern-entry-content p {
		font-size: 1rem;
		line-height: 1.8;
		margin-bottom: 0.875rem;
	}

	.modern-entry-content h1 {
		font-size: 2rem;
		margin-left: -15px;
		margin-right: -15px;
		padding: 1rem 1.25rem;
		line-height: 1.3;
	}

	.modern-entry-content h2 {
		font-size: 1.75rem;
		margin-left: -15px;
		margin-right: -15px;
		padding: 0.875rem 1rem;
		line-height: 1.35;
	}

	.modern-entry-content h3 {
		font-size: 1.5rem;
		padding-left: 1rem;
		line-height: 1.4;
	}

	.modern-entry-content h4 {
		font-size: 1.25rem;
		padding-left: 1rem;
		line-height: 1.45;
	}

	.modern-entry-content h5,
	.modern-entry-content h6 {
		padding-left: 0.875rem;
		line-height: 1.5;
	}

	/* Responsive list styles */
	.modern-entry-content ul li {
		padding-left: 2.25rem;
		line-height: 1.7;
		font-size: 0.9375rem;
	}

	.modern-entry-content ul li::before {
		width: 20px;
		height: 20px;
		font-size: 0.65rem;
		top: 0.4rem;
	}

	.modern-entry-content ul li:hover {
		padding-left: 2.5rem;
		margin-left: 0;
	}

	.modern-entry-content ol li {
		padding-left: 2.75rem;
		line-height: 1.7;
		font-size: 0.9375rem;
	}

	.modern-entry-content ol li::before {
		width: 28px;
		height: 28px;
		font-size: 0.8125rem;
		top: 0.4rem;
	}

	.modern-entry-content ol li:hover {
		padding-left: 3rem;
		margin-left: 0;
	}

	/* TTS Controls Responsive */
	.wp-tts-container {
		padding: 0.875rem;
		margin: 1.25rem 0;
	}

	.wp-tts-controls {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem;
		align-items: center;
		justify-content: center;
	}

	.wp-tts-buttons {
		width: auto;
		flex: 0 0 auto;
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.4rem;
	}

	.wp-tts-btn {
		flex: 0 0 auto;
		min-width: auto;
		padding: 0.5rem 0.875rem;
		font-size: 0.75rem;
		white-space: nowrap;
	}

	.wp-tts-options {
		width: auto;
		flex: 0 0 auto;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem;
		align-items: center;
	}

	.wp-tts-rate {
		width: auto;
		flex: 0 0 auto;
		min-width: 100px;
	}

	.wp-tts-sticky-player {
		padding: 0.625rem 0.875rem;
	}

	.wp-tts-sticky-player .wp-tts-buttons {
		gap: 0.4rem;
	}

	.wp-tts-sticky-player .wp-tts-btn {
		padding: 0.45rem 0.75rem;
		font-size: 0.6875rem;
	}

	/* Author Box Responsive */
	.modern-author-box {
		padding: 1.5rem;
		margin-top: 3rem;
		border-radius: 12px;
	}

	.modern-author-box-inner {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.modern-author-header {
		justify-content: center;
		flex-direction: column;
		gap: 1rem;
	}

	.modern-author-avatar {
		margin: 0 auto;
		width: 80px;
		height: 80px;
	}

	.modern-author-link-button {
		width: 100%;
		justify-content: center;
		padding: 0.75rem 1.5rem;
	}

	/* Related Posts Responsive */
	.modern-related-posts {
		margin-top: 2rem;
		padding-top: 2rem;
	}

	.modern-related-posts-title {
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}

	.modern-related-posts-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.modern-related-post-thumbnail,
	.modern-related-post-placeholder {
		width: 80px;
		height: 80px;
		min-width: 80px;
		min-height: 80px;
	}

	.modern-related-post-title {
		font-size: 0.9375rem;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}
}

@media (max-width: 480px) {
	.modern-post-wrapper {
		padding: 0 12px;
		margin-left: 6px;
	}

	.modern-post-title {
		font-size: 1.75rem;
		padding-bottom: 0.5rem;
		line-height: 1.25;
	}

	.modern-post-title::after {
		width: 30px;
		height: 2px;
	}

	.modern-post-meta {
		gap: 0.4rem;
		margin-bottom: 1rem;
	}

	.modern-meta-item,
	.modern-author-link {
		padding: 0.35rem 0.625rem;
		font-size: 0.75rem;
	}

	.modern-meta-item svg {
		width: 13px;
		height: 13px;
	}

	.modern-meta-avatar {
		width: 22px;
		height: 22px;
	}

	.modern-meta-text {
		font-size: 0.75rem;
		max-width: 100px;
	}

	.modern-meta-share {
		margin-left: auto;
	}

	.modern-featured-image-wrapper {
		margin-bottom: 1.5rem;
		border-radius: 10px;
	}

	.modern-post-categories {
		margin: 0.875rem 0;
		gap: 0.4rem;
	}

	.modern-category-badge {
		font-size: 0.75rem;
		padding: 0.35rem 0.75rem;
	}

	.modern-tag-pills {
		margin-top: 1.25rem;
		margin-bottom: 1.25rem;
		gap: 0.4rem;
	}

	.modern-tag-pill {
		font-size: 0.75rem;
		padding: 0.3rem 0.625rem;
	}

	.modern-entry-content {
		font-size: 0.9375rem;
		line-height: 1.75;
	}

	.modern-entry-content p {
		font-size: 0.9375rem;
		line-height: 1.75;
		margin-bottom: 0.75rem;
	}

	.modern-entry-content h1 {
		font-size: 1.75rem;
		margin-left: -12px;
		margin-right: -12px;
		padding: 0.875rem 1rem;
		line-height: 1.25;
	}

	.modern-entry-content h2 {
		font-size: 1.5rem;
		margin-left: -12px;
		margin-right: -12px;
		padding: 0.75rem 0.875rem;
		line-height: 1.3;
	}

	.modern-entry-content h3 {
		font-size: 1.25rem;
		padding-left: 0.875rem;
		line-height: 1.35;
	}

	.modern-entry-content h4 {
		font-size: 1.125rem;
		padding-left: 0.875rem;
		line-height: 1.4;
	}

	.modern-entry-content h5,
	.modern-entry-content h6 {
		font-size: 1rem;
		padding-left: 0.75rem;
		line-height: 1.45;
	}

	/* Mobile list adjustments */
	.modern-entry-content ul li {
		padding-left: 2rem;
		font-size: 0.9375rem;
		line-height: 1.7;
	}

	.modern-entry-content ul li::before {
		width: 18px;
		height: 18px;
		font-size: 0.6rem;
		top: 0.35rem;
		left: 0.25rem;
	}

	.modern-entry-content ul li:hover {
		padding-left: 2.25rem;
	}

	.modern-entry-content ol li {
		padding-left: 2.5rem;
		font-size: 0.9375rem;
		line-height: 1.7;
	}

	.modern-entry-content ol li::before {
		width: 26px;
		height: 26px;
		font-size: 0.75rem;
		top: 0.35rem;
		left: 0;
	}

	.modern-entry-content ol li:hover {
		padding-left: 2.75rem;
	}

	/* Tables Responsive - Horizontal Scroll for Mobile */
	.modern-entry-content table {
		font-size: 0.75rem;
		display: block;
		width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		margin: 1.25rem 0;
		border-radius: 10px;
		box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
	}

	.modern-entry-content table thead th {
		padding: 0.625rem 0.875rem;
		font-size: 0.6875rem;
		white-space: nowrap;
		min-width: 80px;
	}

	.modern-entry-content table tbody td {
		padding: 0.625rem 0.875rem;
		font-size: 0.75rem;
		white-space: nowrap;
		min-width: 80px;
		line-height: 1.5;
	}

	.modern-entry-content table tfoot td {
		padding: 0.625rem 0.875rem;
		font-size: 0.75rem;
		white-space: nowrap;
	}

	/* Table wrapper for scrollable tables */
	.modern-entry-content .wp-block-table,
	.modern-entry-content .table-wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin: 1.25rem 0;
		border-radius: 10px;
		box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
		position: relative;
	}

	.modern-entry-content .wp-block-table::after,
	.modern-entry-content .table-wrapper::after {
		content: '← Scroll →';
		position: absolute;
		top: 8px;
		right: 8px;
		font-size: 0.625rem;
		color: #64748b;
		background: rgba(255, 255, 255, 0.95);
		padding: 0.2rem 0.4rem;
		border-radius: 4px;
		pointer-events: none;
		opacity: 0.8;
		z-index: 10;
		font-weight: 600;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	}

	/* Blockquotes Responsive */
	.modern-entry-content blockquote {
		margin: 1.5rem 0;
		padding: 1rem 1.25rem;
		font-size: 0.9375rem;
		border-left-width: 3px;
	}

	/* Code blocks Responsive */
	.modern-entry-content pre {
		padding: 1rem;
		font-size: 0.8125rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.modern-entry-content code {
		font-size: 0.8125rem;
		padding: 0.2rem 0.4rem;
	}

	/* Images Responsive */
	.modern-entry-content img {
		max-width: 100%;
		height: auto;
		border-radius: 8px;
	}

	.modern-entry-content figure {
		margin: 1.5rem 0;
	}

	.modern-entry-content figcaption {
		font-size: 0.8125rem;
		padding: 0.5rem 0.75rem;
	}

	/* TTS Controls Small Mobile */
	.wp-tts-container {
		padding: 0.75rem;
		margin: 1rem 0;
	}

	.wp-tts-controls {
		gap: 0.4rem;
	}

	.wp-tts-buttons {
		gap: 0.35rem;
	}

	.wp-tts-btn {
		padding: 0.4rem 0.75rem;
		font-size: 0.6875rem;
		min-width: auto;
	}

	.wp-tts-options {
		gap: 0.4rem;
	}

	.wp-tts-rate {
		min-width: 80px;
	}

	.wp-tts-sticky-player {
		padding: 0.5rem 0.75rem;
	}

	.wp-tts-sticky-player .wp-tts-buttons {
		gap: 0.35rem;
	}

	.wp-tts-sticky-player .wp-tts-btn {
		padding: 0.4rem 0.625rem;
		font-size: 0.625rem;
	}

	/* Author Box Small Mobile */
	.modern-author-box {
		padding: 1.25rem;
		margin-top: 2.5rem;
		border-radius: 10px;
	}

	.modern-author-avatar {
		width: 70px;
		height: 70px;
	}

	.modern-author-link-button {
		padding: 0.625rem 1.25rem;
		font-size: 0.875rem;
	}

	/* Related Posts Small Mobile */
	.modern-related-posts-title {
		font-size: 1.25rem;
		margin-bottom: 0.875rem;
	}

	.modern-related-post-thumbnail,
	.modern-related-post-placeholder {
		width: 70px;
		height: 70px;
		min-width: 70px;
		min-height: 70px;
	}

	.modern-related-post-title {
		font-size: 0.875rem;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
	.modern-featured-image-wrapper,
	.modern-author-box,
	.modern-tag-pills,
	.modern-post-meta {
		display: none;
	}

	.modern-entry-content {
		font-size: 12pt;
		line-height: 1.6;
	}
}

/* ============================================
   Interactive Author Hub Styles (PiximFix)
   ============================================ */

/* Ultra-compact mobile-first variables */
:root {
	--pfxh-pad: 6px;
	--pfxh-gap: 4px;
	--pfxh-radius: 8px;
	--pfxh-font-xs: 11px;
	--pfxh-font-sm: 12px;
	--pfxh-font: 13px;
	--pfxh-font-lg: 14px;
	--pfxh-chip: 42px;
}

.pfxh-wrap {
	margin: 8px 0;
}

.pfxh-card {
	background: #ffffff;
	color: #1e293b;
	border: none;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	padding: 10px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
	overflow: hidden;
	touch-action: manipulation;
	position: relative;
}

.pfxh-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #a78bfa 100%);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Avatar - small */
.pfxh-avatar {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 7px;
	display: block;
	margin: 0;
	transition: all 0.2s ease;
	border: 3px solid rgba(102, 126, 234, 0.3);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pfxh-avatar:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
	border-color: rgba(102, 126, 234, 0.5);
}

.pfxh-head {
	display: flex;
	justify-content: space-between;
	gap: 45px;
	flex-wrap: wrap;
	margin-left: 20px;
	margin-top: 10px;
	margin-bottom: 10px;
	align-items: flex-end;
	position: relative;
}

.pfxh-ranking-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
	position: absolute;
	top: 0;
	right: 0;
	z-index: 10;
	min-width: 80px;
	transition: all 0.3s ease;
}

.pfxh-ranking-badge:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pfxh-ranking-label {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1;
}

.pfxh-ranking-number {
	font-size: 28px;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	line-height: 1;
}

.pfxh-name {
	margin: 0;
	font-weight: 700;
	font-size: var(--pfxh-font-lg);
	color: #1e293b;
	text-align: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.pfxh-sub {
	margin-top: 1px;
	color: #475569;
	max-width: 80ch;
	font-size: var(--pfxh-font-sm);
	text-align: center;
}

/* Tooltips */
.pfxh-tip {
	position: relative;
	outline: none;
}

@media (hover: hover) {
	.pfxh-tip[title]:hover:after,
	.pfxh-tip[title]:focus:after {
		content: attr(title);
		position: absolute;
		left: 50%;
		top: -4px;
		transform: translate(-50%, -100%);
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		color: #ffffff;
		font-size: var(--pfxh-font-xs);
		border: 1px solid rgba(102, 126, 234, 0.3);
		padding: 4px 6px;
		border-radius: 6px;
		white-space: nowrap;
		pointer-events: none;
		z-index: 10;
		box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
	}

	.pfxh-tip[title]:hover:before,
	.pfxh-tip[title]:focus:before {
		content: "";
		position: absolute;
		left: 50%;
		top: -4px;
		transform: translate(-50%, 0) rotate(45deg);
		width: 6px;
		height: 6px;
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		border-left: 1px solid rgba(102, 126, 234, 0.3);
		border-top: 1px solid rgba(102, 126, 234, 0.3);
	}
}

/* Tabs - compact */
.pfxh-tabs {
	display: flex;
	border: 2px solid rgba(102, 126, 234, 0.2);
	border-radius: 7px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(10px);
}

.pfxh-tab {
	flex: 1 0 auto;
	min-width: 80px;
	scroll-snap-align: center;
	text-align: center;
	font-weight: 600;
	font-size: var(--pfxh-font-sm);
	padding: 5px 8px;
	cursor: pointer;
	background: transparent;
	border-right: 1px solid rgba(102, 126, 234, 0.15);
	user-select: none;
	color: #64748b;
	transition: all 0.2s ease;
}

.pfxh-tab:last-child {
	border-right: none;
}

.pfxh-tab:hover {
	transform: translateY(-1px);
	color: #667eea;
	background: rgba(102, 126, 234, 0.1);
}

.pfxh-tab.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Panels */
.pfxh-panels {
	position: relative;
}

.pfxh-panel {
	display: none;
	animation: fade 0.12s ease;
}

.pfxh-panel.active {
	display: block;
}

@keyframes fade {
	from {
		opacity: 0.8;
		transform: translateY(1px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Overview */
.pfxh-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--pfxh-gap);
}

.pfxh-trust {
	grid-column: 1 / -1;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a78bfa 100%);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 7px;
	padding: 6px;
	display: grid;
	grid-template-columns: var(--pfxh-chip) 1fr;
	gap: 6px;
	align-items: center;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.pfxh-trust .chip {
	width: var(--pfxh-chip);
	height: var(--pfxh-chip);
	border-radius: 7px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid rgba(255, 255, 255, 0.5);
	font-weight: 700;
	font-size: 13px;
	color: #667eea;
	letter-spacing: 0.3px;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pfxh-trust:hover .chip {
	transform: translateY(-1px) scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pfxh-trust .meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.pfxh-trust .hdr {
	display: flex;
	align-items: center;
	gap: 3px;
	font-weight: 700;
	color: #ffffff;
	font-size: var(--pfxh-font-sm);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pfxh-trust .bar {
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.pfxh-trust .bar span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
	transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.pfxh-trust .sub {
	font-size: var(--pfxh-font-xs);
	color: rgba(255, 255, 255, 0.9);
}

/* Small stat pills */
.pfxh-pill {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(102, 126, 234, 0.2);
	border-radius: 6px;
	padding: 5px 6px;
	transition: all 0.2s ease;
	backdrop-filter: blur(10px);
}

.pfxh-pill:hover {
	transform: translateY(-2px);
	border-color: rgba(102, 126, 234, 0.4);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pfxh-l {
	font-size: var(--pfxh-font-xs);
	letter-spacing: 0.25px;
	color: #64748b;
	text-transform: uppercase;
}

.pfxh-k {
	margin-top: 1px;
	font-weight: 700;
	color: #1e293b;
	font-size: var(--pfxh-font);
}

/* Duo (most viewed/engaging) */
.pfxh-duo {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 6px;
}

.pfxh-media {
	display: flex;
	flex-direction: row;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	position: relative;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	align-items: center;
}

.pfxh-media::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pfxh-media:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
	border-color: rgba(102, 126, 234, 0.4);
	background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.pfxh-media:hover::before {
	opacity: 1;
}

.pfxh-media .pfxh-thumb {
	width: 90px;
	min-width: 90px;
	height: 90px;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	border: none;
	border-right: 1px solid #e2e8f0;
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 10px;
}

.pfxh-media .pfxh-thumb::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pfxh-media:hover .pfxh-thumb::after {
	opacity: 1;
}

.pfxh-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pfxh-media:hover .pfxh-thumb img {
	transform: scale(1.03);
}

.pfxh-media > span {
	padding: 6px 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	justify-content: center;
}

.pfxh-media .pfxh-l {
	font-size: 8px;
	letter-spacing: 0.5px;
	color: #667eea;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 1px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.pfxh-media .pfxh-l::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: inline-block;
	box-shadow: 0 0 3px rgba(102, 126, 234, 0.4);
}

.pfxh-title {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.pfxh-media:hover .pfxh-title {
	color: #667eea;
}

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

.pfxh-title a:hover {
	color: #764ba2;
}

.pfxh-small {
	font-size: 10px;
	color: #64748b;
	margin-top: 1px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.pfxh-small::before {
	content: '👁';
	font-size: 10px;
	opacity: 0.7;
}

/* Most Engaging - Different accent color */
.pfxh-duo .pfxh-media:nth-child(2) {
	border-color: #f59e0b;
}

.pfxh-duo .pfxh-media:nth-child(2)::before {
	background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.pfxh-duo .pfxh-media:nth-child(2):hover {
	border-color: rgba(245, 158, 11, 0.5);
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pfxh-duo .pfxh-media:nth-child(2) .pfxh-l {
	color: #f59e0b;
}

.pfxh-duo .pfxh-media:nth-child(2) .pfxh-l::before {
	background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
	box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.pfxh-duo .pfxh-media:nth-child(2):hover .pfxh-title {
	color: #f59e0b;
}

.pfxh-duo .pfxh-media:nth-child(2) .pfxh-title a:hover {
	color: #ef4444;
}

/* Categories - smaller cards */
.pfxh-cats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--pfxh-gap);
	grid-auto-rows: 65px;
}

.pfxh-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	height: 100%;
	padding: 6px;
	border-radius: 6px;
	text-decoration: none;
	color: #1e293b;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(102, 126, 234, 0.2);
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
	transition: all 0.2s ease;
	backdrop-filter: blur(10px);
}

.pfxh-cat:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
	border-color: rgba(102, 126, 234, 0.4);
	background: rgba(255, 255, 255, 0.9);
}

.pfxh-cat-top {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
}

.pfxh-ico {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 5px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: 1px solid rgba(102, 126, 234, 0.3);
}

.pfxh-cat .n {
	font-weight: 700;
	font-size: var(--pfxh-font-sm);
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 26px);
}

.pfxh-bar {
	width: 100%;
	height: 5px;
	border-radius: 999px;
	background: rgba(102, 126, 234, 0.15);
	overflow: hidden;
	margin-top: 3px;
	border: 1px solid rgba(102, 126, 234, 0.2);
}

.pfxh-bar > span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.pfxh-count {
	font-size: var(--pfxh-font-xs);
	color: #64748b;
}

/* Recent - EXACTLY 3 items */
.pfxh-recent {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	margin: 0;
}

.pfxh-item {
	display: flex;
	flex-direction: row;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 4px;
	text-decoration: none;
	color: #1e293b;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	position: relative;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	align-items: stretch;
	gap: 6px;
	margin: 0;
}

.pfxh-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
	border-color: rgba(102, 126, 234, 0.4);
	background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.pfxh-item .pfxh-thumb {
	width: 90px;
	min-width: 90px;
	height: 90px;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.pfxh-item .pfxh-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pfxh-item:hover .pfxh-thumb img {
	transform: scale(1.03);
}

.pfxh-item-content {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
	justify-content: flex-start;
	align-items: flex-start;
	min-width: 0;
	margin: 0;
}

.pfxh-ititle {
	margin: 0 0 4px 0;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.3;
	color: #1e293b;
	display: block;
	transition: color 0.2s ease;
	width: 100%;
	word-wrap: break-word;
}

.pfxh-item:hover .pfxh-ititle {
	color: #667eea;
}

.pfxh-imeta {
	display: none;
}

.pfxh-imeta .cat {
	font-weight: 600;
	color: #667eea;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Breakpoints */
@media (min-width: 680px) {
	.pfxh-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.pfxh-duo {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.pfxh-media {
		border-radius: 8px;
	}

	.pfxh-media .pfxh-thumb {
		width: 100px;
		min-width: 150px;
	}

	.pfxh-cats {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.pfxh-card {
		grid-template-columns: 20% 1fr;
		align-items: start;
	}

	.pfxh-avatar {
		width: 100%;
		max-width: 100%;
	}

	.pfxh-head {
		grid-column: 2;
		position: relative;
	}

	.pfxh-ranking-badge {
		position: absolute;
		top: 0;
		right: 0;
	}

	.pfxh-name,
	.pfxh-sub {
		text-align: left;
	}

	.pfxh-panels {
		grid-column: 1 / -1;
	}

	.pfxh-recent {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.pfxh-item {
		border-radius: 12px;
		padding: 0px;
		gap: 5px;
	}

	.pfxh-item .pfxh-thumb {
		width: 100px;
		min-width: 100px;
		height: 80px;
	}

	.pfxh-item-content {
		gap: 4px;
	}

	.pfxh-ititle {
		font-size: 13px;
	}

	.pfxh-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.pfxh-trust {
		grid-column: span 3;
	}

	.pfxh-cats {
		grid-template-columns: repeat(6, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pfxh-panel {
		animation: none;
	}

	.pfxh-tab,
	.pfxh-avatar,
	.pfxh-media,
	.pfxh-item,
	.pfxh-cat {
		transition: none;
	}

	.pfxh-bar > span,
	.pfxh-trust .bar span {
		transition: none;
	}
}

/* ============================================
   Right Sidebar: Modern Recent Posts Widget (Archive Design)
   ============================================ */

/* Sidebar Widget Container - Archive Design */
.single .widget-area .widget,
.single .sidebar .widget,
.single .is-right-sidebar .widget,
.single .sidebar-widget {
	background: linear-gradient(135deg, #ffffff 0%, rgba(248, 250, 252, 0.8) 100%);
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	padding: 10px;
	box-shadow: 0 2px 12px rgba(139, 92, 246, 0.06), 0 1px 4px rgba(139, 92, 246, 0.04);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
	min-height: 110px;
	contain: layout style;
}

.single .widget-area .widget::before,
.single .sidebar .widget::before,
.single .is-right-sidebar .widget::before,
.single .sidebar-widget::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #8b5cf6, #06b6d4);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.single .widget-area .widget:hover,
.single .sidebar .widget:hover,
.single .is-right-sidebar .widget:hover,
.single .sidebar-widget:hover {
	box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12), 0 4px 8px rgba(139, 92, 246, 0.08);
	transform: translateY(-2px);
	border-color: rgba(139, 92, 246, 0.3);
}

.single .widget-area .widget:hover::before,
.single .sidebar .widget:hover::before,
.single .is-right-sidebar .widget:hover::before,
.single .sidebar-widget:hover::before {
	opacity: 1;
}

/* Widget Title - Archive Design */
.single .widget-area .widget-title,
.single .sidebar .widget-title,
.single .is-right-sidebar .widget-title,
.single .sidebar-widget__title {
	font-size: 1.125rem;
	font-weight: 800;
	margin: 0 0 1rem 0;
	color: #1e293b;
	letter-spacing: -0.02em;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #f1f5f9;
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.single .widget-area .widget-title::after,
.single .sidebar .widget-title::after,
.single .is-right-sidebar .widget-title::after,
.single .sidebar-widget__title::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 50px;
	height: 2px;
	background: linear-gradient(90deg, #8b5cf6, #06b6d4);
	border-radius: 2px;
}

/* Recent Posts List - Archive Design */
.single .widget-area ul,
.single .sidebar ul,
.single .is-right-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.single .widget-area .widget_recent_entries ul,
.single .sidebar .widget_recent_entries ul,
.single .is-right-sidebar .widget_recent_entries ul {
	gap: 10px;
}

/* Recent Post Item - Archive Design */
.single .widget-area .widget_recent_entries li,
.single .sidebar .widget_recent_entries li,
.single .is-right-sidebar .widget_recent_entries li {
	margin: 0;
	padding: 0;
	border: none;
	border-bottom: none;
	position: relative;
	transition: transform 0.2s ease;
}

.single .widget-area .widget_recent_entries li::before {
	display: none;
}

.single .widget-area .widget_recent_entries li:hover,
.single .sidebar .widget_recent_entries li:hover,
.single .is-right-sidebar .widget_recent_entries li:hover {
	transform: translateX(4px);
}

/* Recent Post Link - Archive Design */
.single .widget-area .widget_recent_entries li a,
.single .sidebar .widget_recent_entries li a,
.single .is-right-sidebar .widget_recent_entries li a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	padding: 0;
	border-radius: 10px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: transparent;
	border: 1px solid transparent;
	color: #1e293b;
	font-weight: 600;
	line-height: 1.4;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	margin: 0;
	flex: 1;
	min-width: 0;
}

.single .widget-area .widget_recent_entries li a:hover,
.single .sidebar .widget_recent_entries li a:hover,
.single .is-right-sidebar .widget_recent_entries li a:hover {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
	border-color: rgba(139, 92, 246, 0.2);
	box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
	color: #8b5cf6;
}

/* Post Thumbnail in Sidebar - Archive Design */
.single .widget-area .widget_recent_entries li a img,
.single .sidebar .widget_recent_entries li a img,
.single .is-right-sidebar .widget_recent_entries li a img {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	min-width: 60px;
	min-height: 60px;
	border: 2px solid #e2e8f0;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
	aspect-ratio: 1 / 1;
}

.single .widget-area .widget_recent_entries li a:hover img,
.single .sidebar .widget_recent_entries li a:hover img,
.single .is-right-sidebar .widget_recent_entries li a:hover img {
	border-color: rgba(139, 92, 246, 0.3);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
	transform: scale(1.05);
}


/* Post Date/Meta - Archive Design */
.single .widget-area .widget_recent_entries .post-date,
.single .sidebar .widget_recent_entries .post-date,
.single .is-right-sidebar .widget_recent_entries .post-date,
.single .widget-area .widget_recent_entries li span,
.single .sidebar .widget_recent_entries li span,
.single .is-right-sidebar .widget_recent_entries li span {
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 0.25rem;
	display: block;
}

/* Responsive: Sidebar Widgets - Archive Design */
@media (max-width: 768px) {
	.single .widget-area .widget,
	.single .sidebar .widget,
	.single .is-right-sidebar .widget {
		padding: 1rem;
		margin-bottom: 1.5rem;
	}

	.single .widget-area .widget-title,
	.single .sidebar .widget-title,
	.single .is-right-sidebar .widget-title {
		font-size: 1rem;
		margin-bottom: 1rem;
		padding-bottom: 0.625rem;
	}

	.single .widget-area .widget_recent_entries li a img,
	.single .sidebar .widget_recent_entries li a img,
	.single .is-right-sidebar .widget_recent_entries li a img {
		width: 50px;
		height: 50px;
		min-width: 50px;
		min-height: 50px;
	}

	.single .widget-area .widget_recent_entries li a {
		font-size: 0.8125rem;
	}
}

@media (max-width: 600px) {
	.single .widget-area .widget,
	.single .sidebar .widget,
	.single .is-right-sidebar .widget {
		padding: 0.875rem;
		border-radius: 12px;
	}

	.single .widget-area .widget-title,
	.single .sidebar .widget-title,
	.single .is-right-sidebar .widget-title {
		font-size: 0.9375rem;
		margin-bottom: 0.875rem;
		padding-bottom: 0.5rem;
	}

	.single .widget-area ul,
	.single .sidebar ul,
	.single .is-right-sidebar ul {
		gap: 0.625rem;
	}

	.single .widget-area .widget_recent_entries li a {
		padding: 0.5rem;
		gap: 0.75rem;
	}

	.single .widget-area .widget_recent_entries li a img,
	.single .sidebar .widget_recent_entries li a img,
	.single .is-right-sidebar .widget_recent_entries li a img {
		width: 45px;
		height: 45px;
		min-width: 45px;
		min-height: 45px;
	}

	.single .widget-area .widget_recent_entries li a {
		font-size: 0.8125rem;
	}
}

/* ============================================
   Tab Switcher Widget (Archive Design)
   ============================================ */

/* Tabbed Widget */
.single .tab-switcher__header,
.single .sidebar-widget .tab-switcher__header {
	display: flex; 
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 12px; 
	padding: 5px; 
	margin-bottom: 1rem;
	border: 1px solid #e2e8f0;
	box-shadow: inset 0 1px 2px rgba(139, 92, 246, 0.05);
}

.single .tab-switcher__button,
.single .sidebar-widget .tab-switcher__button {
	flex: 1; 
	padding: 0.625rem 1rem; 
	background: transparent; 
	border: none;
	border-radius: 8px; 
	font-size: 0.875rem; 
	font-weight: 600;
	color: #64748b; 
	cursor: pointer; 
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.single .tab-switcher__button:hover,
.single .sidebar-widget .tab-switcher__button:hover {
	color: #8b5cf6;
	background-color: rgba(139, 92, 246, 0.1);
}

.single .tab-switcher__button.active,
.single .sidebar-widget .tab-switcher__button.active {
	background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3), 0 1px 3px rgba(6, 182, 212, 0.2);
}

.single .tab-switcher__content,
.single .sidebar-widget .tab-switcher__content { 
	display: none; 
	animation: fadeIn 0.3s ease;
}

.single .tab-switcher__content.active,
.single .sidebar-widget .tab-switcher__content.active { 
	display: block; 
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

.single .tab-switcher__content ul,
.single .sidebar-widget .tab-switcher__content ul { 
	display: flex; 
	flex-direction: column; 
	gap: 10px; 
	list-style: none;
	margin: 0;
	padding: 0;
}

.single .tab-switcher__content li,
.single .sidebar-widget .tab-switcher__content li {
	transition: transform 0.2s ease;
	margin: 0;
	padding: 0;
}

.single .tab-switcher__content li:hover,
.single .sidebar-widget .tab-switcher__content li:hover {
	transform: translateX(4px);
}

.single .tab-switcher__content li a,
.single .sidebar-widget .tab-switcher__content li a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	padding: 0px;
	border-radius: 10px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: transparent;
	border: 1px solid transparent;
	color: #1e293b;
}

.single .tab-switcher__content li a:hover,
.single .sidebar-widget .tab-switcher__content li a:hover {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
	border-color: rgba(139, 92, 246, 0.2);
	box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.single .tab-switcher__content img, 
.single .tab-switcher__content .widget-post-image,
.single .sidebar-widget .tab-switcher__content img,
.single .sidebar-widget .widget-post-image,
.single .widget-post-image,
.single .widget-post-placeholder {
	width: 60px; 
	height: 60px; 
	flex-shrink: 0; 
	object-fit: cover;
	border-radius: 10px;
	display: block;
	min-width: 60px;
	min-height: 60px;
	border: 2px solid #e2e8f0;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
	aspect-ratio: 1 / 1;
}

.single .tab-switcher__content li a:hover img,
.single .tab-switcher__content li a:hover .widget-post-image,
.single .tab-switcher__content li a:hover .widget-post-placeholder,
.single .sidebar-widget .tab-switcher__content li a:hover img,
.single .sidebar-widget .tab-switcher__content li a:hover .widget-post-image,
.single .sidebar-widget .tab-switcher__content li a:hover .widget-post-placeholder {
	border-color: rgba(139, 92, 246, 0.3);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
	transform: scale(1.05);
}

.single .widget-post-placeholder { 
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	display: block;
	flex-shrink: 0;
	min-width: 60px;
	min-height: 60px;
}

.single .widget-post-info { 
	display: flex; 
	flex-direction: column; 
	gap: 0.25rem; 
	flex: 1;
	min-width: 0;
}

.single .widget-post-title,
.single .tab-switcher__content .widget-post-title,
.single .sidebar-widget .tab-switcher__content .widget-post-title {
	font-weight: 600; 
	color: #1e293b; 
	line-height: 1.4;
	transition: color 0.3s ease;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	margin: 0;
	flex: 1;
	min-width: 0;
}

.single .tab-switcher__content li a:hover .widget-post-title,
.single .sidebar-widget .tab-switcher__content li a:hover .widget-post-title { 
	color: #8b5cf6;
}

.single .widget-post-date, 
.single .widget-post-meta { 
	font-size: 0.75rem; 
	color: #64748b; 
}

/* ============================================
   Telegram Widget (Archive Design)
   ============================================ */

.single .sidebar-widget--telegram {
	background: linear-gradient(135deg, #0088cc 0%, #006699 50%, #005580 100%);
	border: none;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.single .sidebar-widget--telegram::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	animation: telegramShine 8s ease-in-out infinite;
	opacity: 0.5;
}

@keyframes telegramShine {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(-20%, -20%) rotate(180deg); }
}

.single .sidebar-widget--telegram:hover {
	box-shadow: 0 12px 32px rgba(0, 136, 204, 0.35), 0 6px 16px rgba(0, 102, 153, 0.25);
	transform: translateY(-2px);
}

.single .sidebar-widget--telegram .sidebar-widget__title {
	color: #ffffff;
	border-bottom-color: rgba(255, 255, 255, 0.25);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.single .sidebar-widget--telegram .sidebar-widget__title::after {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
	width: 60px;
}

.single .telegram-message {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.98);
	margin: -0.5rem 0 1.25rem;
	line-height: 1.7;
	font-weight: 500;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	position: relative;
	z-index: 1;
}

.single .telegram-widget {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.single .telegram-stats {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.125rem;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
	border-radius: 14px;
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.single .telegram-stats::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.6s ease;
}

.single .sidebar-widget--telegram:hover .telegram-stats::before {
	left: 100%;
}

.single .sidebar-widget--telegram:hover .telegram-stats {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
	border-color: rgba(255, 255, 255, 0.35);
	transform: scale(1.02);
}

.single .telegram-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
	border-radius: 14px;
	color: #ffffff;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.single .telegram-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width 0.4s ease, height 0.4s ease;
}

.single .sidebar-widget--telegram:hover .telegram-icon::after {
	width: 100px;
	height: 100px;
}

.single .sidebar-widget--telegram:hover .telegram-icon {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.single .telegram-icon svg {
	width: 32px;
	height: 32px;
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
}

.single .sidebar-widget--telegram:hover .telegram-icon svg {
	transform: scale(1.1);
}

.single .telegram-info {
	flex: 1;
}

.single .telegram-count {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.single .telegram-count-number {
	font-size: 1.75rem;
	font-weight: 900;
	color: #ffffff;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	display: inline-block;
	position: relative;
}

.single .sidebar-widget--telegram:hover .telegram-count-number {
	transform: scale(1.05);
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.single .telegram-count-number::after {
	content: '👥';
	font-size: 0.875rem;
	margin-left: 0.375rem;
	opacity: 0.8;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.8; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.1); }
}

.single .telegram-count-label {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.single .telegram-join-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	color: #0088cc;
	text-decoration: none;
	border-radius: 14px;
	font-weight: 800;
	font-size: 0.9375rem;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 136, 204, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.5);
	position: relative;
	overflow: hidden;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.single .telegram-join-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.15), transparent);
	transition: left 0.6s ease;
}

.single .telegram-join-button::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: radial-gradient(circle, rgba(0, 136, 204, 0.2) 0%, transparent 70%);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width 0.5s ease, height 0.5s ease;
}

.single .telegram-join-button:hover {
	background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
	color: #006699;
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
	border-color: rgba(255, 255, 255, 0.8);
}

.single .telegram-join-button:hover::before {
	left: 100%;
}

.single .telegram-join-button:hover::after {
	width: 300px;
	height: 300px;
}

.single .telegram-join-button:active {
	transform: translateY(-1px) scale(0.98);
	box-shadow: 0 4px 15px rgba(0, 136, 204, 0.25);
}

.single .telegram-join-icon {
	font-size: 1.125rem;
}

.single .telegram-join-text {
	position: relative;
	z-index: 1;
}

/* Post Sidebar Container */
.single .post-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	position: -webkit-sticky;
	position: sticky;
	top: 7rem;
	align-self: start;
	width: 100%;
	max-width: 95%;
	box-sizing: border-box;
}

/* Inside Right Sidebar Container */
.single .inside-right-sidebar {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Mobile styles for right sidebar */
@media (max-width: 768px) {
	.single .inside-right-sidebar {
		margin-left: 20px;
	}
}

@media (max-width: 480px) {
	.single .inside-right-sidebar {
		margin-left: 20px;
	}
}

/* Ensure widget post images use correct size */
.single .widget-post-image {
	width: 60px !important;
	height: 60px !important;
	min-width: 60px !important;
	min-height: 60px !important;
}

/* Ensure proper spacing for sidebar widgets */
.single .sidebar-widget {
	margin-bottom: 0;
}

.single .sidebar-widget:last-child {
	margin-bottom: 0;
}

/* ============================================
   Top Authors Widget - Ultra Modern Design
   ============================================ */

.sidebar-widget--authors {
	padding: 18px !important;
	border-radius: 18px !important;
	background: rgba(255, 255, 255, 0.92) !important;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
}

.sidebar-author-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sidebar-author-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	column-gap: 10px;
	row-gap: 6px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(226, 232, 240, 0.7);
	border-radius: 14px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.sidebar-author-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(180deg, #8b5cf6 0%, #06b6d4 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.sidebar-author-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.sidebar-author-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
	border-color: rgba(139, 92, 246, 0.35);
}

.sidebar-author-item:hover::before,
.sidebar-author-item:hover::after {
	opacity: 1;
}

/* Top 3 Authors - Premium Styling */
.sidebar-author-item:nth-child(-n+3) {
	border-width: 1.5px;
}

.sidebar-author-item:nth-child(1) {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 193, 7, 0.1) 100%);
	border-color: rgba(255, 193, 7, 0.45);
}

.sidebar-author-item:nth-child(2) {
	background: linear-gradient(135deg, rgba(192, 192, 192, 0.16) 0%, rgba(169, 169, 169, 0.09) 100%);
	border-color: rgba(169, 169, 169, 0.4);
}

.sidebar-author-item:nth-child(3) {
	background: linear-gradient(135deg, rgba(205, 127, 50, 0.16) 0%, rgba(184, 115, 51, 0.09) 100%);
	border-color: rgba(184, 115, 51, 0.4);
}

.sidebar-author-rank {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 800;
	color: #64748b;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 10px;
	border: 1.5px solid rgba(226, 232, 240, 0.8);
	transition: all 0.3s ease;
}

.sidebar-author-item:hover .sidebar-author-rank {
	transform: translateY(-1px);
}

@keyframes shine {
	0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
	100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.sidebar-author-item:nth-child(1) .sidebar-author-rank {
	background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
	color: #fff;
	border-color: rgba(255, 193, 7, 0.5);
}

.sidebar-author-item:nth-child(2) .sidebar-author-rank {
	background: linear-gradient(135deg, #e8e8e8 0%, #bfc3c7 100%);
	color: #fff;
	border-color: rgba(169, 169, 169, 0.5);
}

.sidebar-author-item:nth-child(3) .sidebar-author-rank {
	background: linear-gradient(135deg, #daa520 0%, #b87333 100%);
	color: #fff;
	border-color: rgba(184, 115, 51, 0.5);
}

.sidebar-author-details {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 10px;
	row-gap: 4px;
	min-width: 0;
}

.sidebar-author-avatar {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 2px solid rgba(226, 232, 240, 0.8);
	transition: all 0.3s ease;
	flex-shrink: 0;
	object-fit: cover;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}

.sidebar-author-avatar::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.15);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.sidebar-author-item:hover .sidebar-author-avatar {
	border-color: rgba(139, 92, 246, 0.55);
	transform: translateY(-1px);
}

.sidebar-author-item:hover .sidebar-author-avatar::after {
	opacity: 1;
}

.sidebar-author-meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sidebar-author-meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.sidebar-author-name {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #1e293b;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	letter-spacing: -0.01em;
	position: relative;
	display: inline-block;
}

.sidebar-author-name::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 2px;
}

.sidebar-author-name:hover {
	color: #8b5cf6;
	text-decoration: none;
	transform: translateX(2px);
}

.sidebar-author-name:hover::after {
	width: 100%;
}

.sidebar-author-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 2px;
}

.sidebar-author-role {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.7rem;
	font-weight: 600;
	color: #0ea5e9;
	background: rgba(14, 165, 233, 0.08);
	padding: 3px 8px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border: 1px solid rgba(14, 165, 233, 0.25);
}

.sidebar-author-role::before {
	content: '⚡';
	font-size: 0.7rem;
}

.sidebar-author-item:nth-child(1) .sidebar-author-role {
	color: #f59e0b;
	border-color: rgba(245, 158, 11, 0.4);
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.sidebar-author-item:nth-child(2) .sidebar-author-role {
	color: #94a3b8;
	border-color: rgba(148, 163, 184, 0.4);
	background: linear-gradient(135deg, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.08) 100%);
}

.sidebar-author-item:nth-child(3) .sidebar-author-role {
	color: #f97316;
	border-color: rgba(249, 115, 22, 0.4);
	background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.08) 100%);
}

.sidebar-author-stats {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.sidebar-author-posts {
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
}

.sidebar-author-posts::before {
	content: '📝';
	font-size: 0.7rem;
	opacity: 0.8;
}

.sidebar-author-views {
	font-size: 0.75rem;
	color: #7c3aed;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 4px;
	background: rgba(124, 58, 237, 0.12);
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid rgba(124, 58, 237, 0.2);
}

.sidebar-author-views::before {
	content: '👁️';
	font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.sidebar-author-item {
		padding: 10px 12px;
		grid-template-columns: auto 1fr;
	}

	.sidebar-author-avatar {
		width: 40px;
		height: 40px;
	}

	.sidebar-author-rank {
		width: 26px;
		height: 26px;
		font-size: 0.65rem;
	}

	.sidebar-author-name {
		font-size: 0.875rem;
	}

	.sidebar-author-stats {
		gap: 6px;
	}
	
	.sidebar-author-posts {
		font-size: 0.75rem;
	}
	
	.sidebar-author-views {
		font-size: 0.72rem;
		padding: 2px 6px;
	}
}

/* Modern Animation for list items */
@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(-20px) scale(0.95);
		filter: blur(4px);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
		filter: blur(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sidebar-author-item {
	animation: slideInRight 0.45s ease forwards;
	opacity: 0;
}

.sidebar-author-item:nth-child(1) { animation-delay: 0.05s; }
.sidebar-author-item:nth-child(2) { animation-delay: 0.1s; }
.sidebar-author-item:nth-child(3) { animation-delay: 0.15s; }
.sidebar-author-item:nth-child(4) { animation-delay: 0.2s; }
.sidebar-author-item:nth-child(5) { animation-delay: 0.25s; }
.sidebar-author-item:nth-child(6) { animation-delay: 0.3s; }
.sidebar-author-item:nth-child(n+7) { animation-delay: 0.35s; }

/* Responsive Design - Top Authors Widget */
@media (max-width: 768px) {
	.sidebar-widget--authors {
		padding: 16px !important;
	}

	.sidebar-author-list {
		gap: 10px;
	}

	.sidebar-author-item {
		padding: 10px;
		gap: 10px;
		border-radius: 12px;
	}

	.sidebar-author-rank {
		width: 28px;
		height: 28px;
		font-size: 0.6875rem;
		border-radius: 8px;
	}

	.sidebar-author-avatar {
		width: 44px;
		height: 44px;
		border-radius: 10px;
		border-width: 2px;
	}

	.sidebar-author-details {
		gap: 10px;
	}

	.sidebar-author-name {
		font-size: 0.875rem;
		line-height: 1.4;
	}

	.sidebar-author-roles {
		gap: 4px;
		margin-top: 2px;
	}

	.sidebar-author-role {
		font-size: 0.6875rem;
		padding: 3px 8px;
	}

	.sidebar-author-stats {
		gap: 8px;
		flex-wrap: wrap;
	}
	
	.sidebar-author-posts {
		font-size: 0.75rem;
		gap: 4px;
	}
	
	.sidebar-author-views {
		font-size: 0.75rem;
		padding: 2px 6px;
		gap: 4px;
	}
}

@media (max-width: 480px) {
	.sidebar-widget--authors {
		padding: 12px !important;
	}

	.sidebar-author-list {
		gap: 8px;
	}

	.sidebar-author-item {
		padding: 8px;
		gap: 8px;
		border-radius: 10px;
	}

	.sidebar-author-rank {
		width: 26px;
		height: 26px;
		font-size: 0.625rem;
		border-radius: 6px;
	}

	.sidebar-author-avatar {
		width: 40px;
		height: 40px;
		border-radius: 8px;
	}

	.sidebar-author-name {
		font-size: 0.8125rem;
	}

	.sidebar-author-role {
		font-size: 0.625rem;
		padding: 2px 6px;
	}

	.sidebar-author-posts,
	.sidebar-author-views {
		font-size: 0.6875rem;
		padding: 2px 5px;
	}
}

/* ============================================
   Related Posts Section
   ============================================ */

.modern-related-posts {
	margin-top: 0;
	padding-top: 0;
}

.modern-related-posts-title {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	margin: 0 0 2rem 0;
	color: #1a202c;
	letter-spacing: -0.02em;
	text-transform: capitalize;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.modern-related-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 1rem;
}

.modern-related-post-card {
	margin: 0;
	padding: 0;
	transition: transform 0.2s ease;
}

.modern-related-post-card:hover {
	transform: translateX(4px);
}

.modern-related-post-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	padding: 5px;
	border-radius: 20px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: transparent;
	border: 1px solid transparent;
	color: #1e293b;
}

.modern-related-post-link:hover {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
	border-color: rgba(139, 92, 246, 0.2);
	box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.modern-related-post-thumbnail {
	width: 110px;
	height: 65px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 15px;
	display: block;
	min-width: 60px;
	min-height: 60px;
	border: 2px solid #e2e8f0;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
	aspect-ratio: 1 / 1;
}

.modern-related-post-link:hover .modern-related-post-thumbnail {
	border-color: rgba(139, 92, 246, 0.3);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
	transform: scale(1.05);
}

.modern-related-post-placeholder {
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	display: block;
	flex-shrink: 0;
	min-width: 60px;
	min-height: 60px;
	width: 110px;
	height: 65px;
	border-radius: 15px;
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.modern-related-post-link:hover .modern-related-post-placeholder {
	border-color: rgba(139, 92, 246, 0.3);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
	transform: scale(1.05);
}

.modern-related-post-placeholder-icon {
	font-size: 1.5rem;
	opacity: 0.5;
}

.modern-related-post-content {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
	min-width: 0;
}

.modern-related-post-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #1e293b;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color 0.3s ease;
}

.modern-related-post-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.modern-related-post-card:hover .modern-related-post-title a {
	color: #8b5cf6;
}

.modern-related-post-meta {
	display: none;
}

.modern-related-post-date,
.modern-related-post-reading-time,
.modern-related-post-views {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	transition: color 0.3s ease;
}

.modern-related-post-date svg,
.modern-related-post-reading-time svg,
.modern-related-post-views svg {
	flex-shrink: 0;
	opacity: 0.7;
}

.modern-related-post-card:hover .modern-related-post-date,
.modern-related-post-card:hover .modern-related-post-reading-time,
.modern-related-post-card:hover .modern-related-post-views {
	color: #8b5cf6;
}

.modern-related-post-card:hover .modern-related-post-date svg,
.modern-related-post-card:hover .modern-related-post-reading-time svg,
.modern-related-post-card:hover .modern-related-post-views svg {
	opacity: 1;
}

/* Responsive: Related Posts */
@media (max-width: 768px) {
	.modern-related-posts {
		margin-top: 2rem;
		padding-top: 2rem;
	}
	
	.modern-related-posts-title {
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}
	
	.modern-related-posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.625rem;
	}
	
	.modern-related-post-thumbnail,
	.modern-related-post-placeholder {
		width: 50px;
		height: 50px;
		min-width: 50px;
		min-height: 50px;
	}
	
	.modern-related-post-title {
		font-size: 0.8125rem;
	}
}

@media (max-width: 480px) {
	.modern-related-posts-grid {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
	
	.modern-related-post-thumbnail,
	.modern-related-post-placeholder {
		width: 45px;
		height: 45px;
		min-width: 45px;
		min-height: 45px;
	}
	
	.modern-related-post-title {
		font-size: 0.75rem;
	}
}

/* ============================================
   Bottom Related Posts - Original Card Design
   ============================================ */

.modern-related-posts--bottom {
	margin-top: 3rem;
	margin-bottom: 2rem;
	padding-top: 2.5rem;
	border-top: 2px solid #f1f5f9;
}

.modern-related-posts--bottom .modern-related-posts-grid--cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.modern-related-posts--bottom .modern-related-post-card {
	background: linear-gradient(135deg, #ffffff 0%, rgba(248, 250, 252, 0.8) 100%);
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 12px rgba(139, 92, 246, 0.06), 0 1px 4px rgba(139, 92, 246, 0.04);
	position: relative;
	display: flex;
	flex-direction: column;
	backdrop-filter: blur(10px);
}

.modern-related-posts--bottom .modern-related-post-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #8b5cf6, #06b6d4);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.modern-related-posts--bottom .modern-related-post-card:hover {
	box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12), 0 4px 8px rgba(139, 92, 246, 0.08);
	transform: translateY(-4px);
	border-color: rgba(139, 92, 246, 0.3);
}

.modern-related-posts--bottom .modern-related-post-card:hover::before {
	opacity: 1;
}

.modern-related-posts--bottom .modern-related-post-image {
	display: block;
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.modern-related-posts--bottom .modern-related-post-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
	border-radius: 0;
	border: none;
	box-shadow: none;
	aspect-ratio: auto;
	min-width: auto;
	min-height: auto;
}

.modern-related-posts--bottom .modern-related-post-card:hover .modern-related-post-thumbnail {
	transform: scale(1.05);
}

.modern-related-posts--bottom .modern-related-post-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	border-radius: 0;
	border: none;
	box-shadow: none;
	min-width: auto;
	min-height: auto;
}

.modern-related-posts--bottom .modern-related-post-placeholder-icon {
	font-size: 3rem;
	opacity: 0.5;
}

.modern-related-posts--bottom .modern-related-post-content {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
}

.modern-related-posts--bottom .modern-related-post-category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #8b5cf6;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.75rem;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
	border-radius: 6px;
	border: 1px solid rgba(139, 92, 246, 0.2);
	align-self: flex-start;
	transition: all 0.3s ease;
}

.modern-related-posts--bottom .modern-related-post-card:hover .modern-related-post-category {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
	border-color: rgba(139, 92, 246, 0.3);
	transform: translateX(2px);
}

.modern-related-posts--bottom .modern-related-post-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
	color: #1e293b;
}

.modern-related-posts--bottom .modern-related-post-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.modern-related-posts--bottom .modern-related-post-title a:hover {
	color: #8b5cf6;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.modern-related-posts--bottom .modern-related-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: #64748b;
	margin-top: auto;
	padding-top: 0.5rem;
	border-top: 1px solid #f1f5f9;
}

.modern-related-posts--bottom .modern-related-post-date,
.modern-related-posts--bottom .modern-related-post-reading-time,
.modern-related-posts--bottom .modern-related-post-views {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	transition: color 0.3s ease;
}

.modern-related-posts--bottom .modern-related-post-date svg,
.modern-related-posts--bottom .modern-related-post-reading-time svg,
.modern-related-posts--bottom .modern-related-post-views svg {
	flex-shrink: 0;
	opacity: 0.7;
}

.modern-related-posts--bottom .modern-related-post-card:hover .modern-related-post-date,
.modern-related-posts--bottom .modern-related-post-card:hover .modern-related-post-reading-time,
.modern-related-posts--bottom .modern-related-post-card:hover .modern-related-post-views {
	color: #8b5cf6;
}

.modern-related-posts--bottom .modern-related-post-card:hover .modern-related-post-date svg,
.modern-related-posts--bottom .modern-related-post-card:hover .modern-related-post-reading-time svg,
.modern-related-posts--bottom .modern-related-post-card:hover .modern-related-post-views svg {
	opacity: 1;
}

/* Responsive: Bottom Related Posts */
@media (max-width: 768px) {
	.modern-related-posts--bottom {
		margin-top: 2rem;
		padding-top: 2rem;
	}
	
	.modern-related-posts--bottom .modern-related-posts-grid--cards {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
	
	.modern-related-posts--bottom .modern-related-post-image {
		height: 180px;
	}
	
	.modern-related-posts--bottom .modern-related-post-content {
		padding: 1rem;
	}
	
	.modern-related-posts--bottom .modern-related-post-title {
		font-size: 1rem;
	}
	
	.modern-related-posts--bottom .modern-related-post-meta {
		font-size: 0.75rem;
		gap: 0.5rem;
	}
}

@media (max-width: 480px) {
	.modern-related-posts--bottom .modern-related-posts-grid--cards {
		gap: 1rem;
	}
	
	.modern-related-posts--bottom .modern-related-post-image {
		height: 160px;
	}
	
	.modern-related-posts--bottom .modern-related-post-content {
		padding: 0.875rem;
	}
}

/* ============================================
   Push Notification Widget
   ============================================ */

.sidebar-widget--push-notifications {
	display: none; /* Hidden by default, shown via JavaScript */
	background: transparent;
	border-radius: 0;
	border: none;
	padding: 0;
	box-shadow: none;
	position: relative;
	overflow: visible;
	backdrop-filter: none;
}

.push-notification-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
	border-radius: 16px;
	padding: 1rem;
	box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12), 0 4px 16px rgba(139, 92, 246, 0.08);
	border: 1px solid rgba(139, 92, 246, 0.15);
	backdrop-filter: blur(20px);
	position: relative;
	overflow: hidden;
}

.push-notification-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 50%, #8b5cf6 100%);
	background-size: 200% 100%;
	animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.push-notification-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	position: relative;
	z-index: 1;
}

.push-notification-left {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	flex: 1;
	min-width: 0;
}

.push-notification-icon {
	width: 44px;
	height: 44px;
	min-width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
	border-radius: 12px;
	color: #8b5cf6;
	flex-shrink: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.push-notification-card:hover .push-notification-icon {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
	transform: scale(1.05) rotate(5deg);
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.push-notification-icon svg {
	width: 24px;
	height: 24px;
	filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
	transition: transform 0.3s ease;
}

.push-notification-card:hover .push-notification-icon svg {
	transform: scale(1.1);
}

.push-notification-text {
	flex: 1;
	min-width: 0;
}

.push-notification-title {
	font-size: 0.9375rem;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 0.25rem 0;
	letter-spacing: -0.02em;
	line-height: 1.3;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	transition: all 0.3s ease;
}

.push-notification-description {
	font-size: 0.75rem;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
	padding: 0;
	font-weight: 500;
}

.push-notification-right {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex-shrink: 0;
}

.push-notification-button {
	padding: 0.625rem 1.25rem;
	background: linear-gradient(135deg, #8b5cf6 0%, #764ba2 100%);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 0.875rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4), 0 2px 8px rgba(139, 92, 246, 0.3);
	text-transform: none;
	letter-spacing: 0.02em;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

.push-notification-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s ease;
}

.push-notification-button:hover {
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
	box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5), 0 4px 12px rgba(139, 92, 246, 0.4);
	transform: translateY(-2px) scale(1.02);
}

.push-notification-button:hover::before {
	left: 100%;
}

.push-notification-button:active {
	transform: translateY(0) scale(0.98);
	box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.push-notification-dismiss {
	background: transparent;
	border: none;
	color: #64748b;
	font-size: 0.75rem;
	cursor: pointer;
	padding: 0.375rem 0.75rem;
	transition: all 0.3s ease;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	border-radius: 8px;
	font-weight: 600;
}

.push-notification-dismiss:hover {
	color: #8b5cf6;
	background: rgba(139, 92, 246, 0.1);
	transform: translateX(2px);
}

/* Responsive: Push Notification Widget */
@media (max-width: 768px) {
	.push-notification-card {
		padding: 0.875rem;
	}
	
	.push-notification-content {
		gap: 0.75rem;
	}
	
	.push-notification-left {
		gap: 0.625rem;
	}
	
	.push-notification-icon {
		width: 36px;
		height: 36px;
		min-width: 36px;
	}
	
	.push-notification-title {
		font-size: 0.875rem;
	}
	
	.push-notification-description {
		font-size: 0.6875rem;
	}
	
	.push-notification-button {
		padding: 0.5rem 1rem;
		font-size: 0.8125rem;
	}
	
	.push-notification-dismiss {
		font-size: 0.6875rem;
	}
}

@media (max-width: 480px) {
	.push-notification-card {
		padding: 0.75rem;
	}
	
	.push-notification-content {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}
	
	.push-notification-left {
		gap: 0.5rem;
	}
	
	.push-notification-icon {
		width: 32px;
		height: 32px;
		min-width: 32px;
	}
	
	.push-notification-right {
		width: 100%;
	}
	
	.push-notification-button {
		width: 100%;
	}
}

