/* Style the insights component. */
/* =========================================================
   INSIGHTS.CSS — Perspectives & Articles Grid
   Figma Node: 1149:1343 & 1149:1340
   ========================================================= */

.insights-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--section-padding);
    background-color: var(--color-white);
}

.insights-section .insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: var(--space-2xl);
}

.insights-section .insight-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.insights-section .insight-thumb-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 260px;
    background-color: var(--color-bluish-grey);
}

.insights-section .insight-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.insights-section .insight-card:hover .insight-thumb {
    transform: scale(1.04);
}

/* 50x50 Rounded Square Badge matching Figma node 1143:956 */
/* Same as case studies: hidden by default, shown on card hover, no vertical movement */
.insights-section .insight-arrow-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.insights-section .insight-card:hover .insight-arrow-badge {
    opacity: 1;
}

.insights-section .insight-arrow-badge svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
}

/* Typography inherits from base.css */
.insights-section .insight-title {
    transition: color var(--transition-fast);
}

.insights-section .insight-card:hover .insight-title {
    color: var(--color-primary);
}

.insights-section .insight-desc {
    font-size: var(--font-size-p4);
    line-height: var(--line-height-p4);
}

.insights-section .insights-actions {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 991px) {
    .insights-section .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .insights-section .insights-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .insights-section .insight-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 30px) / 2);
        justify-self: center;
    }
}

/* Homepage reference refresh: NGT-HTML/index.html. */
:where(body.home) .insights-section .title-split{ display: grid;  grid-template-columns: repeat(2, 1fr);  gap: 30px;  align-items: flex-start; }
:where(body.home) .insights-section .insights-grid{ display: grid;  grid-template-columns: repeat(3, 1fr);  gap: 30px; }
:where(body.home) .insights-section .insight-card{ display: flex;  gap: 22px;  flex-direction: column;  cursor: pointer; }
:where(body.home) .insights-section .insight-thumb-wrap{ position: relative;  overflow: hidden;  border-radius: var(--radius-md); }
:where(body.home) .insights-section .insight-thumb{ width: 100%;  height: 100%;  object-fit: cover; }
:where(body.home) .insights-section .insight-arrow-badge{ display: flex;  align-items: center;  justify-content: center;  position: absolute;  border-radius: var(--radius-sm);  pointer-events: none; }
:where(body.home) .insights-section .insights-actions{ display: flex;  justify-content: center; }
:where(body.home) .insights-section{
    padding-top: var(--space-3xl);
    padding-bottom: var(--section-padding);
    background-color: var(--color-white);
}
:where(body.home) .insights-section .insight-card{
    text-decoration: none;
    color: inherit;
}
:where(body.home) .insights-section .insight-thumb-wrap{
    height: 260px;
    background-color: var(--color-bluish-grey);
}
:where(body.home) .insights-section .insight-thumb{
    transition: transform var(--transition-slow);
}
:where(body.home) .insights-section .insight-card:hover .insight-thumb{
    transform: scale(1.04);
}
:where(body.home) .insights-section .insight-arrow-badge{
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
:where(body.home) .insights-section .insight-card:hover .insight-arrow-badge{
    opacity: 1;
}
:where(body.home) .insights-section .insight-arrow-badge svg{
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
}
:where(body.home) .insights-section .insight-title{
    transition: color var(--transition-fast);
}
:where(body.home) .insights-section .insight-card:hover .insight-title{
    color: var(--color-primary);
}
:where(body.home) .insights-section .insight-card p{
    font-size: var(--font-size-p4);
    line-height: var(--line-height-p4);
}
:where(body.home) .insights-section .insights-actions{
    margin-top: 50px;
}
@media (max-width:1440px){:where(body.home) .insights-section .insight-thumb-wrap{
        height: 18vw;
    }}
@media (max-width:1199px){:where(body.home) .insights-section .insights-actions{
        margin-top: 40px;
    }}
@media (max-width: 991px){:where(body.home) .insights-section .insights-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
:where(body.home) .insights-section .insight-thumb-wrap{
        height: 26vw;
    }
:where(body.home) .insights-section .insights-actions{
        margin-top: 36px;
    }}
@media (max-width: 575px){:where(body.home) .insights-section .insights-grid{
        grid-template-columns: 1fr;
    }
:where(body.home) .insights-section .insight-thumb-wrap{
        height: 45vw;
    }
:where(body.home) .insights-section .insights-actions{
        margin-top: 30px;
    }}
