* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #101828;
    background: #eff4ff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Back button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #155dee;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #163cc4;
}

/* Blog post wrapper */
.blog-post {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
    overflow: hidden;
}

/* Blog header */
.blog-header {
    position: relative;
}

.blog-featured-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.blog-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
}

.blog-title {
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #e4e7ec;
}

.meta-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Blog content */
.blog-content {
    padding: 32px;
}

.blog-excerpt {
    font-size: 1.1rem;
    color: #475467;
    font-style: italic;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-left: 4px solid #155dee;
    border-radius: 6px;
}

.blog-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #344054;
}

.blog-text h2 {
    font-size: 1.6rem;
    color: #101828;
    margin: 32px 0 16px;
    border-bottom: 2px solid #e4e7ec;
    padding-bottom: 8px;
}

.blog-text h3 {
    font-size: 1.25rem;
    color: #101828;
    margin: 20px 0 12px;
}

.blog-text p {
    margin-bottom: 18px;
}

.blog-text ul,
.blog-text ol {
    margin: 18px 0;
    padding-left: 24px;
}

.blog-text li {
    margin-bottom: 6px;
}

.blog-text blockquote {
    background: #f9fafb;
    border-left: 4px solid #155dee;
    padding: 18px;
    margin: 22px 0;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.blog-text code {
    background: #f2f4f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-text pre {
    background: #101828;
    color: #f9fafb;
    padding: 18px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.9rem;
}

.blog-text pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.content-image {
    width: 100%;
    border-radius: 10px;
    margin: 22px 0;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
}

/* Author section */
.author-section {
    padding: 24px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e4e7ec;
}

.author-section img {
    width: 55px;
    height: 50px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 26px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #155dee;
}

.author-details h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: #101828;
}

.author-details p {
    font-size: 0.95rem;
    color: #475467;
    line-height: 1.6;
}

/* Related posts */
.related-posts {
    margin-top: 36px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.related-posts h2 {
    margin-bottom: 10px;
}

.related-posts h3 {
    color: #101828;
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0 15px 0 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.related-card {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e4e7ec;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-card-content {
    padding: 12px;
}

.related-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #101828;
    font-weight: 600;
}

.related-card p {
    font-size: 0.85rem;
    color: #475467;
    margin-bottom: 10px;
}

.related-card .read-more {
    display: inline-block;
    background: #155dee;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.related-card .read-more:hover {
    background: #163cc4;
}


/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .blog-title {
        font-size: 1.6rem;
    }
    .blog-content {
        padding: 20px;
    }
    .blog-text {
        font-size: 1rem;
    }
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-featured-image {
        height: 240px;
    }
    .blog-title {
        font-size: 1.4rem;
    }
    .blog-meta {
        display: none;
    }
}