.plugin-container {
    display: flex;
    gap: 20px;
}

/* Ensure categories and posts are side-by-side on larger screens */
@media (min-width: 768px) {
    .plugin-container {
        flex-direction: row;
    }

    .categories {
        width: 250px;
    }

    .post-grid {
        flex-grow: 1;
    }
}

/* On mobile, stack categories above posts */
@media (max-width: 767px) {
    .plugin-container {
        flex-direction: column;
        align-items: center;
    }

    .categories {
        width: 100%;
        text-align: center;
    }

    .post-grid {
        width: 100%;
    }
}

.categories ul {
    list-style: none;
    padding: 0;
    width: 150px; /* Increase width for longer category names */
}

.categories li {
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if text overflows */
}

.categories a {
    display: block;
    padding: 5px 10px; /* Increased padding for readability */
    text-decoration: none;
    color: #0073aa;
    cursor: pointer;
}

.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.post-item {
    width: 200px;
    text-align: center;
}

.post-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.post-link {
    text-decoration: none;
    color: inherit;
}

.post-link:hover img {
    transform: scale(1.05);
}

.post-link:hover p {
    color: #0073aa;
}