/* Category Posts Section */
.category-section {
    margin-bottom: 40px;
}

.category-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns per row */
    gap: 30px;
}

.post-item {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensure proper aspect ratio */
    filter: none; /* Remove any blur or filter effects */
}

.post-title {
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin: 0;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: #007bff;
}

/* Category Title Section */
.category-title-wrap {
    width: 100%; /* Ensure it spans full width */
    margin-bottom: 20px; /* Optional: Add spacing below the category */
    padding-bottom: 10px; /* Add some space below the title text */
}

.category-title {
    margin: 0;
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    color: #333; /* Text color */
}

.category-name {
    display: inline-block;
    color: #fff;
    background-color: #068366; /* Same as background color */
    padding-left: 20px;
    padding-right: 20px;
}

/* Add border-bottom to the category title */
.category-title-wrap::after {
    content: "";
    display: block;
    width: 100%; /* Full width */
    height: 2px; /* Border thickness */
    background-color: #068366; /* Blue color for the border, change as needed */
}

main#main {
    padding: 15px;
    margin: 0px;
}

.container {
    padding: 0px;
}

/* Responsive Layout for Smaller Screens */
@media (max-width: 768px) {
    .category-posts-list {
        grid-template-columns: 1fr; /* 1 column per row on small screens */
        gap: 20px;
    }

    .post-item {
        width: 100%;
    }
    .container.grid-container {
        padding: 10px;
    }
    
    body:not(.no-sidebar) #main {
        padding: 10px;
        margin: 0px;
    }
    
    .container {
        padding: 0px!important;
        margin: 5px !important;
    }
}

/* Optional: Add a subtle background gradient to the main content area */
.site-main {
    background: linear-gradient(to top, #f4f7fa, #fff);
    padding: 40px 20px;
}

/* Add spacing around the overall container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
