/* Blog Specific Styles */

/* General blog layout */
.blog-main-content {
    padding-top: 80px; /* Space for fixed navbar */
    background-color: #f9f9f9;
}

.blog-hero {
    background-color: #e0e0e0; /* A light grey for the hero section */
    color: #333;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin-bottom: 15px;
    color: #444;
}

.blog-hero p {
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.blog-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px; /* Add padding at bottom */
    align-items: flex-start; /* Align main content and sidebar at the top */
}

.blog-posts {
    flex: 3; /* Main content takes more space */
}

.blog-sidebar {
    flex: 1; /* Sidebar takes less space */
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Featured Post */
.featured-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow: hidden; /* Ensures image corners are rounded */
    display: flex;
    flex-direction: column; /* Stack image and content */
}

.featured-post .post-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.featured-post .post-content {
    padding: 30px;
}

.featured-post h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #333;
}

/* Recent Posts Grid */
.recent-posts h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.blog-post-card .post-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.blog-post-card .post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background-color: #d1e7dd; /* Light green */
    color: #0f5132; /* Dark green */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.blog-post-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #007bff; /* Blue link color */
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

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

/* Sidebar Styling */
.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
}

.search-bar {
    display: flex;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #0056b3;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 8px;
}

.sidebar-section ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.sidebar-section ul li a:hover {
    color: #007bff;
}

.social-links a img {
    margin-right: 10px;
    border-radius: 50%;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Footer */
.site-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 25px 20px;
    margin-top: 50px;
    font-size: 0.9em;
}

/* --- NEW STYLES FOR SINGLE POST PAGE --- */
.single-post-main {
    padding-top: 80px; /* Space for fixed navbar */
    background-color: #f9f9f9;
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px 20px;
    align-items: flex-start;
}

.blog-article-full {
    flex: 3;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-article-full h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #222;
}

.blog-article-full .post-meta {
    font-size: 1em;
    color: #888;
    margin-bottom: 25px;
    display: block; /* Ensures it takes full width */
}

.blog-article-full .post-category {
    margin-bottom: 15px;
}

.full-post-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-full-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1em;
}

.post-full-content h2,
.post-full-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-full-content h2 {
    font-size: 2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.post-full-content h3 {
    font-size: 1.5em;
}

.post-full-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    font-size: 1.05em;
    line-height: 1.6;
}

.post-full-content ul li {
    margin-bottom: 5px;
}

.back-to-blog {
    margin-top: 40px;
    text-align: right;
}

.back-to-blog a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-blog a:hover {
    background-color: #ddd;
    color: #333;
}

/* Responsive Design for Blog Page (re-iterated and adjusted for single post) */
@media (max-width: 992px) {
    .blog-container,
    .single-post-main {
        flex-direction: column;
        padding: 20px; /* Adjust general padding */
    }

    .blog-sidebar {
        margin-top: 40px;
    }

    .blog-hero h1 {
        font-size: 2.5em;
    }

    .blog-article-full {
        padding: 30px;
    }

    .blog-article-full h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 15px;
    }

    .blog-hero h1 {
        font-size: 2em;
    }

    .featured-post .post-content {
        padding: 20px;
    }

    .featured-post h2 {
        font-size: 1.8em;
    }

    .posts-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
    }

    .blog-post-card .post-content {
        padding: 15px;
    }

    .blog-post-card h3 {
        font-size: 1.3em;
    }

    .blog-article-full {
        padding: 20px;
    }

    .blog-article-full h1 {
        font-size: 1.8em;
    }

    .post-full-content p {
        font-size: 1em;
    }

    .post-full-content h2 {
        font-size: 1.6em;
    }

    .post-full-content h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .blog-main-content,
    .single-post-main {
        padding-top: 60px; /* Adjust for smaller navbar on mobile if needed */
        padding: 15px;
    }
    .blog-hero {
        padding: 30px 10px;
    }
    .blog-hero h1 {
        font-size: 1.6em;
    }
    .blog-article-full {
        padding: 15px;
    }
    .blog-article-full h1 {
        font-size: 1.5em;
    }
}
/* Social Links Images */
.social-links img {
    width: 50px; /* Adjust as needed */
    height: 50px; /* Adjust as needed */
    margin-right: 10px;
    border-radius: 50%;
}