/* Moved unchanged from the inline <style> in Views/Blog/Index.cshtml */
    .fix-arrow {
        display: inline-flex; /* Ensures inline behavior while keeping flex properties */
        align-items: center; /* Aligns text and SVG */
        gap: 60px; /* Adds space between text and SVG */
        white-space: nowrap; /* Prevents line break */
        max-width: 100%;
    }

/* ---------- Design refresh (shared --ds-* tokens; layout and text unchanged) ---------- */
.main-section > .bg-white > .stats-content h2 {
    padding: 0 16px;
    color: var(--ds-ink);
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.3;
}

/* Featured post */
.blog-featured-img img {
    border-radius: var(--ds-radius-panel);
    box-shadow: var(--ds-shadow-sm);
}

.featured-blog-content span {
    display: inline-block;
    align-self: flex-start;
    width: auto !important;
    padding: 4px 12px;
    border-radius: var(--ds-radius-pill);
    background-color: var(--ds-ink);
    font-size: 13px;
    font-weight: 500;
}

.featured-blog-content .featured-title {
    color: var(--ds-ink);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.3;
}

.featured-blog-content .featured-excerpt {
    color: var(--ds-text);
    font-size: 16px;
    line-height: 1.7;
}

.featured-blog-content .fix-arrow {
    gap: 12px;
}

    .featured-blog-content .fix-arrow a {
        width: auto;
        color: var(--ds-blue-dark);
    }

    .featured-blog-content .fix-arrow svg {
        fill: var(--ds-blue-dark);
        transition: transform var(--ds-ease);
    }

    .featured-blog-content .fix-arrow:hover svg {
        transform: translateX(4px);
    }

/* "Read also" heading on a post */
.recent-blogs > h2 {
    color: var(--ds-ink);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
}

/* Year filter */
#blogSelectionYear {
    min-width: 180px;
}

/* Post tiles (Blog list, and "Read also" on a post) */
:is(.searchResults, .recent-blogs) .blog-item {
    overflow: hidden;
    border-radius: var(--ds-radius-card);
    box-shadow: var(--ds-shadow-sm);
    transition: transform var(--ds-ease), box-shadow var(--ds-ease);
}

:is(.searchResults, .recent-blogs) a:hover .blog-item,
:is(.searchResults, .recent-blogs) a:focus-visible .blog-item {
    transform: translateY(-3px);
    box-shadow: var(--ds-shadow);
}

:is(.searchResults, .recent-blogs) a:focus-visible {
    outline: 0;
}

:is(.searchResults, .recent-blogs) .blog-time span {
    border-radius: var(--ds-radius-pill);
    padding: 4px 12px;
    font-size: 13px;
}

:is(.searchResults, .recent-blogs) .blog-detail p.blog-title {
    margin-bottom: 6px;
    line-height: 1.35;
}

:is(.searchResults, .recent-blogs) .blog-detail p.blog-excerpt {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Phones and tablets have no hover, so show the short excerpt there */
@media (hover: none) {
    :is(.searchResults, .recent-blogs) .blog-detail p.blog-excerpt {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .blog-featured-img img {
        height: 260px;
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    #blogSelectionYear {
        width: 100% !important;
    }

    :is(.searchResults, .recent-blogs) .blog-item,
    :is(.searchResults, .recent-blogs) .blog-item-content {
        min-height: 300px;
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(.searchResults, .recent-blogs) .blog-item,
    .featured-blog-content .fix-arrow svg {
        transition: none;
    }
}
