/* ============================================= */
/* Blog Listing Page Styles (blog.html)          */
/* ============================================= */

.blog-header-content {
    text-align: center;
    padding: 3rem 0 1rem;
    background-color: var(--light-gray);
    margin-top: 1rem;
}

.blog-header-content h1 {
    margin-bottom: 0.5rem;
}

.blog-header-content p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.blog-container {
    max-width: 1200px; /* Adjust max-width as needed */
    margin: 2rem auto; /* Center the container with top/bottom margin */
    padding: 0 1rem; /* Add padding on smaller screens */
}

.blog-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem; /* Adjust size */
    color: #333; /* Adjust color */
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    /* Responsive grid: 1 column on small screens, 2 on medium, 3 on large */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* Space between grid items */
    margin-bottom: 3rem;
}

/* Individual Blog Post Card Styling */
.blog-card {
    background-color: #fff;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden; /* Keep image corners rounded */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.blog-card a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
}

.blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Cover the area, cropping if needed */
    display: block;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to fill space */
}

.blog-card-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #222; /* Darker title color */
}

.blog-card-title a:hover {
    color: #007bff; /* Link hover color - adjust as needed */
    text-decoration: underline;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #555; /* Excerpt text color */
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1; /* Push meta and read more down */
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

.blog-card-readmore {
    display: inline-block;
    font-weight: bold;
    color: #007bff; /* Read more link color */
    text-decoration: none;
    align-self: flex-start; /* Align to the left */
}

.blog-card-readmore:hover {
    text-decoration: underline;
}

/* Pagination Styles (Optional) */
.pagination {
    text-align: center;
    margin-top: 2rem;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover,
.pagination a.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination a.current {
    cursor: default;
}


/* ============================================= */
/* Single Blog Post Page Styles (blog-post-*.html) */
/* ============================================= */

.blog-post-container {
    max-width: 800px; /* Narrower width for reading */
    margin: 2rem auto;
    padding: 0 1rem;
    background-color: #fff; /* Optional: white background for post area */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Optional: subtle shadow */
    border-radius: 8px; /* Optional: rounded corners */
}

.blog-post-content {
    padding: 2rem 1rem; /* Padding inside the container */
}

.blog-post-content h1 {
    font-size: 2.2rem; /* Larger title for single post */
    margin-bottom: 0.5rem;
    color: #222;
    line-height: 1.2;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee; /* Separator line */
    padding-bottom: 1rem;
}

.blog-post-meta a {
    color: #007bff;
    text-decoration: none;
}
.blog-post-meta a:hover {
    text-decoration: underline;
}

.blog-post-featured-image {
    width: 100%;
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Rounded corners for image */
    margin-bottom: 2rem;
}

/* Typography for post body */
.blog-post-content p,
.blog-post-content li {
    font-size: 1rem; /* Adjust base font size for readability */
    line-height: 1.7; /* Generous line height */
    color: #333;
    margin-bottom: 1.25rem;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eee; /* Subtle separator for headings */
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-post-content blockquote {
    border-left: 4px solid #007bff; /* Accent color border */
    margin: 1.5rem 0;
    padding: 0.5rem 1.5rem;
    background-color: #f8f9fa; /* Light background for quote */
    color: #555;
    font-style: italic;
}

.blog-post-content blockquote p {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote footer {
    font-style: normal;
    font-size: 0.9rem;
    color: #777;
}

/* Basic Responsive Adjustments */
@media (max-width: 768px) {
    .blog-post-content h1 {
        font-size: 1.8rem;
    }
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
    .blog-post-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        /* Ensure single column layout works well */
        grid-template-columns: 1fr;
    }
    .blog-post-container {
        margin: 1rem auto;
    }
    .blog-post-content {
        padding: 1.5rem 0.5rem;
    }
}

