.blog-list-section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
}

.blog-intro {
    text-align: center;
    max-width: 600px;
    margin: -1.5rem auto 3rem;
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    min-height: 3.2em; /* Ensures titles of different lengths align */
}

.blog-card p {
    flex-grow: 1; /* Makes sure the text content takes up available space */
}

.blog-card .btn {
    margin-top: auto; /* Pushes the button to the bottom */
    align-self: flex-start;
}

/* Single Post Page */
.blog-post-section {
    padding: 5rem 0;
    background-color: var(--surface-bg);
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.post-meta {
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* Related Posts Section */
#related-posts-container {
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.related-posts-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}
