/* Blog Pages Stylesheet */

:root {
    --blog-max-width: 900px;
    --blog-radius: 2rem;
    --blog-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

body.blog-body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
}

.blog-main-container {
    padding: 12rem 7% 8rem;
    max-width: var(--blog-max-width);
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 6rem;
}

.blog-header h1 {
    font-size: 4.5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--main-color), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.blog-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    margin-bottom: 6rem;
    transition: transform 0.5s ease;
}

.blog-hero-img:hover {
    transform: scale(1.01);
}

.blog-content {
    font-size: 1.8rem;
    color: var(--text-color);
}

.blog-content-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--blog-radius);
    margin: 4rem 0;
    box-shadow: var(--blog-shadow);
}

.blog-content h2 {
    font-size: 3rem;
    color: var(--main-color);
    margin: 5rem 0 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--main-color);
    border-radius: 2px;
}

.blog-content h3 {
    font-size: 2.4rem;
    margin: 4rem 0 1.5rem;
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 2.5rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.blog-content li {
    margin-bottom: 1.2rem;
}

.blog-content blockquote {
    border-left: 5px solid var(--main-color);
    background: rgba(99, 102, 241, 0.05);
    padding: 2.5rem 3rem;
    margin: 4rem 0;
    font-style: italic;
    border-radius: 0 1rem 1rem 0;
}

.blog-footer {
    margin-top: 8rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3.5rem;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 5rem;
    font-weight: 600;
    font-size: 1.7rem;
    transition: 0.4s ease;
    box-shadow: 0 0.5rem 1.5rem rgba(99, 102, 241, 0.3);
}

.back-to-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.8rem 2.5rem rgba(99, 102, 241, 0.4);
    background: #4f46e5;
}

/* Animations */
.blog-post-reveal {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .blog-header h1 {
        font-size: 3.5rem;
    }

    .blog-hero-img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .blog-main-container {
        padding: 10rem 5% 6rem;
    }

    .blog-header h1 {
        font-size: 3rem;
    }

    .blog-hero-img {
        height: 300px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}