/* =========================================================
   CN Insight page refresh (frontend/cn-insight.blade.php). Loaded after cninsight.css and
   cninsight-modern.css, so it wins without editing them.
   - .cni-hero: new hero (navy gradient + network pattern, eyebrow, headline, quick links)
   - section tabs: pill tabs with icons, current one filled
   - cards: calmer headings (sentence case), a date chip, softer shadows, a lift on hover
   ========================================================= */

/* ---------- hero ---------- */
.cni-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(240, 127, 34, .22), transparent 38%),
        radial-gradient(circle at 70% 90%, rgba(28, 104, 181, .45), transparent 45%),
        linear-gradient(120deg, #0b1f4a 0%, #15416e 55%, #1c5a94 100%);
}
.cni-hero::before {   /* network dots + lines, faded towards the text side */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.6px),
        linear-gradient(115deg, transparent 49.6%, rgba(255, 255, 255, .06) 50%, transparent 50.4%);
    background-size: 28px 28px, 140px 140px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 35%, #000 75%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 35%, #000 75%);
    pointer-events: none;
}
.cni-hero__inner { position: relative; z-index: 1; max-width: 1170px; }
.cni-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ffb37a;
}
.cni-hero__eyebrow span { width: 28px; height: 2px; background: #f07f22; border-radius: 2px; }
.cni-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
    color: #fff;
}
.cni-hero h1 em { font-style: normal; color: #ffb37a; }
.cni-hero__lead {
    max-width: 620px;
    margin: 0 0 30px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}
.cni-hero__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.cni-hero__chips a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.cni-hero__chips a .fa { color: #ffb37a; font-size: 15px; }
.cni-hero__chips a:hover { background: #f07f22; border-color: #f07f22; transform: translateY(-2px); }
.cni-hero__chips a:hover .fa { color: #fff; }

/* ---------- section tabs ---------- */
.services-menu.sticky_nav {
    background: #fff !important;
    border-bottom: 1px solid #e3e9f1;
    box-shadow: 0 8px 20px -16px rgba(15, 41, 74, .45);
}
.services-menu.sticky_nav .anchor-nav { gap: 10px !important; padding: 12px 0 !important; }
.services-menu.sticky_nav .anchor-nav li a.sticky_link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 9px 20px !important;
    border: 1px solid #d5deea !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #15416e !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.services-menu.sticky_nav .anchor-nav li a.sticky_link .fa { color: #f07f22; font-size: 14px; }
.services-menu.sticky_nav .anchor-nav li a.sticky_link:hover { border-color: #15416e !important; background: #f3f6fa !important; }
.services-menu.sticky_nav .anchor-nav li a.sticky_link.active {
    background: #15416e !important;
    border-color: #15416e !important;
    color: #fff !important;
}
.services-menu.sticky_nav .anchor-nav li a.sticky_link.active .fa { color: #ffb37a; }
.services-menu.sticky_nav .sticky_link.active::after { display: none !important; }

/* ---------- section headings ---------- */
.modern-section-header h2 { letter-spacing: -.01em; }
.modern-section-header .section-accent { background: #f07f22 !important; }

/* ---------- blog / newsletter / podcast / event cards ---------- */
.template15-wrap-main {
    border: 1px solid #e3e9f1 !important;
    border-radius: 14px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px -20px rgba(15, 41, 74, .45) !important;
    transition: transform .3s ease, box-shadow .3s ease;
}
.template15-wrap-main:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(15, 41, 74, .55) !important; }
.template15-wrap-main-img { background: linear-gradient(135deg, #15416e, #1c5a94); }   /* shows while the photo loads */
.template15-wrap-main-img img { transition: transform .6s ease; }
.template15-wrap-main:hover .template15-wrap-main-img img { transform: scale(1.05); }
.template15-wrap-main-content span i {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff3e8;
    color: #c75f12;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.template15-wrap-main-content h4,
.template15-wrap-main-content h4 a {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    color: #0f2a4a !important;
}
.template15-wrap-main-content h4 a:hover { color: #f07f22 !important; }
.template15-wrap-main-content p { color: #5b6b80; line-height: 1.65; }
.template15-wrap-main-content p a { color: #f07f22 !important; font-weight: 700; text-decoration: none; }

/* ---------- "View all" buttons ---------- */
.blog-view a {
    border-radius: 8px !important;
    background: #15416e !important;
    box-shadow: 0 10px 22px -12px rgba(21, 65, 110, .7) !important;
    transition: background-color .25s ease, transform .25s ease !important;
}
.blog-view a:hover { background: #f07f22 !important; transform: translateY(-2px); }

/* ---------- phones ---------- */
@media (max-width: 991px) {
    .cni-hero { padding: 44px 0 50px; }
    .cni-hero__lead { font-size: 16px; margin-bottom: 22px; }
    .cni-hero__chips { gap: 8px; }
    .cni-hero__chips a { padding: 8px 12px; font-size: 13.5px; }
    .services-menu.sticky_nav .anchor-nav { gap: 6px !important; padding: 10px 6px !important; overflow-x: auto; justify-content: flex-start !important; flex-wrap: nowrap; }
    .services-menu.sticky_nav .anchor-nav li a.sticky_link { padding: 7px 12px !important; font-size: 13px !important; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .template15-wrap-main, .template15-wrap-main-img img, .cni-hero__chips a { transition: none; }
    .template15-wrap-main:hover, .cni-hero__chips a:hover { transform: none; }
}

/* tab strip: plain white (the old wrapper paints a dotted image from another domain) and tabs at
   their natural height (the page sets a 50px line-height and 20px side margins on them) */
.sticky_nav_container_wrapper { background: #fff !important; }
.services-menu.sticky_nav .sticky_nav_container { padding: 0 !important; }
.services-menu.sticky_nav .anchor-nav,
.services-menu.sticky_nav .anchor-nav li { line-height: 1.3 !important; }
.services-menu.sticky_nav .anchor-nav li a.sticky_link { margin: 0 !important; line-height: 1.3 !important; }

/* the dotted image sits on the inner container, not the wrapper */
.services-menu.sticky_nav .sticky_nav_container { background: #fff !important; }

@media (max-width: 991px) {
    /* the phone header is fixed (38px): start the hero below it */
    .cni-hero { padding-top: 78px; }
    .cni-hero__inner { padding-left: 18px; padding-right: 18px; }
    .cni-hero h1 { font-size: 30px; }
    /* section titles on phones ("Trending Blogs" etc.): the desktop look — navy text, orange accent */
    .mobile-view .m-title:not(.category-header) {
        background: none !important;
        padding: 6px 0 14px !important;
        margin-bottom: 8px;
        border-bottom: 2px solid #e3e9f1;
        position: relative;
    }
    .mobile-view .m-title:not(.category-header)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: #f07f22; }
    .mobile-view .m-title:not(.category-header) h3, .mobile-view .m-title:not(.category-header) h2 { color: #0f2a4a !important; font-size: 22px !important; font-weight: 700 !important; margin: 0 !important; }
}

/* ---------- Newsletter (#tabs-nav1) and Events (#tabs-nav) category tabs ----------
   One rounded segmented bar: the categories sit side by side in a white track; the active one is
   filled navy with an orange underline, the others turn soft blue on hover. Desktop only — phones
   use their own accordion. (#template15 … .desktop + !important: the older sheets set these with
   !important.) */
@media (min-width: 992px) {
    #template15 .desktop-view ul#tabs-nav1.desktop,
    #template15 .desktop-view ul#tabs-nav.desktop {
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px !important;
        width: max-content !important;
        max-width: 100%;
        margin: 0 auto 36px !important;
        padding: 6px !important;
        background: #fff !important;
        border: 1px solid #e3e9f1 !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 26px -18px rgba(15, 41, 74, .45);
    }
    #template15 .desktop-view ul#tabs-nav1.desktop li,
    #template15 .desktop-view ul#tabs-nav.desktop li {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
        float: none !important;
        transition: background-color .2s ease;
    }
    #template15 .desktop-view ul#tabs-nav1.desktop li::after,
    #template15 .desktop-view ul#tabs-nav.desktop li::after {
        content: "";
        position: absolute;
        left: 50% !important;
        bottom: 5px !important;
        width: 0 !important;
        height: 2px !important;
        border-radius: 2px;
        background: #f07f22 !important;
        transform: translateX(-50%);
        transition: width .25s ease;
    }
    #template15 .desktop-view ul#tabs-nav1.desktop li a,
    #template15 .desktop-view ul#tabs-nav.desktop li a {
        display: block;
        padding: 11px 24px !important;
        color: #15416e !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.3;
        text-decoration: none !important;
        white-space: nowrap;
        background: transparent !important;
    }
    #template15 .desktop-view ul#tabs-nav1.desktop li:hover,
    #template15 .desktop-view ul#tabs-nav.desktop li:hover { background: #eef3f9 !important; }
    #template15 .desktop-view ul#tabs-nav1.desktop li:hover a,
    #template15 .desktop-view ul#tabs-nav.desktop li:hover a { color: #15416e !important; }
    #template15 .desktop-view ul#tabs-nav1.desktop li.active,
    #template15 .desktop-view ul#tabs-nav.desktop li.active { background: #15416e !important; }
    #template15 .desktop-view ul#tabs-nav1.desktop li.active a,
    #template15 .desktop-view ul#tabs-nav.desktop li.active a { color: #fff !important; }
    #template15 .desktop-view ul#tabs-nav1.desktop li.active::after,
    #template15 .desktop-view ul#tabs-nav.desktop li.active::after { width: 28px !important; }
}

/* tab change: the new panel's cards rise and fade in, one after another (class set by cniReveal) */
@keyframes cni-card-in {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.tab-content1 li.col-md-3.cni-in,
.tab-content li.col-md-3.cni-in {
    animation: cni-card-in .5s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--cni-i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
    .tab-content1 li.col-md-3.cni-in, .tab-content li.col-md-3.cni-in { animation: none; }
}
