/* =========================================================
   MECHLEAN INSIGHTS PAGE
   Clear article index layout
========================================================= */

.insights-page {
    --insight-ink: #1c1917;
    --insight-text: #57534e;
    --insight-muted: #78716c;
    --insight-bg: #fafaf9;
    --insight-border: #e7e5e4;
    --insight-blue: #143E88;
    --insight-blue-dark: #0f2f68;
    --insight-green: #166534;
    background: var(--insight-bg);
}

.insights-page .header-gradient-border {
    height: 1px;
    background: linear-gradient(to right, #00B87C, #0076B9);
}

.insights-page main {
    background: var(--insight-bg);
}

.insights-kicker {
    color: var(--insight-green);
    display: inline-block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.insights-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--insight-border);
    padding: 54px 0 44px;
}

.insights-hero-inner {
    max-width: 900px;
}

.insights-hero h1 {
    color: var(--insight-ink);
    font-family: Georgia, serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.14;
    margin: 10px 0 14px;
    max-width: 820px;
}

.insights-hero p {
    color: var(--insight-text);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 780px;
}

.insights-series {
    padding: 58px 0 74px;
}

/* changed - collapsible series (accordion) */
.insights-series--collapsible {
    padding: 18px 0 0;
}

.insights-series--collapsible:last-of-type {
    padding-bottom: 40px;
}

.insights-series-bar {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--insight-border);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 22px 28px;
    transition: border-color 0.2s ease;
}

.insights-series-bar:hover {
    border-color: #cbd5e1;
}

.insights-series-bar:focus-visible {
    outline: 2px solid var(--insight-blue);
    outline-offset: 2px;
}

.insights-series-bar-text h2 {
    color: var(--insight-ink);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    margin: 6px 0 0;
}

.insights-series-bar-text p {
    color: var(--insight-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0 0;
    max-width: 640px;
}

.insights-series-bar-aside {
    align-items: center;
    color: var(--insight-blue);
    display: flex;
    flex-shrink: 0;
    gap: 16px;
}

.insights-series-count {
    color: var(--insight-muted);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.insights-series-bar-aside .fa-chevron-down {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.insights-series-bar[aria-expanded="false"] .fa-chevron-down {
    transform: rotate(-90deg);
}

.insights-series--collapsible .insights-article-list {
    margin-top: 20px;
}

.insights-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 28px;
}

.insights-section-head h2 {
    color: var(--insight-ink);
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.2;
    margin: 8px 0 0;
}

.insights-section-head p {
    color: var(--insight-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    max-width: 460px;
}

.insights-article-list {
    display: grid;
    gap: 22px;
}

.insight-row {
    background: #ffffff;
    border: 1px solid var(--insight-border);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 235px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

/* changed - portrait (1200x1500) carousel images shown in full, no crop */
.insight-row-media {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
}

.insight-row-media img {
    display: block;
    height: auto;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.insight-row:hover .insight-row-media img {
    transform: scale(1.025);
}

.insight-row-body {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 22px;
    padding: 28px 30px;
}

.insight-number {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--insight-border);
    color: var(--insight-blue);
    display: inline-flex;
    font-family: Georgia, serif;
    font-size: 26px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.insight-meta {
    color: var(--insight-green);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.insight-row h3 {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.25;
    margin: 8px 0 10px;
}

.insight-row h3 a {
    color: var(--insight-ink);
    text-decoration: none;
}

.insight-row h3 a:hover {
    color: var(--insight-blue);
}

.insight-row p {
    color: var(--insight-text);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 16px;
}

.insight-read-link {
    color: var(--insight-blue);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.insight-read-link:hover {
    color: var(--insight-blue-dark);
    text-decoration: none;
}

.insights-cta {
    background: #ffffff;
    border-top: 1px solid var(--insight-border);
    padding: 46px 0;
}

.insights-cta-inner {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.insights-cta h2 {
    color: var(--insight-ink);
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin: 8px 0 0;
}

@media (max-width: 991px) {
    .insights-section-head,
    .insight-row,
    .insights-cta-inner {
        grid-template-columns: 1fr;
    }

    .insights-section-head,
    .insights-cta-inner {
        align-items: start;
        display: grid;
    }

    /* changed - stacked rows: keep the portrait poster a sensible size, centered */
    .insight-row-media {
        padding: 20px 14px 0;
    }

    .insight-row-media img {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .insights-hero {
        padding: 42px 0 36px;
    }

    .insights-hero h1 {
        font-size: 34px;
    }

    .insights-series {
        padding: 42px 0 54px;
    }

    .insight-row-body {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px;
    }

    .insight-row h3 {
        font-size: 24px;
    }

    /* changed - compact collapsible bar on phones */
    .insights-series-bar {
        padding: 18px 18px;
        gap: 14px;
    }

    .insights-series-bar-text h2 {
        font-size: 24px;
    }

    .insights-series-count {
        display: none;
    }
}
