/*** INSIGHTS UNIVERSAL STYLES ***/

.insights-listing {
    display: flex;
    flex-direction: column;
}

.insights-entry {
    border-bottom: 1px solid #e2e2e2;
}

.insights-entry:last-child {
    border-bottom: 0;
}

.insights-entry-thumb {
    /* The grey is a fallback, not decoration: a wrong 'image' path in post-data.php
       would otherwise render as blank white and be invisible against the page. */
    background-color: #e2e2e2;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.insights-entry-body {
    flex: 1;
}

.insights-entry-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #8a8a8a;
    margin-bottom: 8px;
}

.insights-category {
    color: #e57f25;
    font-weight: 700;
}

.insights-sep {
    margin: 0 8px;
    color: #cccccc;
}

.insights-entry-content h2 {
    font-size: 1.2em;
    line-height: 1.35;
    margin: 0 0 8px;
}

.insights-entry-content h2 a {
    color: #222222;
}

.insights-entry-content h2 a:hover {
    color: #e57f25;
}

.insights-entry-content p {
    margin: 0 0 14px;
}

/* Hover recolours the label and the arrow circle together, from this one rule
   on the shared parent. Do not split it into two rules. */
.insights-read-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #e57f25;
}

.insights-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    border: 1px solid #e57f25;
    border-radius: 50%;
    font-size: 0.8em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.insights-read-btn:hover {
    color: #222222;
}

.insights-read-btn:hover .insights-arrow {
    background: #222222;
    border-color: #222222;
    color: #ffffff;
}

/*** INSIGHTS POST HERO ***/

/* .subpage-hero in style.css still supplies the height, the fixed-nav offset, and
   the centred h1. These rules only add the photo layer on top of it. The image
   itself is set inline by post-template.php from the post's 'image' key, so the
   hero and the listing thumbnail always show the same picture. #insights-hero is an
   id and .subpage-hero is a class, so these win on specificity regardless of order.
   A post with an empty 'image' gets no inline style and falls back to flat #222222,
   which is what .subpage-hero renders today. */
#insights-hero {
    position: relative;
    background-color: #222222;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Scrim over the photo. The title is centred rather than left-aligned, so this is a
   flat wash instead of the left-to-right falloff used on .pdetail-hero. TO SHOW MORE
   OF THE PHOTO, lower the alpha — but keep it around 0.55+ or white uppercase text
   over a bright sky will stop being legible. */
#insights-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(34, 34, 34, 0.62);
}

/* Lift the title above the scrim. */
#insights-hero .container {
    position: relative;
    z-index: 1;
}

/*** INSIGHTS POST UNIVERSAL STYLES ***/

.insights-post h2 {
    font-weight: 700;
    margin-top: 8px;
}

/* style.css already covers .subpage-content p a. List links are not covered. */
.insights-post li a {
    font-weight: bold;
    color: #333333;
    border-bottom: 1px solid #e57f25;
}

.insights-post li a:hover {
    color: #e57f25;
}

.insights-back {
    display: inline-block;
    margin-top: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e57f25;
}

.insights-back:hover {
    color: #222222;
}

@media (min-width: 1100px) {

    .insights-entry {
        display: flex;
        gap: 28px;
        padding: 32px 0;
    }

    .insights-entry-thumb {
        width: 260px;
        height: 195px;
    }

    .insights-post {
        max-width: 1100px;
    }

}

@media (max-width: 1099px) {

    .insights-entry {
        display: flex;
        flex-direction: column;
        padding: 26px 0;
    }

    .insights-entry-thumb {
        width: 100%;
        height: 200px;
        margin-bottom: 16px;
    }

    .insights-post {
        width: 100%;
    }

}
