/* =========================================================
   HOME LATEST INSIGHTS
========================================================= */

section[data-module="home-latest-insights"] {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 64px 0 58px;
    overflow: hidden;
    border-top: 1px solid rgba(17, 76, 146, 0.08);
    border-bottom: 1px solid rgba(17, 76, 146, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #12213a;
}

section[data-module="home-latest-insights"] *,
section[data-module="home-latest-insights"] *::before,
section[data-module="home-latest-insights"] *::after {
    box-sizing: border-box;
}

section[data-module="home-latest-insights"] .latestinsights-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 76, 146, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 76, 146, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

section[data-module="home-latest-insights"] .latestinsights-glow {
    position: absolute;
    display: block;
    width: 480px;
    height: 480px;
    border-radius: 50%;
}

section[data-module="home-latest-insights"] .latestinsights-glow-left {
    bottom: -340px;
    left: -180px;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.09), transparent 70%);
}

section[data-module="home-latest-insights"] .latestinsights-glow-right {
    top: -350px;
    right: -150px;
    background: radial-gradient(circle, rgba(69, 183, 238, 0.1), transparent 70%);
}

section[data-module="home-latest-insights"] .latestinsights-wrapper {
    position: relative;
    z-index: 1;
    width: min(92%, 1220px);
    margin: 0 auto;
}

section[data-module="home-latest-insights"] .latestinsights-heading {
    max-width: 820px;
    margin: 0 auto 38px;
    text-align: center;
}

section[data-module="home-latest-insights"] .latestinsights-heading h2 {
    margin: 0;
    color: #101f38;
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

section[data-module="home-latest-insights"] .latestinsights-description {
    margin-top: 12px;
    color: #617089;
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 16px;
    line-height: 1.7;
}

section[data-module="home-latest-insights"] .latestinsights-description p {
    margin: 0;
}

section[data-module="home-latest-insights"] .latestinsights-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

section[data-module="home-latest-insights"] .latestinsights-card {
    min-width: 0;
    animation: latestInsightsIn 0.55s ease both;
    animation-delay: var(--latestinsights-delay, 0ms);
}

section[data-module="home-latest-insights"] .latestinsights-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    height: 100%;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(17, 76, 146, 0.12);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(20, 51, 92, 0.055);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

section[data-module="home-latest-insights"] .latestinsights-card-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #075cbd, #1677ff, #45b7ee);
    transition: width 0.35s ease;
}

section[data-module="home-latest-insights"] .latestinsights-card-inner:hover,
section[data-module="home-latest-insights"] .latestinsights-card-inner:focus-visible {
    border-color: rgba(22, 119, 255, 0.36);
    box-shadow: 0 22px 48px rgba(17, 76, 146, 0.12);
    color: inherit;
    transform: translateY(-6px);
    outline: none;
}

section[data-module="home-latest-insights"] .latestinsights-card-inner:hover::before,
section[data-module="home-latest-insights"] .latestinsights-card-inner:focus-visible::before {
    width: 100%;
}

section[data-module="home-latest-insights"] .latestinsights-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
    margin-bottom: 18px;
}

section[data-module="home-latest-insights"] .latestinsights-category {
    color: #1677ff;
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

section[data-module="home-latest-insights"] .latestinsights-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(22, 119, 255, 0.08);
    color: #1677ff;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

section[data-module="home-latest-insights"] .latestinsights-card-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

section[data-module="home-latest-insights"] .latestinsights-card-inner:hover .latestinsights-card-arrow,
section[data-module="home-latest-insights"] .latestinsights-card-inner:focus-visible .latestinsights-card-arrow {
    background: #1677ff;
    color: #ffffff;
    transform: rotate(4deg);
}

section[data-module="home-latest-insights"] .latestinsights-card h3 {
    margin: 0 0 12px;
    color: #13213a;
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

section[data-module="home-latest-insights"] .latestinsights-card time {
    display: block;
    margin: 0 0 11px;
    color: #8b96a8;
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 12px;
    line-height: 1.5;
}

section[data-module="home-latest-insights"] .latestinsights-excerpt {
    color: #637188;
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 14px;
    line-height: 1.65;
}

section[data-module="home-latest-insights"] .latestinsights-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 21px;
    color: #075cbd;
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

section[data-module="home-latest-insights"] .latestinsights-read-more svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

section[data-module="home-latest-insights"] .latestinsights-card-inner:hover .latestinsights-read-more svg,
section[data-module="home-latest-insights"] .latestinsights-card-inner:focus-visible .latestinsights-read-more svg {
    transform: translateX(4px);
}

section[data-module="home-latest-insights"] .latestinsights-mobile-controls {
    display: none;
}

section[data-module="home-latest-insights"] .latestinsights-view-all {
    margin-top: 28px;
    text-align: center;
}

section[data-module="home-latest-insights"] .latestinsights-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #075cbd;
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

section[data-module="home-latest-insights"] .latestinsights-view-all span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1677ff;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

section[data-module="home-latest-insights"] .latestinsights-view-all svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

section[data-module="home-latest-insights"] .latestinsights-view-all a:hover span,
section[data-module="home-latest-insights"] .latestinsights-view-all a:focus-visible span {
    background: #075cbd;
    transform: translateX(3px);
}

@keyframes latestInsightsIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    section[data-module="home-latest-insights"] .latestinsights-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    section[data-module="home-latest-insights"] .latestinsights-card:last-child {
        grid-column: 1 / -1;
    }

    section[data-module="home-latest-insights"] .latestinsights-card:last-child .latestinsights-card-inner {
        min-height: 285px;
    }
}

@media (max-width: 767px) {
    section[data-module="home-latest-insights"] {
        padding: 44px 0 38px;
    }

    section[data-module="home-latest-insights"] .latestinsights-wrapper {
        width: 100%;
    }

    section[data-module="home-latest-insights"] .latestinsights-heading {
        margin: 0 18px 27px;
        text-align: left;
    }

    section[data-module="home-latest-insights"] .latestinsights-heading h2 {
        font-size: 31px;
        line-height: 1.2;
    }

    section[data-module="home-latest-insights"] .latestinsights-description {
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.65;
    }

    section[data-module="home-latest-insights"] .latestinsights-track {
        display: flex;
        gap: 14px;
        width: 100%;
        padding: 0 18px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 18px;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    section[data-module="home-latest-insights"] .latestinsights-track::-webkit-scrollbar {
        display: none;
    }

    section[data-module="home-latest-insights"] .latestinsights-card,
    section[data-module="home-latest-insights"] .latestinsights-card:last-child {
        width: calc(100vw - 36px);
        min-width: calc(100vw - 36px);
        flex: 0 0 calc(100vw - 36px);
        grid-column: auto;
        scroll-snap-align: start;
    }

    section[data-module="home-latest-insights"] .latestinsights-card-inner,
    section[data-module="home-latest-insights"] .latestinsights-card:last-child .latestinsights-card-inner {
        min-height: 310px;
        padding: 24px;
        border-radius: 17px;
    }

    section[data-module="home-latest-insights"] .latestinsights-card-inner:hover {
        transform: none;
    }

    section[data-module="home-latest-insights"] .latestinsights-card h3 {
        font-size: 20px;
    }

    section[data-module="home-latest-insights"] .latestinsights-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        margin: 16px 18px 0;
    }

    section[data-module="home-latest-insights"] .latestinsights-control {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(17, 76, 146, 0.15);
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(17, 76, 146, 0.07);
        color: #075cbd;
        cursor: pointer;
        transition: color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
    }

    section[data-module="home-latest-insights"] .latestinsights-control svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    section[data-module="home-latest-insights"] .latestinsights-control:not(:disabled):hover {
        background: #1677ff;
        color: #ffffff;
    }

    section[data-module="home-latest-insights"] .latestinsights-control:disabled {
        opacity: 0.32;
        cursor: default;
    }

    section[data-module="home-latest-insights"] .latestinsights-counter {
        min-width: 62px;
        color: #8a96a8;
        font-family: var(--font-body, "Open Sans", sans-serif);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-align: center;
    }

    section[data-module="home-latest-insights"] .latestinsights-current {
        color: #1677ff;
    }

    section[data-module="home-latest-insights"] .latestinsights-divider {
        margin: 0 4px;
    }

    section[data-module="home-latest-insights"] .latestinsights-view-all {
        margin: 24px 18px 0;
        text-align: left;
    }
}

@media (max-width: 420px) {
    section[data-module="home-latest-insights"] .latestinsights-heading h2 {
        font-size: 29px;
    }

    section[data-module="home-latest-insights"] .latestinsights-card-inner,
    section[data-module="home-latest-insights"] .latestinsights-card:last-child .latestinsights-card-inner {
        min-height: 325px;
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    section[data-module="home-latest-insights"] .latestinsights-card,
    section[data-module="home-latest-insights"] .latestinsights-card-inner,
    section[data-module="home-latest-insights"] .latestinsights-card-inner::before,
    section[data-module="home-latest-insights"] .latestinsights-card-arrow,
    section[data-module="home-latest-insights"] .latestinsights-read-more svg,
    section[data-module="home-latest-insights"] .latestinsights-view-all span,
    section[data-module="home-latest-insights"] .latestinsights-control {
        animation: none;
        transition: none;
    }
}
