/* blog.css */

/* General Blog Page Layout */
.blog-page, .blog-single-post {
    padding: 30px;
    max-width: 900px; /* Narrower width for better readability of text */
    margin: 30px auto;
    background: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #E0DED7;
}

.blog-page h2, .blog-single-post h2 {
    color: #6D4C41; /* Deep, rich brown */
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: normal;
    letter-spacing: 1px;
}

/* Blog Post Summary (on blog index page) */
.blog-post-summary {
    display: flex;
    flex-direction: column; /* Stack image and content on small screens */
    margin-bottom: 40px;
    border: 1px solid #D7CDBE;
    border-radius: 5px;
    overflow: hidden;
    background-color: #FDFCFB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

@media (min-width: 768px) { /* Flex layout for larger screens */
    .blog-post-summary {
        flex-direction: row; /* Image on left, text on right */
    }
}

.blog-post-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.blog-post-summary .post-image-link {
    flex-shrink: 0; /* Prevents image from shrinking */
    width: 100%;
    max-height: 250px; /* Limit height of summary images */
    overflow: hidden; /* Ensure image fits */
}

@media (min-width: 768px) {
    .blog-post-summary .post-image-link {
        width: 300px; /* Fixed width for image on larger screens */
        max-height: none; /* Remove height limit for better flexibility */
    }
}

.blog-post-summary img {
    width: 100%;
    height: 100%; /* Make image fill its container */
    object-fit: cover; /* Crop image to fit without distortion */
    display: block; /* Remove extra space below image */
}

.blog-post-summary .post-content {
    padding: 20px 25px;
    flex-grow: 1; /* Allow content to take remaining space */
}

.blog-post-summary h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: normal;
    color: #4E342E; /* Darker brown for post titles */
}

.blog-post-summary h3 a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent h3 */
    transition: color 0.3s ease;
}

.blog-post-summary h3 a:hover {
    color: #8D6E63; /* Muted brown on hover */
    text-decoration: underline;
}

.blog-post-summary .post-meta {
    font-size: 0.9rem;
    color: #8D6E63; /* Muted brown for meta info */
    margin-bottom: 15px;
}

.blog-post-summary p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-post-summary .read-more {
    display: inline-block;
    color: #8D6E63;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-post-summary .read-more:hover {
    color: #4E342E;
    text-decoration: underline;
}

/* Individual Blog Post Styles */
.blog-single-post .post-title {
    font-size: 3rem;
    color: #6D4C41;
    text-align: left;
    margin-bottom: 15px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.blog-single-post .single-post-meta {
    font-size: 1rem;
    color: #8D6E63;
    margin-bottom: 30px;
    text-align: left;
}

.blog-single-post .single-post-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
    margin: 0 auto 30px auto;
    border: 1px solid #C4B9A7;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-single-post .post-content-full p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: #4A4A4A;
}

.blog-single-post .post-content-full h3,
.blog-single-post .post-content-full h4 {
    color: #6D4C41;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.blog-single-post blockquote {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    border-left: 5px solid #8D6E63; /* A warm brown line on the left */
    padding-left: 20px;
    margin: 2rem 0;
    color: #6D4C41;
    background-color: #FBF8F3; /* Very light background for quote */
    padding: 15px 20px;
    border-radius: 3px;
}
