/* Custom CSS for the Blog Page */

/* --- General Blog Layout --- */
.blog-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Blog Posts Grid --- */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Individual Post Card Styles */
.post-card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content .category {
    font-size: 0.875rem;
    color: var(--primary-red);
    font-weight: 600;
}

.card-content h2 {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--card-title-color);
}

.card-content p {
    margin-top: 0.75rem;
}

.card-content .read-more {
    margin-top: 1rem;
    display: inline-block;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

.card-content .read-more:hover {
    text-decoration: underline;
}

/* --- Full Blog Article Sections --- */
.full-articles {
    margin-top: 5rem;
}

.blog-article {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: var(--text-dark-gray);
}

.blog-article+.blog-article {
    margin-top: 4rem;
}

.blog-article h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-black);
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.article-body h4 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    color: var(--text-black);
}

.article-body p {
    margin-top: 1rem;
}

/* --- Responsive Design for Blog --- */
@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}