/* ==========================================================================
   Insights (blog index) styles — extends style.css
   ========================================================================== */

/* ---------- Header ---------- */
.blog-header {
    padding: 120px 0 2rem;
    background: #ffffff;
    border-bottom: 1px solid #eef0f2;
}

.blog-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-header h1 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--color-black);
    margin: 0 0 0.5rem;
}

.blog-header p {
    font-size: 0.975rem;
    line-height: 1.6;
    color: var(--color-gray);
    max-width: 560px;
    margin: 0;
}

.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-tabs a span {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.blog-tabs a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.blog-tabs a.active {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #ffffff;
}

.blog-tabs a.active span {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Shared post bits ---------- */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.post-category {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--color-primary);
}

.post-dot {
    color: #cbd5e1;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-top: 0.75rem;
}

/* ---------- Featured ---------- */
.blog-featured {
    padding: 2.5rem 0 0;
    background: #ffffff;
}

.featured-post {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    background: var(--color-primary-light);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.featured-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.featured-post-media {
    min-height: 300px;
    background: #e5e7eb;
}

.featured-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-post-media.is-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #ffffff;
}

.featured-post-media.is-logo img {
    width: auto;
    height: auto;
    max-height: 90px;
    max-width: 70%;
    object-fit: contain;
}

/* Full-bleed contained image (e.g. multi-logo grids) — fills the card without cropping */
.featured-post-media.is-contain {
    background: #ffffff;
    padding: 1.5rem;
}

.featured-post-media.is-contain img {
    object-fit: contain;
}

.featured-post-body {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-body h2 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
    margin: 0 0 0.75rem;
}

.featured-post-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray);
    margin: 0;
}

/* ---------- Post list ---------- */
.blog-body {
    padding: 3rem 0 3.5rem;
    background: #ffffff;
}

.blog-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid var(--color-dark);
}

.blog-list-head h2 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
}

.blog-clear {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}

.post-list {
    display: flex;
    flex-direction: column;
}

.post-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eef0f2;
    text-decoration: none;
    color: inherit;
}

.post-row:last-child {
    border-bottom: none;
}

.post-row-media {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
}

.post-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-row:hover .post-row-media img {
    transform: scale(1.03);
}

.post-row-media.is-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--color-primary-light);
    border: 1px solid #e5e7eb;
}

.post-row-media.is-logo img {
    width: auto;
    height: auto;
    max-height: 48px;
    max-width: 80%;
    object-fit: contain;
}

.post-row-media.is-contain {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
}

.post-row-media.is-contain img {
    object-fit: contain;
}

.post-row-body h3 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0 0 0.5rem;
    transition: color 0.2s ease;
}

.post-row:hover .post-row-body h3 {
    color: var(--color-primary);
}

.post-row-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-gray);
    margin: 0;
}

.blog-empty {
    padding: 2rem 0;
    color: var(--color-gray);
}

/* ---------- Sidebar ---------- */
.blog-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-block {
    padding: 1.25rem 1.4rem;
    background: var(--color-primary-light);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.sidebar-block h4 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 0.6rem;
}

.sidebar-block p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-gray);
    margin: 0 0 0.6rem;
}

.sidebar-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.sidebar-link:hover {
    text-decoration: underline;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.topic-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--color-black);
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
}

.topic-list li:last-child a {
    border-bottom: none;
}

.topic-list a span {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.topic-list a:hover,
.topic-list a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.sidebar-block-dark {
    background: var(--color-dark);
    border-color: var(--color-dark);
}

.sidebar-block-dark h4 {
    color: #ffffff;
}

.sidebar-block-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.btn-sm-hst {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .blog-header {
        padding-top: 104px;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post-media {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    .post-row {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .post-row-media {
        aspect-ratio: 16 / 9;
    }

    .featured-post-body {
        padding: 1.5rem;
    }
}
