/* QX Archive Grid Layout - Updated Version */
.qx-pagination {
    margin-top: 2rem;
    text-align: center;
}

.qx-pagination .pagination {
    display: inline-flex;
    gap: 0.5rem;
}
.qx-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.qx-post-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.qx-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.qx-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.qx-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.qx-post-item:hover .qx-post-image img {
    transform: scale(1.05);
}

.qx-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.qx-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    height: 3.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.qx-post-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qx-post-title a:hover {
    color: #3b82f6;
}

.qx-post-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
    height: 4.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.qx-read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.qx-read-more:hover {
    color: #1d4ed8;
}

.qx-arrow {
    transition: transform 0.3s ease;
}

.qx-read-more:hover .qx-arrow {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qx-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .qx-post-image {
        height: 180px;
    }
    
    .qx-post-content {
        padding: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .qx-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .qx-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}