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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-accent: #f8f8f8;
    --text-primary: #1a1a1a;
    --text-secondary: #404040;
    --text-muted: #737373;
    --accent-primary: #6b21a8;
    --accent-secondary: #581c87;
    --accent-tertiary: #4c1d95;
    --gradient-primary: linear-gradient(135deg, #6b21a8 0%, #581c87 50%, #4c1d95 100%);
    --border-color: #e8e8e8;
    --border-light: #f5f5f5;
    --shadow-sm: 0 4px 12px rgba(107, 33, 168, 0.12);
    --shadow-md: 0 8px 24px rgba(107, 33, 168, 0.15);
    --shadow-lg: 0 16px 48px rgba(107, 33, 168, 0.20);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

main.container{
    padding-top: 80px;
}

/* Blog Article Layout */
.blog-article {
    padding: 40px 0 80px;
}

.article-header-container {
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.article-body-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

    .breadcrumb a {
        color: var(--accent-primary);
        text-decoration: none;
        font-weight: 500;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.article-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.author-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.article-date {
    color: var(--text-muted);
    font-size: 14px;
}

.reading-time {
    color: var(--text-muted);
    font-size: 14px;
}

/* Featured Image - Wider */
.featured-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

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

.image-caption {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

    .article-content h2 {
        font-size: 32px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 48px 0 24px;
        line-height: 1.3;
        position: relative;
    }

    .article-content h3 {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 40px 0 20px;
        line-height: 1.4;
    }

    .article-content h4 {
        font-size: 20px;
        font-weight: 600;
        color: var(--accent-primary);
        margin: 32px 0 16px;
    }

    .article-content p {
        margin-bottom: 24px;
        color: var(--text-secondary);
    }

    .article-content strong {
        color: var(--text-primary);
        font-weight: 600;
    }

    .article-content a {
        color: var(--accent-primary);
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid transparent;
        transition: all 0.3s ease;
    }

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

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

    .article-content li {
        margin-bottom: 12px;
        color: var(--text-secondary);
    }

    .article-content blockquote {
        background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
        border-left: 4px solid var(--accent-primary);
        padding: 24px 28px;
        margin: 32px 0;
        border-radius: 0 12px 12px 0;
        font-style: italic;
        position: relative;
    }

        .article-content blockquote::before {
            content: '"';
            font-size: 48px;
            color: var(--accent-primary);
            position: absolute;
            top: 16px;
            left: 28px;
            opacity: 0.3;
        }

        .article-content blockquote p {
            margin: 0;
            padding-left: 32px;
            font-size: 18px;
            color: var(--text-primary);
        }

/* Newsletter CTA */
.newsletter-cta {
    background: linear-gradient(145deg, rgba(107, 33, 168, 0.05) 0%, rgba(255,255,255,0.9) 100%);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}

    .newsletter-cta h3 {
        font-size: 20px;
        font-weight: 700;
        color: var(--accent-primary);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .newsletter-cta p {
        font-size: 16px;
        color: var(--text-secondary);
        margin-bottom: 20px;
        line-height: 1.5;
    }

.newsletter-form {
    display: flex;
    gap: 6px;
    max-width: 400px;
    margin: 0 auto 16px auto;
    align-items: stretch;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

    .newsletter-form:focus-within {
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.1), var(--shadow-sm);
    }

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

    .newsletter-input::placeholder {
        color: var(--text-muted);
    }

.newsletter-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

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

.newsletter-disclaimer {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Related Articles */
.related-articles {
    margin-top: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
}

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

@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.related-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

    .related-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.related-card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e8ff 100%);
    position: relative;
    overflow: hidden;
}

    .related-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

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

.related-card-content {
    padding: 20px;
}

.related-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .breadcrumb {
        display: none;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .blog-article {
        padding: 20px 0 40px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-subtitle {
        font-size: 18px;
    }

    .article-content {
        font-size: 16px;
    }

        .article-content h2 {
            font-size: 24px;
            margin: 32px 0 16px;
        }

        .article-content h3 {
            font-size: 20px;
            margin: 24px 0 12px;
        }

    .featured-image {
        height: 250px;
        border-radius: 12px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .newsletter-input {
        width: 100%;
        padding: 16px;
    }

    .newsletter-btn {
        width: 100%;
        padding: 16px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
