.category-posts-navigation {
    text-align: center;
    margin: 15px 0;
}

.category-posts-nav-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    transition: background 0.3s;
}

.category-posts-nav-btn:hover {
    background: #005a87;
}

.category-posts-nav-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-posts-container {
    position: relative;
}

.category-posts-list {
    min-height: 200px;
    /* Prevent layout shift during loading */
}

.category-posts-wrapper {
    font-family: Arial, sans-serif;
}

.category-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.category-post-item {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-top: 20px;
    /* width: 30% !important; */
}

.category-post-item:hover {
    transform: translateY(-5px);
}

.category-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    /* Προσθήκη flexbox */
    align-items: center;
    /* Κεντρική ευθυγράμμιση κάθετα */
}

.category-post-image {
    width: 20%;
    /* Σταθερό πλάτος για εικόνα */
    height: 20%;
    /* Σταθερό ύψος για εικόνα */
    overflow: hidden;
    flex-shrink: 0;
    /* Αποφυγή συρρίκνωσης */
    margin-right: 15px;
    /* Απόσταση από τον τίτλο */
}

.category-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-post-title {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    text-align: left;
    /* Αλλαγή σε αριστερή στοίχιση */
    color: #000000;
    background-color: aliceblue;
    flex-grow: 1;
    /* Καταλαμβάνει τον υπόλοιπο χώρο */
}


/* Responsive */

@media (max-width: 768px) {
    .category-post-link {
        flex-direction: column;
        /* Σε μικρές οθόνες, στοίχιση κάθετα */
        text-align: center;
    }
    .category-post-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .category-post-image {
        height: 150px;
    }
}