/* --- Blog General Styles --- */
.blog-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    background-color: var(--background-light);
    border-radius: 8px;
}

/* --- Blog Grid (Listing Page) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.post-card {
    text-decoration: none;
    color: var(--text-color);
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--background-light);
}

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

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

.post-card-title {
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.post-card-excerpt {
    margin: 0 0 1rem;
    flex-grow: 1;
    color: #555;
    line-height: 1.6;
}

.post-card-readmore {
    font-weight: 500;
    color: var(--primary-color);
}

/* --- Single Post Page --- */
.post-full-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-full-image {
    width: 100%;
    max-height: 500px;
    aspect-ratio: 16/9;
    margin-bottom: 2rem;
    background-color: var(--background-light);
}

.post-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.post-full-title {
    font-size: 2.8rem;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.post-full-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.post-full-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-full-content p, 
.post-full-content ul, 
.post-full-content ol {
    margin-bottom: 1.5rem;
}

.post-full-content h2,
.post-full-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* --- Post Call to Action (CTA) --- */
.post-cta {
    max-width: 750px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: var(--background-light);
    border-radius: 8px;
    text-align: center;
}

.post-cta h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.post-cta .btn {
    font-size: 1.1rem;
    padding: 12px 25px;
    margin-top: 1rem;
}

/* --- Related Posts --- */
.related-posts {
    max-width: 750px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.related-posts ul {
    list-style-type: none;
    padding: 0;
}

.related-posts li a {
    display: block;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.related-posts li a:hover {
    background-color: #eaf2ff;
}

/* --- Responsive Design for Blog --- */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-full-title {
        font-size: 2rem;
    }

    .post-cta .btn {
        width: 100%;
    }
}