/*
Theme Name: PENNY Hackathon - Procurement Software
Description: Modern, sleek WordPress theme for procurement software company targeting SEO keywords
Version: 1.0
Author: PENNY Hackathon Team
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cta: rgb(255, 179, 0);
    --primary-color: #283b4d;
    --secondary-color: #334155;
    --accent-color: rgb(255, 179, 0);
    --text-dark: #0F172A;
    --text-light: #64748B;
    --bg-dark: #283b4d;
    --bg-light: #ffffff;
    --bg-modern: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #283b4d 0%, #1a2833 100%);
    --shadow: 0 10px 25px rgba(40, 59, 77, 0.15);
    --shadow-hover: 0 20px 40px rgba(40, 59, 77, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-modern);
    padding-top: 80px;
    margin: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    color: var(--primary-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cta), var(--primary-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.lang-link.active {
    color: var(--primary-color);
    background-color: var(--bg-light);
    font-weight: 600;
}

.lang-separator {
    color: var(--text-light);
    opacity: 0.5;
}

main {
    position: relative;
    z-index: 1;
}

.site-main {
    /* No margin-top needed - hero section starts immediately after header */
}

/* Ensure content doesn't get hidden behind fixed header on non-hero pages */
.page-content {
    padding-top: 120px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    min-height: 80px;
    box-sizing: border-box;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.cta-button {
    background: var(--gradient);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    line-height: 1.2;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    margin: 0;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary {
    background: var(--primary-cta);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-block;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgb(240, 160, 0);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(40, 59, 77, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-cta);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cta), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
}

/* Stats Section */
.stats-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 179, 0, 0.1) 0%, transparent 50%);
    animation: shimmer 3s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    transform: translateZ(0);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-cta);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-cta);
    line-height: 1;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Industry Solutions */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.industry-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.industry-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px 0 2px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: backgroundMove 20s linear infinite;
    opacity: 0.3;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    color: var(--white) !important;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    color: var(--white) !important;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-section .btn-primary {
    background: var(--primary-cta);
    color: var(--primary-color);
    padding: 18px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.3);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-section .btn-primary:hover {
    background: rgb(255, 195, 40);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 179, 0, 0.4);
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 18px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

@keyframes backgroundMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-10px) translateY(-10px); }
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section a:hover {
    color: #F1F5F9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94A3B8;
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Critical Performance Optimizations for 100 PageSpeed */
* {
    will-change: auto;
}

.feature-card,
.blog-post-excerpt,
.btn-primary,
.btn-secondary {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Font optimization */
@font-display: swap;

/* Critical resource hints */
.preload-hint {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Optimize CLS prevention */
img {
    height: auto;
    max-width: 100%;
}

.excerpt-image {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
}

/* Optimize images for core web vitals */
img[loading="lazy"] {
    content-visibility: auto;
    contain-intrinsic-size: 1px 200px;
}

/* GPU acceleration for smooth animations */
.blog-post-excerpt,
.feature-card,
.pagination .page-numbers {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Contain layout shifts */
.blog-posts {
    contain: layout style paint;
}

.blog-post-excerpt {
    contain: layout style;
}

/* Optimize for INP (Interaction to Next Paint) */
.btn-primary,
.btn-secondary,
.read-more,
.pagination .page-numbers {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Critical above-the-fold optimization */
.hero {
    contain: layout style paint;
}

/* Optimize for first contentful paint */
.site-header {
    contain: layout style;
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .section-header p {
        font-size: 1.125rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-section {
        padding: 80px 0;
        margin: 40px 0;
    }
    
    .cta-section h2 {
        font-size: 2.25rem;
    }
    
    .cta-section p {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-section .btn-primary,
    .cta-section .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        display: flex;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        min-height: 70px;
        box-sizing: border-box;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding: 1rem 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .page-content {
        padding-top: 100px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* SEO-focused content styling */
.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.keyword-highlight {
    background: linear-gradient(120deg, var(--accent-color) 0%, var(--accent-color) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    font-weight: 600;
}

.breadcrumb {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Loading animations */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Image Optimization Styles */
.lazy {
    opacity: 0;
    background: linear-gradient(90deg, 
        rgba(40, 59, 77, 0.05) 25%, 
        rgba(40, 59, 77, 0.15) 50%, 
        rgba(40, 59, 77, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius);
}

.lazy.loaded {
    opacity: 1;
    background: none;
    animation: fadeInUp 0.6s ease-out;
}

/* Modern image loading placeholder */
.image-loading {
    position: relative;
    background: var(--bg-modern);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 179, 0, 0.1), 
        transparent);
    animation: shimmer 2s infinite;
}

.image-loading::after {
    content: '📸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.3;
    color: var(--text-light);
}

/* Responsive image containers */
.responsive-image-container {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
}

.responsive-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* WebP fallback support */
.no-webp .webp-image {
    display: none;
}

.webp .fallback-image {
    display: none;
}

/* Loading placeholder for images */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-light);
    font-size: 0.875rem;
    min-height: 200px;
    border-radius: var(--border-radius);
}

/* Screenshot images styling */
.screenshot-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

/* Logo image optimization */
.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* Image loading states */
img[data-src]:not(.loaded),
img[data-webp]:not(.loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 100px;
}

/* Fade in effect for loaded images */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

img.loaded {
    animation: fadeIn 0.3s ease-in;
}

/* ========================================
   Blog Styles
======================================== */

/* Blog Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-description, .archive-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Posts Container */
.blog-posts {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes staggerIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-posts > * {
    animation: staggerIn 0.6s ease-out;
}

.blog-posts > *:nth-child(2) { animation-delay: 0.1s; }
.blog-posts > *:nth-child(3) { animation-delay: 0.2s; }
.blog-posts > *:nth-child(4) { animation-delay: 0.3s; }
.blog-posts > *:nth-child(5) { animation-delay: 0.4s; }
.blog-posts > *:nth-child(6) { animation-delay: 0.5s; }

/* Individual Blog Post Excerpt */
.blog-post-excerpt {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(40, 59, 77, 0.08);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(40, 59, 77, 0.05);
    position: relative;
    transform: translateZ(0);
}

.blog-post-excerpt:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-cta);
}

.blog-post-excerpt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.02), rgba(40, 59, 77, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-post-excerpt:hover::after {
    opacity: 1;
}

/* Post Thumbnail */
.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.excerpt-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.95) saturate(1.1);
}

.blog-post-excerpt:hover .excerpt-image {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.2);
}

/* Post Content */
.post-content {
    padding: 2rem;
    position: relative;
}

/* Entry Header */
.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.entry-title a:hover {
    color: var(--primary-cta);
}

.entry-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cta);
    transition: width 0.3s ease;
}

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

/* Entry Meta */
.entry-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.entry-meta > span {
    margin-right: 1rem;
}

.entry-meta a {
    color: var(--text-light);
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--secondary-color);
}

/* Entry Summary */
.entry-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Entry Footer */
.entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(40, 59, 77, 0.1);
}

.post-meta-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.reading-time,
.tags-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-time-icon,
.tags-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.read-more-icon {
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 0.5rem;
}

.read-more:hover .read-more-icon {
    transform: translateX(5px);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(40, 59, 77, 0.05);
    border-radius: 25px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.read-more:hover {
    color: var(--white);
    background: var(--primary-cta);
    border-color: var(--primary-cta);
    transform: translateX(5px);
}

.read-more::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.4s;
}

.read-more:hover::before {
    left: 100%;
}

.tags-links {
    font-size: 0.875rem;
    color: var(--text-light);
}

.tags-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.tags-links a:hover {
    color: var(--secondary-color);
}

/* Single Post Styles */
.blog-post {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(40, 59, 77, 0.1);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(40, 59, 77, 0.05);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cta), var(--primary-color));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.blog-post .entry-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post .entry-meta {
    font-size: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.entry-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Entry Content */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2rem 0 1rem 0;
    color: var(--primary-color);
}

.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

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

.entry-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: var(--bg-light);
    font-style: italic;
    color: var(--text-dark);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Enhanced Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(40, 59, 77, 0.1);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.post-navigation a {
    flex: 1;
    text-decoration: none;
    color: var(--text-dark);
    padding: 1.5rem;
    border: 2px solid rgba(40, 59, 77, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.post-navigation a:hover {
    background: var(--bg-modern);
    border-color: var(--primary-cta);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.post-navigation .nav-direction {
    font-size: 0.875rem;
    color: var(--primary-cta);
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-navigation .post-title {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
}

/* Single post meta styles */
.reading-time-single,
.tags-links-single {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(40, 59, 77, 0.1);
}

.share-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border: 2px solid rgba(40, 59, 77, 0.1);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--primary-cta);
    color: var(--primary-color);
    border-color: var(--primary-cta);
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-btn.linkedin:hover {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
}

/* Modern Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 4rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid rgba(40, 59, 77, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.pagination .page-numbers:hover {
    background: var(--primary-cta);
    color: var(--primary-color);
    border-color: var(--primary-cta);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.pagination .page-numbers::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.4s;
}

.pagination .page-numbers:hover::before {
    left: 100%;
}

.pagination .prev,
.pagination .next {
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    min-width: auto;
}

.pagination .dots {
    color: var(--text-light);
    padding: 0 0.5rem;
    pointer-events: none;
}

/* No Results Section */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results .page-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-results .page-content {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Enhanced Responsive Design for Blog */
@media (max-width: 1024px) {
    .blog-posts {
        gap: 2.5rem;
    }
    
    .post-content {
        padding: 1.75rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .blog-post {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .blog-post .entry-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .entry-footer {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .post-meta-footer {
        order: 2;
    }
    
    .read-more {
        padding: 0.875rem 1.75rem;
        align-self: flex-start;
        order: 1;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation a {
        padding: 1.25rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 3rem 0;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 0.5rem 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .share-text {
        margin-bottom: 0.5rem;
    }
    
    .share-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .excerpt-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .blog-post .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-post,
    .post-content {
        padding: 1.25rem;
    }
    
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .excerpt-image {
        height: 200px;
    }
    
    .reading-time,
    .tags-links,
    .reading-time-single,
    .tags-links-single {
        font-size: 0.8rem;
    }
}

/* ========================================
   Comments Styles
======================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.comment-list .children {
    margin-top: 1rem;
    margin-left: 2rem;
    list-style: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 1rem;
}

.comment-metadata a {
    color: var(--text-light);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--secondary-color);
}

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.reply {
    font-size: 0.875rem;
}

.reply a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.no-comments {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 1rem;
}

.submit {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit:hover {
    background: var(--primary-color);
}

/* Comments Navigation */
.comments-navigation {
    margin: 2rem 0;
    text-align: center;
}

.comments-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.comments-navigation a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.comments-navigation a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 1rem;
    }
    
    .comments-navigation .nav-links {
        flex-direction: column;
    }
}

/* ========================================
   Search Form Styles
======================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    max-width: 400px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-submit {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-submit:hover {
    background: var(--primary-color);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Search Results */
.search-term {
    color: var(--secondary-color);
    font-weight: 600;
    background: rgba(49, 130, 206, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.search-result .post-type {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.search-again {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.suggestions {
    margin-top: 2rem;
}

.suggestions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.suggestions ul {
    list-style: none;
    padding: 0;
}

.suggestions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.suggestions li:before {
    content: "→";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        max-width: 100%;
    }
}

/* ========================================
   Blog Enhancement Styles
======================================== */

/* Animation classes for scroll animations */
.blog-post-excerpt,
.feature-card {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

.blog-post-excerpt.animate-in,
.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(40, 59, 77, 0.1);
    z-index: 9999;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cta), var(--primary-color));
    width: 0%;
    transition: width 0.1s ease;
}

/* Speech button */
.speech-button {
    background: var(--bg-modern);
    border: 2px solid var(--primary-cta);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.speech-button:hover {
    background: var(--primary-cta);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Image lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    transform: translateX(400px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    font-weight: 600;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Copy link button */
.copy-link {
    background: var(--bg-modern) !important;
    border-color: rgba(40, 59, 77, 0.2) !important;
}

.copy-link:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Reading time calculated */
.reading-time-calculated {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Enhanced animations for mobile */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
        padding: 1rem;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .toast-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(100px);
        text-align: center;
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

/* Enhanced CTA section for blog pages */
.blog-cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
    color: white;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.blog-cta-content {
    position: relative;
    z-index: 1;
}

.blog-cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Performance enhancements */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Prefers reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .blog-post-excerpt,
    .feature-card {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .reading-progress .progress-fill {
        transition: none;
    }
    
    .image-lightbox {
        animation: none;
    }
}

/* Blog post spacing fix */
.main-content .container .blog-post {
    margin-top: 4rem;
}