.cmr-latest-insights-section {
    font-family: 'Instrument Sans', sans-serif;
    margin: 50px 0;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Header styling */
.intel-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    background: #fff;
}

.intel-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.intel-nav-links {
    display: flex;
    gap: 35px;
}

.intel-nav-links a {
    text-decoration: none;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.intel-nav-links a:hover {
    color: #6A35FF;
}

/* Filters and Search Bar */
.cmr-insights-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.cmr-insights-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.cmr-insights-filters .filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cmr-insights-filters .filter-btn:hover {
    border-color: #111;
}
/* For active state we can keep it simple or match mockup (which didn't show active specifically, just buttons) */
/* The search bar has a purple button */

.cmr-insights-search form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 4px 6px 4px 20px;
    background: #fff;
}
.cmr-insights-search .search-field {
    border: none;
    outline: none;
    font-size: 14px;
    width: 200px;
    color: #111;
}
.cmr-insights-search .search-field::placeholder {
    color: #999;
}
.cmr-insights-search .search-submit {
    background: #4B10B4;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}
.cmr-insights-search .search-submit:hover {
    background: #3a0c8f;
}

/* Grid Layout */
.cmr-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Featured Card (Left) */
.cmr-insights-featured .insights-featured-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    height: 100%;
    min-height: 500px;
    border-radius: 0px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
}
.insights-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.insights-featured-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    color: #fff;
}
.insights-tag {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    height: auto !important;
    padding: 0 !important;
}
.insights-featured-content .insights-tag {
    display: inline-block;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 12px;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    height: auto !important;
    padding: 0 !important;
}
.insights-featured-content .insights-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 25px;
    margin-top: 0;
    transition: color 0.3s ease;
}
.insights-featured-content .insights-title:hover,
.insights-featured-card:hover .insights-title {
    color: #00D2B9 !important;
}
.insights-featured-content .insights-more-link,
.insights-featured-content .insights-more-link:hover,
.insights-featured-card .insights-more-link,
.insights-featured-card:hover .insights-more-link {
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 1px solid #fff !important;
    display: inline-flex;
    text-decoration: none;
}
.insights-featured-content .insights-more-link i,
.insights-featured-content .insights-more-link svg,
.insights-featured-content .insights-more-link:hover i,
.insights-featured-content .insights-more-link:hover svg,
.insights-featured-card:hover .insights-more-link i,
.insights-featured-card:hover .insights-more-link svg {
    color: #fff !important;
    fill: #fff !important;
}

/* Stacked Cards (Right) */
.cmr-insights-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.insights-stacked-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    background: #fff;
    transition: transform 0.3s ease;
    height: calc(33.333% - 13.33px); /* Divide equally */
}
.insights-stacked-card:hover {
    transform: translateY(-3px);
}
.insights-stacked-image {
    flex: 0 0 200px;
    height: 100%;
    border-radius: 0px;
    overflow: hidden;
}
.insights-stacked-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.insights-stacked-content {
    flex: 1;
    padding: 10px 0;
}
.insights-stacked-content .insights-tag {
    display: inline-block;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    height: auto !important;
    padding: 0 !important;
}
.insights-stacked-content .insights-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #111;
    line-height: 1.4;
    margin-bottom: 15px;
    margin-top: 0;
    transition: color 0.3s ease;
}
.insights-stacked-content .insights-title:hover {
    color: #4625A9 !important;
}
.insights-stacked-content .insights-more-link,
.insights-stacked-content .insights-more-link:hover,
.insights-stacked-card .insights-more-link,
.insights-stacked-card:hover .insights-more-link {
    font-size: 14px;
    font-weight: 600;
    color: #111 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 1px solid #111 !important;
    text-decoration: none;
}
.insights-stacked-content .insights-more-link i,
.insights-stacked-content .insights-more-link svg,
.insights-stacked-content .insights-more-link:hover i,
.insights-stacked-content .insights-more-link:hover svg,
.insights-stacked-card:hover .insights-more-link i,
.insights-stacked-card:hover .insights-more-link svg {
    color: #111 !important;
    fill: #111 !important;
}

/* General fallback hover rules for insights title and more link */
.insights-title {
    transition: color 0.3s ease;
}
.insights-title:hover,
.insights-title a:hover {
    color: #4625A9 !important;
}
.insights-more-link {
    transition: color 0.3s ease, border-color 0.3s ease;
}
.insights-more-link:hover,
.insights-more-link:hover a {
    color: #4625A9 !important;
    border-bottom-color: #4625A9 !important;
}
.insights-more-link:hover i,
.insights-more-link:hover svg,
.insights-more-link:hover a i,
.insights-more-link:hover a svg {
    color: #4625A9 !important;
    fill: #4625A9 !important;
}

/* Arrow rotation fixing if fa-arrow-up-right is used or fallback */
.fa-arrow-up-right {
    transform: rotate(45deg); /* Sometimes fa-arrow-right is rotated, but fa-arrow-up-right might be fine natively. Let's just use fa-arrow-right with rotation for safety based on what was used earlier */
}
.insights-featured-content .insights-more-link i,
.insights-stacked-content .insights-more-link i {
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .cmr-insights-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .cmr-insights-featured .insights-featured-card {
        min-height: 380px;
        height: 380px;
    }
    .insights-stacked-card {
        height: auto;
        gap: 18px;
    }
    .insights-stacked-image {
        flex: 0 0 160px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .elementor-element.elementor-element-eb6bc8c,
    .elementor-element[data-id="eb6bc8c"],
    .elementor-element.elementor-element-eb6bc8c > .e-con-inner,
    .elementor-element[data-id="eb6bc8c"] > .e-con-inner,
    .elementor-element:has(.cmr-latest-insights-section),
    .e-con:has(.cmr-latest-insights-section),
    .e-con-boxed:has(.cmr-latest-insights-section),
    .e-con-inner:has(.cmr-latest-insights-section),
    .elementor-element:has([class*="cmr-latest-insights"]),
    .e-con:has([class*="cmr-latest-insights"]),
    .e-con-inner:has([class*="cmr-latest-insights"]),
    .elementor-widget:has(.cmr-latest-insights-section),
    .elementor-widget-container:has(.cmr-latest-insights-section),
    .elementor-shortcode:has(.cmr-latest-insights-section),
    .elementor-widget:has([class*="cmr-latest-insights"]),
    .elementor-widget-container:has([class*="cmr-latest-insights"]),
    .elementor-shortcode:has([class*="cmr-latest-insights"]) {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        --padding-left: 0px !important;
        --padding-right: 0px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .cmr-latest-insights-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 25px !important;
        margin-bottom: 35px !important;
    }

    /* Nav bar inside Latest Insights must NOT have extra 16px padding on mobile */
    .cmr-latest-insights-section .intel-nav-bar:not(.intel-nav-fixed-js),
    .cmr-latest-insights-section .intel-nav-bar {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Inner blocks must span 100% width cleanly */
    .cmr-latest-insights-section .cmr-latest-insights-header,
    .cmr-latest-insights-section .cmr-insights-filters-bar,
    .cmr-latest-insights-section .cmr-insights-grid,
    .cmr-latest-insights-section .cmr-insights-featured,
    .cmr-latest-insights-section .cmr-insights-stack {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .cmr-latest-insights-header {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cmr-latest-insights-title {
        font-size: 28px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.5px !important;
        margin: 0 0 8px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        color: #0f172a !important;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cmr-latest-insights-desc {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #475569 !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Filter Chips Horizontal Scroll */
    .cmr-insights-filters-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
    }

    .cmr-insights-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
        padding-top: 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .cmr-insights-filters::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .cmr-insights-filters .filter-btn {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 8px 18px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 40px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
        line-height: 1.2 !important;
        cursor: pointer !important;
    }

    .cmr-insights-filters .filter-btn.active {
        background: #0f172a !important;
        color: #ffffff !important;
        border-color: #0f172a !important;
    }

    /* Search Bar Mobile */
    .cmr-insights-search {
        width: 100% !important;
    }

    .cmr-insights-search form {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 48px !important;
        padding: 4px 6px 4px 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 40px !important;
        background: #ffffff !important;
    }

    .cmr-insights-search .search-field {
        flex: 1 1 auto !important;
        width: 100% !important;
        border: none !important;
        outline: none !important;
        font-size: 14px !important;
        color: #0f172a !important;
        background: transparent !important;
    }

    .cmr-insights-search .search-submit {
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: #5c24d3 !important;
        color: #ffffff !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 13px !important;
    }

    /* Cards Grid on Mobile */
    .cmr-insights-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    /* Featured Left Card on Mobile */
    .cmr-insights-featured {
        width: 100% !important;
    }

    .cmr-insights-featured .insights-featured-card {
        min-height: 320px !important;
        height: 340px !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background-size: cover !important;
        background-position: center !important;
        position: relative !important;
    }

    .insights-featured-overlay {
        height: 75% !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0) 100%) !important;
    }

    .insights-featured-content {
        padding: 20px 16px !important;
    }

    .insights-featured-content .insights-tag {
        font-size: 12px !important;
        margin-bottom: 6px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        display: inline-block !important;
    }

    .insights-featured-content .insights-title {
        font-size: 20px !important;
        line-height: 1.35 !important;
        margin-bottom: 14px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        letter-spacing: -0.3px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .insights-featured-content .insights-more-link {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        border-bottom: 1px solid #ffffff !important;
        padding-bottom: 2px !important;
    }

    /* Stacked Cards on Mobile - Keep Horizontal List View */
    .cmr-insights-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .insights-stacked-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding-bottom: 14px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-decoration: none !important;
        background: transparent !important;
    }

    .insights-stacked-card:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .insights-stacked-image {
        flex: 0 0 110px !important;
        width: 110px !important;
        height: 85px !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .insights-stacked-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
    }

    .insights-stacked-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .insights-stacked-content .insights-tag {
        display: inline-block !important;
        font-size: 11px !important;
        color: #64748b !important;
        margin-bottom: 3px !important;
        font-weight: 500 !important;
    }

    .insights-stacked-content .insights-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        color: #0f172a !important;
        margin: 0 0 6px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
    }

    .insights-stacked-content .insights-more-link {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #0f172a !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        border-bottom: 1px solid #0f172a !important;
        padding-bottom: 1px !important;
    }
}

