/* =================================================================
   VISEON — Archive / Tag pages
   Loaded on: is_archive() only
   ================================================================= */

/* -----------------------------------------------------------------
   HERO — query title + kicker
   ----------------------------------------------------------------- */
.viseon-archive-hero .wp-block-query-title {
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
}

/* -----------------------------------------------------------------
   POST GRID — card wrapper
   ----------------------------------------------------------------- */
.viseon-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    height: 100%;
}

.viseon-post-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

/* -----------------------------------------------------------------
   FEATURED IMAGE — fixed aspect ratio, full-width crop
   ----------------------------------------------------------------- */
.viseon-post-card .wp-block-post-featured-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.viseon-post-card .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.viseon-post-card:hover .wp-block-post-featured-image img {
    transform: scale(1.04);
}

/* No featured image — add a subtle placeholder colour */
.viseon-post-card .wp-block-post-featured-image:empty {
    background: rgba(244, 113, 29, 0.07);
}

/* -----------------------------------------------------------------
   CARD BODY
   ----------------------------------------------------------------- */
.viseon-post-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.viseon-post-card .wp-block-post-date {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: var(--wp--preset--color--text-secondary) !important;
    margin-bottom: 8px !important;
}

.viseon-post-card .wp-block-post-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.viseon-post-card .wp-block-post-title a {
    color: var(--wp--preset--color--text-primary) !important;
    text-decoration: none !important;
    transition: color 0.18s ease !important;
}

.viseon-post-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--brand-orange) !important;
}

.viseon-post-card .wp-block-post-excerpt {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    color: var(--wp--preset--color--text-secondary) !important;
    margin: 0 !important;
}

/* Hide WP's "Read more" link appended by post-excerpt block */
.viseon-post-card .wp-block-post-excerpt__more-link {
    display: none;
}

/* -----------------------------------------------------------------
   PAGINATION
   ----------------------------------------------------------------- */
.viseon-archive-hero ~ * .wp-block-query-pagination {
    gap: 6px;
}

.wp-block-query-pagination-numbers .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--wp--preset--color--text-primary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-numbers .page-numbers.current {
    background: var(--wp--preset--color--brand-orange);
    color: #ffffff;
}

/* -----------------------------------------------------------------
   RESPONSIVE — 2 cols at tablet, 1 col at mobile
   ----------------------------------------------------------------- */
@media (max-width: 781px) {
    .viseon-post-card .wp-block-post-title {
        font-size: 1rem !important;
    }
}
