.custom-posts-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.custom-posts-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

.top-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
}

.featured-post-container {
    flex: 2;
    margin-right: 20px;
    border-radius: 20px;
}

.sidebar {
    flex: 1;
}

.featured-post {
    padding: 20px;
    border-radius: 20px;
    position: relative;
}

.featured-post .post-thumbnail {
    position: relative;
}

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

.featured-post .category-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.featured-post h2 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: "Inter", sans-serif;
}

.featured-post h2 a {
    color: #000000;
    text-decoration: none;
}

.featured-post h2 a:hover {
    text-decoration: underline;
}

.featured-post-excerpt {
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #6d87a4;
}

.category-filters {
    margin-bottom: 20px;
}

.category-filters h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

.category-filter {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #000000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}


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

.custom-post-item {
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
}

.custom-post-item .post-thumbnail {
    position: relative;
}

.custom-post-item .post-thumbnail img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.category-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 1);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.custom-post-item .post-content {
    padding: 14px;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.custom-post-item h2 {
    font-size: 18px;
    margin-bottom: 5px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

.custom-post-item h2 a {
    color: #333;
    text-decoration: none;
}

.custom-post-item h2 a:hover {
    text-decoration: underline;
}

.custom-post-excerpt {
    font-size: 12px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #6d87a4;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    font-size: 12px;
    color: #6d87a4;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    font-size: 1.2em;
    transition: margin-left 0.3s;
}

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

.read-more:hover:after {
    margin-left: 10px;
}

.sidebar .recent-posts,
.sidebar .custom-search-bar {
    margin-bottom: 20px;
}

.custom-search-bar {
    padding: 0 5px;
}

.custom-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.custom-search-label {
    width: 60%;
}

.custom-search-field {
    flex-grow: 1;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    width: 100%;
}

.custom-search-field:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.custom-search-submit {
    padding: 15px 20px;
    background-color: #00bfa5;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-search-submit:hover {
    background-color: #009688;
}

.recent-posts {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

.sidebar .recent-posts ul {
    list-style: none;
    padding: 0;
}

.recent-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.recent-post-item:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.recent-post-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.recent-post-thumbnail {
    position: relative;
    margin-right: 10px;
    flex-shrink: 0;
}

.recent-post-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.recent-post-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recent-post-details h3 {
    font-size: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.recent-post-details .read-more {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.recent-post-details .read-more:after {
    content: '→';
    margin-left: 5px;
    font-size: 1.2em;
    transition: margin-left 0.3s;
}

.recent-post-details .read-more:hover:after {
    margin-left: 10px;
}

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

/* Existing CSS */

/* Add styles for pagination */
/* Existing CSS */

/* Add styles for pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: #6d87a4;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .current {
    background-color: #009688;
    color: #fff;
    border: 1px solid #009688;
}



