#custom-post-grid {
    text-align: center !important;
}

.posts-container {
    display: flex;
    flex-direction: column !important;
    gap: 20px;
}

.post-item {
    display: flex !important;
    align-items: center !important;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-item .post-image {
    width: 30% !important;
}
.post-item img {
    width: 100% !important;
    height: auto;
    object-fit: cover !important;
    border-radius: 5px;
}

.post-content {
    width: 70% !important;
    padding: 15px;
}

.post-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: left !important;
    color: black;
    white-space: nowrap; /* Title ko single line me rakhne ke liye */
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-content h2 a{
    color: black !important;
}
.post-content h2 a:hover{
    color: black !important;
}

.post-content p {
    font-size: 16px;
    color: #555;
    text-align: left !important;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Description ko 3 lines tak limit karein */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-date {
    font-size: 14px;
    color: #999999;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
        padding: 15px !important;
    }

    .post-item .post-image {
        width: 100% !important;
    }s

    .post-item img {
        width: 100% !important;
    }

    .post-content {
        width: 100% !important;
        padding: 15px 0px !important;
    }
    .post-content h2 {
        font-size: 18px;
        white-space: normal; /* Multiple lines allow karne ke liye */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Max 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

#load-more-posts {
    margin-top: 20px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

#load-more-posts:hover {
    background: #500503;
    color: white;
}