/* Blog Styles for Gheware.com - Premium Design */
/* Note: premium.css is loaded separately to avoid render-blocking @import */

/* Blog-specific variables */
:root {
    --blog-max-width: 800px;
    --blog-content-width: 680px;
    --blog-sidebar-width: 300px;
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.16);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom selection color - Health Green Theme */
::selection {
    background: #22c55e;
    color: white;
}

::-moz-selection {
    background: #22c55e;
    color: white;
}

/* Blog Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Premium Blog Hero Section - Compact */
.blog-hero {
    position: relative;
    background: url('../assets/images/blog-page-hero.png') center center / cover no-repeat;
    color: white;
    padding: 2.5rem 0 3rem 0;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 50%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 0;
}

.blog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
}

.blog-hero-pattern {
    display: none;
}

@keyframes patternMove {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.blog-hero-badge-container {
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.8s ease-out;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.6); }
}

.badge-icon {
    font-size: 1.125rem;
}

.badge-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.blog-hero-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title-gradient {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes shimmer {
    0%, 100% { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1); }
    50% { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.15); }
}

/* Live Dot Animation */
.badge-live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Value Props - Horizontal Scannable Benefits */
.hero-value-props {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.value-prop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.value-prop:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.value-icon {
    width: 16px;
    height: 16px;
    stroke: #22c55e;
    flex-shrink: 0;
}

.blog-hero-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Hero Stats Bar */
.hero-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #22c55e;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero CTA Buttons */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.5);
}

.hero-cta-primary svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-cta-secondary svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.hero-cta-secondary:hover svg {
    transform: translateX(4px);
}

.blog-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.blog-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.blog-stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.blog-stat-item .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

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

/* Legacy blog header (kept for old pages) */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 6rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.blog-description {
    font-size: 1.375rem;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Grid - Compact */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog Card - Compact */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: visible;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: #e2e8f0;
}

.blog-card-image-link {
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
}

.blog-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0;
}

.blog-card-content {
    padding: 0.5rem 1rem 1rem;
}

.blog-card-category {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blog-card-featured {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #fef3c7;
    color: #d97706;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.blog-card:hover .blog-card-category {
    background: var(--gradient-primary);
    color: white;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0.75rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-read-time {
    font-weight: 500;
}

/* Premium Blog Post Hero Section */
.blog-post-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #2563eb 100%);
    color: white;
    padding: 3rem 0 4rem 0;
    overflow: hidden;
    margin-bottom: 3rem;
}

.blog-post-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.12;
}

.blog-post-hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.4) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.4) 0%, transparent 50%);
    width: 100%;
    height: 100%;
    animation: patternMove 20s ease-in-out infinite alternate;
}

.blog-post-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.blog-post-breadcrumb {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.breadcrumb-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

.blog-post-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.category-icon {
    font-size: 1.125rem;
}

.blog-post-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: white;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.blog-post-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.meta-icon {
    font-size: 1.125rem;
}

.meta-divider {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* Blog Post Content Container */
.blog-post-container {
    max-width: var(--blog-max-width);
    margin: 0 auto;
    padding: 0 1rem 4rem 1rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Legacy blog post header (kept for backward compatibility) */
.blog-post-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.blog-post-category {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.blog-post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 3rem;
}

/* Blog Post Content */
.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content a {
    color: #2563eb;
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: #1e40af;
}

.blog-post-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-post-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
}

.blog-post-content code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post-content pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

/* Blog Post Footer */
.blog-post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.blog-post-tag {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
}

.blog-post-tag:hover {
    background: #e2e8f0;
}

/* Author Bio - Compact Design */
.author-bio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
}

.author-bio:hover {
    background: #f1f5f9;
}

.author-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.author-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.author-info p {
    color: #64748b;
    line-height: 1.3;
    margin: 0;
    font-size: 0.8125rem;
}

.author-links {
    display: flex;
    gap: 0.5rem;
}

.author-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.author-link:hover {
    transform: scale(1.1);
}

.author-link:active {
    transform: scale(0.95);
}

.author-link::after {
    content: none;
}

/* X (Twitter) */
.author-link:first-child {
    background: #000000;
}

/* LinkedIn */
.author-link:nth-child(2) {
    background: #0A66C2;
}

/* YouTube */
.author-link-yt {
    background: #FF0000;
}

/* CTA Section */
.blog-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.blog-cta::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: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.blog-cta h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.blog-cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.blog-cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: white;
    color: #667eea;
    font-weight: 700;
    font-size: 1.0625rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    background: #fafafa;
}

/* Disclaimer */
.blog-disclaimer {
    padding: 1.5rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    margin-top: 2rem;
}

.blog-disclaimer p {
    font-size: 0.875rem;
    color: #92400e;
    margin: 0;
    line-height: 1.6;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.category-button {
    padding: 0.875rem 1.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    color: #475569;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-button:hover::before,
.category-button.active::before {
    opacity: 1;
}

.category-button:hover,
.category-button.active {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-button:active {
    transform: translateY(0);
}

/* Compact Blog Controls */
.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-input {
    width: 100%;
    padding: 0.625rem 2.25rem 0.625rem 2.5rem;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input:focus + .search-icon,
.search-container:focus-within .search-icon {
    color: #667eea;
}

.search-input::placeholder {
    color: #94a3b8;
}

/* Clear search button */
.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Inline results counter */
.search-results-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    white-space: nowrap;
}

.search-results-inline #resultsCount {
    font-weight: 700;
    color: #667eea;
}

.clear-link {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-link:hover {
    background: #eef2ff;
    color: #5a67d8;
}

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

/* Compact category filter */
.category-filter.compact {
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0;
}

.category-filter.compact .category-button {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    border-width: 1.5px;
}

/* Legacy clear filters button (for no-results) */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}


/* No results state */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.4s ease;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.reset-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Search highlight */
.search-highlight {
    background: linear-gradient(120deg, #fef08a 0%, #fde047 100%);
    padding: 0 2px;
    border-radius: 2px;
}

/* Responsive compact controls */
@media (max-width: 768px) {
    .blog-controls {
        gap: 0.5rem;
    }

    .search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .search-container {
        max-width: 100%;
    }

    .search-results-inline {
        justify-content: center;
    }

    .category-filter.compact {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-filter.compact .category-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .pagination-top {
        padding: 0.5rem 0;
    }
}

/* Pagination - Ultra Compact */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #22c55e;
    color: #22c55e;
}

.pagination-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.nav-btn {
    gap: 0.25rem;
    padding: 0 0.625rem;
}

.pagination-ellipsis {
    padding: 0 0.25rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.pagination-info {
    font-size: 0.6875rem;
    color: #64748b;
    white-space: nowrap;
}

.pagination-info strong {
    color: #0f172a;
}

/* Top pagination - inline style */
.pagination-top {
    margin: 0;
    padding: 0.375rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Loading state */
.blog-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive pagination */
@media (max-width: 640px) {
    .pagination-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination {
        gap: 0.2rem;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }

    .pagination-btn.nav-btn span {
        display: none;
    }

    .pagination-info {
        text-align: center;
        font-size: 0.625rem;
    }
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

.related-posts h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f172a;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   INTERNAL LINKING ENHANCEMENT STYLES
   For improved engagement and click depth
   ============================================ */

/* Related Posts Mini Section (on blog cards) */
.related-posts-mini {
    margin-top: 12px;
    padding: 10px 0 0 0;
    border-top: 1px solid #e0e7ff;
}

.related-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.related-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.related-link {
    font-size: 12px;
    color: #22c55e;
    text-decoration: none;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.related-link:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-1px);
}

.related-link .related-emoji {
    font-size: 11px;
}

/* Continue Reading Button */
.card-cta-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.continue-reading-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border: 1.5px solid #22c55e;
    border-radius: 6px;
    transition: all 0.25s ease;
    background: transparent;
}

.continue-reading-btn:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.continue-reading-btn .arrow {
    transition: transform 0.25s ease;
    font-size: 14px;
}

.continue-reading-btn:hover .arrow {
    transform: translateX(4px);
}

.engagement-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.view-count, .engagement-rate {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
}

/* Learning Paths Section */
.learning-paths-section {
    margin: 40px 0;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
    border-radius: 16px;
    border-left: 4px solid #22c55e;
}

.learning-paths-section h2 {
    font-size: 1.75em;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 24px 0;
}

.learning-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.learning-path-card {
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.06);
    transition: all 0.3s ease;
}

.learning-path-card:hover {
    border-color: #22c55e;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
    transform: translateY(-4px);
}

.learning-path-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.125em;
    color: #0f172a;
    font-weight: 600;
}

.path-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.path-step {
    display: block;
    padding: 10px 14px;
    color: #475569;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-size: 13px;
    position: relative;
}

.path-step:hover {
    border-color: #22c55e;
    transform: translateX(4px);
    background: #f0fdf4;
    color: #166534;
}

.path-step.completed {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.path-step.completed::before {
    content: '\2713';
    position: absolute;
    right: 10px;
    color: #22c55e;
    font-weight: bold;
}

.path-step.current {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #22c55e;
    color: #166534;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.path-step.current::after {
    content: 'Current';
    position: absolute;
    right: 10px;
    font-size: 10px;
    background: #22c55e;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.path-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
    padding-top: 12px;
    border-top: 1px solid #e0e7ff;
}

.path-stats span {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin: 16px 0;
    padding: 0 15px;
}

.breadcrumb-list {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "\203A";
    color: #94a3b8;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 300;
}

.breadcrumb-item a {
    color: #22c55e;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-item a:hover {
    color: #16a34a;
}

.breadcrumb-item.current span {
    color: #64748b;
    font-weight: 600;
}

/* Quick Navigation Pills */
.quick-nav-section {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.quick-nav-title {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.quick-nav-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-nav-pill:hover {
    border-color: #22c55e;
    color: #22c55e;
    background: #f0fdf4;
}

.quick-nav-pill .nav-count {
    background: #e0e7ff;
    color: #667eea;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Popular This Week Section */
.popular-section {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.popular-section h3 {
    font-size: 1.125em;
    color: #92400e;
    margin: 0 0 16px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.popular-item:hover {
    border-color: #f59e0b;
    transform: translateX(4px);
}

.popular-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-title {
    flex: 1;
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.4;
}

.popular-views {
    font-size: 11px;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Reading Progress Indicator */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Internal Linking - Mobile Responsiveness */
@media (max-width: 768px) {
    .learning-paths-section {
        padding: 20px 16px;
        margin: 24px 0;
    }

    .learning-paths-section h2 {
        font-size: 1.4em;
    }

    .learning-path-card {
        padding: 16px;
    }

    .card-cta-section {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .continue-reading-btn {
        text-align: center;
        justify-content: center;
    }

    .engagement-stats {
        justify-content: center;
    }

    .related-links {
        justify-content: flex-start;
    }

    .path-stats {
        justify-content: flex-start;
    }

    .breadcrumb-nav {
        padding: 0 10px;
    }

    .breadcrumb-list {
        font-size: 12px;
    }

    .popular-section {
        padding: 16px;
    }

    .quick-nav-section {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .learning-paths-grid {
        grid-template-columns: 1fr;
    }

    .path-step {
        font-size: 12px;
        padding: 8px 12px;
    }

    .path-step.current::after {
        position: static;
        display: block;
        margin-top: 4px;
        width: fit-content;
    }

    .related-link {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* ============================================
   TAG CLOUD SYSTEM
   Advanced content discovery feature
   ============================================ */

.tag-cloud-section {
    margin: 50px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

.tag-cloud-section h2 {
    font-size: 2em;
    color: #0c4a6e;
    margin: 0 0 10px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-cloud-container {
    margin-top: 30px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0f2fe;
    border-radius: 25px;
    background: white;
    color: #0c4a6e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.tag-item::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #0ea5e9;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
}

.tag-item:hover {
    border-color: #0ea5e9;
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
}

.tag-item.active {
    border-color: #0ea5e9;
    background: #0ea5e9;
    color: white;
}

.tag-item.size-large {
    font-size: 18px;
    padding: 12px 24px;
}

.tag-item.size-medium {
    font-size: 16px;
    padding: 10px 20px;
}

.tag-item.size-small {
    font-size: 14px;
    padding: 8px 16px;
}

.tag-item.size-tiny {
    font-size: 12px;
    padding: 6px 12px;
}

.tag-icon {
    font-size: 1.1em;
}

.tag-filters-active {
    background: white;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.active-filter-label {
    font-weight: 600;
    color: #0c4a6e;
}

.active-tags {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.active-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0ea5e9;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-tag-pill:hover {
    background: #0284c7;
}

.remove-tag {
    font-size: 10px;
    opacity: 0.8;
}

.clear-tags-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: auto;
}

.clear-tags-btn:hover {
    background: #dc2626;
}

.tag-filter-results {
    margin-top: 30px;
}

.tag-filter-results h3 {
    font-size: 1.25em;
    color: #0c4a6e;
    margin-bottom: 20px;
}

.filtered-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.filtered-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.filtered-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.filtered-post-link {
    text-decoration: none;
    color: inherit;
}

.filtered-post-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.filtered-post-content {
    padding: 16px;
}

.filtered-post-category {
    display: inline-block;
    background: #e0f2fe;
    color: #0ea5e9;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.filtered-post-content h4 {
    font-size: 1rem;
    color: #0c4a6e;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filtered-post-meta {
    font-size: 12px;
    color: #64748b;
}

.no-tag-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    color: #64748b;
}

/* ============================================
   SKILL LEVEL BADGES
   Content targeting indicators
   ============================================ */

.skill-level-badge-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.skill-badge.beginner {
    background: #22c55e;
    color: white;
}

.skill-badge.intermediate {
    background: #f59e0b;
    color: white;
}

.skill-badge.advanced {
    background: #ef4444;
    color: white;
}

.skill-icon {
    font-size: 10px;
}

.difficulty-info {
    cursor: help;
    opacity: 0.7;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    font-size: 12px;
    color: #64748b;
}

/* ============================================
   RECENTLY UPDATED INDICATORS
   Fresh content highlighting
   ============================================ */

.update-indicator {
    position: absolute;
    top: 50px;
    right: 15px;
    z-index: 2;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #8b5cf6;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.update-icon {
    font-size: 11px;
}

.update-details {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-top: 4px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ============================================
   SOCIAL PROOF & ENGAGEMENT STATS
   Trust building metrics
   ============================================ */

.social-proof-stats {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.engagement-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.metric-icon {
    font-size: 12px;
}

.metric-value {
    font-weight: 600;
    color: #374151;
}

.metric-label {
    color: #9ca3af;
}

.reading-level {
    margin-top: 8px;
}

.reading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 12px;
}

.reading-icon {
    font-size: 12px;
}

/* ============================================
   TRENDING THIS WEEK SECTION
   Dynamic popular content
   ============================================ */

.trending-this-week-section {
    margin: 40px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.trending-this-week-section h2 {
    font-size: 2em;
    color: #92400e;
    margin: 0 0 10px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-posts-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.trending-post-card {
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.trending-post-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.trending-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.rank-number {
    font-size: 2em;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
}

.rank-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.rank-change.up {
    background: #dcfce7;
    color: #166534;
}

.rank-change.stable {
    background: #e5e7eb;
    color: #6b7280;
}

.trending-content {
    flex: 1;
}

.trending-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    color: #92400e;
    line-height: 1.4;
}

.trending-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-content h3 a:hover {
    color: #f59e0b;
}

.trending-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b7280;
}

.trend-views,
.trend-engagement,
.trend-duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.trending-badge.hot {
    background: #ef4444;
    color: white;
    animation: pulse 1.5s infinite;
}

.trending-badge.rising {
    background: #22c55e;
    color: white;
}

.trending-badge.steady {
    background: #6b7280;
    color: white;
}

.trending-cta {
    text-align: center;
    margin-top: 30px;
}

.view-all-trending-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-trending-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* ============================================
   MOBILE RESPONSIVENESS FOR DISCOVERY FEATURES
   ============================================ */

@media (max-width: 768px) {
    .tag-cloud-section,
    .trending-this-week-section {
        padding: 20px 15px;
        margin: 30px 0;
    }

    .tag-cloud-section h2,
    .trending-this-week-section h2 {
        font-size: 1.5em;
    }

    .tag-cloud {
        justify-content: flex-start;
    }

    .tag-item.size-large {
        font-size: 16px;
        padding: 10px 18px;
    }

    .tag-item.size-medium {
        font-size: 14px;
        padding: 8px 14px;
    }

    .trending-post-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .trending-stats {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .skill-level-badge-container {
        position: static;
        margin-bottom: 12px;
        justify-content: center;
    }

    .update-indicator {
        position: static;
        margin-bottom: 12px;
        text-align: center;
    }

    .engagement-metrics {
        justify-content: center;
    }

    .tag-filters-active {
        flex-direction: column;
        text-align: center;
    }

    .clear-tags-btn {
        margin: 10px auto 0;
    }
}

@media (max-width: 480px) {
    .filtered-posts-grid {
        grid-template-columns: 1fr;
    }

    .trending-posts-grid {
        gap: 15px;
    }

    .trending-post-card {
        padding: 15px;
    }

    .tag-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    .tag-item.size-large,
    .tag-item.size-medium,
    .tag-item.size-small {
        font-size: 12px;
        padding: 6px 12px;
    }

    .trending-badge {
        position: static;
        margin-top: 10px;
    }
}

/* Newsletter Signup - Compact */
.newsletter-signup {
    padding: 1.5rem 1.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.newsletter-signup h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.newsletter-signup > p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-signup::before {
    content: '📬';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 80px;
    opacity: 0.05;
}

.newsletter-signup h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
    position: relative;
}

.newsletter-signup p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
    position: relative;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.newsletter-button {
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 3.5rem 0 4rem 0;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }

    .blog-hero-description {
        font-size: 1.125rem;
    }

    .blog-hero-stats {
        gap: 1.5rem;
    }

    .blog-stat-item .stat-number {
        font-size: 1.25rem;
    }

    .stat-divider {
        display: none;
    }

    .blog-header {
        padding: 4rem 0 3rem 0;
    }

    .blog-title {
        font-size: 2.25rem;
    }

    .blog-description {
        font-size: 1.125rem;
    }

    .blog-post-hero {
        padding: 2.5rem 0 3rem 0;
    }

    .blog-post-hero-title {
        font-size: 2rem;
    }

    .blog-post-hero-meta {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .meta-divider {
        display: none;
    }

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }

    .blog-post-content h2 {
        font-size: 1.5rem;
    }

    .blog-post-content h3 {
        font-size: 1.25rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .author-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

    .blog-cta {
        padding: 3rem 2rem;
    }

    .blog-cta h3 {
        font-size: 1.5rem;
    }

    .blog-cta p {
        font-size: 1rem;
    }

    .category-filter {
        gap: 0.75rem;
    }

    .category-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .blog-card-content {
        padding: 1.5rem;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-title {
        font-size: 3rem;
    }

    .blog-post-hero-title {
        font-size: 2.75rem;
    }

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