/**
 * Horizontal Posts Scroll Styles
 */

/* Container styles */
.hps-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hps-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding: 20px 0;
    gap: 20px;
    height: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hps-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.hps-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.hps-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.hps-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Card styles */
.hps-post-card {
    flex: 0 0 300px;
    max-width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hps-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hps-post-thumbnail {
    height: 180px;
    overflow: hidden;
}

.hps-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hps-post-thumbnail img:hover {
    transform: scale(1.05);
}

.hps-post-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hps-post-title {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hps-post-title a {
    text-decoration: none;
}

.hps-post-excerpt {
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hps-post-card {
        flex: 0 0 260px;
        max-width: 260px;
    }
    
    .hps-post-thumbnail {
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .hps-post-card {
        flex: 0 0 220px;
        max-width: 220px;
    }
    
    .hps-post-thumbnail {
        height: 130px;
    }
}