/* General Wrapper for Homepage */
.homepage-wrapper {
    display: flex;
    justify-content: center;
    width: 100%; /* Full width */
    padding: 20px 0;
}

/* Center the Content Wrapper */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1200px; /* Limit the width for centering */
    width: 100%;
}

/* Main Posts Area */
.main-posts {
    flex: 3;
    padding: 0 20px;
}

/* Posts Grid */
.posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Post Item */
.post-item {
    background: #3b3f67;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 20px); /* Three columns */
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
}

.post-item:hover {
    transform: scale(1.05);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-title {
    font-size: 1.5em;
    color: #ffcc00;
    margin: 15px 0 10px;
}

.post-excerpt {
    color: #ccc;
    font-size: 0.9em;
}

/* Sidebar Widgets */
.sidebar-widgets {
    flex: 1;
    padding: 0 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Add a shadow for definition */
    background-color: #3b3f67;
    border-radius: 10px;
}

/* Widget Placeholder */
.widget-placeholder {
    color: #ccc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .main-posts {
        padding: 0 10px;
    }

    .sidebar-widgets {
        margin-left: 0;
        margin-top: 20px;
        padding: 0 10px;
    }

    .posts-grid {
        flex-direction: column;
    }

    .post-item {
        width: 100%; /* Full width for each post on smaller screens */
    }
}

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

.pagination a,
.pagination span {
    color: #fff;
    background: #3e206d;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
}

.pagination a:hover,
.pagination span.current {
    background: #ffcc00;
    color: #30135d;
}