/* FlyUp News Summary frontend - scoped to avoid theme override and CSS delay issues */
.flyup-news-summary-box,
.flyup-news-summary-box * {
    box-sizing: border-box;
}

.flyup-news-summary-box {
    --flyup-nsg-shadow: 0 10px 28px rgba(37, 99, 255, 0.08);
    width: 100%;
    margin: 28px 0;
    padding: 34px 36px 34px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, var(--flyup-nsg-bg, #f8f8fa) 100%) !important;
    color: var(--flyup-nsg-text, #333333) !important;
    border: 1px solid var(--flyup-nsg-border, #e5e7eb) !important;
    border-radius: 20px !important;
    box-shadow: var(--flyup-nsg-shadow) !important;
    font-family: inherit;
    line-height: 1.75;
    clear: both;
    position: relative;
    overflow: hidden;
}

.flyup-news-summary-box::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 22px;
    width: 70px;
    height: 52px;
    opacity: .18;
    background-image: radial-gradient(circle, var(--flyup-nsg-brand, #2563ff) 2px, transparent 2.2px);
    background-size: 17px 17px;
    pointer-events: none;
}

.flyup-news-summary-head {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

.flyup-news-summary-icon {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flyup-news-summary-icon svg {
    width: 46px !important;
    height: 46px !important;
    display: block !important;
}

.flyup-news-summary-icon .icon-shell {
    fill: #ffffff;
    stroke: color-mix(in srgb, var(--flyup-nsg-border, #e5e7eb) 85%, white);
    stroke-width: 1.25;
    filter: drop-shadow(0 5px 10px rgba(37,99,255,.10));
}

.flyup-news-summary-icon .star-main {
    fill: url(#flyupAiGrad);
}

.flyup-news-summary-icon .star-soft {
    fill: url(#flyupAiWarm);
}

.flyup-news-summary-icon .star-mini {
    fill: #3b82f6;
}

.flyup-news-summary-title-wrap {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    min-width: 0;
    padding-right: 78px;
}

.flyup-news-summary-title-wrap h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
    letter-spacing: -.02em !important;
}

.flyup-news-summary-title-wrap span {
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 560 !important;
    opacity: .98 !important;
}

.flyup-news-summary-rule {
    position: relative !important;
    height: 26px !important;
    margin: 12px 0 18px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--flyup-nsg-border, #e5e7eb) 80%, transparent) !important;
}

.flyup-news-summary-rule span {
    position: absolute !important;
    left: 0 !important;
    bottom: -1px !important;
    width: 120px !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--flyup-nsg-brand, #2563ff) 0%, #8b5cf6 100%) !important;
    border-radius: 999px !important;
    display: block !important;
}

.flyup-news-summary-content {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

.flyup-news-summary-content ul,
.flyup-news-summary-content ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.flyup-news-summary-content li {
    position: relative !important;
    margin: 0 0 18px 0 !important;
    padding: 0 0 0 28px !important;
    color: var(--flyup-nsg-text, #333333) !important;
    font-size: 18px !important;
    line-height: 1.85 !important;
    font-weight: 650 !important;
    letter-spacing: -.01em !important;
}

.flyup-news-summary-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .82em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, var(--flyup-nsg-brand, #2563ff) 0%, #8b5cf6 100%);
    box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.08);
}

.flyup-news-summary-content li:last-child {
    margin-bottom: 0 !important;
}

.flyup-news-summary-content p {
    margin: 0 !important;
    color: var(--flyup-nsg-text, #333333) !important;
    font-size: 17px !important;
    line-height: 1.85 !important;
    font-weight: 600 !important;
}

.flyup-news-summary-content a,
.flyup-news-summary-content a:hover,
.flyup-news-summary-content a:focus {
    color: var(--flyup-nsg-brand, #2563ff) !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .flyup-news-summary-box {
        margin: 20px 0;
        padding: 22px 18px 22px !important;
        border-radius: 16px !important;
    }
    .flyup-news-summary-box::after {
        right: 14px;
        top: 14px;
        width: 48px;
        height: 36px;
        background-size: 12px 12px;
    }
    .flyup-news-summary-head {
        gap: 12px !important;
    }
    .flyup-news-summary-icon,
    .flyup-news-summary-icon svg {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }
    .flyup-news-summary-title-wrap {
        display: block !important;
        padding-right: 36px;
    }
    .flyup-news-summary-title-wrap h2 {
        font-size: 21px !important;
        margin-bottom: 4px !important;
    }
    .flyup-news-summary-title-wrap span {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    .flyup-news-summary-rule {
        height: 20px !important;
        margin: 10px 0 14px !important;
    }
    .flyup-news-summary-rule span {
        width: 92px !important;
        height: 3px !important;
    }
    .flyup-news-summary-content li,
    .flyup-news-summary-content p {
        font-size: 15.5px !important;
        line-height: 1.82 !important;
        font-weight: 600 !important;
    }
    .flyup-news-summary-content li {
        margin-bottom: 14px !important;
        padding-left: 22px !important;
    }
    .flyup-news-summary-content li::before {
        width: 8px;
        height: 8px;
        box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.08);
    }
}
