/* ==========================================================================
   FOTO — News Center (/news/ + Company News / Industry News archives)
   Animated "newsroom" design. Mobile-first. Motion off under prefers-reduced-motion.
   ========================================================================== */

.is-newsroom {
	--molten: linear-gradient(100deg, #ffd27a 0%, #ff9a3c 22%, #f26522 45%, #ff3d00 62%, #ffb347 82%, #ffd27a 100%);
	--c-company: #f26522;
	--c-industry: #2f7fd8;
	--ease: cubic-bezier(.2, .75, .2, 1);
}

/* ---------- Scroll reveal ---------- */
.nwx-js [data-rv] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .75s ease, transform .75s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.nwx-js [data-rv].is-in { opacity: 1; transform: none; }

.nwx-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.nwx-kicker i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.nwx-kicker i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: nwx-ping 2s ease-out infinite; }
@keyframes nwx-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.nwx-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 0% 0%, #12335c 0%, var(--navy-3) 60%); }
.nwx-hero__grid { position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 5%, transparent 72%); mask-image: radial-gradient(ellipse at 30% 30%, #000 5%, transparent 72%); animation: nwx-grid 30s linear infinite; }
@keyframes nwx-grid { to { background-position: 48px 48px, 48px 48px; } }
.nwx-hero__glow { position: absolute; z-index: -2; width: 560px; height: 560px; right: -200px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 0, .5) 0%, rgba(242, 101, 34, .14) 40%, transparent 68%); animation: nwx-breathe 7s ease-in-out infinite; transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0); }
.nwx-hero__glow--b { width: 460px; height: 460px; left: -220px; right: auto; top: auto; bottom: -260px; background: radial-gradient(circle, rgba(47, 127, 216, .45) 0%, rgba(47, 127, 216, .12) 42%, transparent 70%); animation-delay: -3.5s; transform: translate3d(calc(var(--gx, 0px) * -1), calc(var(--gy, 0px) * -1), 0); }
@keyframes nwx-breathe { 50% { scale: 1.14; opacity: .75; } }
.nwx-sparks { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.nwx-hero__inner { padding-top: 22px; padding-bottom: 34px; }
.nwx-hero__cols { display: grid; gap: 30px; margin-top: 26px; }
.nwx-hero__title { margin: 14px 0 14px; font-size: clamp(36px, 8.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
.nwx-hero__title span { background: var(--molten); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nwx-flow 6s ease-in-out infinite alternate; }
@keyframes nwx-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.nwx-hero__title.is-swap { animation: nwx-title .5s var(--ease); }
@keyframes nwx-title { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.nwx-hero__text { max-width: 560px; margin: 0; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .74); }
.nwx-hero__stat { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 26px; }
.nwx-hero__stat strong { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -.04em; background: var(--molten); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nwx-flow 6s ease-in-out infinite alternate; font-variant-numeric: tabular-nums; }
.nwx-hero__stat span { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.nwx-hero__stat em { flex-basis: 100%; font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Portals (category cards in hero) */
.nwx-portals { display: grid; gap: 14px; }
.nwx-portal { --c: var(--c-company); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; padding: 18px 18px 20px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: linear-gradient(150deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, background .3s; -webkit-tap-highlight-color: transparent; }
.nwx-portal--industry { --c: var(--c-industry); }
.nwx-portal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px circle at var(--mx, 85%) var(--my, 0%), color-mix(in srgb, var(--c) 38%, transparent), transparent 70%); opacity: .55; transition: opacity .3s; }
.nwx-portal:hover, .nwx-portal:focus-visible { color: #fff; transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.nwx-portal:hover::before { opacity: 1; }
.nwx-portal.is-active { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 18px 44px color-mix(in srgb, var(--c) 30%, transparent); }
.nwx-portal.is-active::before { opacity: 1; }
.nwx-portal__ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3); }
.nwx-portal__ico .ico { width: 24px; height: 24px; color: #fff; }
.nwx-portal:hover .nwx-portal__ico { animation: nwx-wobble .6s var(--ease); }
@keyframes nwx-wobble { 30% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(6deg); } }
.nwx-portal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nwx-portal__name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.nwx-portal__num { font-size: 12.5px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.nwx-portal__num b { font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; margin-right: 2px; }
.nwx-portal__desc { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .68); }
.nwx-portal__last { grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; padding: 10px 40px 0 0; border-top: 1px dashed rgba(255, 255, 255, .16); font-size: 14px; font-weight: 600; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.nwx-portal__last small { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 4px; background: var(--c); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.nwx-portal__bar { grid-column: 1 / -1; position: relative; height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.nwx-portal__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); transition: width 1.4s var(--ease) .3s; }
.nwx-js .nwx-portal:not(.is-in) .nwx-portal__bar i { width: 0; }
.nwx-portal__bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-100%); animation: nwx-shine 2.8s ease-in-out infinite 1.6s; }
@keyframes nwx-shine { 60%, 100% { transform: translateX(100%); } }
.nwx-portal__go { position: absolute; right: 16px; bottom: 26px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .3s, transform .35s var(--ease); }
.nwx-portal:hover .nwx-portal__go, .nwx-portal.is-active .nwx-portal__go { background: var(--c); transform: translateX(3px) rotate(-45deg); }
.nwx-portal.is-active .nwx-portal__go { transform: rotate(90deg); }

/* Ticker */
.nwx-ticker { display: flex; align-items: stretch; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(3, 12, 25, .45); }
.nwx-ticker__label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 24px; }
.nwx-ticker__label i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: nwx-blink 1.2s steps(2) infinite; }
@keyframes nwx-blink { 50% { opacity: .2; } }
.nwx-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.nwx-ticker__track { display: flex; width: max-content; animation: nwx-marquee 60s linear infinite; }
.nwx-ticker:hover .nwx-ticker__track, .nwx-ticker:focus-within .nwx-ticker__track { animation-play-state: paused; }
.nwx-ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.nwx-ticker li a { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 28px 0 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.nwx-ticker li a:hover { color: #fff; }
@keyframes nwx-marquee { to { transform: translateX(-50%); } }
.nwx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-company); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-company) 25%, transparent); }
.nwx-dot--industry { background: var(--c-industry); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-industry) 25%, transparent); }

/* ==========================================================================
   FILTER BAR (sticky)
   ========================================================================== */
.nwx-bar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.nwx-bar.is-stuck { box-shadow: 0 8px 24px rgba(11, 31, 58, .08); }
.nwx-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.nwx-tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--grey); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nwx-tabs::-webkit-scrollbar { display: none; }
.nwx-tabs__ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--navy); box-shadow: 0 6px 16px rgba(11, 31, 58, .25); transform: translateX(var(--x, 0)); width: var(--w, 0); transition: transform .45s var(--ease), width .45s var(--ease), background .3s; }
.nwx-tabs__ink.is-company { background: var(--c-company); box-shadow: 0 6px 16px rgba(242, 101, 34, .35); }
.nwx-tabs__ink.is-industry { background: var(--c-industry); box-shadow: 0 6px 16px rgba(47, 127, 216, .35); }
.nwx-tab { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: color .3s; -webkit-tap-highlight-color: transparent; }
.nwx-tab span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--navy); transition: background .3s, color .3s; }
.nwx-tab:hover { color: var(--navy); }
.nwx-tab.is-active { color: #fff; }
.nwx-tab.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }
.nwx-js .nwx-tabs.is-ready .nwx-tab.is-active { background: none; }
.nwx-tab.is-active { background: var(--navy); }
.nwx-tab--company.is-active { background: var(--c-company); }
.nwx-tab--industry.is-active { background: var(--c-industry); }
.nwx-bar__count { display: none; margin: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.nwx-bar__count b { display: inline-block; min-width: 1.2em; color: var(--navy); font-size: 15px; font-variant-numeric: tabular-nums; }
.nwx-bar__count b.is-bump { animation: nwx-bump .45s var(--ease); }
@keyframes nwx-bump { 40% { transform: translateY(-6px); color: var(--orange); } }

/* ==========================================================================
   GRID + CARDS
   ========================================================================== */
.nwx-body { padding-top: 34px; padding-bottom: 64px; }
.nwx-grid { display: grid; gap: 20px; }
.nwx-card { --c: var(--c-company); position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(11, 31, 58, .04); transition: opacity .3s, translate .45s var(--ease), box-shadow .35s, border-color .3s, transform .75s var(--ease); }
.nwx-card--industry { --c: var(--c-industry); }
.nwx-card[hidden] { display: none; }
.nwx-card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 9%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; }
.nwx-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: var(--molten); background-size: 200% 100%; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nwx-card--industry::after { background: linear-gradient(90deg, #7fc0ff, var(--c-industry), #1b4f9c, #7fc0ff); background-size: 200% 100%; }
.nwx-card:hover { translate: 0 -6px; border-color: color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: 0 22px 44px rgba(11, 31, 58, .13); }
.nwx-card:hover::before { opacity: 1; }
.nwx-card:hover::after { transform: scaleX(1); animation: nwx-flow 2.4s linear infinite alternate; }

.nwx-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-2); }
.nwx-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.nwx-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 22, 41, .45)); opacity: .7; transition: opacity .4s; }
.nwx-card:hover .nwx-card__img img { transform: scale(1.07); filter: saturate(1.1); }
.nwx-card:hover .nwx-card__img::after { opacity: 1; }
.nwx-card__date { position: absolute; left: 14px; top: 14px; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 7px 8px 6px; border-radius: 10px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(7, 22, 41, .2); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; transition: transform .45s var(--ease); }
.nwx-card__date b { font-size: 22px; line-height: 1; letter-spacing: -.02em; color: var(--c); }
.nwx-card:hover .nwx-card__date { transform: translateY(-3px) rotate(-3deg); }

.nwx-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 22px; }
.nwx-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nwx-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; background: color-mix(in srgb, var(--c-company) 11%, #fff); color: var(--c-company); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nwx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nwx-pill--industry { background: color-mix(in srgb, var(--c-industry) 11%, #fff); color: var(--c-industry); }
.nwx-card__read { font-size: 12.5px; color: var(--muted); }
.nwx-card__title { margin: 0; font-size: 18.5px; line-height: 1.35; letter-spacing: -.01em; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nwx-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease), color .25s; }
.nwx-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.nwx-card:hover .nwx-card__title a { color: var(--c); background-size: 100% 1.5px; }
.nwx-card__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nwx-card__more { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 800; color: var(--navy); align-self: flex-start; }
.nwx-card__arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease); }
.nwx-card:hover .nwx-card__more { color: var(--c); }
.nwx-card:hover .nwx-card__arrow { background: var(--c); border-color: var(--c); color: #fff; transform: translateX(4px); }

/* Filtering transition */
.nwx-grid.is-out .nwx-card { opacity: 0; translate: 0 14px; }

.nwx-empty { padding: 56px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; background: var(--grey); color: var(--muted); }
.nwx-empty[hidden] { display: none; }
.nwx-body .navigation.pagination { margin-top: 34px; }

/* CTA */
.nwx-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 56px; padding: 30px 24px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); }
.nwx-cta__glow { position: absolute; z-index: -1; right: -120px; bottom: -200px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 0, .55), transparent 65%); animation: nwx-breathe 6s ease-in-out infinite; }
.nwx-cta h2 { margin: 10px 0 8px; font-size: clamp(22px, 4.4vw, 30px); line-height: 1.2; color: #fff; }
.nwx-cta p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .72); }
.nwx-cta .btn .ico { transition: transform .3s var(--ease); }
.nwx-cta .btn:hover .ico { transform: translateX(4px); }

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */
@media (min-width: 640px) {
	.nwx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nwx-card.is-lead { grid-column: 1 / -1; }
	.nwx-bar__count { display: block; }
	.nwx-portals { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
	.nwx-hero__inner { padding-top: 28px; padding-bottom: 56px; }
	.nwx-hero__cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; margin-top: 34px; }
	.nwx-portals { grid-template-columns: 1fr; }
	.nwx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
	.nwx-card.is-lead { flex-direction: row; min-height: 380px; }
	.nwx-card.is-lead .nwx-card__img { flex: 0 0 56%; aspect-ratio: auto; }
	.nwx-card.is-lead .nwx-card__body { justify-content: center; gap: 14px; padding: 40px 44px; }
	.nwx-card.is-lead .nwx-card__title { font-size: 30px; line-height: 1.2; -webkit-line-clamp: 4; }
	.nwx-card.is-lead .nwx-card__text { font-size: 16px; -webkit-line-clamp: 5; }
	.nwx-card.is-lead .nwx-card__more { margin-top: 10px; }
	.nwx-card.is-lead .nwx-card__date { left: 20px; top: 20px; min-width: 70px; }
	.nwx-card.is-lead .nwx-card__date b { font-size: 28px; }
	.nwx-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 48px; }
}
@media (max-width: 599px) {
	.nwx-bar__in { min-height: 60px; }
	.nwx-tab { height: 38px; padding: 0 13px; font-size: 14px; }
	.nwx-portal__desc { display: none; }
	.nwx-card__body { padding: 16px 16px 18px; }
	.nwx-card__title { font-size: 17px; }
}

/* Arabic (RTL) */
[dir="rtl"] .nwx-portal__go { right: auto; left: 16px; }
[dir="rtl"] .nwx-portal__last { padding: 10px 0 0 40px; }
[dir="rtl"] .nwx-card__date { left: auto; right: 14px; }
[dir="rtl"] .nwx-card::after { transform-origin: right; }

@media (prefers-reduced-motion: reduce) {
	.is-newsroom *, .is-newsroom *::before, .is-newsroom *::after { animation: none !important; transition-duration: .01ms !important; }
	.nwx-js [data-rv] { opacity: 1; transform: none; }
	.nwx-ticker__viewport { overflow-x: auto; }
}
