/* Latest News & Insights section (template-parts/sections/home/news.php).
   Loaded on the homepage and on any page that adds the "News — Home"
   section; moved out of front-page CSS so both render the same design. */

/* The homepage's gradient section heading, scoped to this section so it does
   not restyle .section-title elsewhere. */
.insights-section .section-title {
    font-size: clamp(2rem * var(--type-scale, 1), 3.5vw * var(--type-scale, 1), 3rem * var(--type-scale, 1));
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin: 0 0 16px;
    background: -webkit-linear-gradient(180deg, #6FC7EA, #344C98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

.insights-section .section-title span {
    font-weight: 800;
}

[lang="ar"] .insights-section .section-title {
    font-weight: 300;
}

.insights-section .news-section__spin {
    position: absolute;
    right: -10%;
    bottom: -20%;
    width: 560px;
    height: auto;
    pointer-events: none;
    animation: rotate360 35s linear infinite;
    z-index: 1;
    opacity: 0.1;
}

[lang="ar"] .insights-section .news-section__spin {
    left: -10%;
    right: auto;
}

.insights-section {
    background: #fff;
}

.insights-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.insights-section__lead {
    max-width: 640px;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #5d6180;
}

.insights-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* Featured card — image left, solid panel right. The media box is 16:9 so
   press banners (text baked into the image) show in full; if the panel or
   sidebar stretches it taller, the image letterboxes over a blurred copy
   of itself instead of being cropped. */
.insight-feature {
    display: flex;
    flex: 0 0 66%;
    border-radius: 5px;
    overflow: hidden;
}

.insight-feature__media {
    position: relative;
    flex: 0 0 58%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b0a17;
}

.insight-feature__media::before {
    content: '';
    position: absolute;
    inset: -24px;
    background: var(--insight-media-bg, none) center / cover no-repeat;
    filter: blur(18px) brightness(0.55);
}

.insight-feature__media img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.insight-feature__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    background: rgba(10, 8, 24, 0.7);
    color: #fff;
   
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 1;
}

.insight-feature__panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 28px;
    background: var(--color-blue, #344C98);
    color: #fff;
    text-decoration: none;
}

.insight-feature__date {
   
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.65);
}

.insight-feature__title {
    margin: 14px 0 0;
    font-size: clamp(1rem, 1.6vw * var(--type-scale, 1), 1.5rem * var(--type-scale, 1));
    font-weight: 400;
    line-height: 1.35;
    color: #fff;
}

.insight-feature__excerpt {
    margin: 14px 0 0;
    max-width: 440px;
   
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.insight-feature__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: auto;
    padding-top: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    transition: gap 0.2s ease;
}

.insight-feature__panel:hover .insight-feature__link {
    gap: 14px;
    color: var(--color-lime, #C3D534);
}

/* Sidebar — 3 stacked mini articles */
.insight-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
}

.insight-mini {
    display: flex;
    gap: 14px;
    text-decoration: none;
}

.insight-mini__media {
    position: relative;
    flex: 0 0 148px;
    width: 148px;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: flex-start;
    border-radius: 5px;
    overflow: hidden;
}

.insight-mini__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insight-mini__badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    background: rgba(10, 8, 24, 0.7);
    color: #fff;
   
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
}

.insight-mini__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.insight-mini__date {
   
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(26, 26, 46, 0.45);
}

.insight-mini__title {
    margin: 0;
    font-size: calc(18px * var(--type-scale, 1));
    font-weight: 400;
    line-height: 1;
    color: rgba(32, 21, 71, 1);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.insight-mini:hover .insight-mini__title {
    color: var(--color-blue, #344C98);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .insights-layout {
        flex-direction: column;
    }

    .insight-feature {
        flex: 1 1 auto;
    }

    .insight-mini {
        flex: 1;
    }
}

@media (max-width: 700px) {
    .insights-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .insight-feature {
        flex-direction: column;
    }

    .insight-feature__media {
        flex: 0 0 auto;
        width: 100%;
    }

    .insight-sidebar {
        flex-direction: column;
    }
}
