/* Blog Styles */
.blog-hero {
    padding-top: 15rem;
    padding-bottom: 6rem;
    background-color: var(--light-color);
    text-align: center;
}

.blog-hero h1 {
    margin-bottom: 2rem;
}

.blog-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.8rem;
    color: var(--dark-gray);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 8rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.post-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    background-color: var(--gray-color);
    position: relative;
}

.post-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.post-meta svg {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.post-content h3 {
    margin-bottom: 1.5rem;
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content .btn {
    display: inline-flex;
    align-items: center;
}

.post-content .btn svg {
    margin-left: 0.5rem;
    width: 16px;
    height: 16px;
}

/* Single Post Page */
.single-post {
    padding: 8rem 0;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.post-header h1 {
    margin-bottom: 2rem;
}

.post-date {
    font-size: 1.6rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-date svg {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

.post-featured-image {
    max-width: 800px;
    margin: 0 auto 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-featured-image svg {
    width: 100%;
    height: auto;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
}

.post-body p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.post-body h2 {
    text-align: left;
    margin-top: 4rem;
}

.post-body h2::after {
    left: 0;
    transform: none;
}

.post-body h3 {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.post-body ul li,
.post-body ol li {
    margin-bottom: 1rem;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    color: var(--dark-gray);
}

.post-body img,
.post-body svg {
    max-width: 100%;
    height: auto;
    margin: 3rem auto;
    display: block;
    border-radius: var(--border-radius);
}

.related-posts {
    margin-top: 8rem;
}

.related-posts h2 {
    margin-bottom: 4rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-header {
        padding: 0 2rem;
    }

    .post-body {
        padding: 0 2rem;
    }

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