/* Hero Section */
.blog-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.blog-hero-image-wrap {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-gray-medium);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-hero-image-wrap:hover .blog-hero-image {
    transform: scale(1.02);
}

.blog-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e9ed 0%, #f5f6f8 100%);
    color: #999;
    font-size: 6rem;
}

.blog-hero-tags {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-hero-tag {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-brand);
    border: 1px solid rgba(25, 75, 251, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Content Section */
.blog-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-gray-medium);
}

.blog-date {
    font-size: 0.875rem;
    color: var(--color-text);
}

.blog-reading-time {
    font-size: 0.875rem;
    color: var(--color-text);
}

/* Body Content */
.blog-body {
    color: var(--color-text);
    line-height: 1.8;
}

.blog-body h2 {
    margin: 40px 0 20px;
}

.blog-body h3 {
    font-size: 1.25rem;
    color: var(--color-heading);
    margin: 30px 0 15px;
}

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

.blog-body li {
    margin-bottom: 12px;
}

.blog-body a {
    color: var(--color-brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(25, 75, 251, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-body a:hover {
    border-bottom-color: var(--color-brand);
    color: var(--color-heading);
}

.blog-body img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
}
.blog-body p:has(img) {
    text-align: center;
     }
.blog-body p:has(img) + p em {
    display: block;
    text-align: center;
    font-style: italic;
     }

.blog-body blockquote {
    border-left: 4px solid var(--color-brand);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--color-heading);
    background: rgba(25, 75, 251, 0.05);
    padding: 20px 20px 20px 24px;
    border-radius: 0 8px 8px 0;
}

/* Footer Navigation */
.blog-footer-nav {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 40px 20px 0;
    border-top: 1px solid var(--color-gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-back-link:hover {
    color: var(--color-brand);
}

.blog-back-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.blog-back-link:hover svg {
    transform: translateX(-4px);
}

.blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-brand);
    color: var(--color-white);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(25, 75, 251, 0.3);
}

.blog-cta:hover {
    background: #1540d6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 75, 251, 0.4);
}

.blog-cta svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero-image-wrap {
        height: 280px;
    }

    .blog-hero-tags {
        left: 30px;
        bottom: 15px;
        display: none;
    }

    .blog-body {
        font-size: 1rem;
    }

    .blog-footer-nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .blog-back-link:hover svg {
        transform: translateX(0);
    }
}
