/* Blog-specific styles with beautiful typography */
:root {
    --primary-color: #6a5acd;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --text-secondary: #555;
    --text-light: #777;
    --background-color: #ffffff;
    --container-width: 1100px;
    --blog-max-width: 800px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(106,90,205,0.12), transparent 60%),
                radial-gradient(900px 500px at 110% 10%, rgba(80,200,120,0.06), transparent 60%),
                #fafbfc;
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container & Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(106, 90, 205, 0.2));
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Blog Listing */
.blog-listing {
    padding: 80px 0 100px;
    flex: 1;
}

.blog-header {
    text-align: center;
    margin-bottom: 64px;
    animation: fadeInUp 0.6s ease;
}

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

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #7f9cf5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(106, 90, 205, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: transform 0.3s ease;
}

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

.blog-card-content {
    padding: 28px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-color);
    line-height: 1.3;
}

.blog-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    transition: gap 0.2s ease;
}

.blog-card:hover .read-more {
    gap: 12px;
}

/* Blog Post */
.blog-post {
    padding: 40px 0 80px;
    flex: 1;
}

.blog-post-header {
    max-width: var(--blog-max-width);
    margin: 0 auto 40px;
    text-align: center;
}

.blog-category {
    display: inline-block;
    background: rgba(106, 90, 205, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-post-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-featured-image {
    width: 100%;
    max-width: var(--blog-max-width);
    margin: 0 auto 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content {
    max-width: var(--blog-max-width);
    margin: 0 auto;
    background: white;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Typography within blog content */
.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.blog-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-secondary);
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-color);
}

.blog-content p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.blog-content strong {
    font-weight: 700;
    color: var(--text-color);
}

.blog-content em {
    font-style: italic;
    color: var(--text-secondary);
}

.blog-content ul,
.blog-content ol {
    margin: 24px 0;
    padding-left: 30px;
}

.blog-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--text-color);
}

.blog-content blockquote {
    margin: 32px 0;
    padding: 20px 30px;
    border-left: 4px solid var(--primary-color);
    background: rgba(106, 90, 205, 0.05);
    border-radius: 0 8px 8px 0;
}

.blog-content blockquote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(106, 90, 205, 0.3);
    transition: border-color 0.2s ease;
}

.blog-content a:hover {
    border-bottom-color: var(--primary-color);
}

.blog-content code {
    background: rgba(106, 90, 205, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.08) 0%, rgba(127, 156, 245, 0.08) 100%);
    border: 2px solid rgba(106, 90, 205, 0.2);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 32px 0;
}

.highlight-box h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Statistics/numbers styling */
.stat-highlight {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    margin: 0 4px;
}

/* CTA Section within blog */
.blog-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7f9cf5 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
}

.blog-cta h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

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

/* Footer */
.blog-footer {
    max-width: var(--blog-max-width);
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid #eee;
    text-align: center;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: gap 0.2s ease;
}

.back-to-home:hover {
    gap: 12px;
}

/* Footer */
.blog-page-footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.5);
    margin-top: auto;
}

.blog-page-footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-header p {
        font-size: 1.1rem;
    }

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

    .blog-content {
        padding: 30px 24px;
    }

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

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

    .blog-content p,
    .blog-content li {
        font-size: 1rem;
    }

    .blog-content p:first-of-type {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }

    .blog-post-header h1 {
        font-size: 1.6rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 28px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .blog-card h2 {
        font-size: 1.3rem;
    }
}

