.posts-home-container {
    width: 95%;
    margin: 0 auto;
    padding-top: 16px;
}

.posts-home-title {
    margin-bottom: 16px;
    text-align: left;
    font-size: 1.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.posts-home-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 8px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: normal;
}

.posts-home-list::-webkit-scrollbar {
    display: none;
}

.posts-home-item {
    width: 300px;
    height: 450px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.posts-home-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.posts-home-content {
    display: flex;
    flex-direction: column;
    padding: 15px;
    height: 100%;
}

.posts-home-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    max-width: 100%;
}

.posts-home-description {
    font-size: 1rem;
    margin: 0 0 10px 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
    max-width: 100%;
    max-height: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.posts-home-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.posts-home-date {
    color: #6c757d;
    font-size: 0.8rem;
}

.posts-home-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #1c1c33;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
}

.posts-home-link:hover {
    background-color: #3A3A69;
}

@media (max-width: 768px) {
    .posts-home-container {
        width: 95%;
        padding-top: 12px;
    }

    .posts-home-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .posts-home-list {
        gap: 12px;
    }

    .posts-home-item {
        width: 250px;
        height: 400px;
    }

    .posts-home-image {
        height: 120px;
    }

    .posts-home-content {
        padding: 12px;
    }

    .posts-home-title {
        font-size: 1.1rem;
    }

    .posts-home-description {
        font-size: 0.9rem;
        max-height: 80px;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 480px) {
    .posts-home-container {
        width: 95%;
        padding-top: 8px;
    }

    .posts-home-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .posts-home-list {
        gap: 10px;
    }

    .posts-home-item {
        width: 200px;
        height: 350px;
    }

    .posts-home-image {
        height: 100px;
    }

    .posts-home-content {
        padding: 10px;
    }

    .posts-home-title {
        font-size: 1rem;
    }

    .posts-home-description {
        font-size: 0.8rem;
        max-height: 70px;
        -webkit-line-clamp: 4;
    }

    .posts-home-date,
    .posts-home-link {
        font-size: 0.7rem;
    }

    .posts-home-link {
        padding: 4px 8px;
    }
}
