/* ══════════════════════════════════════════════════════════════════════════
   Blog Index Pages — Latest Trend & Technical Blog
   Extends the existing insights-pages.css component set (.ins-hero,
   .ins-filters, .ins-featured, .ins-card) with thumbnail-image support and a
   page-scoped sub-nav. Purely additive — does not override any selector
   already used by insights.php / insights-*.php, so those pages are
   unaffected. Loaded only on latest-trend.php and technical-blog.php.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Sub-nav (Blog / Latest Trend / Technical Blog), restyled to match the
   .ins-filters tab visual language without touching the shared
   include/blog-menu.php partial used elsewhere on the site ───────────────── */
.bi-subnav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.bi-subnav .container {
    display: flex;
    flex-wrap: wrap;
}
.bi-subnav-link {
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}
.bi-subnav-link:hover {
    color: #1a1a2e;
    text-decoration: none;
}
.bi-subnav-link.active {
    color: #1a1a2e;
    border-bottom-color: #f1b621;
}

/* ── Thumbnail support inside .ins-featured / .ins-card ───────────────────
   insights.php's cards are text-only; these two pages have real post
   thumbnails, so we add an image slot that bleeds to the card edges. */
.ins-featured .featured-flex {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.ins-featured .featured-thumb {
    flex: 0 0 360px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.ins-featured .featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ins-featured .featured-body {
    flex: 1;
    min-width: 0;
}

.ins-card .card-thumb {
    margin: -1.75rem -1.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.ins-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ins-card h4 a,
.ins-featured h2 a {
    color: inherit;
    text-decoration: none;
}
.ins-card h4 a:hover,
.ins-featured h2 a:hover {
    color: #f1b621;
    text-decoration: underline;
}
.ins-card a.read-link:focus-visible,
.ins-featured a.read-btn:focus-visible,
.ins-card h4 a:focus-visible,
.ins-featured h2 a:focus-visible,
.bi-subnav-link:focus-visible,
.ins-filters .nav-link:focus-visible {
    outline: 2px solid #f1b621;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .ins-featured .featured-flex {
        flex-direction: column;
    }
    .ins-featured .featured-thumb {
        flex-basis: auto;
        width: 100%;
    }
}
