/* Insights / News */
.insights {
    background: #F7F7F7;
    width: 100%;
    height: 680px;
    margin: 0;
    padding: 0;
    padding-top: 1px;
    box-sizing: border-box;
    border-radius: 0;
}
.tag {
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    text-align: left;
    color: rgba(218, 41, 28, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}
.tag span {
    margin-right: 16px;
}
    .insights .section__head, .insights .cards-grid {
        width: 1220px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .insights .section__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 60px;
        margin-top: 80px;
    }

    .insights .view-all {
        border: 1px solid #000;
        width: 154px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 12px;
        border-radius: 8px;
        font-weight: 500;
        font-style: normal;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0;
        color: #27201F;
        text-decoration: none;
    }

        .insights .view-all .icon-arrow-right {
            width: 16px;
            height: 16px;
            display: block;
        }

    /* View All button — fill-hover colour scheme */
    .insights .view-all.btn-fill-hover {
        --btn-fill-bg: #fff;
        --btn-fill-sweep: #27201F;
        --btn-fill-text: #fff;
    }
    .insights .view-all.btn-fill-hover:hover .icon-arrow-right {
        -webkit-filter: brightness(0) invert(1);
        filter: brightness(0) invert(1);
    }

    .insights .cards-grid {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

        .insights .cards-grid .insight-card--hero {
            flex: 0 0 50%;
            height: 440px;
            display: flex;
            flex-direction: column;
            border-radius: 12px;
            overflow: hidden;
            background: #fff;
        }

            .insights .cards-grid .insight-card--hero .thumb {
                height: 284px;
            }

        .insights .cards-grid .insights__right {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-left: 24px;
        }

            .insights .cards-grid .insights__right .insight-card {
                display: flex;
                flex-direction: row;
                background: #fff;
                border-radius: 12px;
                overflow: hidden;
                height: 212px;
            }

                .insights .cards-grid .insights__right .insight-card .thumb {
                    flex: 0 0 50%;
                    width: 301px;
                    height: 100%;
                    margin: 0;
                    padding: 0;
                }

                    .insights .cards-grid .insights__right .insight-card .thumb img {
                        width: 50%;
                        height: 100%;
                        object-fit: cover;
                        display: block;
                    }

                .insights .cards-grid .insights__right .insight-card .content {
                    flex: 1;
                    min-width: 0;
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-start;
                    padding: 1rem 1.25rem;
                }

    .insights .insight-card {
        overflow: hidden;
    }

        .insights .insight-card .thumb {
            height: 100%;
            min-height: 220px;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }

            .insights .insight-card .thumb img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

    /* Left hero card larger image */
    /* Unified hero and right card thumbnails */
    .insights .cards-grid .insight-card--hero .thumb img,
    .insights .cards-grid .insights__right .insight-card .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Content spacing */
    .insights .cards-grid .insight-card--hero .content {
        padding: 20px;
        position: relative;
        height: 156px;
    }

    .insights .cards-grid .insights__right .insight-card .content {
        padding: 20px;
        position: relative;
    }

    .insights .cards-grid .insights__right .insight-card .tag {
        display: block;
    }

    /* Add margin-bottom to tag in hero card as well */
    .insights .cards-grid .insight-card--hero .tag {
        margin-bottom: 0.5rem;
    }

/* Date styling for insights content */
#insights .content .time {
    display: block;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #666666;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

/* Title styling for insights content */
#insights .content .title {
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0%;
}

/* Alias id #insight uses same panel styling */
#insight {
    background: #fff;
    width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
    border-radius: 8px;
    border: 2px dashed rgba(24,131,215,0.25);
}

    #insight .cards-grid {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

.insights .insight-card .content {
    padding: 1rem 1.25rem;
}

.insights .insight-card h3 {
    font-size: 1rem;
}

/* Separated from shared block */
.insight-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.insight-card:hover {
    border-radius: 12px;
    box-shadow: 0 0 16px 0 rgba(0,0,0,0.15);
}

.insight-card .thumb {
    background: #ddd;
    aspect-ratio: 16/9;
    margin: 0;
    padding: 0;
}

.insight-card .content {
    padding: 1rem;
}

.insight-card h3 {
    font-size: .9rem;
    margin: .5rem 0 .75rem;
    line-height: 1.3;
}


@media (max-width:1279px) {
    /* Insights (moved here from later duplicate block) */
    .insights .section__head, .insights .cards-grid {
        width: calc(100% - 2rem);
    }

    .insights .cards-grid {
        grid-template-columns: 1fr;
    }

        .insights .cards-grid > .insight-card:nth-child(2), .insights .cards-grid > .insight-card:nth-child(3) {
            grid-column: auto;
            margin-bottom: 0;
        }
}

@media (max-width:1023px) {
    .insights {
        width: 100%;
        /* keep a tiny top padding so first-child margins don't collapse with previous section */
        padding-top: 1px;
        padding-left: 0;
        padding-right: 0;
        height: auto;
        background: #F7F7F7;
    }

        .insights .section__head, .insights .cards-grid {
            width: 100%;
            padding: 0 1.25rem;
        }
    /* Make section headers sit directly after the previous section on small screens */

    .insights .cards-grid {
        flex-direction: column;
        gap: 24px;
    }

        .insights .cards-grid .insight-card--hero {
            flex: 0 0 auto;
            width: 100%;
            height: auto;
        }

            .insights .cards-grid .insight-card--hero .thumb {
                height: auto;
                aspect-ratio: 16/9;
            }

        .insights .cards-grid .insights__right {
            margin-left: 0;
            width: 100%;
            gap: 24px;
        }

            .insights .cards-grid .insights__right .insight-card {
                height: auto;
                flex-direction: row;
            }

                .insights .cards-grid .insights__right .insight-card .thumb {
                    flex: 0 0 40%;
                    width: 40%;
                    min-height: 0;
                    aspect-ratio: 4/3;
                }

                    .insights .cards-grid .insights__right .insight-card .thumb img {
                        height: 100%;
                        width: 100%;
                        object-fit: cover;
                    }
}

@media (min-width: 360px) and (max-width: 767px) {
    /* Insights adjustments */
    .insights {
        height: auto;
        padding-bottom: 100px;
        position: relative;
    }

        .insights .section__head {
            margin-top: 40px;
            margin-bottom: 24px;
            padding: 0 20px;
            display: block;
        }

        .insights [role="heading"][aria-level="2"] {
            text-align: left;
            margin: 30px 0;
        }

    .insights .view-all {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 160px;
        border: 1px solid #000;
        color: #000;
    }

    .insights .cards-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 20px;
        width: 100%;
    }

    .insights .insight-card {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

        .insights .insight-card .thumb {
            display: none;
            width: 100%;
            height: 200px;
        }

    .insights .cards-grid .insight-card--hero .content {
        height: 183px;
    }

    /* Hero Card Adjustments: Image 257px, Content 183px */
    .insights .insight-card--hero .thumb {
        display: block;
        height: 257px;
    }

    .insights .insight-card--hero .content {
        height: 183px;
        padding: 20px;
    }

    /* Right Side Articles: Height 212px */
    .insights .insights__right .insight-card {
        height: 212px !important;
    }

    .insights .insight-card .content {
        padding: 20px;
    }

    .insights .tag {
        color: #DA291C;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }

    .insights h3 {
        font-size: 18px;
        line-height: 1.4;
        margin: 0 0 12px 0;
        font-weight: 700;
    }

    .insights time {
        color: #666;
        font-size: 12px;
    }
}
