/* SAZEH POUYESH — NEWS (v5 · Industrial Silver, matches Home/About) */
.sp-news {
    --sx-accent: var(--sp-orange, #F2691E);
    --sx-accent-rgb: 242, 105, 30;
    --sx-steel: #AEBCC6; --sx-steel-light: #C3CDD4; --sx-steel-deep: #55697A; --sx-steel-deeper: #3B4C5A;
    --sx-mist: #F4F7F9; --sx-line: #DCE3E8; --sx-ink: #1B2630; --sx-soft: #55616B;
    --sx-ease: cubic-bezier(.22, 1, .36, 1);
    background: var(--sp-paper, #fff); color: var(--sx-ink); overflow-x: clip; width: 100%;
}
.sp-news *, .sp-news *::before, .sp-news *::after { box-sizing: border-box; }

/* HERO */
.sp-nw-hero {
    position: relative;
    min-height: min(52vh, 440px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(60% 80% at 85% 10%, rgba(var(--sx-accent-rgb), .20), transparent 60%), linear-gradient(160deg, #C3CDD4, #AEBCC6);
}

.sp-nw-hero-bg {
    position: absolute;
    inset: -8% 0;
    opacity: .3;
    will-change: transform;
}

    .sp-nw-hero-bg img,
    .sp-nw-hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.sp-nw-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(174, 188, 198, .18) 100%);
}

.sp-nw-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 70px 20px 110px;
    max-width: 760px;
}

.sp-nw-hero-eyebrow {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .55);
    color: var(--sx-steel-deeper);
    font-size: .85rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .7);
}

/* ===== Title – matching the reference ===== */
.sp-nw-hero-title {
    margin: 16px 0 12px;
    font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.2rem);
    font-weight: 800;
    color: var(--sp-ink);
    text-shadow: none;
}

    .sp-nw-hero-title::after {
        content: "";
        display: block;
        width: 64px;
        height: 4px;
        margin: 14px auto 0;
        border-radius: 4px;
        background: linear-gradient(90deg, var(--sp-orange), var(--sp-orange-deep));
    }

.sp-nw-hero-sub {
    margin: 0;
    color: var(--sp-steel-deeper);
    font-size: 1.02rem;
    line-height: 1.9;
    max-width: 620px;
    margin-inline: auto;
    text-shadow: none;
}

/* Wave */
.sp-nw-hero-wave {
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 70px;
    overflow: hidden;
    pointer-events: none;
}

.sp-wave-track {
    width: 200%;
    height: 100%;
    animation: sxWave 28s linear infinite;
}

    .sp-wave-track svg {
        width: 100%;
        height: 100%;
        display: block;
    }

@keyframes sxWave {
    to {
        transform: translateX(50%);
    }
}

/* SECTIONS */
.sp-nw-section { max-width: 1240px; margin: 0 auto; padding: 56px 20px 24px; }
.sp-nw-section-head { text-align: center; margin-bottom: 30px; }
.sp-nw-label { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--sx-steel-deep); letter-spacing: .02em; }
.sp-nw-heading { position: relative; margin: 8px 0 0; padding-bottom: 18px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; }
.sp-nw-heading::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 38px; height: 2px; transform: translateX(-50%); background: var(--sx-accent); border-radius: 2px; }

/* BUTTONS (flat steel + orange hairline) */
.sp-nw-readmore, .sp-nw-card-cta, .sp-nw-more-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 46px; padding: 0 26px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; overflow: hidden;
    color: #fff; background: var(--sx-steel-deeper); box-shadow: 0 8px 22px rgba(27,38,48,.16); transition: transform .35s var(--sx-ease), background .35s, box-shadow .35s; }
.sp-nw-readmore::after, .sp-nw-card-cta::after, .sp-nw-more-btn::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--sx-accent); transform: translateX(-50%); transition: width .45s var(--sx-ease); }
.sp-nw-readmore:hover, .sp-nw-card-cta:hover, .sp-nw-more-btn:hover { background: var(--sx-ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(27,38,48,.24); }
.sp-nw-readmore:hover::after, .sp-nw-card-cta:hover::after, .sp-nw-more-btn:hover::after { width: 46%; }
.sp-nw-readmore:focus-visible, .sp-nw-card-cta:focus-visible, .sp-nw-more-btn:focus-visible, .sp-nw-filter-btn:focus-visible { outline: 2px solid var(--sx-accent); outline-offset: 3px; }
.sp-btn-blobs { display: none; }
.sp-nw-card-cta { width: 100%; height: 42px; background: transparent; color: var(--sx-steel-deeper); box-shadow: none; border: 1px solid var(--sx-line); }
.sp-nw-card-cta:hover { background: var(--sx-steel-deeper); color: #fff; }

/* FEATURED */
.sp-nw-featured-card { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 380px; border-radius: 24px; overflow: hidden; background: #fff;
    border: 1px solid var(--sx-line); box-shadow: 0 24px 60px rgba(27,38,48,.10); }
.sp-nw-featured-media { position: relative; overflow: hidden; background: var(--sx-mist); min-height: 260px; }
.sp-nw-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sx-ease); }
.sp-nw-featured-card:hover .sp-nw-featured-media img { transform: scale(1.05); }
.sp-nw-featured-badge { position: absolute; top: 18px; inset-inline-start: 18px; padding: 6px 16px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--sx-steel-deeper);
    font-weight: 800; font-size: .82rem; border-inline-start: 3px solid var(--sx-accent); }
.sp-nw-featured-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; align-items: flex-start; }
.sp-nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--sx-soft); font-size: .86rem; }
.sp-nw-featured-cat { padding: 4px 14px; border-radius: 99px; background: var(--sx-mist); color: var(--sx-steel-deep); font-weight: 700; }
.sp-nw-date { display: inline-flex; align-items: center; gap: 6px; }
.sp-nw-date .mud-icon-root { width: 16px; height: 16px; }
.sp-nw-featured-title { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.6; font-weight: 800; text-align:justify }
.sp-nw-featured-excerpt { margin: 0; color: var(--sx-soft); line-height: 2; text-align:justify }
.sp-nw-media-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #E6ECF0, #C3CDD4); color: #fff; }
.sp-nw-media-fallback .mud-icon-root { width: 56px; height: 56px; }
.sp-nw-play-badge { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.9); color: var(--sx-steel-deeper); font-size: 1.1rem; box-shadow: 0 10px 30px rgba(27,38,48,.3); }
.sp-nw-play-badge--card { width: 44px; height: 44px; inset: 38% auto auto 50%; }

/* FILTER */
.sp-nw-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.sp-nw-filter-btn { padding: 9px 22px; border-radius: 99px; border: 1px solid var(--sx-line); background: #fff; font: inherit; font-weight: 700; font-size: .9rem; color: var(--sx-soft); cursor: pointer;
    transition: all .3s var(--sx-ease); }
.sp-nw-filter-btn:hover { border-color: var(--sx-steel); color: var(--sx-ink); transform: translateY(-2px); }
.sp-nw-filter-btn.is-on { background: var(--sx-steel-deeper); border-color: var(--sx-steel-deeper); color: #fff; box-shadow: inset 0 -2px 0 var(--sx-accent); }

/* GRID */
.sp-nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.sp-nw-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--sx-line);
    transition: transform .5s var(--sx-ease), box-shadow .5s var(--sx-ease), border-color .5s; }
.sp-nw-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(27,38,48,.13); border-color: var(--sx-steel); }
.sp-nw-card-top { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--sx-mist); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; gap: 8px; isolation: isolate; }
.sp-nw-card-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--sx-ease); }
.sp-nw-card:hover .sp-nw-card-top img { transform: scale(1.07); }
.sp-nw-card-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(27,38,48,.82)); }
.sp-nw-card-cat { align-self: flex-start; padding: 3px 12px; border-radius: 99px; background: rgba(255,255,255,.9); color: var(--sx-steel-deeper); font-size: .76rem; font-weight: 800; }
.sp-nw-card-cat:empty { display: none; }
.sp-nw-card-title { margin: 0; color: #fff; font-size: 1.02rem; line-height: 1.8; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align:justify }
.sp-nw-card-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.sp-nw-card-desc { margin: 0; flex: 1; color: var(--sx-soft); font-size: .92rem; line-height: 2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align:justify }
.sp-nw-more { text-align: center; margin-top: 40px; }
.sp-nw-more-btn .mud-icon-root { width: 20px; height: 20px; }
.sp-nw-state { text-align: center; padding: 60px 20px; color: var(--sx-soft); }

@media (max-width: 860px) { .sp-nw-featured-card { grid-template-columns: 1fr; } .sp-nw-featured-media { min-height: 220px; aspect-ratio: 16/10; } }
@media (max-width: 480px) { .sp-nw-grid { grid-template-columns: 1fr; } .sp-nw-hero-content { padding-bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .sp-wave-track { animation: none; } .sp-news *, .sp-news *::before { transition: none !important; } }
